configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xset 1.2.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xset'
583 PACKAGE_TARNAME='xset'
584 PACKAGE_VERSION='1.2.4'
585 PACKAGE_STRING='xset 1.2.4'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 SET_FONTCACHE_LIBS
631 SET_FONTCACHE_CFLAGS
632 SET_XF86MISC_LIBS
633 SET_XF86MISC_CFLAGS
634 SET_XKB_LIBS
635 SET_XKB_CFLAGS
636 SET_XEXT_LIBS
637 SET_XEXT_CFLAGS
638 SET_X11_LIBS
639 SET_X11_CFLAGS
640 XSET_LIBS
641 XSET_CFLAGS
642 MAN_SUBSTS
643 XORG_MAN_PAGE
644 ADMIN_MAN_DIR
645 DRIVER_MAN_DIR
646 MISC_MAN_DIR
647 FILE_MAN_DIR
648 LIB_MAN_DIR
649 APP_MAN_DIR
650 ADMIN_MAN_SUFFIX
651 DRIVER_MAN_SUFFIX
652 MISC_MAN_SUFFIX
653 FILE_MAN_SUFFIX
654 LIB_MAN_SUFFIX
655 APP_MAN_SUFFIX
656 SED
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 INSTALL_CMD
666 PKG_CONFIG_LIBDIR
667 PKG_CONFIG_PATH
668 PKG_CONFIG
669 CHANGELOG_CMD
670 STRICT_CFLAGS
671 CWARNFLAGS
672 BASE_CFLAGS
673 AM_BACKSLASH
674 AM_DEFAULT_VERBOSITY
675 AM_DEFAULT_V
676 AM_V
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 EGREP
711 GREP
712 CPP
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_dependency_tracking
762 enable_silent_rules
763 enable_selective_werror
764 enable_strict_compilation
765 with_xf86misc
766 with_fontcache
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP
777 PKG_CONFIG
778 PKG_CONFIG_PATH
779 PKG_CONFIG_LIBDIR
780 XSET_CFLAGS
781 XSET_LIBS
782 SET_X11_CFLAGS
783 SET_X11_LIBS
784 SET_XEXT_CFLAGS
785 SET_XEXT_LIBS
786 SET_XKB_CFLAGS
787 SET_XKB_LIBS
788 SET_XF86MISC_CFLAGS
789 SET_XF86MISC_LIBS
790 SET_FONTCACHE_CFLAGS
791 SET_FONTCACHE_LIBS'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
841
842 ac_prev=
843 ac_dashdash=
844 for ac_option
845 do
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
851 fi
852
853 case $ac_option in
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *=) ac_optarg= ;;
856 *) ac_optarg=yes ;;
857 esac
858
859 # Accept the important Cygnus configure options, so we can diagnose typos.
860
861 case $ac_dashdash$ac_option in
862 --)
863 ac_dashdash=yes ;;
864
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 ac_prev=bindir ;;
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 bindir=$ac_optarg ;;
869
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
874
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
881
882 --config-cache | -C)
883 cache_file=config.cache ;;
884
885 -datadir | --datadir | --datadi | --datad)
886 ac_prev=datadir ;;
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
889
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
896
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=no ;;
912
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
917
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
922
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=\$ac_optarg ;;
938
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
947
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
950 with_gas=yes ;;
951
952 -help | --help | --hel | --he | -h)
953 ac_init_help=long ;;
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
958
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
963
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 ac_prev=htmldir ;;
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 | --ht=*)
968 htmldir=$ac_optarg ;;
969
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
976
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 ac_prev=infodir ;;
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
981
982 -libdir | --libdir | --libdi | --libd)
983 ac_prev=libdir ;;
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 libdir=$ac_optarg ;;
986
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
993
994 -localedir | --localedir | --localedi | --localed | --locale)
995 ac_prev=localedir ;;
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
998
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1005
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 ac_prev=mandir ;;
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1010
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1013 with_fp=no ;;
1014
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1017 no_create=yes ;;
1018
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 no_recursion=yes ;;
1022
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1031
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 ac_prev=prefix ;;
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1036
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1043
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1050
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1067
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 ac_prev=pdfdir ;;
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1072
1073 -psdir | --psdir | --psdi | --psd | --ps)
1074 ac_prev=psdir ;;
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 psdir=$ac_optarg ;;
1077
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;;
1081
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1087
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1098
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1103
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1108
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1115
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1120
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1123
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1126
1127 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=\$ac_optarg ;;
1142
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1158
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1162
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1169
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1176
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1179 ;;
1180
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 esac
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1190
1191 *)
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 ;;
1198
1199 esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1205 fi
1206
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1209 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
1213 fi
1214
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1220 do
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1235
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1242
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297 else
1298 ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures xset 1.2.4 to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/xset]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1386
1387 cat <<\_ACEOF
1388
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of xset 1.2.4:";;
1403 esac
1404 cat <<\_ACEOF
1405
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-silent-rules less verbose build output (undo: "make V=1")
1415 --disable-silent-rules verbose build output (undo: "make V=0")
1416 --disable-selective-werror
1417 Turn off selective compiler errors. (default:
1418 enabled)
1419 --enable-strict-compilation
1420 Enable all warnings from compiler and make them
1421 errors (default: disabled)
1422
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --without-xf86misc Disable xf86misc support.
1427 --without-fontcache Disable fontcache support.
1428
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1438 PKG_CONFIG path to pkg-config utility
1439 PKG_CONFIG_PATH
1440 directories to add to pkg-config's search path
1441 PKG_CONFIG_LIBDIR
1442 path overriding pkg-config's built-in search path
1443 XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1444 XSET_LIBS linker flags for XSET, overriding pkg-config
1445 SET_X11_CFLAGS
1446 C compiler flags for SET_X11, overriding pkg-config
1447 SET_X11_LIBS
1448 linker flags for SET_X11, overriding pkg-config
1449 SET_XEXT_CFLAGS
1450 C compiler flags for SET_XEXT, overriding pkg-config
1451 SET_XEXT_LIBS
1452 linker flags for SET_XEXT, overriding pkg-config
1453 SET_XKB_CFLAGS
1454 C compiler flags for SET_XKB, overriding pkg-config
1455 SET_XKB_LIBS
1456 linker flags for SET_XKB, overriding pkg-config
1457 SET_XF86MISC_CFLAGS
1458 C compiler flags for SET_XF86MISC, overriding pkg-config
1459 SET_XF86MISC_LIBS
1460 linker flags for SET_XF86MISC, overriding pkg-config
1461 SET_FONTCACHE_CFLAGS
1462 C compiler flags for SET_FONTCACHE, overriding pkg-config
1463 SET_FONTCACHE_LIBS
1464 linker flags for SET_FONTCACHE, overriding pkg-config
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
1480 ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1522 else
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1526 done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531 cat <<\_ACEOF
1532 xset configure 1.2.4
1533 generated by GNU Autoconf 2.69
1534
1535 Copyright (C) 2012 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538 _ACEOF
1539 exit
1540 fi
1541
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1545
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1572 ac_retval=0
1573 else
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_c_try_cpp LINENO
1585 # ----------------------
1586 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_cpp ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if { { ac_try="$ac_cpp conftest.$ac_ext"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } > conftest.i && {
1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 }; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_cpp
1620
1621 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1624 # the include files in INCLUDES and setting the cache variable VAR
1625 # accordingly.
1626 ac_fn_c_check_header_mongrel ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 if eval \${$3+:} false; then :
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if eval \${$3+:} false; then :
1633 $as_echo_n "(cached) " >&6
1634 fi
1635 eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 else
1639 # Is the header compilable?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1641 $as_echo_n "checking $2 usability... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 $4
1645 #include <$2>
1646 _ACEOF
1647 if ac_fn_c_try_compile "$LINENO"; then :
1648 ac_header_compiler=yes
1649 else
1650 ac_header_compiler=no
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1654 $as_echo "$ac_header_compiler" >&6; }
1655
1656 # Is the header present?
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1658 $as_echo_n "checking $2 presence... " >&6; }
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1661 #include <$2>
1662 _ACEOF
1663 if ac_fn_c_try_cpp "$LINENO"; then :
1664 ac_header_preproc=yes
1665 else
1666 ac_header_preproc=no
1667 fi
1668 rm -f conftest.err conftest.i conftest.$ac_ext
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1670 $as_echo "$ac_header_preproc" >&6; }
1671
1672 # So? What about this header?
1673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1674 yes:no: )
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1676 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1678 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679 ;;
1680 no:yes:* )
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1682 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1684 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1686 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1688 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691 ( $as_echo "## ---------------------------------------------------------------------- ##
1692 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1693 ## ---------------------------------------------------------------------- ##"
1694 ) | sed "s/^/$as_me: WARNING: /" >&2
1695 ;;
1696 esac
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1701 else
1702 eval "$3=\$ac_header_compiler"
1703 fi
1704 eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710 } # ac_fn_c_check_header_mongrel
1711
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
1747 fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_run
1753
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 $4
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_header_compile
1784
1785 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1786 # ---------------------------------------------
1787 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1788 # accordingly.
1789 ac_fn_c_check_decl ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 as_decl_name=`echo $2|sed 's/ *(.*//'`
1793 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1795 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 int
1803 main ()
1804 {
1805 #ifndef $as_decl_name
1806 #ifdef __cplusplus
1807 (void) $as_decl_use;
1808 #else
1809 (void) $as_decl_name;
1810 #endif
1811 #endif
1812
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 eval "$3=yes"
1819 else
1820 eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_decl
1830
1831 # ac_fn_c_try_link LINENO
1832 # -----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_link ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext conftest$ac_exeext
1838 if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1851 fi
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest$ac_exeext && {
1857 test "$cross_compiling" = yes ||
1858 test -x conftest$ac_exeext
1859 }; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=1
1866 fi
1867 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869 # interfere with the next link command; also delete a directory that is
1870 # left behind by Apple's compiler. We do this before executing the actions.
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1874
1875 } # ac_fn_c_try_link
1876
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1893
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1898
1899 #ifdef __STDC__
1900 # include <limits.h>
1901 #else
1902 # include <assert.h>
1903 #endif
1904
1905 #undef $2
1906
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1910 #ifdef __cplusplus
1911 extern "C"
1912 #endif
1913 char $2 ();
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1918 choke me
1919 #endif
1920
1921 int
1922 main ()
1923 {
1924 return $2 ();
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_link "$LINENO"; then :
1930 eval "$3=yes"
1931 else
1932 eval "$3=no"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_func
1943 cat >config.log <<_ACEOF
1944 This file contains any messages produced by compilers while
1945 running configure, to aid debugging if configure makes a mistake.
1946
1947 It was created by xset $as_me 1.2.4, which was
1948 generated by GNU Autoconf 2.69. Invocation command line was
1949
1950 $ $0 $@
1951
1952 _ACEOF
1953 exec 5>>config.log
1954 {
1955 cat <<_ASUNAME
1956 ## --------- ##
1957 ## Platform. ##
1958 ## --------- ##
1959
1960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1965
1966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1968
1969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1972 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1976
1977 _ASUNAME
1978
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 $as_echo "PATH: $as_dir"
1985 done
1986 IFS=$as_save_IFS
1987
1988 } >&5
1989
1990 cat >&5 <<_ACEOF
1991
1992
1993 ## ----------- ##
1994 ## Core tests. ##
1995 ## ----------- ##
1996
1997 _ACEOF
1998
1999
2000 # Keep a trace of the command line.
2001 # Strip out --no-create and --no-recursion so they do not pile up.
2002 # Strip out --silent because we don't want to record it for future runs.
2003 # Also quote any args containing shell meta-characters.
2004 # Make two passes to allow for proper duplicate-argument suppression.
2005 ac_configure_args=
2006 ac_configure_args0=
2007 ac_configure_args1=
2008 ac_must_keep_next=false
2009 for ac_pass in 1 2
2010 do
2011 for ac_arg
2012 do
2013 case $ac_arg in
2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016 | -silent | --silent | --silen | --sile | --sil)
2017 continue ;;
2018 *\'*)
2019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020 esac
2021 case $ac_pass in
2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023 2)
2024 as_fn_append ac_configure_args1 " '$ac_arg'"
2025 if test $ac_must_keep_next = true; then
2026 ac_must_keep_next=false # Got value, back to normal.
2027 else
2028 case $ac_arg in
2029 *=* | --config-cache | -C | -disable-* | --disable-* \
2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032 | -with-* | --with-* | -without-* | --without-* | --x)
2033 case "$ac_configure_args0 " in
2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035 esac
2036 ;;
2037 -* ) ac_must_keep_next=true ;;
2038 esac
2039 fi
2040 as_fn_append ac_configure_args " '$ac_arg'"
2041 ;;
2042 esac
2043 done
2044 done
2045 { ac_configure_args0=; unset ac_configure_args0;}
2046 { ac_configure_args1=; unset ac_configure_args1;}
2047
2048 # When interrupted or exit'd, cleanup temporary files, and complete
2049 # config.log. We remove comments because anyway the quotes in there
2050 # would cause problems or look ugly.
2051 # WARNING: Use '\'' to represent an apostrophe within the trap.
2052 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053 trap 'exit_status=$?
2054 # Save into config.log some information that might help in debugging.
2055 {
2056 echo
2057
2058 $as_echo "## ---------------- ##
2059 ## Cache variables. ##
2060 ## ---------------- ##"
2061 echo
2062 # The following way of writing the cache mishandles newlines in values,
2063 (
2064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2065 eval ac_val=\$$ac_var
2066 case $ac_val in #(
2067 *${as_nl}*)
2068 case $ac_var in #(
2069 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2070 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2071 esac
2072 case $ac_var in #(
2073 _ | IFS | as_nl) ;; #(
2074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2075 *) { eval $ac_var=; unset $ac_var;} ;;
2076 esac ;;
2077 esac
2078 done
2079 (set) 2>&1 |
2080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2081 *${as_nl}ac_space=\ *)
2082 sed -n \
2083 "s/'\''/'\''\\\\'\'''\''/g;
2084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2085 ;; #(
2086 *)
2087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2088 ;;
2089 esac |
2090 sort
2091 )
2092 echo
2093
2094 $as_echo "## ----------------- ##
2095 ## Output variables. ##
2096 ## ----------------- ##"
2097 echo
2098 for ac_var in $ac_subst_vars
2099 do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in
2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 esac
2104 $as_echo "$ac_var='\''$ac_val'\''"
2105 done | sort
2106 echo
2107
2108 if test -n "$ac_subst_files"; then
2109 $as_echo "## ------------------- ##
2110 ## File substitutions. ##
2111 ## ------------------- ##"
2112 echo
2113 for ac_var in $ac_subst_files
2114 do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2122 fi
2123
2124 if test -s confdefs.h; then
2125 $as_echo "## ----------- ##
2126 ## confdefs.h. ##
2127 ## ----------- ##"
2128 echo
2129 cat confdefs.h
2130 echo
2131 fi
2132 test "$ac_signal" != 0 &&
2133 $as_echo "$as_me: caught signal $ac_signal"
2134 $as_echo "$as_me: exit $exit_status"
2135 } >&5
2136 rm -f core *.core core.conftest.* &&
2137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2138 exit $exit_status
2139 ' 0
2140 for ac_signal in 1 2 13 15; do
2141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2142 done
2143 ac_signal=0
2144
2145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2146 rm -f -r conftest* confdefs.h
2147
2148 $as_echo "/* confdefs.h */" > confdefs.h
2149
2150 # Predefined preprocessor variables.
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_NAME "$PACKAGE_NAME"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_STRING "$PACKAGE_STRING"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_URL "$PACKAGE_URL"
2174 _ACEOF
2175
2176
2177 # Let the site file select an alternate cache file if it wants to.
2178 # Prefer an explicitly selected file to automatically selected ones.
2179 ac_site_file1=NONE
2180 ac_site_file2=NONE
2181 if test -n "$CONFIG_SITE"; then
2182 # We do not want a PATH search for config.site.
2183 case $CONFIG_SITE in #((
2184 -*) ac_site_file1=./$CONFIG_SITE;;
2185 */*) ac_site_file1=$CONFIG_SITE;;
2186 *) ac_site_file1=./$CONFIG_SITE;;
2187 esac
2188 elif test "x$prefix" != xNONE; then
2189 ac_site_file1=$prefix/share/config.site
2190 ac_site_file2=$prefix/etc/config.site
2191 else
2192 ac_site_file1=$ac_default_prefix/share/config.site
2193 ac_site_file2=$ac_default_prefix/etc/config.site
2194 fi
2195 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2196 do
2197 test "x$ac_site_file" = xNONE && continue
2198 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201 sed 's/^/| /' "$ac_site_file" >&5
2202 . "$ac_site_file" \
2203 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205 as_fn_error $? "failed to load site script $ac_site_file
2206 See \`config.log' for more details" "$LINENO" 5; }
2207 fi
2208 done
2209
2210 if test -r "$cache_file"; then
2211 # Some versions of bash will fail to source /dev/null (special files
2212 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2215 $as_echo "$as_me: loading cache $cache_file" >&6;}
2216 case $cache_file in
2217 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218 *) . "./$cache_file";;
2219 esac
2220 fi
2221 else
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2223 $as_echo "$as_me: creating cache $cache_file" >&6;}
2224 >$cache_file
2225 fi
2226
2227 # Check that the precious variables saved in the cache have kept the same
2228 # value.
2229 ac_cache_corrupted=false
2230 for ac_var in $ac_precious_vars; do
2231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2232 eval ac_new_set=\$ac_env_${ac_var}_set
2233 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2234 eval ac_new_val=\$ac_env_${ac_var}_value
2235 case $ac_old_set,$ac_new_set in
2236 set,)
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2239 ac_cache_corrupted=: ;;
2240 ,set)
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2244 ,);;
2245 *)
2246 if test "x$ac_old_val" != "x$ac_new_val"; then
2247 # differences in whitespace do not lead to failure.
2248 ac_old_val_w=`echo x $ac_old_val`
2249 ac_new_val_w=`echo x $ac_new_val`
2250 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2252 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2253 ac_cache_corrupted=:
2254 else
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2256 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2257 eval $ac_var=\$ac_old_val
2258 fi
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2260 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2262 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2263 fi;;
2264 esac
2265 # Pass precious variables to config.status.
2266 if test "$ac_new_set" = set; then
2267 case $ac_new_val in
2268 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 *) ac_arg=$ac_var=$ac_new_val ;;
2270 esac
2271 case " $ac_configure_args " in
2272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2273 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2274 esac
2275 fi
2276 done
2277 if $ac_cache_corrupted; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2281 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2282 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2283 fi
2284 ## -------------------- ##
2285 ## Main body of script. ##
2286 ## -------------------- ##
2287
2288 ac_ext=c
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293
2294
2295
2296 ac_config_headers="$ac_config_headers config.h"
2297
2298 ac_aux_dir=
2299 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2300 if test -f "$ac_dir/install-sh"; then
2301 ac_aux_dir=$ac_dir
2302 ac_install_sh="$ac_aux_dir/install-sh -c"
2303 break
2304 elif test -f "$ac_dir/install.sh"; then
2305 ac_aux_dir=$ac_dir
2306 ac_install_sh="$ac_aux_dir/install.sh -c"
2307 break
2308 elif test -f "$ac_dir/shtool"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/shtool install -c"
2311 break
2312 fi
2313 done
2314 if test -z "$ac_aux_dir"; then
2315 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2316 fi
2317
2318 # These three variables are undocumented and unsupported,
2319 # and are intended to be withdrawn in a future Autoconf release.
2320 # They can cause serious problems if a builder's source tree is in a directory
2321 # whose full name contains unusual characters.
2322 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2323 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2324 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2325
2326
2327 # Expand $ac_aux_dir to an absolute path.
2328 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2329
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if ${ac_cv_prog_CC+:} false; then :
2341 $as_echo_n "(cached) " >&6
2342 else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2356 fi
2357 done
2358 done
2359 IFS=$as_save_IFS
2360
2361 fi
2362 fi
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2366 $as_echo "$CC" >&6; }
2367 else
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2369 $as_echo "no" >&6; }
2370 fi
2371
2372
2373 fi
2374 if test -z "$ac_cv_prog_CC"; then
2375 ac_ct_CC=$CC
2376 # Extract the first word of "gcc", so it can be a program name with args.
2377 set dummy gcc; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test -n "$ac_ct_CC"; then
2384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_ac_ct_CC="gcc"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2400
2401 fi
2402 fi
2403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2404 if test -n "$ac_ct_CC"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2406 $as_echo "$ac_ct_CC" >&6; }
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409 $as_echo "no" >&6; }
2410 fi
2411
2412 if test "x$ac_ct_CC" = x; then
2413 CC=""
2414 else
2415 case $cross_compiling:$ac_tool_warned in
2416 yes:)
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2419 ac_tool_warned=yes ;;
2420 esac
2421 CC=$ac_ct_CC
2422 fi
2423 else
2424 CC="$ac_cv_prog_CC"
2425 fi
2426
2427 if test -z "$CC"; then
2428 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2430 set dummy ${ac_tool_prefix}cc; ac_word=$2
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if ${ac_cv_prog_CC+:} false; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_CC="${ac_tool_prefix}cc"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459 $as_echo "$CC" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2463 fi
2464
2465
2466 fi
2467 fi
2468 if test -z "$CC"; then
2469 # Extract the first word of "cc", so it can be a program name with args.
2470 set dummy cc; ac_word=$2
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472 $as_echo_n "checking for $ac_word... " >&6; }
2473 if ${ac_cv_prog_CC+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2478 else
2479 ac_prog_rejected=no
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2488 ac_prog_rejected=yes
2489 continue
2490 fi
2491 ac_cv_prog_CC="cc"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495 done
2496 done
2497 IFS=$as_save_IFS
2498
2499 if test $ac_prog_rejected = yes; then
2500 # We found a bogon in the path, so make sure we never use it.
2501 set dummy $ac_cv_prog_CC
2502 shift
2503 if test $# != 0; then
2504 # We chose a different compiler from the bogus one.
2505 # However, it has the same basename, so the bogon will be chosen
2506 # first if we set CC to just the basename; use the full file name.
2507 shift
2508 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2509 fi
2510 fi
2511 fi
2512 fi
2513 CC=$ac_cv_prog_CC
2514 if test -n "$CC"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2516 $as_echo "$CC" >&6; }
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2520 fi
2521
2522
2523 fi
2524 if test -z "$CC"; then
2525 if test -n "$ac_tool_prefix"; then
2526 for ac_prog in cl.exe
2527 do
2528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531 $as_echo_n "checking for $ac_word... " >&6; }
2532 if ${ac_cv_prog_CC+:} false; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 CC=$ac_cv_prog_CC
2556 if test -n "$CC"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2558 $as_echo "$CC" >&6; }
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561 $as_echo "no" >&6; }
2562 fi
2563
2564
2565 test -n "$CC" && break
2566 done
2567 fi
2568 if test -z "$CC"; then
2569 ac_ct_CC=$CC
2570 for ac_prog in cl.exe
2571 do
2572 # Extract the first word of "$ac_prog", so it can be a program name with args.
2573 set dummy $ac_prog; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$ac_ct_CC"; then
2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_ac_ct_CC="$ac_prog"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600 if test -n "$ac_ct_CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2602 $as_echo "$ac_ct_CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609 test -n "$ac_ct_CC" && break
2610 done
2611
2612 if test "x$ac_ct_CC" = x; then
2613 CC=""
2614 else
2615 case $cross_compiling:$ac_tool_warned in
2616 yes:)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 ac_tool_warned=yes ;;
2620 esac
2621 CC=$ac_ct_CC
2622 fi
2623 fi
2624
2625 fi
2626
2627
2628 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 as_fn_error $? "no acceptable C compiler found in \$PATH
2631 See \`config.log' for more details" "$LINENO" 5; }
2632
2633 # Provide some information about the compiler.
2634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2635 set X $ac_compile
2636 ac_compiler=$2
2637 for ac_option in --version -v -V -qversion; do
2638 { { ac_try="$ac_compiler $ac_option >&5"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2646 ac_status=$?
2647 if test -s conftest.err; then
2648 sed '10a\
2649 ... rest of stderr output deleted ...
2650 10q' conftest.err >conftest.er1
2651 cat conftest.er1 >&5
2652 fi
2653 rm -f conftest.er1 conftest.err
2654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2655 test $ac_status = 0; }
2656 done
2657
2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659 /* end confdefs.h. */
2660
2661 int
2662 main ()
2663 {
2664
2665 ;
2666 return 0;
2667 }
2668 _ACEOF
2669 ac_clean_files_save=$ac_clean_files
2670 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2671 # Try to create an executable without -o first, disregard a.out.
2672 # It will help us diagnose broken compilers, and finding out an intuition
2673 # of exeext.
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2675 $as_echo_n "checking whether the C compiler works... " >&6; }
2676 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2677
2678 # The possible output files:
2679 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2680
2681 ac_rmfiles=
2682 for ac_file in $ac_files
2683 do
2684 case $ac_file in
2685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2686 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2687 esac
2688 done
2689 rm -f $ac_rmfiles
2690
2691 if { { ac_try="$ac_link_default"
2692 case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698 (eval "$ac_link_default") 2>&5
2699 ac_status=$?
2700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701 test $ac_status = 0; }; then :
2702 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2703 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2704 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2705 # so that the user can short-circuit this test for compilers unknown to
2706 # Autoconf.
2707 for ac_file in $ac_files ''
2708 do
2709 test -f "$ac_file" || continue
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2712 ;;
2713 [ab].out )
2714 # We found the default executable, but exeext='' is most
2715 # certainly right.
2716 break;;
2717 *.* )
2718 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2719 then :; else
2720 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721 fi
2722 # We set ac_cv_exeext here because the later test for it is not
2723 # safe: cross compilers may not add the suffix if given an `-o'
2724 # argument, so we may need to know it at that point already.
2725 # Even if this section looks crufty: it has the advantage of
2726 # actually working.
2727 break;;
2728 * )
2729 break;;
2730 esac
2731 done
2732 test "$ac_cv_exeext" = no && ac_cv_exeext=
2733
2734 else
2735 ac_file=''
2736 fi
2737 if test -z "$ac_file"; then :
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2740 $as_echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 as_fn_error 77 "C compiler cannot create executables
2746 See \`config.log' for more details" "$LINENO" 5; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749 $as_echo "yes" >&6; }
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2752 $as_echo_n "checking for C compiler default output file name... " >&6; }
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2754 $as_echo "$ac_file" >&6; }
2755 ac_exeext=$ac_cv_exeext
2756
2757 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2758 ac_clean_files=$ac_clean_files_save
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2760 $as_echo_n "checking for suffix of executables... " >&6; }
2761 if { { ac_try="$ac_link"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_link") 2>&5
2769 ac_status=$?
2770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771 test $ac_status = 0; }; then :
2772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2774 # work properly (i.e., refer to `conftest.exe'), while it won't with
2775 # `rm'.
2776 for ac_file in conftest.exe conftest conftest.*; do
2777 test -f "$ac_file" || continue
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2781 break;;
2782 * ) break;;
2783 esac
2784 done
2785 else
2786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2788 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2789 See \`config.log' for more details" "$LINENO" 5; }
2790 fi
2791 rm -f conftest conftest$ac_cv_exeext
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2793 $as_echo "$ac_cv_exeext" >&6; }
2794
2795 rm -f conftest.$ac_ext
2796 EXEEXT=$ac_cv_exeext
2797 ac_exeext=$EXEEXT
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2800 #include <stdio.h>
2801 int
2802 main ()
2803 {
2804 FILE *f = fopen ("conftest.out", "w");
2805 return ferror (f) || fclose (f) != 0;
2806
2807 ;
2808 return 0;
2809 }
2810 _ACEOF
2811 ac_clean_files="$ac_clean_files conftest.out"
2812 # Check that the compiler produces executables we can run. If not, either
2813 # the compiler is broken, or we cross compile.
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2815 $as_echo_n "checking whether we are cross compiling... " >&6; }
2816 if test "$cross_compiling" != yes; then
2817 { { ac_try="$ac_link"
2818 case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823 $as_echo "$ac_try_echo"; } >&5
2824 (eval "$ac_link") 2>&5
2825 ac_status=$?
2826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827 test $ac_status = 0; }
2828 if { ac_try='./conftest$ac_cv_exeext'
2829 { { case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832 esac
2833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2834 $as_echo "$ac_try_echo"; } >&5
2835 (eval "$ac_try") 2>&5
2836 ac_status=$?
2837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838 test $ac_status = 0; }; }; then
2839 cross_compiling=no
2840 else
2841 if test "$cross_compiling" = maybe; then
2842 cross_compiling=yes
2843 else
2844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2846 as_fn_error $? "cannot run C compiled programs.
2847 If you meant to cross compile, use \`--host'.
2848 See \`config.log' for more details" "$LINENO" 5; }
2849 fi
2850 fi
2851 fi
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2853 $as_echo "$cross_compiling" >&6; }
2854
2855 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2856 ac_clean_files=$ac_clean_files_save
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2858 $as_echo_n "checking for suffix of object files... " >&6; }
2859 if ${ac_cv_objext+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2864
2865 int
2866 main ()
2867 {
2868
2869 ;
2870 return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.o conftest.obj
2874 if { { ac_try="$ac_compile"
2875 case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880 $as_echo "$ac_try_echo"; } >&5
2881 (eval "$ac_compile") 2>&5
2882 ac_status=$?
2883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2884 test $ac_status = 0; }; then :
2885 for ac_file in conftest.o conftest.obj conftest.*; do
2886 test -f "$ac_file" || continue;
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2889 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2890 break;;
2891 esac
2892 done
2893 else
2894 $as_echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899 as_fn_error $? "cannot compute suffix of object files: cannot compile
2900 See \`config.log' for more details" "$LINENO" 5; }
2901 fi
2902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2905 $as_echo "$ac_cv_objext" >&6; }
2906 OBJEXT=$ac_cv_objext
2907 ac_objext=$OBJEXT
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2909 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2910 if ${ac_cv_c_compiler_gnu+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2915
2916 int
2917 main ()
2918 {
2919 #ifndef __GNUC__
2920 choke me
2921 #endif
2922
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_c_try_compile "$LINENO"; then :
2928 ac_compiler_gnu=yes
2929 else
2930 ac_compiler_gnu=no
2931 fi
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2934
2935 fi
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2937 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2938 if test $ac_compiler_gnu = yes; then
2939 GCC=yes
2940 else
2941 GCC=
2942 fi
2943 ac_test_CFLAGS=${CFLAGS+set}
2944 ac_save_CFLAGS=$CFLAGS
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2946 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2947 if ${ac_cv_prog_cc_g+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 ac_save_c_werror_flag=$ac_c_werror_flag
2951 ac_c_werror_flag=yes
2952 ac_cv_prog_cc_g=no
2953 CFLAGS="-g"
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2956
2957 int
2958 main ()
2959 {
2960
2961 ;
2962 return 0;
2963 }
2964 _ACEOF
2965 if ac_fn_c_try_compile "$LINENO"; then :
2966 ac_cv_prog_cc_g=yes
2967 else
2968 CFLAGS=""
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2971
2972 int
2973 main ()
2974 {
2975
2976 ;
2977 return 0;
2978 }
2979 _ACEOF
2980 if ac_fn_c_try_compile "$LINENO"; then :
2981
2982 else
2983 ac_c_werror_flag=$ac_save_c_werror_flag
2984 CFLAGS="-g"
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2987
2988 int
2989 main ()
2990 {
2991
2992 ;
2993 return 0;
2994 }
2995 _ACEOF
2996 if ac_fn_c_try_compile "$LINENO"; then :
2997 ac_cv_prog_cc_g=yes
2998 fi
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 fi
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 fi
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 ac_c_werror_flag=$ac_save_c_werror_flag
3005 fi
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3007 $as_echo "$ac_cv_prog_cc_g" >&6; }
3008 if test "$ac_test_CFLAGS" = set; then
3009 CFLAGS=$ac_save_CFLAGS
3010 elif test $ac_cv_prog_cc_g = yes; then
3011 if test "$GCC" = yes; then
3012 CFLAGS="-g -O2"
3013 else
3014 CFLAGS="-g"
3015 fi
3016 else
3017 if test "$GCC" = yes; then
3018 CFLAGS="-O2"
3019 else
3020 CFLAGS=
3021 fi
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3025 if ${ac_cv_prog_cc_c89+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 ac_cv_prog_cc_c89=no
3029 ac_save_CC=$CC
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h. */
3032 #include <stdarg.h>
3033 #include <stdio.h>
3034 struct stat;
3035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3036 struct buf { int x; };
3037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3038 static char *e (p, i)
3039 char **p;
3040 int i;
3041 {
3042 return p[i];
3043 }
3044 static char *f (char * (*g) (char **, int), char **p, ...)
3045 {
3046 char *s;
3047 va_list v;
3048 va_start (v,p);
3049 s = g (p, va_arg (v,int));
3050 va_end (v);
3051 return s;
3052 }
3053
3054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3055 function prototypes and stuff, but not '\xHH' hex character constants.
3056 These don't provoke an error unfortunately, instead are silently treated
3057 as 'x'. The following induces an error, until -std is added to get
3058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3059 array size at least. It's necessary to write '\x00'==0 to get something
3060 that's true only with -std. */
3061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3062
3063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3064 inside strings and character constants. */
3065 #define FOO(x) 'x'
3066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3067
3068 int test (int i, double x);
3069 struct s1 {int (*f) (int a);};
3070 struct s2 {int (*f) (double a);};
3071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3072 int argc;
3073 char **argv;
3074 int
3075 main ()
3076 {
3077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3078 ;
3079 return 0;
3080 }
3081 _ACEOF
3082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3084 do
3085 CC="$ac_save_CC $ac_arg"
3086 if ac_fn_c_try_compile "$LINENO"; then :
3087 ac_cv_prog_cc_c89=$ac_arg
3088 fi
3089 rm -f core conftest.err conftest.$ac_objext
3090 test "x$ac_cv_prog_cc_c89" != "xno" && break
3091 done
3092 rm -f conftest.$ac_ext
3093 CC=$ac_save_CC
3094
3095 fi
3096 # AC_CACHE_VAL
3097 case "x$ac_cv_prog_cc_c89" in
3098 x)
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3100 $as_echo "none needed" >&6; } ;;
3101 xno)
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3103 $as_echo "unsupported" >&6; } ;;
3104 *)
3105 CC="$CC $ac_cv_prog_cc_c89"
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3108 esac
3109 if test "x$ac_cv_prog_cc_c89" != xno; then :
3110
3111 fi
3112
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3125 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3126 if ${am_cv_prog_cc_c_o+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3131
3132 int
3133 main ()
3134 {
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 # Make sure it works both with $CC and with simple cc.
3141 # Following AC_PROG_CC_C_O, we do the test twice because some
3142 # compilers refuse to overwrite an existing .o file with -o,
3143 # though they will create one.
3144 am_cv_prog_cc_c_o=yes
3145 for am_i in 1 2; do
3146 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3147 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } \
3151 && test -f conftest2.$ac_objext; then
3152 : OK
3153 else
3154 am_cv_prog_cc_c_o=no
3155 break
3156 fi
3157 done
3158 rm -f core conftest*
3159 unset am_i
3160 fi
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3162 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3163 if test "$am_cv_prog_cc_c_o" != yes; then
3164 # Losing compiler, so override with the script.
3165 # FIXME: It is wrong to rewrite CC.
3166 # But if we don't then we get into trouble of one sort or another.
3167 # A longer-term fix would be to have automake use am__CC in this case,
3168 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3169 CC="$am_aux_dir/compile $CC"
3170 fi
3171 ac_ext=c
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176
3177
3178
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3185 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3186 # On Suns, sometimes $CPP names a directory.
3187 if test -n "$CPP" && test -d "$CPP"; then
3188 CPP=
3189 fi
3190 if test -z "$CPP"; then
3191 if ${ac_cv_prog_CPP+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 # Double quotes because CPP needs to be expanded
3195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3196 do
3197 ac_preproc_ok=false
3198 for ac_c_preproc_warn_flag in '' yes
3199 do
3200 # Use a header file that comes with gcc, so configuring glibc
3201 # with a fresh cross-compiler works.
3202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3203 # <limits.h> exists even on freestanding compilers.
3204 # On the NeXT, cc -E runs the code through the compiler's parser,
3205 # not just through cpp. "Syntax error" is here to catch this case.
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208 #ifdef __STDC__
3209 # include <limits.h>
3210 #else
3211 # include <assert.h>
3212 #endif
3213 Syntax error
3214 _ACEOF
3215 if ac_fn_c_try_cpp "$LINENO"; then :
3216
3217 else
3218 # Broken: fails on valid input.
3219 continue
3220 fi
3221 rm -f conftest.err conftest.i conftest.$ac_ext
3222
3223 # OK, works on sane cases. Now check whether nonexistent headers
3224 # can be detected and how.
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227 #include <ac_nonexistent.h>
3228 _ACEOF
3229 if ac_fn_c_try_cpp "$LINENO"; then :
3230 # Broken: success on invalid input.
3231 continue
3232 else
3233 # Passes both tests.
3234 ac_preproc_ok=:
3235 break
3236 fi
3237 rm -f conftest.err conftest.i conftest.$ac_ext
3238
3239 done
3240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3241 rm -f conftest.i conftest.err conftest.$ac_ext
3242 if $ac_preproc_ok; then :
3243 break
3244 fi
3245
3246 done
3247 ac_cv_prog_CPP=$CPP
3248
3249 fi
3250 CPP=$ac_cv_prog_CPP
3251 else
3252 ac_cv_prog_CPP=$CPP
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3255 $as_echo "$CPP" >&6; }
3256 ac_preproc_ok=false
3257 for ac_c_preproc_warn_flag in '' yes
3258 do
3259 # Use a header file that comes with gcc, so configuring glibc
3260 # with a fresh cross-compiler works.
3261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 # <limits.h> exists even on freestanding compilers.
3263 # On the NeXT, cc -E runs the code through the compiler's parser,
3264 # not just through cpp. "Syntax error" is here to catch this case.
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272 Syntax error
3273 _ACEOF
3274 if ac_fn_c_try_cpp "$LINENO"; then :
3275
3276 else
3277 # Broken: fails on valid input.
3278 continue
3279 fi
3280 rm -f conftest.err conftest.i conftest.$ac_ext
3281
3282 # OK, works on sane cases. Now check whether nonexistent headers
3283 # can be detected and how.
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286 #include <ac_nonexistent.h>
3287 _ACEOF
3288 if ac_fn_c_try_cpp "$LINENO"; then :
3289 # Broken: success on invalid input.
3290 continue
3291 else
3292 # Passes both tests.
3293 ac_preproc_ok=:
3294 break
3295 fi
3296 rm -f conftest.err conftest.i conftest.$ac_ext
3297
3298 done
3299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300 rm -f conftest.i conftest.err conftest.$ac_ext
3301 if $ac_preproc_ok; then :
3302
3303 else
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3307 See \`config.log' for more details" "$LINENO" 5; }
3308 fi
3309
3310 ac_ext=c
3311 ac_cpp='$CPP $CPPFLAGS'
3312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
3316
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3318 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3319 if ${ac_cv_path_GREP+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -z "$GREP"; then
3323 ac_path_GREP_found=false
3324 # Loop through the user's path and test for each of PROGNAME-LIST
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_prog in grep ggrep; do
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3333 as_fn_executable_p "$ac_path_GREP" || continue
3334 # Check for GNU ac_path_GREP and select it if it is found.
3335 # Check for GNU $ac_path_GREP
3336 case `"$ac_path_GREP" --version 2>&1` in
3337 *GNU*)
3338 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3339 *)
3340 ac_count=0
3341 $as_echo_n 0123456789 >"conftest.in"
3342 while :
3343 do
3344 cat "conftest.in" "conftest.in" >"conftest.tmp"
3345 mv "conftest.tmp" "conftest.in"
3346 cp "conftest.in" "conftest.nl"
3347 $as_echo 'GREP' >> "conftest.nl"
3348 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3350 as_fn_arith $ac_count + 1 && ac_count=$as_val
3351 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3352 # Best one so far, save it but keep looking for a better one
3353 ac_cv_path_GREP="$ac_path_GREP"
3354 ac_path_GREP_max=$ac_count
3355 fi
3356 # 10*(2^10) chars as input seems more than enough
3357 test $ac_count -gt 10 && break
3358 done
3359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3360 esac
3361
3362 $ac_path_GREP_found && break 3
3363 done
3364 done
3365 done
3366 IFS=$as_save_IFS
3367 if test -z "$ac_cv_path_GREP"; then
3368 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3369 fi
3370 else
3371 ac_cv_path_GREP=$GREP
3372 fi
3373
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3376 $as_echo "$ac_cv_path_GREP" >&6; }
3377 GREP="$ac_cv_path_GREP"
3378
3379
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3381 $as_echo_n "checking for egrep... " >&6; }
3382 if ${ac_cv_path_EGREP+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3386 then ac_cv_path_EGREP="$GREP -E"
3387 else
3388 if test -z "$EGREP"; then
3389 ac_path_EGREP_found=false
3390 # Loop through the user's path and test for each of PROGNAME-LIST
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3393 do
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_prog in egrep; do
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3399 as_fn_executable_p "$ac_path_EGREP" || continue
3400 # Check for GNU ac_path_EGREP and select it if it is found.
3401 # Check for GNU $ac_path_EGREP
3402 case `"$ac_path_EGREP" --version 2>&1` in
3403 *GNU*)
3404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3405 *)
3406 ac_count=0
3407 $as_echo_n 0123456789 >"conftest.in"
3408 while :
3409 do
3410 cat "conftest.in" "conftest.in" >"conftest.tmp"
3411 mv "conftest.tmp" "conftest.in"
3412 cp "conftest.in" "conftest.nl"
3413 $as_echo 'EGREP' >> "conftest.nl"
3414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3416 as_fn_arith $ac_count + 1 && ac_count=$as_val
3417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3418 # Best one so far, save it but keep looking for a better one
3419 ac_cv_path_EGREP="$ac_path_EGREP"
3420 ac_path_EGREP_max=$ac_count
3421 fi
3422 # 10*(2^10) chars as input seems more than enough
3423 test $ac_count -gt 10 && break
3424 done
3425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3426 esac
3427
3428 $ac_path_EGREP_found && break 3
3429 done
3430 done
3431 done
3432 IFS=$as_save_IFS
3433 if test -z "$ac_cv_path_EGREP"; then
3434 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3435 fi
3436 else
3437 ac_cv_path_EGREP=$EGREP
3438 fi
3439
3440 fi
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3443 $as_echo "$ac_cv_path_EGREP" >&6; }
3444 EGREP="$ac_cv_path_EGREP"
3445
3446
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3448 $as_echo_n "checking for ANSI C header files... " >&6; }
3449 if ${ac_cv_header_stdc+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454 #include <stdlib.h>
3455 #include <stdarg.h>
3456 #include <string.h>
3457 #include <float.h>
3458
3459 int
3460 main ()
3461 {
3462
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468 ac_cv_header_stdc=yes
3469 else
3470 ac_cv_header_stdc=no
3471 fi
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473
3474 if test $ac_cv_header_stdc = yes; then
3475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478 #include <string.h>
3479
3480 _ACEOF
3481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 $EGREP "memchr" >/dev/null 2>&1; then :
3483
3484 else
3485 ac_cv_header_stdc=no
3486 fi
3487 rm -f conftest*
3488
3489 fi
3490
3491 if test $ac_cv_header_stdc = yes; then
3492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #include <stdlib.h>
3496
3497 _ACEOF
3498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499 $EGREP "free" >/dev/null 2>&1; then :
3500
3501 else
3502 ac_cv_header_stdc=no
3503 fi
3504 rm -f conftest*
3505
3506 fi
3507
3508 if test $ac_cv_header_stdc = yes; then
3509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3510 if test "$cross_compiling" = yes; then :
3511 :
3512 else
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3515 #include <ctype.h>
3516 #include <stdlib.h>
3517 #if ((' ' & 0x0FF) == 0x020)
3518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3520 #else
3521 # define ISLOWER(c) \
3522 (('a' <= (c) && (c) <= 'i') \
3523 || ('j' <= (c) && (c) <= 'r') \
3524 || ('s' <= (c) && (c) <= 'z'))
3525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3526 #endif
3527
3528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3529 int
3530 main ()
3531 {
3532 int i;
3533 for (i = 0; i < 256; i++)
3534 if (XOR (islower (i), ISLOWER (i))
3535 || toupper (i) != TOUPPER (i))
3536 return 2;
3537 return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_run "$LINENO"; then :
3541
3542 else
3543 ac_cv_header_stdc=no
3544 fi
3545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3546 conftest.$ac_objext conftest.beam conftest.$ac_ext
3547 fi
3548
3549 fi
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3552 $as_echo "$ac_cv_header_stdc" >&6; }
3553 if test $ac_cv_header_stdc = yes; then
3554
3555 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3556
3557 fi
3558
3559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3560 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3561 inttypes.h stdint.h unistd.h
3562 do :
3563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3565 "
3566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3567 cat >>confdefs.h <<_ACEOF
3568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3569 _ACEOF
3570
3571 fi
3572
3573 done
3574
3575
3576
3577 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3578 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3579 MINIX=yes
3580 else
3581 MINIX=
3582 fi
3583
3584
3585 if test "$MINIX" = yes; then
3586
3587 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3588
3589
3590 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3591
3592
3593 $as_echo "#define _MINIX 1" >>confdefs.h
3594
3595 fi
3596
3597
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3599 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3600 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605
3606 # define __EXTENSIONS__ 1
3607 $ac_includes_default
3608 int
3609 main ()
3610 {
3611
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617 ac_cv_safe_to_define___extensions__=yes
3618 else
3619 ac_cv_safe_to_define___extensions__=no
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3625 test $ac_cv_safe_to_define___extensions__ = yes &&
3626 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3627
3628 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3629
3630 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3631
3632 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3633
3634 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3635
3636
3637
3638 # Initialize Automake
3639 am__api_version='1.15'
3640
3641 # Find a good install program. We prefer a C program (faster),
3642 # so one script is as good as another. But avoid the broken or
3643 # incompatible versions:
3644 # SysV /etc/install, /usr/sbin/install
3645 # SunOS /usr/etc/install
3646 # IRIX /sbin/install
3647 # AIX /bin/install
3648 # AmigaOS /C/install, which installs bootblocks on floppy discs
3649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3652 # OS/2's system install, which has a completely different semantic
3653 # ./install, which can be erroneously created by make from ./install.sh.
3654 # Reject install programs that cannot install multiple files.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3656 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3657 if test -z "$INSTALL"; then
3658 if ${ac_cv_path_install+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 # Account for people who put trailing slashes in PATH elements.
3667 case $as_dir/ in #((
3668 ./ | .// | /[cC]/* | \
3669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3670 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3671 /usr/ucb/* ) ;;
3672 *)
3673 # OSF1 and SCO ODT 3.0 have their own names for install.
3674 # Don't use installbsd from OSF since it installs stuff as root
3675 # by default.
3676 for ac_prog in ginstall scoinst install; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3679 if test $ac_prog = install &&
3680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3681 # AIX install. It has an incompatible calling convention.
3682 :
3683 elif test $ac_prog = install &&
3684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3685 # program-specific install script used by HP pwplus--don't use.
3686 :
3687 else
3688 rm -rf conftest.one conftest.two conftest.dir
3689 echo one > conftest.one
3690 echo two > conftest.two
3691 mkdir conftest.dir
3692 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3693 test -s conftest.one && test -s conftest.two &&
3694 test -s conftest.dir/conftest.one &&
3695 test -s conftest.dir/conftest.two
3696 then
3697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3698 break 3
3699 fi
3700 fi
3701 fi
3702 done
3703 done
3704 ;;
3705 esac
3706
3707 done
3708 IFS=$as_save_IFS
3709
3710 rm -rf conftest.one conftest.two conftest.dir
3711
3712 fi
3713 if test "${ac_cv_path_install+set}" = set; then
3714 INSTALL=$ac_cv_path_install
3715 else
3716 # As a last resort, use the slow shell script. Don't cache a
3717 # value for INSTALL within a source directory, because that will
3718 # break other packages using the cache if that directory is
3719 # removed, or if the value is a relative name.
3720 INSTALL=$ac_install_sh
3721 fi
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3724 $as_echo "$INSTALL" >&6; }
3725
3726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3727 # It thinks the first close brace ends the variable substitution.
3728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3729
3730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3731
3732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3733
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3735 $as_echo_n "checking whether build environment is sane... " >&6; }
3736 # Reject unsafe characters in $srcdir or the absolute working directory
3737 # name. Accept space and tab only in the latter.
3738 am_lf='
3739 '
3740 case `pwd` in
3741 *[\\\"\#\$\&\'\`$am_lf]*)
3742 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3743 esac
3744 case $srcdir in
3745 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3746 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3747 esac
3748
3749 # Do 'set' in a subshell so we don't clobber the current shell's
3750 # arguments. Must try -L first in case configure is actually a
3751 # symlink; some systems play weird games with the mod time of symlinks
3752 # (eg FreeBSD returns the mod time of the symlink's containing
3753 # directory).
3754 if (
3755 am_has_slept=no
3756 for am_try in 1 2; do
3757 echo "timestamp, slept: $am_has_slept" > conftest.file
3758 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3759 if test "$*" = "X"; then
3760 # -L didn't work.
3761 set X `ls -t "$srcdir/configure" conftest.file`
3762 fi
3763 if test "$*" != "X $srcdir/configure conftest.file" \
3764 && test "$*" != "X conftest.file $srcdir/configure"; then
3765
3766 # If neither matched, then we have a broken ls. This can happen
3767 # if, for instance, CONFIG_SHELL is bash and it inherits a
3768 # broken ls alias from the environment. This has actually
3769 # happened. Such a system could not be considered "sane".
3770 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3771 alias in your environment" "$LINENO" 5
3772 fi
3773 if test "$2" = conftest.file || test $am_try -eq 2; then
3774 break
3775 fi
3776 # Just in case.
3777 sleep 1
3778 am_has_slept=yes
3779 done
3780 test "$2" = conftest.file
3781 )
3782 then
3783 # Ok.
3784 :
3785 else
3786 as_fn_error $? "newly created file is older than distributed files!
3787 Check your system clock" "$LINENO" 5
3788 fi
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 $as_echo "yes" >&6; }
3791 # If we didn't sleep, we still need to ensure time stamps of config.status and
3792 # generated files are strictly newer.
3793 am_sleep_pid=
3794 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3795 ( sleep 1 ) &
3796 am_sleep_pid=$!
3797 fi
3798
3799 rm -f conftest.file
3800
3801 test "$program_prefix" != NONE &&
3802 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3803 # Use a double $ so make ignores it.
3804 test "$program_suffix" != NONE &&
3805 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3806 # Double any \ or $.
3807 # By default was `s,x,x', remove it if useless.
3808 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3809 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3810
3811 if test x"${MISSING+set}" != xset; then
3812 case $am_aux_dir in
3813 *\ * | *\ *)
3814 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3815 *)
3816 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3817 esac
3818 fi
3819 # Use eval to expand $SHELL
3820 if eval "$MISSING --is-lightweight"; then
3821 am_missing_run="$MISSING "
3822 else
3823 am_missing_run=
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3825 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3826 fi
3827
3828 if test x"${install_sh+set}" != xset; then
3829 case $am_aux_dir in
3830 *\ * | *\ *)
3831 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3832 *)
3833 install_sh="\${SHELL} $am_aux_dir/install-sh"
3834 esac
3835 fi
3836
3837 # Installed binaries are usually stripped using 'strip' when the user
3838 # run "make install-strip". However 'strip' might not be the right
3839 # tool to use in cross-compilation environments, therefore Automake
3840 # will honor the 'STRIP' environment variable to overrule this program.
3841 if test "$cross_compiling" != no; then
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}strip; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_STRIP+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 if test -n "$STRIP"; then
3851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864 done
3865 done
3866 IFS=$as_save_IFS
3867
3868 fi
3869 fi
3870 STRIP=$ac_cv_prog_STRIP
3871 if test -n "$STRIP"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3873 $as_echo "$STRIP" >&6; }
3874 else
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 fi
3878
3879
3880 fi
3881 if test -z "$ac_cv_prog_STRIP"; then
3882 ac_ct_STRIP=$STRIP
3883 # Extract the first word of "strip", so it can be a program name with args.
3884 set dummy strip; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 if test -n "$ac_ct_STRIP"; then
3891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_ac_ct_STRIP="strip"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3903 fi
3904 done
3905 done
3906 IFS=$as_save_IFS
3907
3908 fi
3909 fi
3910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3911 if test -n "$ac_ct_STRIP"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3913 $as_echo "$ac_ct_STRIP" >&6; }
3914 else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 fi
3918
3919 if test "x$ac_ct_STRIP" = x; then
3920 STRIP=":"
3921 else
3922 case $cross_compiling:$ac_tool_warned in
3923 yes:)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926 ac_tool_warned=yes ;;
3927 esac
3928 STRIP=$ac_ct_STRIP
3929 fi
3930 else
3931 STRIP="$ac_cv_prog_STRIP"
3932 fi
3933
3934 fi
3935 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3938 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3939 if test -z "$MKDIR_P"; then
3940 if ${ac_cv_path_mkdir+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3945 do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_prog in mkdir gmkdir; do
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3951 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3952 'mkdir (GNU coreutils) '* | \
3953 'mkdir (coreutils) '* | \
3954 'mkdir (fileutils) '4.1*)
3955 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3956 break 3;;
3957 esac
3958 done
3959 done
3960 done
3961 IFS=$as_save_IFS
3962
3963 fi
3964
3965 test -d ./--version && rmdir ./--version
3966 if test "${ac_cv_path_mkdir+set}" = set; then
3967 MKDIR_P="$ac_cv_path_mkdir -p"
3968 else
3969 # As a last resort, use the slow shell script. Don't cache a
3970 # value for MKDIR_P within a source directory, because that will
3971 # break other packages using the cache if that directory is
3972 # removed, or if the value is a relative name.
3973 MKDIR_P="$ac_install_sh -d"
3974 fi
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3977 $as_echo "$MKDIR_P" >&6; }
3978
3979 for ac_prog in gawk mawk nawk awk
3980 do
3981 # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_prog_AWK+:} false; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 if test -n "$AWK"; then
3989 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_prog_AWK="$ac_prog"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002 done
4003 done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 AWK=$ac_cv_prog_AWK
4009 if test -n "$AWK"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4011 $as_echo "$AWK" >&6; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018 test -n "$AWK" && break
4019 done
4020
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4022 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4023 set x ${MAKE-make}
4024 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4025 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 cat >conftest.make <<\_ACEOF
4029 SHELL = /bin/sh
4030 all:
4031 @echo '@@@%%%=$(MAKE)=@@@%%%'
4032 _ACEOF
4033 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4034 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4035 *@@@%%%=?*=@@@%%%*)
4036 eval ac_cv_prog_make_${ac_make}_set=yes;;
4037 *)
4038 eval ac_cv_prog_make_${ac_make}_set=no;;
4039 esac
4040 rm -f conftest.make
4041 fi
4042 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044 $as_echo "yes" >&6; }
4045 SET_MAKE=
4046 else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 SET_MAKE="MAKE=${MAKE-make}"
4050 fi
4051
4052 rm -rf .tst 2>/dev/null
4053 mkdir .tst 2>/dev/null
4054 if test -d .tst; then
4055 am__leading_dot=.
4056 else
4057 am__leading_dot=_
4058 fi
4059 rmdir .tst 2>/dev/null
4060
4061 DEPDIR="${am__leading_dot}deps"
4062
4063 ac_config_commands="$ac_config_commands depfiles"
4064
4065
4066 am_make=${MAKE-make}
4067 cat > confinc << 'END'
4068 am__doit:
4069 @echo this is the am__doit target
4070 .PHONY: am__doit
4071 END
4072 # If we don't find an include directive, just comment out the code.
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4074 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4075 am__include="#"
4076 am__quote=
4077 _am_result=none
4078 # First try GNU make style include.
4079 echo "include confinc" > confmf
4080 # Ignore all kinds of additional output from 'make'.
4081 case `$am_make -s -f confmf 2> /dev/null` in #(
4082 *the\ am__doit\ target*)
4083 am__include=include
4084 am__quote=
4085 _am_result=GNU
4086 ;;
4087 esac
4088 # Now try BSD make style include.
4089 if test "$am__include" = "#"; then
4090 echo '.include "confinc"' > confmf
4091 case `$am_make -s -f confmf 2> /dev/null` in #(
4092 *the\ am__doit\ target*)
4093 am__include=.include
4094 am__quote="\""
4095 _am_result=BSD
4096 ;;
4097 esac
4098 fi
4099
4100
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4102 $as_echo "$_am_result" >&6; }
4103 rm -f confinc confmf
4104
4105 # Check whether --enable-dependency-tracking was given.
4106 if test "${enable_dependency_tracking+set}" = set; then :
4107 enableval=$enable_dependency_tracking;
4108 fi
4109
4110 if test "x$enable_dependency_tracking" != xno; then
4111 am_depcomp="$ac_aux_dir/depcomp"
4112 AMDEPBACKSLASH='\'
4113 am__nodep='_no'
4114 fi
4115 if test "x$enable_dependency_tracking" != xno; then
4116 AMDEP_TRUE=
4117 AMDEP_FALSE='#'
4118 else
4119 AMDEP_TRUE='#'
4120 AMDEP_FALSE=
4121 fi
4122
4123
4124 # Check whether --enable-silent-rules was given.
4125 if test "${enable_silent_rules+set}" = set; then :
4126 enableval=$enable_silent_rules;
4127 fi
4128
4129 case $enable_silent_rules in # (((
4130 yes) AM_DEFAULT_VERBOSITY=0;;
4131 no) AM_DEFAULT_VERBOSITY=1;;
4132 *) AM_DEFAULT_VERBOSITY=1;;
4133 esac
4134 am_make=${MAKE-make}
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4136 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4137 if ${am_cv_make_support_nested_variables+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if $as_echo 'TRUE=$(BAR$(V))
4141 BAR0=false
4142 BAR1=true
4143 V=1
4144 am__doit:
4145 @$(TRUE)
4146 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4147 am_cv_make_support_nested_variables=yes
4148 else
4149 am_cv_make_support_nested_variables=no
4150 fi
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4153 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4154 if test $am_cv_make_support_nested_variables = yes; then
4155 AM_V='$(V)'
4156 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4157 else
4158 AM_V=$AM_DEFAULT_VERBOSITY
4159 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4160 fi
4161 AM_BACKSLASH='\'
4162
4163 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4164 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4165 # is not polluted with repeated "-I."
4166 am__isrc=' -I$(srcdir)'
4167 # test to see if srcdir already configured
4168 if test -f $srcdir/config.status; then
4169 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4170 fi
4171 fi
4172
4173 # test whether we have cygpath
4174 if test -z "$CYGPATH_W"; then
4175 if (cygpath --version) >/dev/null 2>/dev/null; then
4176 CYGPATH_W='cygpath -w'
4177 else
4178 CYGPATH_W=echo
4179 fi
4180 fi
4181
4182
4183 # Define the identity of the package.
4184 PACKAGE='xset'
4185 VERSION='1.2.4'
4186
4187
4188 cat >>confdefs.h <<_ACEOF
4189 #define PACKAGE "$PACKAGE"
4190 _ACEOF
4191
4192
4193 cat >>confdefs.h <<_ACEOF
4194 #define VERSION "$VERSION"
4195 _ACEOF
4196
4197 # Some tools Automake needs.
4198
4199 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4200
4201
4202 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4203
4204
4205 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4206
4207
4208 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4209
4210
4211 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4212
4213 # For better backward compatibility. To be removed once Automake 1.9.x
4214 # dies out for good. For more background, see:
4215 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4216 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4217 mkdir_p='$(MKDIR_P)'
4218
4219 # We need awk for the "check" target (and possibly the TAP driver). The
4220 # system "awk" is bad on some platforms.
4221 # Always define AMTAR for backward compatibility. Yes, it's still used
4222 # in the wild :-( We should find a proper way to deprecate it ...
4223 AMTAR='$${TAR-tar}'
4224
4225
4226 # We'll loop over all known methods to create a tar archive until one works.
4227 _am_tools='gnutar pax cpio none'
4228
4229 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4230
4231
4232
4233
4234
4235 depcc="$CC" am_compiler_list=
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4238 $as_echo_n "checking dependency style of $depcc... " >&6; }
4239 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4243 # We make a subdir and do the tests there. Otherwise we can end up
4244 # making bogus files that we don't know about and never remove. For
4245 # instance it was reported that on HP-UX the gcc test will end up
4246 # making a dummy file named 'D' -- because '-MD' means "put the output
4247 # in D".
4248 rm -rf conftest.dir
4249 mkdir conftest.dir
4250 # Copy depcomp to subdir because otherwise we won't find it if we're
4251 # using a relative directory.
4252 cp "$am_depcomp" conftest.dir
4253 cd conftest.dir
4254 # We will build objects and dependencies in a subdirectory because
4255 # it helps to detect inapplicable dependency modes. For instance
4256 # both Tru64's cc and ICC support -MD to output dependencies as a
4257 # side effect of compilation, but ICC will put the dependencies in
4258 # the current directory while Tru64 will put them in the object
4259 # directory.
4260 mkdir sub
4261
4262 am_cv_CC_dependencies_compiler_type=none
4263 if test "$am_compiler_list" = ""; then
4264 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4265 fi
4266 am__universal=false
4267 case " $depcc " in #(
4268 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4269 esac
4270
4271 for depmode in $am_compiler_list; do
4272 # Setup a source with many dependencies, because some compilers
4273 # like to wrap large dependency lists on column 80 (with \), and
4274 # we should not choose a depcomp mode which is confused by this.
4275 #
4276 # We need to recreate these files for each test, as the compiler may
4277 # overwrite some of them when testing with obscure command lines.
4278 # This happens at least with the AIX C compiler.
4279 : > sub/conftest.c
4280 for i in 1 2 3 4 5 6; do
4281 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4282 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4283 # Solaris 10 /bin/sh.
4284 echo '/* dummy */' > sub/conftst$i.h
4285 done
4286 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4287
4288 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4289 # mode. It turns out that the SunPro C++ compiler does not properly
4290 # handle '-M -o', and we need to detect this. Also, some Intel
4291 # versions had trouble with output in subdirs.
4292 am__obj=sub/conftest.${OBJEXT-o}
4293 am__minus_obj="-o $am__obj"
4294 case $depmode in
4295 gcc)
4296 # This depmode causes a compiler race in universal mode.
4297 test "$am__universal" = false || continue
4298 ;;
4299 nosideeffect)
4300 # After this tag, mechanisms are not by side-effect, so they'll
4301 # only be used when explicitly requested.
4302 if test "x$enable_dependency_tracking" = xyes; then
4303 continue
4304 else
4305 break
4306 fi
4307 ;;
4308 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4309 # This compiler won't grok '-c -o', but also, the minuso test has
4310 # not run yet. These depmodes are late enough in the game, and
4311 # so weak that their functioning should not be impacted.
4312 am__obj=conftest.${OBJEXT-o}
4313 am__minus_obj=
4314 ;;
4315 none) break ;;
4316 esac
4317 if depmode=$depmode \
4318 source=sub/conftest.c object=$am__obj \
4319 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4320 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4321 >/dev/null 2>conftest.err &&
4322 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4323 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4324 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4325 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4326 # icc doesn't choke on unknown options, it will just issue warnings
4327 # or remarks (even with -Werror). So we grep stderr for any message
4328 # that says an option was ignored or not supported.
4329 # When given -MP, icc 7.0 and 7.1 complain thusly:
4330 # icc: Command line warning: ignoring option '-M'; no argument required
4331 # The diagnosis changed in icc 8.0:
4332 # icc: Command line remark: option '-MP' not supported
4333 if (grep 'ignoring option' conftest.err ||
4334 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4335 am_cv_CC_dependencies_compiler_type=$depmode
4336 break
4337 fi
4338 fi
4339 done
4340
4341 cd ..
4342 rm -rf conftest.dir
4343 else
4344 am_cv_CC_dependencies_compiler_type=none
4345 fi
4346
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4349 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4350 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4351
4352 if
4353 test "x$enable_dependency_tracking" != xno \
4354 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4355 am__fastdepCC_TRUE=
4356 am__fastdepCC_FALSE='#'
4357 else
4358 am__fastdepCC_TRUE='#'
4359 am__fastdepCC_FALSE=
4360 fi
4361
4362
4363
4364 # POSIX will say in a future version that running "rm -f" with no argument
4365 # is OK; and we want to be able to make that assumption in our Makefile
4366 # recipes. So use an aggressive probe to check that the usage we want is
4367 # actually supported "in the wild" to an acceptable degree.
4368 # See automake bug#10828.
4369 # To make any issue more visible, cause the running configure to be aborted
4370 # by default if the 'rm' program in use doesn't match our expectations; the
4371 # user can still override this though.
4372 if rm -f && rm -fr && rm -rf; then : OK; else
4373 cat >&2 <<'END'
4374 Oops!
4375
4376 Your 'rm' program seems unable to run without file operands specified
4377 on the command line, even when the '-f' option is present. This is contrary
4378 to the behaviour of most rm programs out there, and not conforming with
4379 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4380
4381 Please tell bug-automake@gnu.org about your system, including the value
4382 of your $PATH and any error possibly output before this message. This
4383 can help us improve future automake versions.
4384
4385 END
4386 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4387 echo 'Configuration will proceed anyway, since you have set the' >&2
4388 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4389 echo >&2
4390 else
4391 cat >&2 <<'END'
4392 Aborting the configuration process, to ensure you take notice of the issue.
4393
4394 You can download and install GNU coreutils to get an 'rm' implementation
4395 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4396
4397 If you want to complete the configuration process using your problematic
4398 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4399 to "yes", and re-run configure.
4400
4401 END
4402 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4403 fi
4404 fi
4405
4406
4407 # Require xorg-macros: XORG_MANPAGE_SECTIONS
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4420 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4421 if ${ac_cv_prog_cc_c99+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 ac_cv_prog_cc_c99=no
4425 ac_save_CC=$CC
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <stdarg.h>
4429 #include <stdbool.h>
4430 #include <stdlib.h>
4431 #include <wchar.h>
4432 #include <stdio.h>
4433
4434 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4435 #define debug(...) fprintf (stderr, __VA_ARGS__)
4436 #define showlist(...) puts (#__VA_ARGS__)
4437 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4438 static void
4439 test_varargs_macros (void)
4440 {
4441 int x = 1234;
4442 int y = 5678;
4443 debug ("Flag");
4444 debug ("X = %d\n", x);
4445 showlist (The first, second, and third items.);
4446 report (x>y, "x is %d but y is %d", x, y);
4447 }
4448
4449 // Check long long types.
4450 #define BIG64 18446744073709551615ull
4451 #define BIG32 4294967295ul
4452 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4453 #if !BIG_OK
4454 your preprocessor is broken;
4455 #endif
4456 #if BIG_OK
4457 #else
4458 your preprocessor is broken;
4459 #endif
4460 static long long int bignum = -9223372036854775807LL;
4461 static unsigned long long int ubignum = BIG64;
4462
4463 struct incomplete_array
4464 {
4465 int datasize;
4466 double data[];
4467 };
4468
4469 struct named_init {
4470 int number;
4471 const wchar_t *name;
4472 double average;
4473 };
4474
4475 typedef const char *ccp;
4476
4477 static inline int
4478 test_restrict (ccp restrict text)
4479 {
4480 // See if C++-style comments work.
4481 // Iterate through items via the restricted pointer.
4482 // Also check for declarations in for loops.
4483 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4484 continue;
4485 return 0;
4486 }
4487
4488 // Check varargs and va_copy.
4489 static void
4490 test_varargs (const char *format, ...)
4491 {
4492 va_list args;
4493 va_start (args, format);
4494 va_list args_copy;
4495 va_copy (args_copy, args);
4496
4497 const char *str;
4498 int number;
4499 float fnumber;
4500
4501 while (*format)
4502 {
4503 switch (*format++)
4504 {
4505 case 's': // string
4506 str = va_arg (args_copy, const char *);
4507 break;
4508 case 'd': // int
4509 number = va_arg (args_copy, int);
4510 break;
4511 case 'f': // float
4512 fnumber = va_arg (args_copy, double);
4513 break;
4514 default:
4515 break;
4516 }
4517 }
4518 va_end (args_copy);
4519 va_end (args);
4520 }
4521
4522 int
4523 main ()
4524 {
4525
4526 // Check bool.
4527 _Bool success = false;
4528
4529 // Check restrict.
4530 if (test_restrict ("String literal") == 0)
4531 success = true;
4532 char *restrict newvar = "Another string";
4533
4534 // Check varargs.
4535 test_varargs ("s, d' f .", "string", 65, 34.234);
4536 test_varargs_macros ();
4537
4538 // Check flexible array members.
4539 struct incomplete_array *ia =
4540 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4541 ia->datasize = 10;
4542 for (int i = 0; i < ia->datasize; ++i)
4543 ia->data[i] = i * 1.234;
4544
4545 // Check named initializers.
4546 struct named_init ni = {
4547 .number = 34,
4548 .name = L"Test wide string",
4549 .average = 543.34343,
4550 };
4551
4552 ni.number = 58;
4553
4554 int dynamic_array[ni.number];
4555 dynamic_array[ni.number - 1] = 543;
4556
4557 // work around unused variable warnings
4558 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4559 || dynamic_array[ni.number - 1] != 543);
4560
4561 ;
4562 return 0;
4563 }
4564 _ACEOF
4565 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4566 do
4567 CC="$ac_save_CC $ac_arg"
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_prog_cc_c99=$ac_arg
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext
4572 test "x$ac_cv_prog_cc_c99" != "xno" && break
4573 done
4574 rm -f conftest.$ac_ext
4575 CC=$ac_save_CC
4576
4577 fi
4578 # AC_CACHE_VAL
4579 case "x$ac_cv_prog_cc_c99" in
4580 x)
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4582 $as_echo "none needed" >&6; } ;;
4583 xno)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4585 $as_echo "unsupported" >&6; } ;;
4586 *)
4587 CC="$CC $ac_cv_prog_cc_c99"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4589 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4590 esac
4591 if test "x$ac_cv_prog_cc_c99" != xno; then :
4592
4593 fi
4594
4595
4596
4597
4598
4599
4600 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4601 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4602 CLANGCC="yes"
4603 else
4604 CLANGCC="no"
4605 fi
4606
4607 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4608 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4609 INTELCC="yes"
4610 else
4611 INTELCC="no"
4612 fi
4613
4614 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4615 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4616 SUNCC="yes"
4617 else
4618 SUNCC="no"
4619 fi
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4630 if test -n "$ac_tool_prefix"; then
4631 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4632 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 case $PKG_CONFIG in
4639 [\\/]* | ?:[\\/]*)
4640 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4641 ;;
4642 *)
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 ;;
4659 esac
4660 fi
4661 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4662 if test -n "$PKG_CONFIG"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4664 $as_echo "$PKG_CONFIG" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670
4671 fi
4672 if test -z "$ac_cv_path_PKG_CONFIG"; then
4673 ac_pt_PKG_CONFIG=$PKG_CONFIG
4674 # Extract the first word of "pkg-config", so it can be a program name with args.
4675 set dummy pkg-config; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 case $ac_pt_PKG_CONFIG in
4682 [\\/]* | ?:[\\/]*)
4683 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4684 ;;
4685 *)
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 ;;
4702 esac
4703 fi
4704 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4705 if test -n "$ac_pt_PKG_CONFIG"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4707 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713 if test "x$ac_pt_PKG_CONFIG" = x; then
4714 PKG_CONFIG=""
4715 else
4716 case $cross_compiling:$ac_tool_warned in
4717 yes:)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4721 esac
4722 PKG_CONFIG=$ac_pt_PKG_CONFIG
4723 fi
4724 else
4725 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4726 fi
4727
4728 fi
4729 if test -n "$PKG_CONFIG"; then
4730 _pkg_min_version=0.9.0
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4732 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4733 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4735 $as_echo "yes" >&6; }
4736 else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4739 PKG_CONFIG=""
4740 fi
4741 fi
4742 # Make sure we can run config.sub.
4743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4747 $as_echo_n "checking build system type... " >&6; }
4748 if ${ac_cv_build+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 ac_build_alias=$build_alias
4752 test "x$ac_build_alias" = x &&
4753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4754 test "x$ac_build_alias" = x &&
4755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4761 $as_echo "$ac_cv_build" >&6; }
4762 case $ac_cv_build in
4763 *-*-*) ;;
4764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4765 esac
4766 build=$ac_cv_build
4767 ac_save_IFS=$IFS; IFS='-'
4768 set x $ac_cv_build
4769 shift
4770 build_cpu=$1
4771 build_vendor=$2
4772 shift; shift
4773 # Remember, the first character of IFS is used to create $*,
4774 # except with old shells:
4775 build_os=$*
4776 IFS=$ac_save_IFS
4777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4781 $as_echo_n "checking host system type... " >&6; }
4782 if ${ac_cv_host+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test "x$host_alias" = x; then
4786 ac_cv_host=$ac_cv_build
4787 else
4788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4790 fi
4791
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4794 $as_echo "$ac_cv_host" >&6; }
4795 case $ac_cv_host in
4796 *-*-*) ;;
4797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4798 esac
4799 host=$ac_cv_host
4800 ac_save_IFS=$IFS; IFS='-'
4801 set x $ac_cv_host
4802 shift
4803 host_cpu=$1
4804 host_vendor=$2
4805 shift; shift
4806 # Remember, the first character of IFS is used to create $*,
4807 # except with old shells:
4808 host_os=$*
4809 IFS=$ac_save_IFS
4810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4814 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4815 if ${ac_cv_path_SED+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4819 for ac_i in 1 2 3 4 5 6 7; do
4820 ac_script="$ac_script$as_nl$ac_script"
4821 done
4822 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4823 { ac_script=; unset ac_script;}
4824 if test -z "$SED"; then
4825 ac_path_SED_found=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_prog in sed gsed; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4835 as_fn_executable_p "$ac_path_SED" || continue
4836 # Check for GNU ac_path_SED and select it if it is found.
4837 # Check for GNU $ac_path_SED
4838 case `"$ac_path_SED" --version 2>&1` in
4839 *GNU*)
4840 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4841 *)
4842 ac_count=0
4843 $as_echo_n 0123456789 >"conftest.in"
4844 while :
4845 do
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo '' >> "conftest.nl"
4850 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_SED_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_SED="$ac_path_SED"
4856 ac_path_SED_max=$ac_count
4857 fi
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4860 done
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864 $ac_path_SED_found && break 3
4865 done
4866 done
4867 done
4868 IFS=$as_save_IFS
4869 if test -z "$ac_cv_path_SED"; then
4870 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4871 fi
4872 else
4873 ac_cv_path_SED=$SED
4874 fi
4875
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4878 $as_echo "$ac_cv_path_SED" >&6; }
4879 SED="$ac_cv_path_SED"
4880 rm -f conftest.sed
4881
4882
4883
4884
4885
4886
4887 # Check whether --enable-selective-werror was given.
4888 if test "${enable_selective_werror+set}" = set; then :
4889 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4890 else
4891 SELECTIVE_WERROR=yes
4892 fi
4893
4894
4895
4896
4897
4898 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4899 if test "x$SUNCC" = "xyes"; then
4900 BASE_CFLAGS="-v"
4901 else
4902 BASE_CFLAGS=""
4903 fi
4904
4905 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 xorg_testset_save_CFLAGS="$CFLAGS"
4920
4921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 int i;
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 xorg_cv_cc_flag_unknown_warning_option=yes
4934 else
4935 xorg_cv_cc_flag_unknown_warning_option=no
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4942 CFLAGS="$xorg_testset_save_CFLAGS"
4943 fi
4944
4945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948 fi
4949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 int i;
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960 xorg_cv_cc_flag_unused_command_line_argument=yes
4961 else
4962 xorg_cv_cc_flag_unused_command_line_argument=no
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4969 CFLAGS="$xorg_testset_save_CFLAGS"
4970 fi
4971
4972 found="no"
4973
4974 if test $found = "no" ; then
4975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977 fi
4978
4979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4981 fi
4982
4983 CFLAGS="$CFLAGS -Wall"
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4986 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4987 cacheid=xorg_cv_cc_flag__Wall
4988 if eval \${$cacheid+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 int i;
4994 int
4995 main ()
4996 {
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 if ac_fn_c_try_link "$LINENO"; then :
5003 eval $cacheid=yes
5004 else
5005 eval $cacheid=no
5006 fi
5007 rm -f core conftest.err conftest.$ac_objext \
5008 conftest$ac_exeext conftest.$ac_ext
5009 fi
5010
5011
5012 CFLAGS="$xorg_testset_save_CFLAGS"
5013
5014 eval supported=\$$cacheid
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5016 $as_echo "$supported" >&6; }
5017 if test "$supported" = "yes" ; then
5018 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5019 found="yes"
5020 fi
5021 fi
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037 xorg_testset_save_CFLAGS="$CFLAGS"
5038
5039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5042 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5043 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 int i;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 xorg_cv_cc_flag_unknown_warning_option=yes
5052 else
5053 xorg_cv_cc_flag_unknown_warning_option=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5058 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5060 CFLAGS="$xorg_testset_save_CFLAGS"
5061 fi
5062
5063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066 fi
5067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5069 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5070 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 int i;
5076 _ACEOF
5077 if ac_fn_c_try_compile "$LINENO"; then :
5078 xorg_cv_cc_flag_unused_command_line_argument=yes
5079 else
5080 xorg_cv_cc_flag_unused_command_line_argument=no
5081 fi
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5085 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5087 CFLAGS="$xorg_testset_save_CFLAGS"
5088 fi
5089
5090 found="no"
5091
5092 if test $found = "no" ; then
5093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095 fi
5096
5097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5099 fi
5100
5101 CFLAGS="$CFLAGS -Wpointer-arith"
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5104 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5105 cacheid=xorg_cv_cc_flag__Wpointer_arith
5106 if eval \${$cacheid+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 int i;
5112 int
5113 main ()
5114 {
5115
5116 ;
5117 return 0;
5118 }
5119 _ACEOF
5120 if ac_fn_c_try_link "$LINENO"; then :
5121 eval $cacheid=yes
5122 else
5123 eval $cacheid=no
5124 fi
5125 rm -f core conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5127 fi
5128
5129
5130 CFLAGS="$xorg_testset_save_CFLAGS"
5131
5132 eval supported=\$$cacheid
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5134 $as_echo "$supported" >&6; }
5135 if test "$supported" = "yes" ; then
5136 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5137 found="yes"
5138 fi
5139 fi
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155 xorg_testset_save_CFLAGS="$CFLAGS"
5156
5157 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5160 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5161 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 int i;
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 xorg_cv_cc_flag_unknown_warning_option=yes
5170 else
5171 xorg_cv_cc_flag_unknown_warning_option=no
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5176 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5178 CFLAGS="$xorg_testset_save_CFLAGS"
5179 fi
5180
5181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184 fi
5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5187 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5188 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 int i;
5194 _ACEOF
5195 if ac_fn_c_try_compile "$LINENO"; then :
5196 xorg_cv_cc_flag_unused_command_line_argument=yes
5197 else
5198 xorg_cv_cc_flag_unused_command_line_argument=no
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5203 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5205 CFLAGS="$xorg_testset_save_CFLAGS"
5206 fi
5207
5208 found="no"
5209
5210 if test $found = "no" ; then
5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213 fi
5214
5215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217 fi
5218
5219 CFLAGS="$CFLAGS -Wmissing-declarations"
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5222 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5223 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5224 if eval \${$cacheid+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 int i;
5230 int
5231 main ()
5232 {
5233
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_link "$LINENO"; then :
5239 eval $cacheid=yes
5240 else
5241 eval $cacheid=no
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5245 fi
5246
5247
5248 CFLAGS="$xorg_testset_save_CFLAGS"
5249
5250 eval supported=\$$cacheid
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5252 $as_echo "$supported" >&6; }
5253 if test "$supported" = "yes" ; then
5254 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5255 found="yes"
5256 fi
5257 fi
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 xorg_testset_save_CFLAGS="$CFLAGS"
5274
5275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5278 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5279 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 int i;
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"; then :
5287 xorg_cv_cc_flag_unknown_warning_option=yes
5288 else
5289 xorg_cv_cc_flag_unknown_warning_option=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5294 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5296 CFLAGS="$xorg_testset_save_CFLAGS"
5297 fi
5298
5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5302 fi
5303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5305 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5306 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311 int i;
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"; then :
5314 xorg_cv_cc_flag_unused_command_line_argument=yes
5315 else
5316 xorg_cv_cc_flag_unused_command_line_argument=no
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5321 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5323 CFLAGS="$xorg_testset_save_CFLAGS"
5324 fi
5325
5326 found="no"
5327
5328 if test $found = "no" ; then
5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331 fi
5332
5333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335 fi
5336
5337 CFLAGS="$CFLAGS -Wformat=2"
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5340 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5341 cacheid=xorg_cv_cc_flag__Wformat_2
5342 if eval \${$cacheid+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 int i;
5348 int
5349 main ()
5350 {
5351
5352 ;
5353 return 0;
5354 }
5355 _ACEOF
5356 if ac_fn_c_try_link "$LINENO"; then :
5357 eval $cacheid=yes
5358 else
5359 eval $cacheid=no
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 fi
5364
5365
5366 CFLAGS="$xorg_testset_save_CFLAGS"
5367
5368 eval supported=\$$cacheid
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5370 $as_echo "$supported" >&6; }
5371 if test "$supported" = "yes" ; then
5372 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5373 found="yes"
5374 fi
5375 fi
5376
5377 if test $found = "no" ; then
5378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380 fi
5381
5382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5384 fi
5385
5386 CFLAGS="$CFLAGS -Wformat"
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5389 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5390 cacheid=xorg_cv_cc_flag__Wformat
5391 if eval \${$cacheid+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 int i;
5397 int
5398 main ()
5399 {
5400
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 if ac_fn_c_try_link "$LINENO"; then :
5406 eval $cacheid=yes
5407 else
5408 eval $cacheid=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412 fi
5413
5414
5415 CFLAGS="$xorg_testset_save_CFLAGS"
5416
5417 eval supported=\$$cacheid
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5419 $as_echo "$supported" >&6; }
5420 if test "$supported" = "yes" ; then
5421 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5422 found="yes"
5423 fi
5424 fi
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 xorg_testset_save_CFLAGS="$CFLAGS"
5443
5444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 int i;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 xorg_cv_cc_flag_unknown_warning_option=yes
5457 else
5458 xorg_cv_cc_flag_unknown_warning_option=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5465 CFLAGS="$xorg_testset_save_CFLAGS"
5466 fi
5467
5468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471 fi
5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 int i;
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 xorg_cv_cc_flag_unused_command_line_argument=yes
5484 else
5485 xorg_cv_cc_flag_unused_command_line_argument=no
5486 fi
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5492 CFLAGS="$xorg_testset_save_CFLAGS"
5493 fi
5494
5495 found="no"
5496
5497 if test $found = "no" ; then
5498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500 fi
5501
5502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5504 fi
5505
5506 CFLAGS="$CFLAGS -Wstrict-prototypes"
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5509 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5510 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5511 if eval \${$cacheid+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 int i;
5517 int
5518 main ()
5519 {
5520
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 if ac_fn_c_try_link "$LINENO"; then :
5526 eval $cacheid=yes
5527 else
5528 eval $cacheid=no
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
5532 fi
5533
5534
5535 CFLAGS="$xorg_testset_save_CFLAGS"
5536
5537 eval supported=\$$cacheid
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5539 $as_echo "$supported" >&6; }
5540 if test "$supported" = "yes" ; then
5541 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5542 found="yes"
5543 fi
5544 fi
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 xorg_testset_save_CFLAGS="$CFLAGS"
5561
5562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 xorg_cv_cc_flag_unknown_warning_option=yes
5575 else
5576 xorg_cv_cc_flag_unknown_warning_option=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5584 fi
5585
5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589 fi
5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 int i;
5599 _ACEOF
5600 if ac_fn_c_try_compile "$LINENO"; then :
5601 xorg_cv_cc_flag_unused_command_line_argument=yes
5602 else
5603 xorg_cv_cc_flag_unused_command_line_argument=no
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5610 CFLAGS="$xorg_testset_save_CFLAGS"
5611 fi
5612
5613 found="no"
5614
5615 if test $found = "no" ; then
5616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618 fi
5619
5620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5622 fi
5623
5624 CFLAGS="$CFLAGS -Wmissing-prototypes"
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5627 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5628 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5629 if eval \${$cacheid+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 int i;
5635 int
5636 main ()
5637 {
5638
5639 ;
5640 return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_c_try_link "$LINENO"; then :
5644 eval $cacheid=yes
5645 else
5646 eval $cacheid=no
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext \
5649 conftest$ac_exeext conftest.$ac_ext
5650 fi
5651
5652
5653 CFLAGS="$xorg_testset_save_CFLAGS"
5654
5655 eval supported=\$$cacheid
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5657 $as_echo "$supported" >&6; }
5658 if test "$supported" = "yes" ; then
5659 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5660 found="yes"
5661 fi
5662 fi
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678 xorg_testset_save_CFLAGS="$CFLAGS"
5679
5680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 xorg_cv_cc_flag_unknown_warning_option=yes
5693 else
5694 xorg_cv_cc_flag_unknown_warning_option=no
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5701 CFLAGS="$xorg_testset_save_CFLAGS"
5702 fi
5703
5704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 fi
5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 int i;
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 xorg_cv_cc_flag_unused_command_line_argument=yes
5720 else
5721 xorg_cv_cc_flag_unused_command_line_argument=no
5722 fi
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5728 CFLAGS="$xorg_testset_save_CFLAGS"
5729 fi
5730
5731 found="no"
5732
5733 if test $found = "no" ; then
5734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 fi
5737
5738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5740 fi
5741
5742 CFLAGS="$CFLAGS -Wnested-externs"
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5745 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5746 cacheid=xorg_cv_cc_flag__Wnested_externs
5747 if eval \${$cacheid+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 int i;
5753 int
5754 main ()
5755 {
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_link "$LINENO"; then :
5762 eval $cacheid=yes
5763 else
5764 eval $cacheid=no
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768 fi
5769
5770
5771 CFLAGS="$xorg_testset_save_CFLAGS"
5772
5773 eval supported=\$$cacheid
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5775 $as_echo "$supported" >&6; }
5776 if test "$supported" = "yes" ; then
5777 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5778 found="yes"
5779 fi
5780 fi
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796 xorg_testset_save_CFLAGS="$CFLAGS"
5797
5798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 int i;
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810 xorg_cv_cc_flag_unknown_warning_option=yes
5811 else
5812 xorg_cv_cc_flag_unknown_warning_option=no
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5819 CFLAGS="$xorg_testset_save_CFLAGS"
5820 fi
5821
5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825 fi
5826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 int i;
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 xorg_cv_cc_flag_unused_command_line_argument=yes
5838 else
5839 xorg_cv_cc_flag_unused_command_line_argument=no
5840 fi
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5846 CFLAGS="$xorg_testset_save_CFLAGS"
5847 fi
5848
5849 found="no"
5850
5851 if test $found = "no" ; then
5852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854 fi
5855
5856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5858 fi
5859
5860 CFLAGS="$CFLAGS -Wbad-function-cast"
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5863 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5864 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5865 if eval \${$cacheid+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 int
5872 main ()
5873 {
5874
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"; then :
5880 eval $cacheid=yes
5881 else
5882 eval $cacheid=no
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5886 fi
5887
5888
5889 CFLAGS="$xorg_testset_save_CFLAGS"
5890
5891 eval supported=\$$cacheid
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5893 $as_echo "$supported" >&6; }
5894 if test "$supported" = "yes" ; then
5895 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5896 found="yes"
5897 fi
5898 fi
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 xorg_testset_save_CFLAGS="$CFLAGS"
5915
5916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 int i;
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 xorg_cv_cc_flag_unknown_warning_option=yes
5929 else
5930 xorg_cv_cc_flag_unknown_warning_option=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5937 CFLAGS="$xorg_testset_save_CFLAGS"
5938 fi
5939
5940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943 fi
5944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 int i;
5953 _ACEOF
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955 xorg_cv_cc_flag_unused_command_line_argument=yes
5956 else
5957 xorg_cv_cc_flag_unused_command_line_argument=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5964 CFLAGS="$xorg_testset_save_CFLAGS"
5965 fi
5966
5967 found="no"
5968
5969 if test $found = "no" ; then
5970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972 fi
5973
5974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5976 fi
5977
5978 CFLAGS="$CFLAGS -Wold-style-definition"
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5981 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5982 cacheid=xorg_cv_cc_flag__Wold_style_definition
5983 if eval \${$cacheid+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 int i;
5989 int
5990 main ()
5991 {
5992
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_link "$LINENO"; then :
5998 eval $cacheid=yes
5999 else
6000 eval $cacheid=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6004 fi
6005
6006
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008
6009 eval supported=\$$cacheid
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6011 $as_echo "$supported" >&6; }
6012 if test "$supported" = "yes" ; then
6013 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6014 found="yes"
6015 fi
6016 fi
6017
6018 if test $found = "no" ; then
6019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6021 fi
6022
6023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6025 fi
6026
6027 CFLAGS="$CFLAGS -fd"
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6030 $as_echo_n "checking if $CC supports -fd... " >&6; }
6031 cacheid=xorg_cv_cc_flag__fd
6032 if eval \${$cacheid+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 int i;
6038 int
6039 main ()
6040 {
6041
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_c_try_link "$LINENO"; then :
6047 eval $cacheid=yes
6048 else
6049 eval $cacheid=no
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6053 fi
6054
6055
6056 CFLAGS="$xorg_testset_save_CFLAGS"
6057
6058 eval supported=\$$cacheid
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6060 $as_echo "$supported" >&6; }
6061 if test "$supported" = "yes" ; then
6062 BASE_CFLAGS="$BASE_CFLAGS -fd"
6063 found="yes"
6064 fi
6065 fi
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081 xorg_testset_save_CFLAGS="$CFLAGS"
6082
6083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 int i;
6093 _ACEOF
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 xorg_cv_cc_flag_unknown_warning_option=yes
6096 else
6097 xorg_cv_cc_flag_unknown_warning_option=no
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6104 CFLAGS="$xorg_testset_save_CFLAGS"
6105 fi
6106
6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110 fi
6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 int i;
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"; then :
6122 xorg_cv_cc_flag_unused_command_line_argument=yes
6123 else
6124 xorg_cv_cc_flag_unused_command_line_argument=no
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 fi
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6131 CFLAGS="$xorg_testset_save_CFLAGS"
6132 fi
6133
6134 found="no"
6135
6136 if test $found = "no" ; then
6137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6139 fi
6140
6141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143 fi
6144
6145 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6146
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6148 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6149 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6150 if eval \${$cacheid+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 int i;
6156 int
6157 main ()
6158 {
6159
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 if ac_fn_c_try_link "$LINENO"; then :
6165 eval $cacheid=yes
6166 else
6167 eval $cacheid=no
6168 fi
6169 rm -f core conftest.err conftest.$ac_objext \
6170 conftest$ac_exeext conftest.$ac_ext
6171 fi
6172
6173
6174 CFLAGS="$xorg_testset_save_CFLAGS"
6175
6176 eval supported=\$$cacheid
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6178 $as_echo "$supported" >&6; }
6179 if test "$supported" = "yes" ; then
6180 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6181 found="yes"
6182 fi
6183 fi
6184
6185
6186
6187
6188
6189 # This chunk adds additional warnings that could catch undesired effects.
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 xorg_testset_save_CFLAGS="$CFLAGS"
6204
6205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 int i;
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 xorg_cv_cc_flag_unknown_warning_option=yes
6218 else
6219 xorg_cv_cc_flag_unknown_warning_option=no
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6226 CFLAGS="$xorg_testset_save_CFLAGS"
6227 fi
6228
6229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232 fi
6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 int i;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 xorg_cv_cc_flag_unused_command_line_argument=yes
6245 else
6246 xorg_cv_cc_flag_unused_command_line_argument=no
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6253 CFLAGS="$xorg_testset_save_CFLAGS"
6254 fi
6255
6256 found="no"
6257
6258 if test $found = "no" ; then
6259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6261 fi
6262
6263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6265 fi
6266
6267 CFLAGS="$CFLAGS -Wunused"
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6270 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6271 cacheid=xorg_cv_cc_flag__Wunused
6272 if eval \${$cacheid+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 int i;
6278 int
6279 main ()
6280 {
6281
6282 ;
6283 return 0;
6284 }
6285 _ACEOF
6286 if ac_fn_c_try_link "$LINENO"; then :
6287 eval $cacheid=yes
6288 else
6289 eval $cacheid=no
6290 fi
6291 rm -f core conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
6293 fi
6294
6295
6296 CFLAGS="$xorg_testset_save_CFLAGS"
6297
6298 eval supported=\$$cacheid
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6300 $as_echo "$supported" >&6; }
6301 if test "$supported" = "yes" ; then
6302 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6303 found="yes"
6304 fi
6305 fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321 xorg_testset_save_CFLAGS="$CFLAGS"
6322
6323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 int i;
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 xorg_cv_cc_flag_unknown_warning_option=yes
6336 else
6337 xorg_cv_cc_flag_unknown_warning_option=no
6338 fi
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6344 CFLAGS="$xorg_testset_save_CFLAGS"
6345 fi
6346
6347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350 fi
6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 int i;
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362 xorg_cv_cc_flag_unused_command_line_argument=yes
6363 else
6364 xorg_cv_cc_flag_unused_command_line_argument=no
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6371 CFLAGS="$xorg_testset_save_CFLAGS"
6372 fi
6373
6374 found="no"
6375
6376 if test $found = "no" ; then
6377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379 fi
6380
6381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6383 fi
6384
6385 CFLAGS="$CFLAGS -Wuninitialized"
6386
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6388 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6389 cacheid=xorg_cv_cc_flag__Wuninitialized
6390 if eval \${$cacheid+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 int i;
6396 int
6397 main ()
6398 {
6399
6400 ;
6401 return 0;
6402 }
6403 _ACEOF
6404 if ac_fn_c_try_link "$LINENO"; then :
6405 eval $cacheid=yes
6406 else
6407 eval $cacheid=no
6408 fi
6409 rm -f core conftest.err conftest.$ac_objext \
6410 conftest$ac_exeext conftest.$ac_ext
6411 fi
6412
6413
6414 CFLAGS="$xorg_testset_save_CFLAGS"
6415
6416 eval supported=\$$cacheid
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6418 $as_echo "$supported" >&6; }
6419 if test "$supported" = "yes" ; then
6420 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6421 found="yes"
6422 fi
6423 fi
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 xorg_testset_save_CFLAGS="$CFLAGS"
6440
6441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 int i;
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 xorg_cv_cc_flag_unknown_warning_option=yes
6454 else
6455 xorg_cv_cc_flag_unknown_warning_option=no
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6462 CFLAGS="$xorg_testset_save_CFLAGS"
6463 fi
6464
6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468 fi
6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 int i;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 xorg_cv_cc_flag_unused_command_line_argument=yes
6481 else
6482 xorg_cv_cc_flag_unused_command_line_argument=no
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6489 CFLAGS="$xorg_testset_save_CFLAGS"
6490 fi
6491
6492 found="no"
6493
6494 if test $found = "no" ; then
6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497 fi
6498
6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6501 fi
6502
6503 CFLAGS="$CFLAGS -Wshadow"
6504
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6506 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6507 cacheid=xorg_cv_cc_flag__Wshadow
6508 if eval \${$cacheid+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 int i;
6514 int
6515 main ()
6516 {
6517
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_c_try_link "$LINENO"; then :
6523 eval $cacheid=yes
6524 else
6525 eval $cacheid=no
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext \
6528 conftest$ac_exeext conftest.$ac_ext
6529 fi
6530
6531
6532 CFLAGS="$xorg_testset_save_CFLAGS"
6533
6534 eval supported=\$$cacheid
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6536 $as_echo "$supported" >&6; }
6537 if test "$supported" = "yes" ; then
6538 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6539 found="yes"
6540 fi
6541 fi
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557 xorg_testset_save_CFLAGS="$CFLAGS"
6558
6559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 int i;
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 xorg_cv_cc_flag_unknown_warning_option=yes
6572 else
6573 xorg_cv_cc_flag_unknown_warning_option=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6580 CFLAGS="$xorg_testset_save_CFLAGS"
6581 fi
6582
6583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586 fi
6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 int i;
6596 _ACEOF
6597 if ac_fn_c_try_compile "$LINENO"; then :
6598 xorg_cv_cc_flag_unused_command_line_argument=yes
6599 else
6600 xorg_cv_cc_flag_unused_command_line_argument=no
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6607 CFLAGS="$xorg_testset_save_CFLAGS"
6608 fi
6609
6610 found="no"
6611
6612 if test $found = "no" ; then
6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615 fi
6616
6617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6619 fi
6620
6621 CFLAGS="$CFLAGS -Wmissing-noreturn"
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6624 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6625 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6626 if eval \${$cacheid+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 int i;
6632 int
6633 main ()
6634 {
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_link "$LINENO"; then :
6641 eval $cacheid=yes
6642 else
6643 eval $cacheid=no
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 fi
6648
6649
6650 CFLAGS="$xorg_testset_save_CFLAGS"
6651
6652 eval supported=\$$cacheid
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6654 $as_echo "$supported" >&6; }
6655 if test "$supported" = "yes" ; then
6656 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6657 found="yes"
6658 fi
6659 fi
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 xorg_testset_save_CFLAGS="$CFLAGS"
6676
6677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 int i;
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 xorg_cv_cc_flag_unknown_warning_option=yes
6690 else
6691 xorg_cv_cc_flag_unknown_warning_option=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6698 CFLAGS="$xorg_testset_save_CFLAGS"
6699 fi
6700
6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 fi
6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 int i;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 xorg_cv_cc_flag_unused_command_line_argument=yes
6717 else
6718 xorg_cv_cc_flag_unused_command_line_argument=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725 CFLAGS="$xorg_testset_save_CFLAGS"
6726 fi
6727
6728 found="no"
6729
6730 if test $found = "no" ; then
6731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 fi
6734
6735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737 fi
6738
6739 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6740
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6742 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6743 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6744 if eval \${$cacheid+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 int
6751 main ()
6752 {
6753
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_link "$LINENO"; then :
6759 eval $cacheid=yes
6760 else
6761 eval $cacheid=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6765 fi
6766
6767
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6769
6770 eval supported=\$$cacheid
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6772 $as_echo "$supported" >&6; }
6773 if test "$supported" = "yes" ; then
6774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6775 found="yes"
6776 fi
6777 fi
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793 xorg_testset_save_CFLAGS="$CFLAGS"
6794
6795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 int i;
6805 _ACEOF
6806 if ac_fn_c_try_compile "$LINENO"; then :
6807 xorg_cv_cc_flag_unknown_warning_option=yes
6808 else
6809 xorg_cv_cc_flag_unknown_warning_option=no
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6816 CFLAGS="$xorg_testset_save_CFLAGS"
6817 fi
6818
6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822 fi
6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 int i;
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 xorg_cv_cc_flag_unused_command_line_argument=yes
6835 else
6836 xorg_cv_cc_flag_unused_command_line_argument=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6843 CFLAGS="$xorg_testset_save_CFLAGS"
6844 fi
6845
6846 found="no"
6847
6848 if test $found = "no" ; then
6849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851 fi
6852
6853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6855 fi
6856
6857 CFLAGS="$CFLAGS -Wredundant-decls"
6858
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6860 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6861 cacheid=xorg_cv_cc_flag__Wredundant_decls
6862 if eval \${$cacheid+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 int i;
6868 int
6869 main ()
6870 {
6871
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 if ac_fn_c_try_link "$LINENO"; then :
6877 eval $cacheid=yes
6878 else
6879 eval $cacheid=no
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6883 fi
6884
6885
6886 CFLAGS="$xorg_testset_save_CFLAGS"
6887
6888 eval supported=\$$cacheid
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6890 $as_echo "$supported" >&6; }
6891 if test "$supported" = "yes" ; then
6892 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6893 found="yes"
6894 fi
6895 fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911 xorg_testset_save_CFLAGS="$CFLAGS"
6912
6913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922 int i;
6923 _ACEOF
6924 if ac_fn_c_try_compile "$LINENO"; then :
6925 xorg_cv_cc_flag_unknown_warning_option=yes
6926 else
6927 xorg_cv_cc_flag_unknown_warning_option=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6934 CFLAGS="$xorg_testset_save_CFLAGS"
6935 fi
6936
6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940 fi
6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 int i;
6950 _ACEOF
6951 if ac_fn_c_try_compile "$LINENO"; then :
6952 xorg_cv_cc_flag_unused_command_line_argument=yes
6953 else
6954 xorg_cv_cc_flag_unused_command_line_argument=no
6955 fi
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 fi
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6961 CFLAGS="$xorg_testset_save_CFLAGS"
6962 fi
6963
6964 found="no"
6965
6966 if test $found = "no" ; then
6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969 fi
6970
6971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973 fi
6974
6975 CFLAGS="$CFLAGS -Wlogical-op"
6976
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6978 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6979 cacheid=xorg_cv_cc_flag__Wlogical_op
6980 if eval \${$cacheid+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 int i;
6986 int
6987 main ()
6988 {
6989
6990 ;
6991 return 0;
6992 }
6993 _ACEOF
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 eval $cacheid=yes
6996 else
6997 eval $cacheid=no
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 fi
7002
7003
7004 CFLAGS="$xorg_testset_save_CFLAGS"
7005
7006 eval supported=\$$cacheid
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7008 $as_echo "$supported" >&6; }
7009 if test "$supported" = "yes" ; then
7010 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7011 found="yes"
7012 fi
7013 fi
7014
7015
7016
7017 # These are currently disabled because they are noisy. They will be enabled
7018 # in the future once the codebase is sufficiently modernized to silence
7019 # them. For now, I don't want them to drown out the other warnings.
7020 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7021 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7022 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7023
7024 # Turn some warnings into errors, so we don't accidently get successful builds
7025 # when there are problems that should be fixed.
7026
7027 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041 xorg_testset_save_CFLAGS="$CFLAGS"
7042
7043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 int i;
7053 _ACEOF
7054 if ac_fn_c_try_compile "$LINENO"; then :
7055 xorg_cv_cc_flag_unknown_warning_option=yes
7056 else
7057 xorg_cv_cc_flag_unknown_warning_option=no
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7064 CFLAGS="$xorg_testset_save_CFLAGS"
7065 fi
7066
7067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070 fi
7071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 int i;
7080 _ACEOF
7081 if ac_fn_c_try_compile "$LINENO"; then :
7082 xorg_cv_cc_flag_unused_command_line_argument=yes
7083 else
7084 xorg_cv_cc_flag_unused_command_line_argument=no
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7091 CFLAGS="$xorg_testset_save_CFLAGS"
7092 fi
7093
7094 found="no"
7095
7096 if test $found = "no" ; then
7097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099 fi
7100
7101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103 fi
7104
7105 CFLAGS="$CFLAGS -Werror=implicit"
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7108 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7109 cacheid=xorg_cv_cc_flag__Werror_implicit
7110 if eval \${$cacheid+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 int i;
7116 int
7117 main ()
7118 {
7119
7120 ;
7121 return 0;
7122 }
7123 _ACEOF
7124 if ac_fn_c_try_link "$LINENO"; then :
7125 eval $cacheid=yes
7126 else
7127 eval $cacheid=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131 fi
7132
7133
7134 CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136 eval supported=\$$cacheid
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138 $as_echo "$supported" >&6; }
7139 if test "$supported" = "yes" ; then
7140 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7141 found="yes"
7142 fi
7143 fi
7144
7145 if test $found = "no" ; then
7146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148 fi
7149
7150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152 fi
7153
7154 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7157 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7158 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7159 if eval \${$cacheid+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 int i;
7165 int
7166 main ()
7167 {
7168
7169 ;
7170 return 0;
7171 }
7172 _ACEOF
7173 if ac_fn_c_try_link "$LINENO"; then :
7174 eval $cacheid=yes
7175 else
7176 eval $cacheid=no
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext \
7179 conftest$ac_exeext conftest.$ac_ext
7180 fi
7181
7182
7183 CFLAGS="$xorg_testset_save_CFLAGS"
7184
7185 eval supported=\$$cacheid
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7187 $as_echo "$supported" >&6; }
7188 if test "$supported" = "yes" ; then
7189 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7190 found="yes"
7191 fi
7192 fi
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208 xorg_testset_save_CFLAGS="$CFLAGS"
7209
7210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 int i;
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 xorg_cv_cc_flag_unknown_warning_option=yes
7223 else
7224 xorg_cv_cc_flag_unknown_warning_option=no
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 fi
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7231 CFLAGS="$xorg_testset_save_CFLAGS"
7232 fi
7233
7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237 fi
7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 int i;
7247 _ACEOF
7248 if ac_fn_c_try_compile "$LINENO"; then :
7249 xorg_cv_cc_flag_unused_command_line_argument=yes
7250 else
7251 xorg_cv_cc_flag_unused_command_line_argument=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7258 CFLAGS="$xorg_testset_save_CFLAGS"
7259 fi
7260
7261 found="no"
7262
7263 if test $found = "no" ; then
7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266 fi
7267
7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270 fi
7271
7272 CFLAGS="$CFLAGS -Werror=nonnull"
7273
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7275 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7276 cacheid=xorg_cv_cc_flag__Werror_nonnull
7277 if eval \${$cacheid+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 int i;
7283 int
7284 main ()
7285 {
7286
7287 ;
7288 return 0;
7289 }
7290 _ACEOF
7291 if ac_fn_c_try_link "$LINENO"; then :
7292 eval $cacheid=yes
7293 else
7294 eval $cacheid=no
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7298 fi
7299
7300
7301 CFLAGS="$xorg_testset_save_CFLAGS"
7302
7303 eval supported=\$$cacheid
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7305 $as_echo "$supported" >&6; }
7306 if test "$supported" = "yes" ; then
7307 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7308 found="yes"
7309 fi
7310 fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326 xorg_testset_save_CFLAGS="$CFLAGS"
7327
7328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 int i;
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"; then :
7340 xorg_cv_cc_flag_unknown_warning_option=yes
7341 else
7342 xorg_cv_cc_flag_unknown_warning_option=no
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 fi
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7349 CFLAGS="$xorg_testset_save_CFLAGS"
7350 fi
7351
7352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355 fi
7356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 int i;
7365 _ACEOF
7366 if ac_fn_c_try_compile "$LINENO"; then :
7367 xorg_cv_cc_flag_unused_command_line_argument=yes
7368 else
7369 xorg_cv_cc_flag_unused_command_line_argument=no
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7377 fi
7378
7379 found="no"
7380
7381 if test $found = "no" ; then
7382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384 fi
7385
7386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388 fi
7389
7390 CFLAGS="$CFLAGS -Werror=init-self"
7391
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7393 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7394 cacheid=xorg_cv_cc_flag__Werror_init_self
7395 if eval \${$cacheid+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 int i;
7401 int
7402 main ()
7403 {
7404
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_link "$LINENO"; then :
7410 eval $cacheid=yes
7411 else
7412 eval $cacheid=no
7413 fi
7414 rm -f core conftest.err conftest.$ac_objext \
7415 conftest$ac_exeext conftest.$ac_ext
7416 fi
7417
7418
7419 CFLAGS="$xorg_testset_save_CFLAGS"
7420
7421 eval supported=\$$cacheid
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7423 $as_echo "$supported" >&6; }
7424 if test "$supported" = "yes" ; then
7425 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7426 found="yes"
7427 fi
7428 fi
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 xorg_testset_save_CFLAGS="$CFLAGS"
7445
7446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 int i;
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"; then :
7458 xorg_cv_cc_flag_unknown_warning_option=yes
7459 else
7460 xorg_cv_cc_flag_unknown_warning_option=no
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7467 CFLAGS="$xorg_testset_save_CFLAGS"
7468 fi
7469
7470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473 fi
7474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 int i;
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"; then :
7485 xorg_cv_cc_flag_unused_command_line_argument=yes
7486 else
7487 xorg_cv_cc_flag_unused_command_line_argument=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 fi
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7494 CFLAGS="$xorg_testset_save_CFLAGS"
7495 fi
7496
7497 found="no"
7498
7499 if test $found = "no" ; then
7500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502 fi
7503
7504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7506 fi
7507
7508 CFLAGS="$CFLAGS -Werror=main"
7509
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7511 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7512 cacheid=xorg_cv_cc_flag__Werror_main
7513 if eval \${$cacheid+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 int i;
7519 int
7520 main ()
7521 {
7522
7523 ;
7524 return 0;
7525 }
7526 _ACEOF
7527 if ac_fn_c_try_link "$LINENO"; then :
7528 eval $cacheid=yes
7529 else
7530 eval $cacheid=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534 fi
7535
7536
7537 CFLAGS="$xorg_testset_save_CFLAGS"
7538
7539 eval supported=\$$cacheid
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7541 $as_echo "$supported" >&6; }
7542 if test "$supported" = "yes" ; then
7543 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7544 found="yes"
7545 fi
7546 fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 xorg_testset_save_CFLAGS="$CFLAGS"
7563
7564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 int i;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 xorg_cv_cc_flag_unknown_warning_option=yes
7577 else
7578 xorg_cv_cc_flag_unknown_warning_option=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7585 CFLAGS="$xorg_testset_save_CFLAGS"
7586 fi
7587
7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591 fi
7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 xorg_cv_cc_flag_unused_command_line_argument=yes
7604 else
7605 xorg_cv_cc_flag_unused_command_line_argument=no
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7612 CFLAGS="$xorg_testset_save_CFLAGS"
7613 fi
7614
7615 found="no"
7616
7617 if test $found = "no" ; then
7618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620 fi
7621
7622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7624 fi
7625
7626 CFLAGS="$CFLAGS -Werror=missing-braces"
7627
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7629 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7630 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7631 if eval \${$cacheid+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 int i;
7637 int
7638 main ()
7639 {
7640
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_link "$LINENO"; then :
7646 eval $cacheid=yes
7647 else
7648 eval $cacheid=no
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 fi
7653
7654
7655 CFLAGS="$xorg_testset_save_CFLAGS"
7656
7657 eval supported=\$$cacheid
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7659 $as_echo "$supported" >&6; }
7660 if test "$supported" = "yes" ; then
7661 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7662 found="yes"
7663 fi
7664 fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680 xorg_testset_save_CFLAGS="$CFLAGS"
7681
7682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691 int i;
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 xorg_cv_cc_flag_unknown_warning_option=yes
7695 else
7696 xorg_cv_cc_flag_unknown_warning_option=no
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7703 CFLAGS="$xorg_testset_save_CFLAGS"
7704 fi
7705
7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 fi
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 int i;
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 xorg_cv_cc_flag_unused_command_line_argument=yes
7722 else
7723 xorg_cv_cc_flag_unused_command_line_argument=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7730 CFLAGS="$xorg_testset_save_CFLAGS"
7731 fi
7732
7733 found="no"
7734
7735 if test $found = "no" ; then
7736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738 fi
7739
7740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7742 fi
7743
7744 CFLAGS="$CFLAGS -Werror=sequence-point"
7745
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7747 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7748 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7749 if eval \${$cacheid+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 int i;
7755 int
7756 main ()
7757 {
7758
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"; then :
7764 eval $cacheid=yes
7765 else
7766 eval $cacheid=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 fi
7771
7772
7773 CFLAGS="$xorg_testset_save_CFLAGS"
7774
7775 eval supported=\$$cacheid
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7777 $as_echo "$supported" >&6; }
7778 if test "$supported" = "yes" ; then
7779 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7780 found="yes"
7781 fi
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798 xorg_testset_save_CFLAGS="$CFLAGS"
7799
7800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int i;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 xorg_cv_cc_flag_unknown_warning_option=yes
7813 else
7814 xorg_cv_cc_flag_unknown_warning_option=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7821 CFLAGS="$xorg_testset_save_CFLAGS"
7822 fi
7823
7824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827 fi
7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 int i;
7837 _ACEOF
7838 if ac_fn_c_try_compile "$LINENO"; then :
7839 xorg_cv_cc_flag_unused_command_line_argument=yes
7840 else
7841 xorg_cv_cc_flag_unused_command_line_argument=no
7842 fi
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7848 CFLAGS="$xorg_testset_save_CFLAGS"
7849 fi
7850
7851 found="no"
7852
7853 if test $found = "no" ; then
7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856 fi
7857
7858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860 fi
7861
7862 CFLAGS="$CFLAGS -Werror=return-type"
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7865 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7866 cacheid=xorg_cv_cc_flag__Werror_return_type
7867 if eval \${$cacheid+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 int
7874 main ()
7875 {
7876
7877 ;
7878 return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_link "$LINENO"; then :
7882 eval $cacheid=yes
7883 else
7884 eval $cacheid=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext \
7887 conftest$ac_exeext conftest.$ac_ext
7888 fi
7889
7890
7891 CFLAGS="$xorg_testset_save_CFLAGS"
7892
7893 eval supported=\$$cacheid
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7895 $as_echo "$supported" >&6; }
7896 if test "$supported" = "yes" ; then
7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7898 found="yes"
7899 fi
7900 fi
7901
7902 if test $found = "no" ; then
7903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7905 fi
7906
7907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7909 fi
7910
7911 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7914 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7915 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7916 if eval \${$cacheid+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 int i;
7922 int
7923 main ()
7924 {
7925
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 if ac_fn_c_try_link "$LINENO"; then :
7931 eval $cacheid=yes
7932 else
7933 eval $cacheid=no
7934 fi
7935 rm -f core conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
7937 fi
7938
7939
7940 CFLAGS="$xorg_testset_save_CFLAGS"
7941
7942 eval supported=\$$cacheid
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7944 $as_echo "$supported" >&6; }
7945 if test "$supported" = "yes" ; then
7946 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7947 found="yes"
7948 fi
7949 fi
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965 xorg_testset_save_CFLAGS="$CFLAGS"
7966
7967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 int i;
7977 _ACEOF
7978 if ac_fn_c_try_compile "$LINENO"; then :
7979 xorg_cv_cc_flag_unknown_warning_option=yes
7980 else
7981 xorg_cv_cc_flag_unknown_warning_option=no
7982 fi
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7988 CFLAGS="$xorg_testset_save_CFLAGS"
7989 fi
7990
7991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994 fi
7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003 int i;
8004 _ACEOF
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 xorg_cv_cc_flag_unused_command_line_argument=yes
8007 else
8008 xorg_cv_cc_flag_unused_command_line_argument=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 fi
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8015 CFLAGS="$xorg_testset_save_CFLAGS"
8016 fi
8017
8018 found="no"
8019
8020 if test $found = "no" ; then
8021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8023 fi
8024
8025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8027 fi
8028
8029 CFLAGS="$CFLAGS -Werror=trigraphs"
8030
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8032 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8033 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8034 if eval \${$cacheid+:} false; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 int i;
8040 int
8041 main ()
8042 {
8043
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_link "$LINENO"; then :
8049 eval $cacheid=yes
8050 else
8051 eval $cacheid=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 fi
8056
8057
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060 eval supported=\$$cacheid
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8062 $as_echo "$supported" >&6; }
8063 if test "$supported" = "yes" ; then
8064 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8065 found="yes"
8066 fi
8067 fi
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 xorg_testset_save_CFLAGS="$CFLAGS"
8084
8085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 int i;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 xorg_cv_cc_flag_unknown_warning_option=yes
8098 else
8099 xorg_cv_cc_flag_unknown_warning_option=no
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8106 CFLAGS="$xorg_testset_save_CFLAGS"
8107 fi
8108
8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112 fi
8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 int i;
8122 _ACEOF
8123 if ac_fn_c_try_compile "$LINENO"; then :
8124 xorg_cv_cc_flag_unused_command_line_argument=yes
8125 else
8126 xorg_cv_cc_flag_unused_command_line_argument=no
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8133 CFLAGS="$xorg_testset_save_CFLAGS"
8134 fi
8135
8136 found="no"
8137
8138 if test $found = "no" ; then
8139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141 fi
8142
8143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8145 fi
8146
8147 CFLAGS="$CFLAGS -Werror=array-bounds"
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8150 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8151 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8152 if eval \${$cacheid+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 int i;
8158 int
8159 main ()
8160 {
8161
8162 ;
8163 return 0;
8164 }
8165 _ACEOF
8166 if ac_fn_c_try_link "$LINENO"; then :
8167 eval $cacheid=yes
8168 else
8169 eval $cacheid=no
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext \
8172 conftest$ac_exeext conftest.$ac_ext
8173 fi
8174
8175
8176 CFLAGS="$xorg_testset_save_CFLAGS"
8177
8178 eval supported=\$$cacheid
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8180 $as_echo "$supported" >&6; }
8181 if test "$supported" = "yes" ; then
8182 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8183 found="yes"
8184 fi
8185 fi
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201 xorg_testset_save_CFLAGS="$CFLAGS"
8202
8203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 int i;
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 xorg_cv_cc_flag_unknown_warning_option=yes
8216 else
8217 xorg_cv_cc_flag_unknown_warning_option=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8224 CFLAGS="$xorg_testset_save_CFLAGS"
8225 fi
8226
8227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230 fi
8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 int i;
8240 _ACEOF
8241 if ac_fn_c_try_compile "$LINENO"; then :
8242 xorg_cv_cc_flag_unused_command_line_argument=yes
8243 else
8244 xorg_cv_cc_flag_unused_command_line_argument=no
8245 fi
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8251 CFLAGS="$xorg_testset_save_CFLAGS"
8252 fi
8253
8254 found="no"
8255
8256 if test $found = "no" ; then
8257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259 fi
8260
8261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8263 fi
8264
8265 CFLAGS="$CFLAGS -Werror=write-strings"
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8268 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8269 cacheid=xorg_cv_cc_flag__Werror_write_strings
8270 if eval \${$cacheid+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 int i;
8276 int
8277 main ()
8278 {
8279
8280 ;
8281 return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_link "$LINENO"; then :
8285 eval $cacheid=yes
8286 else
8287 eval $cacheid=no
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 fi
8292
8293
8294 CFLAGS="$xorg_testset_save_CFLAGS"
8295
8296 eval supported=\$$cacheid
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8298 $as_echo "$supported" >&6; }
8299 if test "$supported" = "yes" ; then
8300 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8301 found="yes"
8302 fi
8303 fi
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319 xorg_testset_save_CFLAGS="$CFLAGS"
8320
8321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 int i;
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333 xorg_cv_cc_flag_unknown_warning_option=yes
8334 else
8335 xorg_cv_cc_flag_unknown_warning_option=no
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8342 CFLAGS="$xorg_testset_save_CFLAGS"
8343 fi
8344
8345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8348 fi
8349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 int i;
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 xorg_cv_cc_flag_unused_command_line_argument=yes
8361 else
8362 xorg_cv_cc_flag_unused_command_line_argument=no
8363 fi
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8369 CFLAGS="$xorg_testset_save_CFLAGS"
8370 fi
8371
8372 found="no"
8373
8374 if test $found = "no" ; then
8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8377 fi
8378
8379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8381 fi
8382
8383 CFLAGS="$CFLAGS -Werror=address"
8384
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8386 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8387 cacheid=xorg_cv_cc_flag__Werror_address
8388 if eval \${$cacheid+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 int
8395 main ()
8396 {
8397
8398 ;
8399 return 0;
8400 }
8401 _ACEOF
8402 if ac_fn_c_try_link "$LINENO"; then :
8403 eval $cacheid=yes
8404 else
8405 eval $cacheid=no
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 fi
8410
8411
8412 CFLAGS="$xorg_testset_save_CFLAGS"
8413
8414 eval supported=\$$cacheid
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8416 $as_echo "$supported" >&6; }
8417 if test "$supported" = "yes" ; then
8418 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8419 found="yes"
8420 fi
8421 fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437 xorg_testset_save_CFLAGS="$CFLAGS"
8438
8439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 int i;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 xorg_cv_cc_flag_unknown_warning_option=yes
8452 else
8453 xorg_cv_cc_flag_unknown_warning_option=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8460 CFLAGS="$xorg_testset_save_CFLAGS"
8461 fi
8462
8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466 fi
8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 int i;
8476 _ACEOF
8477 if ac_fn_c_try_compile "$LINENO"; then :
8478 xorg_cv_cc_flag_unused_command_line_argument=yes
8479 else
8480 xorg_cv_cc_flag_unused_command_line_argument=no
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8487 CFLAGS="$xorg_testset_save_CFLAGS"
8488 fi
8489
8490 found="no"
8491
8492 if test $found = "no" ; then
8493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8495 fi
8496
8497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499 fi
8500
8501 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8504 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8505 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8506 if eval \${$cacheid+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 int i;
8512 int
8513 main ()
8514 {
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_link "$LINENO"; then :
8521 eval $cacheid=yes
8522 else
8523 eval $cacheid=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 fi
8528
8529
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531
8532 eval supported=\$$cacheid
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8534 $as_echo "$supported" >&6; }
8535 if test "$supported" = "yes" ; then
8536 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8537 found="yes"
8538 fi
8539 fi
8540
8541 if test $found = "no" ; then
8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544 fi
8545
8546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548 fi
8549
8550 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8553 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8554 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8555 if eval \${$cacheid+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 int i;
8561 int
8562 main ()
8563 {
8564
8565 ;
8566 return 0;
8567 }
8568 _ACEOF
8569 if ac_fn_c_try_link "$LINENO"; then :
8570 eval $cacheid=yes
8571 else
8572 eval $cacheid=no
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 fi
8577
8578
8579 CFLAGS="$xorg_testset_save_CFLAGS"
8580
8581 eval supported=\$$cacheid
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8583 $as_echo "$supported" >&6; }
8584 if test "$supported" = "yes" ; then
8585 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8586 found="yes"
8587 fi
8588 fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604 xorg_testset_save_CFLAGS="$CFLAGS"
8605
8606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 int i;
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 xorg_cv_cc_flag_unknown_warning_option=yes
8619 else
8620 xorg_cv_cc_flag_unknown_warning_option=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628 fi
8629
8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 fi
8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 int i;
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"; then :
8645 xorg_cv_cc_flag_unused_command_line_argument=yes
8646 else
8647 xorg_cv_cc_flag_unused_command_line_argument=no
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8654 CFLAGS="$xorg_testset_save_CFLAGS"
8655 fi
8656
8657 found="no"
8658
8659 if test $found = "no" ; then
8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 fi
8663
8664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666 fi
8667
8668 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8669
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8671 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8672 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8673 if eval \${$cacheid+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 int i;
8679 int
8680 main ()
8681 {
8682
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 if ac_fn_c_try_link "$LINENO"; then :
8688 eval $cacheid=yes
8689 else
8690 eval $cacheid=no
8691 fi
8692 rm -f core conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
8694 fi
8695
8696
8697 CFLAGS="$xorg_testset_save_CFLAGS"
8698
8699 eval supported=\$$cacheid
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8701 $as_echo "$supported" >&6; }
8702 if test "$supported" = "yes" ; then
8703 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8704 found="yes"
8705 fi
8706 fi
8707
8708 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8711 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725 xorg_testset_save_CFLAGS="$CFLAGS"
8726
8727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"; then :
8739 xorg_cv_cc_flag_unknown_warning_option=yes
8740 else
8741 xorg_cv_cc_flag_unknown_warning_option=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8748 CFLAGS="$xorg_testset_save_CFLAGS"
8749 fi
8750
8751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754 fi
8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 int i;
8764 _ACEOF
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 xorg_cv_cc_flag_unused_command_line_argument=yes
8767 else
8768 xorg_cv_cc_flag_unused_command_line_argument=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8775 CFLAGS="$xorg_testset_save_CFLAGS"
8776 fi
8777
8778 found="no"
8779
8780 if test $found = "no" ; then
8781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783 fi
8784
8785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8787 fi
8788
8789 CFLAGS="$CFLAGS -Wimplicit"
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8792 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8793 cacheid=xorg_cv_cc_flag__Wimplicit
8794 if eval \${$cacheid+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 int i;
8800 int
8801 main ()
8802 {
8803
8804 ;
8805 return 0;
8806 }
8807 _ACEOF
8808 if ac_fn_c_try_link "$LINENO"; then :
8809 eval $cacheid=yes
8810 else
8811 eval $cacheid=no
8812 fi
8813 rm -f core conftest.err conftest.$ac_objext \
8814 conftest$ac_exeext conftest.$ac_ext
8815 fi
8816
8817
8818 CFLAGS="$xorg_testset_save_CFLAGS"
8819
8820 eval supported=\$$cacheid
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8822 $as_echo "$supported" >&6; }
8823 if test "$supported" = "yes" ; then
8824 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8825 found="yes"
8826 fi
8827 fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843 xorg_testset_save_CFLAGS="$CFLAGS"
8844
8845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 int i;
8855 _ACEOF
8856 if ac_fn_c_try_compile "$LINENO"; then :
8857 xorg_cv_cc_flag_unknown_warning_option=yes
8858 else
8859 xorg_cv_cc_flag_unknown_warning_option=no
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8866 CFLAGS="$xorg_testset_save_CFLAGS"
8867 fi
8868
8869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872 fi
8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 int i;
8882 _ACEOF
8883 if ac_fn_c_try_compile "$LINENO"; then :
8884 xorg_cv_cc_flag_unused_command_line_argument=yes
8885 else
8886 xorg_cv_cc_flag_unused_command_line_argument=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8893 CFLAGS="$xorg_testset_save_CFLAGS"
8894 fi
8895
8896 found="no"
8897
8898 if test $found = "no" ; then
8899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901 fi
8902
8903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8905 fi
8906
8907 CFLAGS="$CFLAGS -Wnonnull"
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8910 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8911 cacheid=xorg_cv_cc_flag__Wnonnull
8912 if eval \${$cacheid+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 int i;
8918 int
8919 main ()
8920 {
8921
8922 ;
8923 return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 eval $cacheid=yes
8928 else
8929 eval $cacheid=no
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 fi
8934
8935
8936 CFLAGS="$xorg_testset_save_CFLAGS"
8937
8938 eval supported=\$$cacheid
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8940 $as_echo "$supported" >&6; }
8941 if test "$supported" = "yes" ; then
8942 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8943 found="yes"
8944 fi
8945 fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 xorg_testset_save_CFLAGS="$CFLAGS"
8962
8963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 int i;
8973 _ACEOF
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975 xorg_cv_cc_flag_unknown_warning_option=yes
8976 else
8977 xorg_cv_cc_flag_unknown_warning_option=no
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985 fi
8986
8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990 fi
8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 int i;
9000 _ACEOF
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002 xorg_cv_cc_flag_unused_command_line_argument=yes
9003 else
9004 xorg_cv_cc_flag_unused_command_line_argument=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9011 CFLAGS="$xorg_testset_save_CFLAGS"
9012 fi
9013
9014 found="no"
9015
9016 if test $found = "no" ; then
9017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019 fi
9020
9021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023 fi
9024
9025 CFLAGS="$CFLAGS -Winit-self"
9026
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9028 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9029 cacheid=xorg_cv_cc_flag__Winit_self
9030 if eval \${$cacheid+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 int i;
9036 int
9037 main ()
9038 {
9039
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045 eval $cacheid=yes
9046 else
9047 eval $cacheid=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 fi
9052
9053
9054 CFLAGS="$xorg_testset_save_CFLAGS"
9055
9056 eval supported=\$$cacheid
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9058 $as_echo "$supported" >&6; }
9059 if test "$supported" = "yes" ; then
9060 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9061 found="yes"
9062 fi
9063 fi
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079 xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 int i;
9091 _ACEOF
9092 if ac_fn_c_try_compile "$LINENO"; then :
9093 xorg_cv_cc_flag_unknown_warning_option=yes
9094 else
9095 xorg_cv_cc_flag_unknown_warning_option=no
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103 fi
9104
9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 fi
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int i;
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 xorg_cv_cc_flag_unused_command_line_argument=yes
9121 else
9122 xorg_cv_cc_flag_unused_command_line_argument=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130 fi
9131
9132 found="no"
9133
9134 if test $found = "no" ; then
9135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137 fi
9138
9139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141 fi
9142
9143 CFLAGS="$CFLAGS -Wmain"
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9146 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9147 cacheid=xorg_cv_cc_flag__Wmain
9148 if eval \${$cacheid+:} false; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9153 int i;
9154 int
9155 main ()
9156 {
9157
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 if ac_fn_c_try_link "$LINENO"; then :
9163 eval $cacheid=yes
9164 else
9165 eval $cacheid=no
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 fi
9170
9171
9172 CFLAGS="$xorg_testset_save_CFLAGS"
9173
9174 eval supported=\$$cacheid
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9176 $as_echo "$supported" >&6; }
9177 if test "$supported" = "yes" ; then
9178 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9179 found="yes"
9180 fi
9181 fi
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197 xorg_testset_save_CFLAGS="$CFLAGS"
9198
9199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int i;
9209 _ACEOF
9210 if ac_fn_c_try_compile "$LINENO"; then :
9211 xorg_cv_cc_flag_unknown_warning_option=yes
9212 else
9213 xorg_cv_cc_flag_unknown_warning_option=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220 CFLAGS="$xorg_testset_save_CFLAGS"
9221 fi
9222
9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226 fi
9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 int i;
9236 _ACEOF
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238 xorg_cv_cc_flag_unused_command_line_argument=yes
9239 else
9240 xorg_cv_cc_flag_unused_command_line_argument=no
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9247 CFLAGS="$xorg_testset_save_CFLAGS"
9248 fi
9249
9250 found="no"
9251
9252 if test $found = "no" ; then
9253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255 fi
9256
9257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9259 fi
9260
9261 CFLAGS="$CFLAGS -Wmissing-braces"
9262
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9264 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9265 cacheid=xorg_cv_cc_flag__Wmissing_braces
9266 if eval \${$cacheid+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 int i;
9272 int
9273 main ()
9274 {
9275
9276 ;
9277 return 0;
9278 }
9279 _ACEOF
9280 if ac_fn_c_try_link "$LINENO"; then :
9281 eval $cacheid=yes
9282 else
9283 eval $cacheid=no
9284 fi
9285 rm -f core conftest.err conftest.$ac_objext \
9286 conftest$ac_exeext conftest.$ac_ext
9287 fi
9288
9289
9290 CFLAGS="$xorg_testset_save_CFLAGS"
9291
9292 eval supported=\$$cacheid
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9294 $as_echo "$supported" >&6; }
9295 if test "$supported" = "yes" ; then
9296 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9297 found="yes"
9298 fi
9299 fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315 xorg_testset_save_CFLAGS="$CFLAGS"
9316
9317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 int i;
9327 _ACEOF
9328 if ac_fn_c_try_compile "$LINENO"; then :
9329 xorg_cv_cc_flag_unknown_warning_option=yes
9330 else
9331 xorg_cv_cc_flag_unknown_warning_option=no
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9338 CFLAGS="$xorg_testset_save_CFLAGS"
9339 fi
9340
9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344 fi
9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 int i;
9354 _ACEOF
9355 if ac_fn_c_try_compile "$LINENO"; then :
9356 xorg_cv_cc_flag_unused_command_line_argument=yes
9357 else
9358 xorg_cv_cc_flag_unused_command_line_argument=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9365 CFLAGS="$xorg_testset_save_CFLAGS"
9366 fi
9367
9368 found="no"
9369
9370 if test $found = "no" ; then
9371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373 fi
9374
9375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9377 fi
9378
9379 CFLAGS="$CFLAGS -Wsequence-point"
9380
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9382 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9383 cacheid=xorg_cv_cc_flag__Wsequence_point
9384 if eval \${$cacheid+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 int i;
9390 int
9391 main ()
9392 {
9393
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 eval $cacheid=yes
9400 else
9401 eval $cacheid=no
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 fi
9406
9407
9408 CFLAGS="$xorg_testset_save_CFLAGS"
9409
9410 eval supported=\$$cacheid
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9412 $as_echo "$supported" >&6; }
9413 if test "$supported" = "yes" ; then
9414 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9415 found="yes"
9416 fi
9417 fi
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433 xorg_testset_save_CFLAGS="$CFLAGS"
9434
9435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 int i;
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 xorg_cv_cc_flag_unknown_warning_option=yes
9448 else
9449 xorg_cv_cc_flag_unknown_warning_option=no
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 fi
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9456 CFLAGS="$xorg_testset_save_CFLAGS"
9457 fi
9458
9459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 fi
9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"; then :
9474 xorg_cv_cc_flag_unused_command_line_argument=yes
9475 else
9476 xorg_cv_cc_flag_unused_command_line_argument=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9484 fi
9485
9486 found="no"
9487
9488 if test $found = "no" ; then
9489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491 fi
9492
9493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9495 fi
9496
9497 CFLAGS="$CFLAGS -Wreturn-type"
9498
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9500 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9501 cacheid=xorg_cv_cc_flag__Wreturn_type
9502 if eval \${$cacheid+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507 int i;
9508 int
9509 main ()
9510 {
9511
9512 ;
9513 return 0;
9514 }
9515 _ACEOF
9516 if ac_fn_c_try_link "$LINENO"; then :
9517 eval $cacheid=yes
9518 else
9519 eval $cacheid=no
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 fi
9524
9525
9526 CFLAGS="$xorg_testset_save_CFLAGS"
9527
9528 eval supported=\$$cacheid
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9530 $as_echo "$supported" >&6; }
9531 if test "$supported" = "yes" ; then
9532 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9533 found="yes"
9534 fi
9535 fi
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551 xorg_testset_save_CFLAGS="$CFLAGS"
9552
9553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 int i;
9563 _ACEOF
9564 if ac_fn_c_try_compile "$LINENO"; then :
9565 xorg_cv_cc_flag_unknown_warning_option=yes
9566 else
9567 xorg_cv_cc_flag_unknown_warning_option=no
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570 fi
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9574 CFLAGS="$xorg_testset_save_CFLAGS"
9575 fi
9576
9577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580 fi
9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 int i;
9590 _ACEOF
9591 if ac_fn_c_try_compile "$LINENO"; then :
9592 xorg_cv_cc_flag_unused_command_line_argument=yes
9593 else
9594 xorg_cv_cc_flag_unused_command_line_argument=no
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9601 CFLAGS="$xorg_testset_save_CFLAGS"
9602 fi
9603
9604 found="no"
9605
9606 if test $found = "no" ; then
9607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609 fi
9610
9611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9613 fi
9614
9615 CFLAGS="$CFLAGS -Wtrigraphs"
9616
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9618 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9619 cacheid=xorg_cv_cc_flag__Wtrigraphs
9620 if eval \${$cacheid+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9625 int i;
9626 int
9627 main ()
9628 {
9629
9630 ;
9631 return 0;
9632 }
9633 _ACEOF
9634 if ac_fn_c_try_link "$LINENO"; then :
9635 eval $cacheid=yes
9636 else
9637 eval $cacheid=no
9638 fi
9639 rm -f core conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 fi
9642
9643
9644 CFLAGS="$xorg_testset_save_CFLAGS"
9645
9646 eval supported=\$$cacheid
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9648 $as_echo "$supported" >&6; }
9649 if test "$supported" = "yes" ; then
9650 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9651 found="yes"
9652 fi
9653 fi
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669 xorg_testset_save_CFLAGS="$CFLAGS"
9670
9671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 int i;
9681 _ACEOF
9682 if ac_fn_c_try_compile "$LINENO"; then :
9683 xorg_cv_cc_flag_unknown_warning_option=yes
9684 else
9685 xorg_cv_cc_flag_unknown_warning_option=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9692 CFLAGS="$xorg_testset_save_CFLAGS"
9693 fi
9694
9695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698 fi
9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 int i;
9708 _ACEOF
9709 if ac_fn_c_try_compile "$LINENO"; then :
9710 xorg_cv_cc_flag_unused_command_line_argument=yes
9711 else
9712 xorg_cv_cc_flag_unused_command_line_argument=no
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9719 CFLAGS="$xorg_testset_save_CFLAGS"
9720 fi
9721
9722 found="no"
9723
9724 if test $found = "no" ; then
9725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727 fi
9728
9729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9731 fi
9732
9733 CFLAGS="$CFLAGS -Warray-bounds"
9734
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9736 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9737 cacheid=xorg_cv_cc_flag__Warray_bounds
9738 if eval \${$cacheid+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 int i;
9744 int
9745 main ()
9746 {
9747
9748 ;
9749 return 0;
9750 }
9751 _ACEOF
9752 if ac_fn_c_try_link "$LINENO"; then :
9753 eval $cacheid=yes
9754 else
9755 eval $cacheid=no
9756 fi
9757 rm -f core conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
9759 fi
9760
9761
9762 CFLAGS="$xorg_testset_save_CFLAGS"
9763
9764 eval supported=\$$cacheid
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9766 $as_echo "$supported" >&6; }
9767 if test "$supported" = "yes" ; then
9768 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9769 found="yes"
9770 fi
9771 fi
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787 xorg_testset_save_CFLAGS="$CFLAGS"
9788
9789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 int i;
9799 _ACEOF
9800 if ac_fn_c_try_compile "$LINENO"; then :
9801 xorg_cv_cc_flag_unknown_warning_option=yes
9802 else
9803 xorg_cv_cc_flag_unknown_warning_option=no
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 fi
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9810 CFLAGS="$xorg_testset_save_CFLAGS"
9811 fi
9812
9813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816 fi
9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825 int i;
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"; then :
9828 xorg_cv_cc_flag_unused_command_line_argument=yes
9829 else
9830 xorg_cv_cc_flag_unused_command_line_argument=no
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9837 CFLAGS="$xorg_testset_save_CFLAGS"
9838 fi
9839
9840 found="no"
9841
9842 if test $found = "no" ; then
9843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9845 fi
9846
9847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9849 fi
9850
9851 CFLAGS="$CFLAGS -Wwrite-strings"
9852
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9854 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9855 cacheid=xorg_cv_cc_flag__Wwrite_strings
9856 if eval \${$cacheid+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int i;
9862 int
9863 main ()
9864 {
9865
9866 ;
9867 return 0;
9868 }
9869 _ACEOF
9870 if ac_fn_c_try_link "$LINENO"; then :
9871 eval $cacheid=yes
9872 else
9873 eval $cacheid=no
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext \
9876 conftest$ac_exeext conftest.$ac_ext
9877 fi
9878
9879
9880 CFLAGS="$xorg_testset_save_CFLAGS"
9881
9882 eval supported=\$$cacheid
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9884 $as_echo "$supported" >&6; }
9885 if test "$supported" = "yes" ; then
9886 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9887 found="yes"
9888 fi
9889 fi
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905 xorg_testset_save_CFLAGS="$CFLAGS"
9906
9907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916 int i;
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919 xorg_cv_cc_flag_unknown_warning_option=yes
9920 else
9921 xorg_cv_cc_flag_unknown_warning_option=no
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9928 CFLAGS="$xorg_testset_save_CFLAGS"
9929 fi
9930
9931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934 fi
9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 int i;
9944 _ACEOF
9945 if ac_fn_c_try_compile "$LINENO"; then :
9946 xorg_cv_cc_flag_unused_command_line_argument=yes
9947 else
9948 xorg_cv_cc_flag_unused_command_line_argument=no
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9955 CFLAGS="$xorg_testset_save_CFLAGS"
9956 fi
9957
9958 found="no"
9959
9960 if test $found = "no" ; then
9961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963 fi
9964
9965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9967 fi
9968
9969 CFLAGS="$CFLAGS -Waddress"
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9972 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9973 cacheid=xorg_cv_cc_flag__Waddress
9974 if eval \${$cacheid+:} false; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9979 int i;
9980 int
9981 main ()
9982 {
9983
9984 ;
9985 return 0;
9986 }
9987 _ACEOF
9988 if ac_fn_c_try_link "$LINENO"; then :
9989 eval $cacheid=yes
9990 else
9991 eval $cacheid=no
9992 fi
9993 rm -f core conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 fi
9996
9997
9998 CFLAGS="$xorg_testset_save_CFLAGS"
9999
10000 eval supported=\$$cacheid
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10002 $as_echo "$supported" >&6; }
10003 if test "$supported" = "yes" ; then
10004 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10005 found="yes"
10006 fi
10007 fi
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023 xorg_testset_save_CFLAGS="$CFLAGS"
10024
10025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 int i;
10035 _ACEOF
10036 if ac_fn_c_try_compile "$LINENO"; then :
10037 xorg_cv_cc_flag_unknown_warning_option=yes
10038 else
10039 xorg_cv_cc_flag_unknown_warning_option=no
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10042 fi
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10046 CFLAGS="$xorg_testset_save_CFLAGS"
10047 fi
10048
10049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052 fi
10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 int i;
10062 _ACEOF
10063 if ac_fn_c_try_compile "$LINENO"; then :
10064 xorg_cv_cc_flag_unused_command_line_argument=yes
10065 else
10066 xorg_cv_cc_flag_unused_command_line_argument=no
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 fi
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10073 CFLAGS="$xorg_testset_save_CFLAGS"
10074 fi
10075
10076 found="no"
10077
10078 if test $found = "no" ; then
10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10081 fi
10082
10083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10085 fi
10086
10087 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10088
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10090 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10091 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10092 if eval \${$cacheid+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 int i;
10098 int
10099 main ()
10100 {
10101
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 if ac_fn_c_try_link "$LINENO"; then :
10107 eval $cacheid=yes
10108 else
10109 eval $cacheid=no
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 fi
10114
10115
10116 CFLAGS="$xorg_testset_save_CFLAGS"
10117
10118 eval supported=\$$cacheid
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10120 $as_echo "$supported" >&6; }
10121 if test "$supported" = "yes" ; then
10122 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10123 found="yes"
10124 fi
10125 fi
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141 xorg_testset_save_CFLAGS="$CFLAGS"
10142
10143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10147 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 int i;
10153 _ACEOF
10154 if ac_fn_c_try_compile "$LINENO"; then :
10155 xorg_cv_cc_flag_unknown_warning_option=yes
10156 else
10157 xorg_cv_cc_flag_unknown_warning_option=no
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10162 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10164 CFLAGS="$xorg_testset_save_CFLAGS"
10165 fi
10166
10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170 fi
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10173 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10174 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 int i;
10180 _ACEOF
10181 if ac_fn_c_try_compile "$LINENO"; then :
10182 xorg_cv_cc_flag_unused_command_line_argument=yes
10183 else
10184 xorg_cv_cc_flag_unused_command_line_argument=no
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10189 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10191 CFLAGS="$xorg_testset_save_CFLAGS"
10192 fi
10193
10194 found="no"
10195
10196 if test $found = "no" ; then
10197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10199 fi
10200
10201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10203 fi
10204
10205 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10206
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10208 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10209 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10210 if eval \${$cacheid+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 int i;
10216 int
10217 main ()
10218 {
10219
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_c_try_link "$LINENO"; then :
10225 eval $cacheid=yes
10226 else
10227 eval $cacheid=no
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 fi
10232
10233
10234 CFLAGS="$xorg_testset_save_CFLAGS"
10235
10236 eval supported=\$$cacheid
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10238 $as_echo "$supported" >&6; }
10239 if test "$supported" = "yes" ; then
10240 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10241 found="yes"
10242 fi
10243 fi
10244
10245
10246 fi
10247
10248
10249
10250
10251
10252
10253
10254 CWARNFLAGS="$BASE_CFLAGS"
10255 if test "x$GCC" = xyes ; then
10256 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10257 fi
10258
10259
10260
10261
10262
10263
10264
10265
10266 # Check whether --enable-strict-compilation was given.
10267 if test "${enable_strict_compilation+set}" = set; then :
10268 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10269 else
10270 STRICT_COMPILE=no
10271 fi
10272
10273
10274
10275
10276
10277
10278 STRICT_CFLAGS=""
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292 xorg_testset_save_CFLAGS="$CFLAGS"
10293
10294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 int i;
10304 _ACEOF
10305 if ac_fn_c_try_compile "$LINENO"; then :
10306 xorg_cv_cc_flag_unknown_warning_option=yes
10307 else
10308 xorg_cv_cc_flag_unknown_warning_option=no
10309 fi
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10315 CFLAGS="$xorg_testset_save_CFLAGS"
10316 fi
10317
10318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10321 fi
10322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 int i;
10331 _ACEOF
10332 if ac_fn_c_try_compile "$LINENO"; then :
10333 xorg_cv_cc_flag_unused_command_line_argument=yes
10334 else
10335 xorg_cv_cc_flag_unused_command_line_argument=no
10336 fi
10337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10342 CFLAGS="$xorg_testset_save_CFLAGS"
10343 fi
10344
10345 found="no"
10346
10347 if test $found = "no" ; then
10348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350 fi
10351
10352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354 fi
10355
10356 CFLAGS="$CFLAGS -pedantic"
10357
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10359 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10360 cacheid=xorg_cv_cc_flag__pedantic
10361 if eval \${$cacheid+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int i;
10367 int
10368 main ()
10369 {
10370
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376 eval $cacheid=yes
10377 else
10378 eval $cacheid=no
10379 fi
10380 rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382 fi
10383
10384
10385 CFLAGS="$xorg_testset_save_CFLAGS"
10386
10387 eval supported=\$$cacheid
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10389 $as_echo "$supported" >&6; }
10390 if test "$supported" = "yes" ; then
10391 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10392 found="yes"
10393 fi
10394 fi
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410 xorg_testset_save_CFLAGS="$CFLAGS"
10411
10412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h. */
10421 int i;
10422 _ACEOF
10423 if ac_fn_c_try_compile "$LINENO"; then :
10424 xorg_cv_cc_flag_unknown_warning_option=yes
10425 else
10426 xorg_cv_cc_flag_unknown_warning_option=no
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10433 CFLAGS="$xorg_testset_save_CFLAGS"
10434 fi
10435
10436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439 fi
10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 int i;
10449 _ACEOF
10450 if ac_fn_c_try_compile "$LINENO"; then :
10451 xorg_cv_cc_flag_unused_command_line_argument=yes
10452 else
10453 xorg_cv_cc_flag_unused_command_line_argument=no
10454 fi
10455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456 fi
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10460 CFLAGS="$xorg_testset_save_CFLAGS"
10461 fi
10462
10463 found="no"
10464
10465 if test $found = "no" ; then
10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468 fi
10469
10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472 fi
10473
10474 CFLAGS="$CFLAGS -Werror"
10475
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10477 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10478 cacheid=xorg_cv_cc_flag__Werror
10479 if eval \${$cacheid+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484 int i;
10485 int
10486 main ()
10487 {
10488
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 if ac_fn_c_try_link "$LINENO"; then :
10494 eval $cacheid=yes
10495 else
10496 eval $cacheid=no
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext conftest.$ac_ext
10500 fi
10501
10502
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10504
10505 eval supported=\$$cacheid
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10507 $as_echo "$supported" >&6; }
10508 if test "$supported" = "yes" ; then
10509 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10510 found="yes"
10511 fi
10512 fi
10513
10514 if test $found = "no" ; then
10515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10517 fi
10518
10519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10521 fi
10522
10523 CFLAGS="$CFLAGS -errwarn"
10524
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10526 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10527 cacheid=xorg_cv_cc_flag__errwarn
10528 if eval \${$cacheid+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533 int i;
10534 int
10535 main ()
10536 {
10537
10538 ;
10539 return 0;
10540 }
10541 _ACEOF
10542 if ac_fn_c_try_link "$LINENO"; then :
10543 eval $cacheid=yes
10544 else
10545 eval $cacheid=no
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549 fi
10550
10551
10552 CFLAGS="$xorg_testset_save_CFLAGS"
10553
10554 eval supported=\$$cacheid
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10556 $as_echo "$supported" >&6; }
10557 if test "$supported" = "yes" ; then
10558 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10559 found="yes"
10560 fi
10561 fi
10562
10563
10564
10565 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10566 # activate it with -Werror, so we add it here explicitly.
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580 xorg_testset_save_CFLAGS="$CFLAGS"
10581
10582 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10585 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10586 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 int i;
10592 _ACEOF
10593 if ac_fn_c_try_compile "$LINENO"; then :
10594 xorg_cv_cc_flag_unknown_warning_option=yes
10595 else
10596 xorg_cv_cc_flag_unknown_warning_option=no
10597 fi
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 fi
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10601 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10603 CFLAGS="$xorg_testset_save_CFLAGS"
10604 fi
10605
10606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10609 fi
10610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10612 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10613 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 int i;
10619 _ACEOF
10620 if ac_fn_c_try_compile "$LINENO"; then :
10621 xorg_cv_cc_flag_unused_command_line_argument=yes
10622 else
10623 xorg_cv_cc_flag_unused_command_line_argument=no
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 fi
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10628 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10630 CFLAGS="$xorg_testset_save_CFLAGS"
10631 fi
10632
10633 found="no"
10634
10635 if test $found = "no" ; then
10636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10638 fi
10639
10640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10642 fi
10643
10644 CFLAGS="$CFLAGS -Werror=attributes"
10645
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10647 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10648 cacheid=xorg_cv_cc_flag__Werror_attributes
10649 if eval \${$cacheid+:} false; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654 int i;
10655 int
10656 main ()
10657 {
10658
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 eval $cacheid=yes
10665 else
10666 eval $cacheid=no
10667 fi
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 fi
10671
10672
10673 CFLAGS="$xorg_testset_save_CFLAGS"
10674
10675 eval supported=\$$cacheid
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10677 $as_echo "$supported" >&6; }
10678 if test "$supported" = "yes" ; then
10679 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10680 found="yes"
10681 fi
10682 fi
10683
10684
10685
10686 if test "x$STRICT_COMPILE" = "xyes"; then
10687 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10688 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10689 fi
10690
10691
10692
10693
10694
10695
10696 cat >>confdefs.h <<_ACEOF
10697 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10698 _ACEOF
10699
10700 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10701 if test "x$PVM" = "x"; then
10702 PVM="0"
10703 fi
10704
10705 cat >>confdefs.h <<_ACEOF
10706 #define PACKAGE_VERSION_MINOR $PVM
10707 _ACEOF
10708
10709 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10710 if test "x$PVP" = "x"; then
10711 PVP="0"
10712 fi
10713
10714 cat >>confdefs.h <<_ACEOF
10715 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10716 _ACEOF
10717
10718
10719
10720 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10721 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10722 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10723 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10724
10725
10726
10727
10728 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10729 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10730 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10731 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10732 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10733
10734
10735
10736
10737
10738
10739 if test x$APP_MAN_SUFFIX = x ; then
10740 APP_MAN_SUFFIX=1
10741 fi
10742 if test x$APP_MAN_DIR = x ; then
10743 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10744 fi
10745
10746 if test x$LIB_MAN_SUFFIX = x ; then
10747 LIB_MAN_SUFFIX=3
10748 fi
10749 if test x$LIB_MAN_DIR = x ; then
10750 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10751 fi
10752
10753 if test x$FILE_MAN_SUFFIX = x ; then
10754 case $host_os in
10755 # Solaris 2.0 - 11 use SysV man page sections
10756 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10757 *) FILE_MAN_SUFFIX=5 ;;
10758 esac
10759 fi
10760 if test x$FILE_MAN_DIR = x ; then
10761 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10762 fi
10763
10764 if test x$MISC_MAN_SUFFIX = x ; then
10765 case $host_os in
10766 # Solaris 2.0 - 11 use SysV man page sections
10767 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10768 *) MISC_MAN_SUFFIX=7 ;;
10769 esac
10770 fi
10771 if test x$MISC_MAN_DIR = x ; then
10772 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10773 fi
10774
10775 if test x$DRIVER_MAN_SUFFIX = x ; then
10776 case $host_os in
10777 # Solaris 2.0 - 11 use SysV man page sections
10778 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10779 *) DRIVER_MAN_SUFFIX=4 ;;
10780 esac
10781 fi
10782 if test x$DRIVER_MAN_DIR = x ; then
10783 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10784 fi
10785
10786 if test x$ADMIN_MAN_SUFFIX = x ; then
10787 case $host_os in
10788 # Solaris 2.0 - 11 use SysV man page sections
10789 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10790 *) ADMIN_MAN_SUFFIX=8 ;;
10791 esac
10792 fi
10793 if test x$ADMIN_MAN_DIR = x ; then
10794 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10795 fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811 XORG_MAN_PAGE="X Version 11"
10812
10813 MAN_SUBSTS="\
10814 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10815 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10816 -e 's|__xservername__|Xorg|g' \
10817 -e 's|__xconfigfile__|xorg.conf|g' \
10818 -e 's|__projectroot__|\$(prefix)|g' \
10819 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10820 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10821 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10822 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10823 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10824 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10825 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10826
10827
10828
10829 # Check whether --enable-silent-rules was given.
10830 if test "${enable_silent_rules+set}" = set; then :
10831 enableval=$enable_silent_rules;
10832 fi
10833
10834 case $enable_silent_rules in # (((
10835 yes) AM_DEFAULT_VERBOSITY=0;;
10836 no) AM_DEFAULT_VERBOSITY=1;;
10837 *) AM_DEFAULT_VERBOSITY=0;;
10838 esac
10839 am_make=${MAKE-make}
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10841 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10842 if ${am_cv_make_support_nested_variables+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if $as_echo 'TRUE=$(BAR$(V))
10846 BAR0=false
10847 BAR1=true
10848 V=1
10849 am__doit:
10850 @$(TRUE)
10851 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10852 am_cv_make_support_nested_variables=yes
10853 else
10854 am_cv_make_support_nested_variables=no
10855 fi
10856 fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10858 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10859 if test $am_cv_make_support_nested_variables = yes; then
10860 AM_V='$(V)'
10861 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10862 else
10863 AM_V=$AM_DEFAULT_VERBOSITY
10864 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10865 fi
10866 AM_BACKSLASH='\'
10867
10868
10869
10870 # Checks for system functions
10871 for ac_func in usleep
10872 do :
10873 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
10874 if test "x$ac_cv_func_usleep" = xyes; then :
10875 cat >>confdefs.h <<_ACEOF
10876 #define HAVE_USLEEP 1
10877 _ACEOF
10878
10879 fi
10880 done
10881
10882
10883 # Checks for pkg-config packages
10884
10885 pkg_failed=no
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
10887 $as_echo_n "checking for XSET... " >&6; }
10888
10889 if test -n "$XSET_CFLAGS"; then
10890 pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
10891 elif test -n "$PKG_CONFIG"; then
10892 if test -n "$PKG_CONFIG" && \
10893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10894 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
10895 ac_status=$?
10896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10897 test $ac_status = 0; }; then
10898 pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
10899 test "x$?" != "x0" && pkg_failed=yes
10900 else
10901 pkg_failed=yes
10902 fi
10903 else
10904 pkg_failed=untried
10905 fi
10906 if test -n "$XSET_LIBS"; then
10907 pkg_cv_XSET_LIBS="$XSET_LIBS"
10908 elif test -n "$PKG_CONFIG"; then
10909 if test -n "$PKG_CONFIG" && \
10910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10911 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
10912 ac_status=$?
10913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914 test $ac_status = 0; }; then
10915 pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
10916 test "x$?" != "x0" && pkg_failed=yes
10917 else
10918 pkg_failed=yes
10919 fi
10920 else
10921 pkg_failed=untried
10922 fi
10923
10924
10925
10926 if test $pkg_failed = yes; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10929
10930 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10931 _pkg_short_errors_supported=yes
10932 else
10933 _pkg_short_errors_supported=no
10934 fi
10935 if test $_pkg_short_errors_supported = yes; then
10936 XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
10937 else
10938 XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
10939 fi
10940 # Put the nasty error message in config.log where it belongs
10941 echo "$XSET_PKG_ERRORS" >&5
10942
10943 as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
10944
10945 $XSET_PKG_ERRORS
10946
10947 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10948 installed software in a non-standard prefix.
10949
10950 Alternatively, you may set the environment variables XSET_CFLAGS
10951 and XSET_LIBS to avoid the need to call pkg-config.
10952 See the pkg-config man page for more details." "$LINENO" 5
10953 elif test $pkg_failed = untried; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10958 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10959 is in your PATH or set the PKG_CONFIG environment variable to the full
10960 path to pkg-config.
10961
10962 Alternatively, you may set the environment variables XSET_CFLAGS
10963 and XSET_LIBS to avoid the need to call pkg-config.
10964 See the pkg-config man page for more details.
10965
10966 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10967 See \`config.log' for more details" "$LINENO" 5; }
10968 else
10969 XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
10970 XSET_LIBS=$pkg_cv_XSET_LIBS
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972 $as_echo "yes" >&6; }
10973
10974 fi
10975
10976 # This is used below to allow <X11/Xlib.h> to be found
10977
10978 pkg_failed=no
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
10980 $as_echo_n "checking for SET_X11... " >&6; }
10981
10982 if test -n "$SET_X11_CFLAGS"; then
10983 pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
10984 elif test -n "$PKG_CONFIG"; then
10985 if test -n "$PKG_CONFIG" && \
10986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
10987 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
10988 ac_status=$?
10989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10990 test $ac_status = 0; }; then
10991 pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
10992 test "x$?" != "x0" && pkg_failed=yes
10993 else
10994 pkg_failed=yes
10995 fi
10996 else
10997 pkg_failed=untried
10998 fi
10999 if test -n "$SET_X11_LIBS"; then
11000 pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
11001 elif test -n "$PKG_CONFIG"; then
11002 if test -n "$PKG_CONFIG" && \
11003 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11004 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11005 ac_status=$?
11006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007 test $ac_status = 0; }; then
11008 pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11009 test "x$?" != "x0" && pkg_failed=yes
11010 else
11011 pkg_failed=yes
11012 fi
11013 else
11014 pkg_failed=untried
11015 fi
11016
11017
11018
11019 if test $pkg_failed = yes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022
11023 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11024 _pkg_short_errors_supported=yes
11025 else
11026 _pkg_short_errors_supported=no
11027 fi
11028 if test $_pkg_short_errors_supported = yes; then
11029 SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11030 else
11031 SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11032 fi
11033 # Put the nasty error message in config.log where it belongs
11034 echo "$SET_X11_PKG_ERRORS" >&5
11035
11036 as_fn_error $? "Package requirements (x11) were not met:
11037
11038 $SET_X11_PKG_ERRORS
11039
11040 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11041 installed software in a non-standard prefix.
11042
11043 Alternatively, you may set the environment variables SET_X11_CFLAGS
11044 and SET_X11_LIBS to avoid the need to call pkg-config.
11045 See the pkg-config man page for more details." "$LINENO" 5
11046 elif test $pkg_failed = untried; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11051 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11052 is in your PATH or set the PKG_CONFIG environment variable to the full
11053 path to pkg-config.
11054
11055 Alternatively, you may set the environment variables SET_X11_CFLAGS
11056 and SET_X11_LIBS to avoid the need to call pkg-config.
11057 See the pkg-config man page for more details.
11058
11059 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11060 See \`config.log' for more details" "$LINENO" 5; }
11061 else
11062 SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
11063 SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11065 $as_echo "yes" >&6; }
11066
11067 fi
11068
11069
11070 pkg_failed=no
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
11072 $as_echo_n "checking for SET_XEXT... " >&6; }
11073
11074 if test -n "$SET_XEXT_CFLAGS"; then
11075 pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
11076 elif test -n "$PKG_CONFIG"; then
11077 if test -n "$PKG_CONFIG" && \
11078 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11079 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11080 ac_status=$?
11081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082 test $ac_status = 0; }; then
11083 pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11084 test "x$?" != "x0" && pkg_failed=yes
11085 else
11086 pkg_failed=yes
11087 fi
11088 else
11089 pkg_failed=untried
11090 fi
11091 if test -n "$SET_XEXT_LIBS"; then
11092 pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
11093 elif test -n "$PKG_CONFIG"; then
11094 if test -n "$PKG_CONFIG" && \
11095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11096 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11097 ac_status=$?
11098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11099 test $ac_status = 0; }; then
11100 pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11101 test "x$?" != "x0" && pkg_failed=yes
11102 else
11103 pkg_failed=yes
11104 fi
11105 else
11106 pkg_failed=untried
11107 fi
11108
11109
11110
11111 if test $pkg_failed = yes; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11114
11115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11116 _pkg_short_errors_supported=yes
11117 else
11118 _pkg_short_errors_supported=no
11119 fi
11120 if test $_pkg_short_errors_supported = yes; then
11121 SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
11122 else
11123 SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
11124 fi
11125 # Put the nasty error message in config.log where it belongs
11126 echo "$SET_XEXT_PKG_ERRORS" >&5
11127
11128 echo "not found"
11129 elif test $pkg_failed = untried; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11132 echo "not found"
11133 else
11134 SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
11135 SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137 $as_echo "yes" >&6; }
11138 SAVE_CPPFLAGS="$CPPFLAGS"
11139 CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
11140 for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
11141 do :
11142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11144 "
11145 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11146 cat >>confdefs.h <<_ACEOF
11147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148 _ACEOF
11149
11150 fi
11151
11152 done
11153
11154 CPPFLAGS="$SAVE_CPPFLAGS"
11155 fi
11156
11157
11158 pkg_failed=no
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
11160 $as_echo_n "checking for SET_XKB... " >&6; }
11161
11162 if test -n "$SET_XKB_CFLAGS"; then
11163 pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
11164 elif test -n "$PKG_CONFIG"; then
11165 if test -n "$PKG_CONFIG" && \
11166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11167 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11168 ac_status=$?
11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; }; then
11171 pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11172 test "x$?" != "x0" && pkg_failed=yes
11173 else
11174 pkg_failed=yes
11175 fi
11176 else
11177 pkg_failed=untried
11178 fi
11179 if test -n "$SET_XKB_LIBS"; then
11180 pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
11181 elif test -n "$PKG_CONFIG"; then
11182 if test -n "$PKG_CONFIG" && \
11183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11184 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11185 ac_status=$?
11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; }; then
11188 pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11189 test "x$?" != "x0" && pkg_failed=yes
11190 else
11191 pkg_failed=yes
11192 fi
11193 else
11194 pkg_failed=untried
11195 fi
11196
11197
11198
11199 if test $pkg_failed = yes; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202
11203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11204 _pkg_short_errors_supported=yes
11205 else
11206 _pkg_short_errors_supported=no
11207 fi
11208 if test $_pkg_short_errors_supported = yes; then
11209 SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11210 else
11211 SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11212 fi
11213 # Put the nasty error message in config.log where it belongs
11214 echo "$SET_XKB_PKG_ERRORS" >&5
11215
11216 echo "not found"
11217 elif test $pkg_failed = untried; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11220 echo "not found"
11221 else
11222 SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
11223 SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11225 $as_echo "yes" >&6; }
11226 SAVE_CPPFLAGS="$CPPFLAGS"
11227 CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
11228 for ac_header in X11/XKBlib.h
11229 do :
11230 ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
11231 "
11232 if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
11233 cat >>confdefs.h <<_ACEOF
11234 #define HAVE_X11_XKBLIB_H 1
11235 _ACEOF
11236
11237 fi
11238
11239 done
11240
11241 CPPFLAGS="$SAVE_CPPFLAGS"
11242 fi
11243
11244
11245 # Check whether --with-xf86misc was given.
11246 if test "${with_xf86misc+set}" = set; then :
11247 withval=$with_xf86misc; USE_XF86MISC="$withval"
11248 else
11249 USE_XF86MISC="yes"
11250 fi
11251
11252 if test "x$USE_XF86MISC" != "xno" ; then
11253
11254 pkg_failed=no
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
11256 $as_echo_n "checking for SET_XF86MISC... " >&6; }
11257
11258 if test -n "$SET_XF86MISC_CFLAGS"; then
11259 pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
11260 elif test -n "$PKG_CONFIG"; then
11261 if test -n "$PKG_CONFIG" && \
11262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11263 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11264 ac_status=$?
11265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11266 test $ac_status = 0; }; then
11267 pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11268 test "x$?" != "x0" && pkg_failed=yes
11269 else
11270 pkg_failed=yes
11271 fi
11272 else
11273 pkg_failed=untried
11274 fi
11275 if test -n "$SET_XF86MISC_LIBS"; then
11276 pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
11277 elif test -n "$PKG_CONFIG"; then
11278 if test -n "$PKG_CONFIG" && \
11279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11280 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11281 ac_status=$?
11282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283 test $ac_status = 0; }; then
11284 pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11285 test "x$?" != "x0" && pkg_failed=yes
11286 else
11287 pkg_failed=yes
11288 fi
11289 else
11290 pkg_failed=untried
11291 fi
11292
11293
11294
11295 if test $pkg_failed = yes; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11298
11299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11300 _pkg_short_errors_supported=yes
11301 else
11302 _pkg_short_errors_supported=no
11303 fi
11304 if test $_pkg_short_errors_supported = yes; then
11305 SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1`
11306 else
11307 SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1`
11308 fi
11309 # Put the nasty error message in config.log where it belongs
11310 echo "$SET_XF86MISC_PKG_ERRORS" >&5
11311
11312 echo "not found"
11313 elif test $pkg_failed = untried; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11316 echo "not found"
11317 else
11318 SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
11319 SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11321 $as_echo "yes" >&6; }
11322 SAVE_CPPFLAGS="$CPPFLAGS"
11323 CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
11324 for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
11325 do :
11326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11328 #include <X11/Xproto.h>
11329 "
11330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11331 cat >>confdefs.h <<_ACEOF
11332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333 _ACEOF
11334
11335 fi
11336
11337 done
11338
11339 CPPFLAGS="$SAVE_CPPFLAGS"
11340 fi
11341 else
11342 echo "without xf86misc"
11343 fi
11344
11345
11346 # Check whether --with-fontcache was given.
11347 if test "${with_fontcache+set}" = set; then :
11348 withval=$with_fontcache; USE_XFONTCACHE="$withval"
11349 else
11350 USE_XFONTCACHE="yes"
11351 fi
11352
11353 if test "x$USE_XFONTCACHE" != "xno" ; then
11354
11355 pkg_failed=no
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
11357 $as_echo_n "checking for SET_FONTCACHE... " >&6; }
11358
11359 if test -n "$SET_FONTCACHE_CFLAGS"; then
11360 pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
11361 elif test -n "$PKG_CONFIG"; then
11362 if test -n "$PKG_CONFIG" && \
11363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11364 ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11365 ac_status=$?
11366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11367 test $ac_status = 0; }; then
11368 pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
11369 test "x$?" != "x0" && pkg_failed=yes
11370 else
11371 pkg_failed=yes
11372 fi
11373 else
11374 pkg_failed=untried
11375 fi
11376 if test -n "$SET_FONTCACHE_LIBS"; then
11377 pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
11378 elif test -n "$PKG_CONFIG"; then
11379 if test -n "$PKG_CONFIG" && \
11380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11381 ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11382 ac_status=$?
11383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11384 test $ac_status = 0; }; then
11385 pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
11386 test "x$?" != "x0" && pkg_failed=yes
11387 else
11388 pkg_failed=yes
11389 fi
11390 else
11391 pkg_failed=untried
11392 fi
11393
11394
11395
11396 if test $pkg_failed = yes; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11399
11400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11401 _pkg_short_errors_supported=yes
11402 else
11403 _pkg_short_errors_supported=no
11404 fi
11405 if test $_pkg_short_errors_supported = yes; then
11406 SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfontcache" 2>&1`
11407 else
11408 SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfontcache" 2>&1`
11409 fi
11410 # Put the nasty error message in config.log where it belongs
11411 echo "$SET_FONTCACHE_PKG_ERRORS" >&5
11412
11413 echo "not found"
11414 elif test $pkg_failed = untried; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11417 echo "not found"
11418 else
11419 SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
11420 SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11422 $as_echo "yes" >&6; }
11423 SAVE_CPPFLAGS="$CPPFLAGS"
11424 CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
11425 for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
11426 do :
11427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11429 "
11430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11431 cat >>confdefs.h <<_ACEOF
11432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 _ACEOF
11434
11435 fi
11436
11437 done
11438
11439 CPPFLAGS="$SAVE_CPPFLAGS"
11440 fi
11441 else
11442 echo "without fontcache"
11443 fi
11444
11445 XSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
11446 XSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
11447
11448
11449 ac_config_files="$ac_config_files Makefile man/Makefile"
11450
11451 cat >confcache <<\_ACEOF
11452 # This file is a shell script that caches the results of configure
11453 # tests run on this system so they can be shared between configure
11454 # scripts and configure runs, see configure's option --config-cache.
11455 # It is not useful on other systems. If it contains results you don't
11456 # want to keep, you may remove or edit it.
11457 #
11458 # config.status only pays attention to the cache file if you give it
11459 # the --recheck option to rerun configure.
11460 #
11461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11463 # following values.
11464
11465 _ACEOF
11466
11467 # The following way of writing the cache mishandles newlines in values,
11468 # but we know of no workaround that is simple, portable, and efficient.
11469 # So, we kill variables containing newlines.
11470 # Ultrix sh set writes to stderr and can't be redirected directly,
11471 # and sets the high bit in the cache file unless we assign to the vars.
11472 (
11473 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11474 eval ac_val=\$$ac_var
11475 case $ac_val in #(
11476 *${as_nl}*)
11477 case $ac_var in #(
11478 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11479 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11480 esac
11481 case $ac_var in #(
11482 _ | IFS | as_nl) ;; #(
11483 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11484 *) { eval $ac_var=; unset $ac_var;} ;;
11485 esac ;;
11486 esac
11487 done
11488
11489 (set) 2>&1 |
11490 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11491 *${as_nl}ac_space=\ *)
11492 # `set' does not quote correctly, so add quotes: double-quote
11493 # substitution turns \\\\ into \\, and sed turns \\ into \.
11494 sed -n \
11495 "s/'/'\\\\''/g;
11496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11497 ;; #(
11498 *)
11499 # `set' quotes correctly as required by POSIX, so do not add quotes.
11500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11501 ;;
11502 esac |
11503 sort
11504 ) |
11505 sed '
11506 /^ac_cv_env_/b end
11507 t clear
11508 :clear
11509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11510 t end
11511 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11512 :end' >>confcache
11513 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11514 if test -w "$cache_file"; then
11515 if test "x$cache_file" != "x/dev/null"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11517 $as_echo "$as_me: updating cache $cache_file" >&6;}
11518 if test ! -f "$cache_file" || test -h "$cache_file"; then
11519 cat confcache >"$cache_file"
11520 else
11521 case $cache_file in #(
11522 */* | ?:*)
11523 mv -f confcache "$cache_file"$$ &&
11524 mv -f "$cache_file"$$ "$cache_file" ;; #(
11525 *)
11526 mv -f confcache "$cache_file" ;;
11527 esac
11528 fi
11529 fi
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11532 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11533 fi
11534 fi
11535 rm -f confcache
11536
11537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11538 # Let make expand exec_prefix.
11539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11540
11541 DEFS=-DHAVE_CONFIG_H
11542
11543 ac_libobjs=
11544 ac_ltlibobjs=
11545 U=
11546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11547 # 1. Remove the extension, and $U if already installed.
11548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11549 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11551 # will be set to the directory where LIBOBJS objects are built.
11552 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11553 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11554 done
11555 LIBOBJS=$ac_libobjs
11556
11557 LTLIBOBJS=$ac_ltlibobjs
11558
11559
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11561 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11562 if test -n "$am_sleep_pid"; then
11563 # Hide warnings about reused PIDs.
11564 wait $am_sleep_pid 2>/dev/null
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11567 $as_echo "done" >&6; }
11568 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11569 as_fn_error $? "conditional \"AMDEP\" was never defined.
11570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11571 fi
11572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11573 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11575 fi
11576 if test -n "$EXEEXT"; then
11577 am__EXEEXT_TRUE=
11578 am__EXEEXT_FALSE='#'
11579 else
11580 am__EXEEXT_TRUE='#'
11581 am__EXEEXT_FALSE=
11582 fi
11583
11584
11585 : "${CONFIG_STATUS=./config.status}"
11586 ac_write_fail=0
11587 ac_clean_files_save=$ac_clean_files
11588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11591 as_write_fail=0
11592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11593 #! $SHELL
11594 # Generated by $as_me.
11595 # Run this file to recreate the current configuration.
11596 # Compiler output produced by configure, useful for debugging
11597 # configure, is in config.log if it exists.
11598
11599 debug=false
11600 ac_cs_recheck=false
11601 ac_cs_silent=false
11602
11603 SHELL=\${CONFIG_SHELL-$SHELL}
11604 export SHELL
11605 _ASEOF
11606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11607 ## -------------------- ##
11608 ## M4sh Initialization. ##
11609 ## -------------------- ##
11610
11611 # Be more Bourne compatible
11612 DUALCASE=1; export DUALCASE # for MKS sh
11613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11614 emulate sh
11615 NULLCMD=:
11616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11617 # is contrary to our usage. Disable this feature.
11618 alias -g '${1+"$@"}'='"$@"'
11619 setopt NO_GLOB_SUBST
11620 else
11621 case `(set -o) 2>/dev/null` in #(
11622 *posix*) :
11623 set -o posix ;; #(
11624 *) :
11625 ;;
11626 esac
11627 fi
11628
11629
11630 as_nl='
11631 '
11632 export as_nl
11633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11637 # Prefer a ksh shell builtin over an external printf program on Solaris,
11638 # but without wasting forks for bash or zsh.
11639 if test -z "$BASH_VERSION$ZSH_VERSION" \
11640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11641 as_echo='print -r --'
11642 as_echo_n='print -rn --'
11643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11644 as_echo='printf %s\n'
11645 as_echo_n='printf %s'
11646 else
11647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11649 as_echo_n='/usr/ucb/echo -n'
11650 else
11651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11652 as_echo_n_body='eval
11653 arg=$1;
11654 case $arg in #(
11655 *"$as_nl"*)
11656 expr "X$arg" : "X\\(.*\\)$as_nl";
11657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11658 esac;
11659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11660 '
11661 export as_echo_n_body
11662 as_echo_n='sh -c $as_echo_n_body as_echo'
11663 fi
11664 export as_echo_body
11665 as_echo='sh -c $as_echo_body as_echo'
11666 fi
11667
11668 # The user is always right.
11669 if test "${PATH_SEPARATOR+set}" != set; then
11670 PATH_SEPARATOR=:
11671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11673 PATH_SEPARATOR=';'
11674 }
11675 fi
11676
11677
11678 # IFS
11679 # We need space, tab and new line, in precisely that order. Quoting is
11680 # there to prevent editors from complaining about space-tab.
11681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11682 # splitting by setting IFS to empty value.)
11683 IFS=" "" $as_nl"
11684
11685 # Find who we are. Look in the path if we contain no directory separator.
11686 as_myself=
11687 case $0 in #((
11688 *[\\/]* ) as_myself=$0 ;;
11689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11695 done
11696 IFS=$as_save_IFS
11697
11698 ;;
11699 esac
11700 # We did not find ourselves, most probably we were run as `sh COMMAND'
11701 # in which case we are not to be found in the path.
11702 if test "x$as_myself" = x; then
11703 as_myself=$0
11704 fi
11705 if test ! -f "$as_myself"; then
11706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11707 exit 1
11708 fi
11709
11710 # Unset variables that we do not need and which cause bugs (e.g. in
11711 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11712 # suppresses any "Segmentation fault" message there. '((' could
11713 # trigger a bug in pdksh 5.2.14.
11714 for as_var in BASH_ENV ENV MAIL MAILPATH
11715 do eval test x\${$as_var+set} = xset \
11716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11717 done
11718 PS1='$ '
11719 PS2='> '
11720 PS4='+ '
11721
11722 # NLS nuisances.
11723 LC_ALL=C
11724 export LC_ALL
11725 LANGUAGE=C
11726 export LANGUAGE
11727
11728 # CDPATH.
11729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11730
11731
11732 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11733 # ----------------------------------------
11734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11736 # script with STATUS, using 1 if that was 0.
11737 as_fn_error ()
11738 {
11739 as_status=$1; test $as_status -eq 0 && as_status=1
11740 if test "$4"; then
11741 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11742 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11743 fi
11744 $as_echo "$as_me: error: $2" >&2
11745 as_fn_exit $as_status
11746 } # as_fn_error
11747
11748
11749 # as_fn_set_status STATUS
11750 # -----------------------
11751 # Set $? to STATUS, without forking.
11752 as_fn_set_status ()
11753 {
11754 return $1
11755 } # as_fn_set_status
11756
11757 # as_fn_exit STATUS
11758 # -----------------
11759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11760 as_fn_exit ()
11761 {
11762 set +e
11763 as_fn_set_status $1
11764 exit $1
11765 } # as_fn_exit
11766
11767 # as_fn_unset VAR
11768 # ---------------
11769 # Portably unset VAR.
11770 as_fn_unset ()
11771 {
11772 { eval $1=; unset $1;}
11773 }
11774 as_unset=as_fn_unset
11775 # as_fn_append VAR VALUE
11776 # ----------------------
11777 # Append the text in VALUE to the end of the definition contained in VAR. Take
11778 # advantage of any shell optimizations that allow amortized linear growth over
11779 # repeated appends, instead of the typical quadratic growth present in naive
11780 # implementations.
11781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11782 eval 'as_fn_append ()
11783 {
11784 eval $1+=\$2
11785 }'
11786 else
11787 as_fn_append ()
11788 {
11789 eval $1=\$$1\$2
11790 }
11791 fi # as_fn_append
11792
11793 # as_fn_arith ARG...
11794 # ------------------
11795 # Perform arithmetic evaluation on the ARGs, and store the result in the
11796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11797 # must be portable across $(()) and expr.
11798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11799 eval 'as_fn_arith ()
11800 {
11801 as_val=$(( $* ))
11802 }'
11803 else
11804 as_fn_arith ()
11805 {
11806 as_val=`expr "$@" || test $? -eq 1`
11807 }
11808 fi # as_fn_arith
11809
11810
11811 if expr a : '\(a\)' >/dev/null 2>&1 &&
11812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11813 as_expr=expr
11814 else
11815 as_expr=false
11816 fi
11817
11818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11819 as_basename=basename
11820 else
11821 as_basename=false
11822 fi
11823
11824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11825 as_dirname=dirname
11826 else
11827 as_dirname=false
11828 fi
11829
11830 as_me=`$as_basename -- "$0" ||
11831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11832 X"$0" : 'X\(//\)$' \| \
11833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11834 $as_echo X/"$0" |
11835 sed '/^.*\/\([^/][^/]*\)\/*$/{
11836 s//\1/
11837 q
11838 }
11839 /^X\/\(\/\/\)$/{
11840 s//\1/
11841 q
11842 }
11843 /^X\/\(\/\).*/{
11844 s//\1/
11845 q
11846 }
11847 s/.*/./; q'`
11848
11849 # Avoid depending upon Character Ranges.
11850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11853 as_cr_digits='0123456789'
11854 as_cr_alnum=$as_cr_Letters$as_cr_digits
11855
11856 ECHO_C= ECHO_N= ECHO_T=
11857 case `echo -n x` in #(((((
11858 -n*)
11859 case `echo 'xy\c'` in
11860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11861 xy) ECHO_C='\c';;
11862 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11863 ECHO_T=' ';;
11864 esac;;
11865 *)
11866 ECHO_N='-n';;
11867 esac
11868
11869 rm -f conf$$ conf$$.exe conf$$.file
11870 if test -d conf$$.dir; then
11871 rm -f conf$$.dir/conf$$.file
11872 else
11873 rm -f conf$$.dir
11874 mkdir conf$$.dir 2>/dev/null
11875 fi
11876 if (echo >conf$$.file) 2>/dev/null; then
11877 if ln -s conf$$.file conf$$ 2>/dev/null; then
11878 as_ln_s='ln -s'
11879 # ... but there are two gotchas:
11880 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11881 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11882 # In both cases, we have to default to `cp -pR'.
11883 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11884 as_ln_s='cp -pR'
11885 elif ln conf$$.file conf$$ 2>/dev/null; then
11886 as_ln_s=ln
11887 else
11888 as_ln_s='cp -pR'
11889 fi
11890 else
11891 as_ln_s='cp -pR'
11892 fi
11893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11894 rmdir conf$$.dir 2>/dev/null
11895
11896
11897 # as_fn_mkdir_p
11898 # -------------
11899 # Create "$as_dir" as a directory, including parents if necessary.
11900 as_fn_mkdir_p ()
11901 {
11902
11903 case $as_dir in #(
11904 -*) as_dir=./$as_dir;;
11905 esac
11906 test -d "$as_dir" || eval $as_mkdir_p || {
11907 as_dirs=
11908 while :; do
11909 case $as_dir in #(
11910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11911 *) as_qdir=$as_dir;;
11912 esac
11913 as_dirs="'$as_qdir' $as_dirs"
11914 as_dir=`$as_dirname -- "$as_dir" ||
11915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11916 X"$as_dir" : 'X\(//\)[^/]' \| \
11917 X"$as_dir" : 'X\(//\)$' \| \
11918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11919 $as_echo X"$as_dir" |
11920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11921 s//\1/
11922 q
11923 }
11924 /^X\(\/\/\)[^/].*/{
11925 s//\1/
11926 q
11927 }
11928 /^X\(\/\/\)$/{
11929 s//\1/
11930 q
11931 }
11932 /^X\(\/\).*/{
11933 s//\1/
11934 q
11935 }
11936 s/.*/./; q'`
11937 test -d "$as_dir" && break
11938 done
11939 test -z "$as_dirs" || eval "mkdir $as_dirs"
11940 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11941
11942
11943 } # as_fn_mkdir_p
11944 if mkdir -p . 2>/dev/null; then
11945 as_mkdir_p='mkdir -p "$as_dir"'
11946 else
11947 test -d ./-p && rmdir ./-p
11948 as_mkdir_p=false
11949 fi
11950
11951
11952 # as_fn_executable_p FILE
11953 # -----------------------
11954 # Test if FILE is an executable regular file.
11955 as_fn_executable_p ()
11956 {
11957 test -f "$1" && test -x "$1"
11958 } # as_fn_executable_p
11959 as_test_x='test -x'
11960 as_executable_p=as_fn_executable_p
11961
11962 # Sed expression to map a string onto a valid CPP name.
11963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11964
11965 # Sed expression to map a string onto a valid variable name.
11966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11967
11968
11969 exec 6>&1
11970 ## ----------------------------------- ##
11971 ## Main body of $CONFIG_STATUS script. ##
11972 ## ----------------------------------- ##
11973 _ASEOF
11974 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11975
11976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11977 # Save the log message, to keep $0 and so on meaningful, and to
11978 # report actual input values of CONFIG_FILES etc. instead of their
11979 # values after options handling.
11980 ac_log="
11981 This file was extended by xset $as_me 1.2.4, which was
11982 generated by GNU Autoconf 2.69. Invocation command line was
11983
11984 CONFIG_FILES = $CONFIG_FILES
11985 CONFIG_HEADERS = $CONFIG_HEADERS
11986 CONFIG_LINKS = $CONFIG_LINKS
11987 CONFIG_COMMANDS = $CONFIG_COMMANDS
11988 $ $0 $@
11989
11990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11991 "
11992
11993 _ACEOF
11994
11995 case $ac_config_files in *"
11996 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11997 esac
11998
11999 case $ac_config_headers in *"
12000 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12001 esac
12002
12003
12004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12005 # Files that config.status was made for.
12006 config_files="$ac_config_files"
12007 config_headers="$ac_config_headers"
12008 config_commands="$ac_config_commands"
12009
12010 _ACEOF
12011
12012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12013 ac_cs_usage="\
12014 \`$as_me' instantiates files and other configuration actions
12015 from templates according to the current configuration. Unless the files
12016 and actions are specified as TAGs, all are instantiated by default.
12017
12018 Usage: $0 [OPTION]... [TAG]...
12019
12020 -h, --help print this help, then exit
12021 -V, --version print version number and configuration settings, then exit
12022 --config print configuration, then exit
12023 -q, --quiet, --silent
12024 do not print progress messages
12025 -d, --debug don't remove temporary files
12026 --recheck update $as_me by reconfiguring in the same conditions
12027 --file=FILE[:TEMPLATE]
12028 instantiate the configuration file FILE
12029 --header=FILE[:TEMPLATE]
12030 instantiate the configuration header FILE
12031
12032 Configuration files:
12033 $config_files
12034
12035 Configuration headers:
12036 $config_headers
12037
12038 Configuration commands:
12039 $config_commands
12040
12041 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12042
12043 _ACEOF
12044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12045 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12046 ac_cs_version="\\
12047 xset config.status 1.2.4
12048 configured by $0, generated by GNU Autoconf 2.69,
12049 with options \\"\$ac_cs_config\\"
12050
12051 Copyright (C) 2012 Free Software Foundation, Inc.
12052 This config.status script is free software; the Free Software Foundation
12053 gives unlimited permission to copy, distribute and modify it."
12054
12055 ac_pwd='$ac_pwd'
12056 srcdir='$srcdir'
12057 INSTALL='$INSTALL'
12058 MKDIR_P='$MKDIR_P'
12059 AWK='$AWK'
12060 test -n "\$AWK" || AWK=awk
12061 _ACEOF
12062
12063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12064 # The default lists apply if the user does not specify any file.
12065 ac_need_defaults=:
12066 while test $# != 0
12067 do
12068 case $1 in
12069 --*=?*)
12070 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12071 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12072 ac_shift=:
12073 ;;
12074 --*=)
12075 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12076 ac_optarg=
12077 ac_shift=:
12078 ;;
12079 *)
12080 ac_option=$1
12081 ac_optarg=$2
12082 ac_shift=shift
12083 ;;
12084 esac
12085
12086 case $ac_option in
12087 # Handling of the options.
12088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12089 ac_cs_recheck=: ;;
12090 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12091 $as_echo "$ac_cs_version"; exit ;;
12092 --config | --confi | --conf | --con | --co | --c )
12093 $as_echo "$ac_cs_config"; exit ;;
12094 --debug | --debu | --deb | --de | --d | -d )
12095 debug=: ;;
12096 --file | --fil | --fi | --f )
12097 $ac_shift
12098 case $ac_optarg in
12099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12100 '') as_fn_error $? "missing file argument" ;;
12101 esac
12102 as_fn_append CONFIG_FILES " '$ac_optarg'"
12103 ac_need_defaults=false;;
12104 --header | --heade | --head | --hea )
12105 $ac_shift
12106 case $ac_optarg in
12107 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12108 esac
12109 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12110 ac_need_defaults=false;;
12111 --he | --h)
12112 # Conflict between --help and --header
12113 as_fn_error $? "ambiguous option: \`$1'
12114 Try \`$0 --help' for more information.";;
12115 --help | --hel | -h )
12116 $as_echo "$ac_cs_usage"; exit ;;
12117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12118 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12119 ac_cs_silent=: ;;
12120
12121 # This is an error.
12122 -*) as_fn_error $? "unrecognized option: \`$1'
12123 Try \`$0 --help' for more information." ;;
12124
12125 *) as_fn_append ac_config_targets " $1"
12126 ac_need_defaults=false ;;
12127
12128 esac
12129 shift
12130 done
12131
12132 ac_configure_extra_args=
12133
12134 if $ac_cs_silent; then
12135 exec 6>/dev/null
12136 ac_configure_extra_args="$ac_configure_extra_args --silent"
12137 fi
12138
12139 _ACEOF
12140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12141 if \$ac_cs_recheck; then
12142 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12143 shift
12144 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12145 CONFIG_SHELL='$SHELL'
12146 export CONFIG_SHELL
12147 exec "\$@"
12148 fi
12149
12150 _ACEOF
12151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152 exec 5>>config.log
12153 {
12154 echo
12155 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12156 ## Running $as_me. ##
12157 _ASBOX
12158 $as_echo "$ac_log"
12159 } >&5
12160
12161 _ACEOF
12162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12163 #
12164 # INIT-COMMANDS
12165 #
12166 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12167
12168 _ACEOF
12169
12170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171
12172 # Handling of arguments.
12173 for ac_config_target in $ac_config_targets
12174 do
12175 case $ac_config_target in
12176 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12177 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12178 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12179 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12180
12181 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12182 esac
12183 done
12184
12185
12186 # If the user did not use the arguments to specify the items to instantiate,
12187 # then the envvar interface is used. Set only those that are not.
12188 # We use the long form for the default assignment because of an extremely
12189 # bizarre bug on SunOS 4.1.3.
12190 if $ac_need_defaults; then
12191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12194 fi
12195
12196 # Have a temporary directory for convenience. Make it in the build tree
12197 # simply because there is no reason against having it here, and in addition,
12198 # creating and moving files from /tmp can sometimes cause problems.
12199 # Hook for its removal unless debugging.
12200 # Note that there is a small window in which the directory will not be cleaned:
12201 # after its creation but before its name has been assigned to `$tmp'.
12202 $debug ||
12203 {
12204 tmp= ac_tmp=
12205 trap 'exit_status=$?
12206 : "${ac_tmp:=$tmp}"
12207 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12208 ' 0
12209 trap 'as_fn_exit 1' 1 2 13 15
12210 }
12211 # Create a (secure) tmp directory for tmp files.
12212
12213 {
12214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12215 test -d "$tmp"
12216 } ||
12217 {
12218 tmp=./conf$$-$RANDOM
12219 (umask 077 && mkdir "$tmp")
12220 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12221 ac_tmp=$tmp
12222
12223 # Set up the scripts for CONFIG_FILES section.
12224 # No need to generate them if there are no CONFIG_FILES.
12225 # This happens for instance with `./config.status config.h'.
12226 if test -n "$CONFIG_FILES"; then
12227
12228
12229 ac_cr=`echo X | tr X '\015'`
12230 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12231 # But we know of no other shell where ac_cr would be empty at this
12232 # point, so we can use a bashism as a fallback.
12233 if test "x$ac_cr" = x; then
12234 eval ac_cr=\$\'\\r\'
12235 fi
12236 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12237 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12238 ac_cs_awk_cr='\\r'
12239 else
12240 ac_cs_awk_cr=$ac_cr
12241 fi
12242
12243 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12244 _ACEOF
12245
12246
12247 {
12248 echo "cat >conf$$subs.awk <<_ACEOF" &&
12249 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12250 echo "_ACEOF"
12251 } >conf$$subs.sh ||
12252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12253 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12254 ac_delim='%!_!# '
12255 for ac_last_try in false false false false false :; do
12256 . ./conf$$subs.sh ||
12257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12258
12259 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12260 if test $ac_delim_n = $ac_delim_num; then
12261 break
12262 elif $ac_last_try; then
12263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12264 else
12265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12266 fi
12267 done
12268 rm -f conf$$subs.sh
12269
12270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12271 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12272 _ACEOF
12273 sed -n '
12274 h
12275 s/^/S["/; s/!.*/"]=/
12276 p
12277 g
12278 s/^[^!]*!//
12279 :repl
12280 t repl
12281 s/'"$ac_delim"'$//
12282 t delim
12283 :nl
12284 h
12285 s/\(.\{148\}\)..*/\1/
12286 t more1
12287 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12288 p
12289 n
12290 b repl
12291 :more1
12292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12293 p
12294 g
12295 s/.\{148\}//
12296 t nl
12297 :delim
12298 h
12299 s/\(.\{148\}\)..*/\1/
12300 t more2
12301 s/["\\]/\\&/g; s/^/"/; s/$/"/
12302 p
12303 b
12304 :more2
12305 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12306 p
12307 g
12308 s/.\{148\}//
12309 t delim
12310 ' <conf$$subs.awk | sed '
12311 /^[^""]/{
12312 N
12313 s/\n//
12314 }
12315 ' >>$CONFIG_STATUS || ac_write_fail=1
12316 rm -f conf$$subs.awk
12317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318 _ACAWK
12319 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12320 for (key in S) S_is_set[key] = 1
12321 FS = ""
12322
12323 }
12324 {
12325 line = $ 0
12326 nfields = split(line, field, "@")
12327 substed = 0
12328 len = length(field[1])
12329 for (i = 2; i < nfields; i++) {
12330 key = field[i]
12331 keylen = length(key)
12332 if (S_is_set[key]) {
12333 value = S[key]
12334 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12335 len += length(value) + length(field[++i])
12336 substed = 1
12337 } else
12338 len += 1 + keylen
12339 }
12340
12341 print line
12342 }
12343
12344 _ACAWK
12345 _ACEOF
12346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12347 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12348 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12349 else
12350 cat
12351 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12352 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12353 _ACEOF
12354
12355 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12356 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12357 # trailing colons and then remove the whole line if VPATH becomes empty
12358 # (actually we leave an empty line to preserve line numbers).
12359 if test "x$srcdir" = x.; then
12360 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12361 h
12362 s///
12363 s/^/:/
12364 s/[ ]*$/:/
12365 s/:\$(srcdir):/:/g
12366 s/:\${srcdir}:/:/g
12367 s/:@srcdir@:/:/g
12368 s/^:*//
12369 s/:*$//
12370 x
12371 s/\(=[ ]*\).*/\1/
12372 G
12373 s/\n//
12374 s/^[^=]*=[ ]*$//
12375 }'
12376 fi
12377
12378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12379 fi # test -n "$CONFIG_FILES"
12380
12381 # Set up the scripts for CONFIG_HEADERS section.
12382 # No need to generate them if there are no CONFIG_HEADERS.
12383 # This happens for instance with `./config.status Makefile'.
12384 if test -n "$CONFIG_HEADERS"; then
12385 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12386 BEGIN {
12387 _ACEOF
12388
12389 # Transform confdefs.h into an awk script `defines.awk', embedded as
12390 # here-document in config.status, that substitutes the proper values into
12391 # config.h.in to produce config.h.
12392
12393 # Create a delimiter string that does not exist in confdefs.h, to ease
12394 # handling of long lines.
12395 ac_delim='%!_!# '
12396 for ac_last_try in false false :; do
12397 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12398 if test -z "$ac_tt"; then
12399 break
12400 elif $ac_last_try; then
12401 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12402 else
12403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12404 fi
12405 done
12406
12407 # For the awk script, D is an array of macro values keyed by name,
12408 # likewise P contains macro parameters if any. Preserve backslash
12409 # newline sequences.
12410
12411 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12412 sed -n '
12413 s/.\{148\}/&'"$ac_delim"'/g
12414 t rset
12415 :rset
12416 s/^[ ]*#[ ]*define[ ][ ]*/ /
12417 t def
12418 d
12419 :def
12420 s/\\$//
12421 t bsnl
12422 s/["\\]/\\&/g
12423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12424 D["\1"]=" \3"/p
12425 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12426 d
12427 :bsnl
12428 s/["\\]/\\&/g
12429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12430 D["\1"]=" \3\\\\\\n"\\/p
12431 t cont
12432 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12433 t cont
12434 d
12435 :cont
12436 n
12437 s/.\{148\}/&'"$ac_delim"'/g
12438 t clear
12439 :clear
12440 s/\\$//
12441 t bsnlc
12442 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12443 d
12444 :bsnlc
12445 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12446 b cont
12447 ' <confdefs.h | sed '
12448 s/'"$ac_delim"'/"\\\
12449 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12450
12451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12452 for (key in D) D_is_set[key] = 1
12453 FS = ""
12454 }
12455 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12456 line = \$ 0
12457 split(line, arg, " ")
12458 if (arg[1] == "#") {
12459 defundef = arg[2]
12460 mac1 = arg[3]
12461 } else {
12462 defundef = substr(arg[1], 2)
12463 mac1 = arg[2]
12464 }
12465 split(mac1, mac2, "(") #)
12466 macro = mac2[1]
12467 prefix = substr(line, 1, index(line, defundef) - 1)
12468 if (D_is_set[macro]) {
12469 # Preserve the white space surrounding the "#".
12470 print prefix "define", macro P[macro] D[macro]
12471 next
12472 } else {
12473 # Replace #undef with comments. This is necessary, for example,
12474 # in the case of _POSIX_SOURCE, which is predefined and required
12475 # on some systems where configure will not decide to define it.
12476 if (defundef == "undef") {
12477 print "/*", prefix defundef, macro, "*/"
12478 next
12479 }
12480 }
12481 }
12482 { print }
12483 _ACAWK
12484 _ACEOF
12485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12486 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12487 fi # test -n "$CONFIG_HEADERS"
12488
12489
12490 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12491 shift
12492 for ac_tag
12493 do
12494 case $ac_tag in
12495 :[FHLC]) ac_mode=$ac_tag; continue;;
12496 esac
12497 case $ac_mode$ac_tag in
12498 :[FHL]*:*);;
12499 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12500 :[FH]-) ac_tag=-:-;;
12501 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12502 esac
12503 ac_save_IFS=$IFS
12504 IFS=:
12505 set x $ac_tag
12506 IFS=$ac_save_IFS
12507 shift
12508 ac_file=$1
12509 shift
12510
12511 case $ac_mode in
12512 :L) ac_source=$1;;
12513 :[FH])
12514 ac_file_inputs=
12515 for ac_f
12516 do
12517 case $ac_f in
12518 -) ac_f="$ac_tmp/stdin";;
12519 *) # Look for the file first in the build tree, then in the source tree
12520 # (if the path is not absolute). The absolute path cannot be DOS-style,
12521 # because $ac_f cannot contain `:'.
12522 test -f "$ac_f" ||
12523 case $ac_f in
12524 [\\/$]*) false;;
12525 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12526 esac ||
12527 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12528 esac
12529 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12530 as_fn_append ac_file_inputs " '$ac_f'"
12531 done
12532
12533 # Let's still pretend it is `configure' which instantiates (i.e., don't
12534 # use $as_me), people would be surprised to read:
12535 # /* config.h. Generated by config.status. */
12536 configure_input='Generated from '`
12537 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12538 `' by configure.'
12539 if test x"$ac_file" != x-; then
12540 configure_input="$ac_file. $configure_input"
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12542 $as_echo "$as_me: creating $ac_file" >&6;}
12543 fi
12544 # Neutralize special characters interpreted by sed in replacement strings.
12545 case $configure_input in #(
12546 *\&* | *\|* | *\\* )
12547 ac_sed_conf_input=`$as_echo "$configure_input" |
12548 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12549 *) ac_sed_conf_input=$configure_input;;
12550 esac
12551
12552 case $ac_tag in
12553 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12555 esac
12556 ;;
12557 esac
12558
12559 ac_dir=`$as_dirname -- "$ac_file" ||
12560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12561 X"$ac_file" : 'X\(//\)[^/]' \| \
12562 X"$ac_file" : 'X\(//\)$' \| \
12563 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12564 $as_echo X"$ac_file" |
12565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12566 s//\1/
12567 q
12568 }
12569 /^X\(\/\/\)[^/].*/{
12570 s//\1/
12571 q
12572 }
12573 /^X\(\/\/\)$/{
12574 s//\1/
12575 q
12576 }
12577 /^X\(\/\).*/{
12578 s//\1/
12579 q
12580 }
12581 s/.*/./; q'`
12582 as_dir="$ac_dir"; as_fn_mkdir_p
12583 ac_builddir=.
12584
12585 case "$ac_dir" in
12586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12587 *)
12588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12589 # A ".." for each directory in $ac_dir_suffix.
12590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12591 case $ac_top_builddir_sub in
12592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12594 esac ;;
12595 esac
12596 ac_abs_top_builddir=$ac_pwd
12597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12598 # for backward compatibility:
12599 ac_top_builddir=$ac_top_build_prefix
12600
12601 case $srcdir in
12602 .) # We are building in place.
12603 ac_srcdir=.
12604 ac_top_srcdir=$ac_top_builddir_sub
12605 ac_abs_top_srcdir=$ac_pwd ;;
12606 [\\/]* | ?:[\\/]* ) # Absolute name.
12607 ac_srcdir=$srcdir$ac_dir_suffix;
12608 ac_top_srcdir=$srcdir
12609 ac_abs_top_srcdir=$srcdir ;;
12610 *) # Relative name.
12611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12612 ac_top_srcdir=$ac_top_build_prefix$srcdir
12613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12614 esac
12615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12616
12617
12618 case $ac_mode in
12619 :F)
12620 #
12621 # CONFIG_FILE
12622 #
12623
12624 case $INSTALL in
12625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12626 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12627 esac
12628 ac_MKDIR_P=$MKDIR_P
12629 case $MKDIR_P in
12630 [\\/$]* | ?:[\\/]* ) ;;
12631 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12632 esac
12633 _ACEOF
12634
12635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12636 # If the template does not know about datarootdir, expand it.
12637 # FIXME: This hack should be removed a few years after 2.60.
12638 ac_datarootdir_hack=; ac_datarootdir_seen=
12639 ac_sed_dataroot='
12640 /datarootdir/ {
12641 p
12642 q
12643 }
12644 /@datadir@/p
12645 /@docdir@/p
12646 /@infodir@/p
12647 /@localedir@/p
12648 /@mandir@/p'
12649 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12650 *datarootdir*) ac_datarootdir_seen=yes;;
12651 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12653 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12654 _ACEOF
12655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12656 ac_datarootdir_hack='
12657 s&@datadir@&$datadir&g
12658 s&@docdir@&$docdir&g
12659 s&@infodir@&$infodir&g
12660 s&@localedir@&$localedir&g
12661 s&@mandir@&$mandir&g
12662 s&\\\${datarootdir}&$datarootdir&g' ;;
12663 esac
12664 _ACEOF
12665
12666 # Neutralize VPATH when `$srcdir' = `.'.
12667 # Shell code in configure.ac might set extrasub.
12668 # FIXME: do we really want to maintain this feature?
12669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12670 ac_sed_extra="$ac_vpsub
12671 $extrasub
12672 _ACEOF
12673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12674 :t
12675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12676 s|@configure_input@|$ac_sed_conf_input|;t t
12677 s&@top_builddir@&$ac_top_builddir_sub&;t t
12678 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12679 s&@srcdir@&$ac_srcdir&;t t
12680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12681 s&@top_srcdir@&$ac_top_srcdir&;t t
12682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12683 s&@builddir@&$ac_builddir&;t t
12684 s&@abs_builddir@&$ac_abs_builddir&;t t
12685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12686 s&@INSTALL@&$ac_INSTALL&;t t
12687 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12688 $ac_datarootdir_hack
12689 "
12690 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12691 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12692
12693 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12694 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12695 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12696 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12698 which seems to be undefined. Please make sure it is defined" >&5
12699 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12700 which seems to be undefined. Please make sure it is defined" >&2;}
12701
12702 rm -f "$ac_tmp/stdin"
12703 case $ac_file in
12704 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12705 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12706 esac \
12707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12708 ;;
12709 :H)
12710 #
12711 # CONFIG_HEADER
12712 #
12713 if test x"$ac_file" != x-; then
12714 {
12715 $as_echo "/* $configure_input */" \
12716 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12717 } >"$ac_tmp/config.h" \
12718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12719 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12722 else
12723 rm -f "$ac_file"
12724 mv "$ac_tmp/config.h" "$ac_file" \
12725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12726 fi
12727 else
12728 $as_echo "/* $configure_input */" \
12729 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12730 || as_fn_error $? "could not create -" "$LINENO" 5
12731 fi
12732 # Compute "$ac_file"'s index in $config_headers.
12733 _am_arg="$ac_file"
12734 _am_stamp_count=1
12735 for _am_header in $config_headers :; do
12736 case $_am_header in
12737 $_am_arg | $_am_arg:* )
12738 break ;;
12739 * )
12740 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12741 esac
12742 done
12743 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12744 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12745 X"$_am_arg" : 'X\(//\)[^/]' \| \
12746 X"$_am_arg" : 'X\(//\)$' \| \
12747 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12748 $as_echo X"$_am_arg" |
12749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12750 s//\1/
12751 q
12752 }
12753 /^X\(\/\/\)[^/].*/{
12754 s//\1/
12755 q
12756 }
12757 /^X\(\/\/\)$/{
12758 s//\1/
12759 q
12760 }
12761 /^X\(\/\).*/{
12762 s//\1/
12763 q
12764 }
12765 s/.*/./; q'`/stamp-h$_am_stamp_count
12766 ;;
12767
12768 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12769 $as_echo "$as_me: executing $ac_file commands" >&6;}
12770 ;;
12771 esac
12772
12773
12774 case $ac_file$ac_mode in
12775 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12776 # Older Autoconf quotes --file arguments for eval, but not when files
12777 # are listed without --file. Let's play safe and only enable the eval
12778 # if we detect the quoting.
12779 case $CONFIG_FILES in
12780 *\'*) eval set x "$CONFIG_FILES" ;;
12781 *) set x $CONFIG_FILES ;;
12782 esac
12783 shift
12784 for mf
12785 do
12786 # Strip MF so we end up with the name of the file.
12787 mf=`echo "$mf" | sed -e 's/:.*$//'`
12788 # Check whether this is an Automake generated Makefile or not.
12789 # We used to match only the files named 'Makefile.in', but
12790 # some people rename them; so instead we look at the file content.
12791 # Grep'ing the first line is not enough: some people post-process
12792 # each Makefile.in and add a new line on top of each file to say so.
12793 # Grep'ing the whole file is not good either: AIX grep has a line
12794 # limit of 2048, but all sed's we know have understand at least 4000.
12795 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12796 dirpart=`$as_dirname -- "$mf" ||
12797 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12798 X"$mf" : 'X\(//\)[^/]' \| \
12799 X"$mf" : 'X\(//\)$' \| \
12800 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12801 $as_echo X"$mf" |
12802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12803 s//\1/
12804 q
12805 }
12806 /^X\(\/\/\)[^/].*/{
12807 s//\1/
12808 q
12809 }
12810 /^X\(\/\/\)$/{
12811 s//\1/
12812 q
12813 }
12814 /^X\(\/\).*/{
12815 s//\1/
12816 q
12817 }
12818 s/.*/./; q'`
12819 else
12820 continue
12821 fi
12822 # Extract the definition of DEPDIR, am__include, and am__quote
12823 # from the Makefile without running 'make'.
12824 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12825 test -z "$DEPDIR" && continue
12826 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12827 test -z "$am__include" && continue
12828 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12829 # Find all dependency output files, they are included files with
12830 # $(DEPDIR) in their names. We invoke sed twice because it is the
12831 # simplest approach to changing $(DEPDIR) to its actual value in the
12832 # expansion.
12833 for file in `sed -n "
12834 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12835 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12836 # Make sure the directory exists.
12837 test -f "$dirpart/$file" && continue
12838 fdir=`$as_dirname -- "$file" ||
12839 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12840 X"$file" : 'X\(//\)[^/]' \| \
12841 X"$file" : 'X\(//\)$' \| \
12842 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12843 $as_echo X"$file" |
12844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12845 s//\1/
12846 q
12847 }
12848 /^X\(\/\/\)[^/].*/{
12849 s//\1/
12850 q
12851 }
12852 /^X\(\/\/\)$/{
12853 s//\1/
12854 q
12855 }
12856 /^X\(\/\).*/{
12857 s//\1/
12858 q
12859 }
12860 s/.*/./; q'`
12861 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12862 # echo "creating $dirpart/$file"
12863 echo '# dummy' > "$dirpart/$file"
12864 done
12865 done
12866 }
12867 ;;
12868
12869 esac
12870 done # for ac_tag
12871
12872
12873 as_fn_exit 0
12874 _ACEOF
12875 ac_clean_files=$ac_clean_files_save
12876
12877 test $ac_write_fail = 0 ||
12878 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12879
12880
12881 # configure is writing to config.log, and then calls config.status.
12882 # config.status does its own redirection, appending to config.log.
12883 # Unfortunately, on DOS this fails, as config.log is still kept open
12884 # by configure, so config.status won't be able to write to it; its
12885 # output is simply discarded. So we exec the FD to /dev/null,
12886 # effectively closing config.log, so it can be properly (re)opened and
12887 # appended to by config.status. When coming back to configure, we
12888 # need to make the FD available again.
12889 if test "$no_create" != yes; then
12890 ac_cs_success=:
12891 ac_config_status_args=
12892 test "$silent" = yes &&
12893 ac_config_status_args="$ac_config_status_args --quiet"
12894 exec 5>/dev/null
12895 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12896 exec 5>>config.log
12897 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12898 # would make configure fail if this is the last instruction.
12899 $ac_cs_success || as_fn_exit 1
12900 fi
12901 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12903 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12904 fi
12905
12906