configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xcmsdb 1.0.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xcmsdb'
563 PACKAGE_TARNAME='xcmsdb'
564 PACKAGE_VERSION='1.0.4'
565 PACKAGE_STRING='xcmsdb 1.0.4'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 XCMSDB_LIBS
610 XCMSDB_CFLAGS
611 AM_BACKSLASH
612 AM_DEFAULT_VERBOSITY
613 MAN_SUBSTS
614 XORG_MAN_PAGE
615 ADMIN_MAN_DIR
616 DRIVER_MAN_DIR
617 MISC_MAN_DIR
618 FILE_MAN_DIR
619 LIB_MAN_DIR
620 APP_MAN_DIR
621 ADMIN_MAN_SUFFIX
622 DRIVER_MAN_SUFFIX
623 MISC_MAN_SUFFIX
624 FILE_MAN_SUFFIX
625 LIB_MAN_SUFFIX
626 APP_MAN_SUFFIX
627 SED
628 host_os
629 host_vendor
630 host_cpu
631 host
632 build_os
633 build_vendor
634 build_cpu
635 build
636 INSTALL_CMD
637 PKG_CONFIG
638 CHANGELOG_CMD
639 STRICT_CFLAGS
640 CWARNFLAGS
641 BASE_CFLAGS
642 EGREP
643 GREP
644 CPP
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 AMDEPBACKSLASH
649 AMDEP_FALSE
650 AMDEP_TRUE
651 am__quote
652 am__include
653 DEPDIR
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 MAINT
662 MAINTAINER_MODE_FALSE
663 MAINTAINER_MODE_TRUE
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_maintainer_mode
729 enable_dependency_tracking
730 enable_selective_werror
731 enable_strict_compilation
732 enable_silent_rules
733 '
734 ac_precious_vars='build_alias
735 host_alias
736 target_alias
737 CC
738 CFLAGS
739 LDFLAGS
740 LIBS
741 CPPFLAGS
742 CPP
743 PKG_CONFIG
744 XCMSDB_CFLAGS
745 XCMSDB_LIBS'
746
747
748 # Initialize some variables set by options.
749 ac_init_help=
750 ac_init_version=false
751 ac_unrecognized_opts=
752 ac_unrecognized_sep=
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
769
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
795
796 ac_prev=
797 ac_dashdash=
798 for ac_option
799 do
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
803 ac_prev=
804 continue
805 fi
806
807 case $ac_option in
808 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *=) ac_optarg= ;;
810 *) ac_optarg=yes ;;
811 esac
812
813 # Accept the important Cygnus configure options, so we can diagnose typos.
814
815 case $ac_dashdash$ac_option in
816 --)
817 ac_dashdash=yes ;;
818
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
823
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
828
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
835
836 --config-cache | -C)
837 cache_file=config.cache ;;
838
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
843
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
850
851 -disable-* | --disable-*)
852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error $? "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
859 *"
860 "enable_$ac_useropt"
861 "*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
864 esac
865 eval enable_$ac_useropt=no ;;
866
867 -docdir | --docdir | --docdi | --doc | --do)
868 ac_prev=docdir ;;
869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870 docdir=$ac_optarg ;;
871
872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873 ac_prev=dvidir ;;
874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875 dvidir=$ac_optarg ;;
876
877 -enable-* | --enable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error $? "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
885 *"
886 "enable_$ac_useropt"
887 "*) ;;
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
891 eval enable_$ac_useropt=\$ac_optarg ;;
892
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
900 exec_prefix=$ac_optarg ;;
901
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
904 with_gas=yes ;;
905
906 -help | --help | --hel | --he | -h)
907 ac_init_help=long ;;
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
912
913 -host | --host | --hos | --ho)
914 ac_prev=host_alias ;;
915 -host=* | --host=* | --hos=* | --ho=*)
916 host_alias=$ac_optarg ;;
917
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
919 ac_prev=htmldir ;;
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
921 | --ht=*)
922 htmldir=$ac_optarg ;;
923
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
929 includedir=$ac_optarg ;;
930
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
932 ac_prev=infodir ;;
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934 infodir=$ac_optarg ;;
935
936 -libdir | --libdir | --libdi | --libd)
937 ac_prev=libdir ;;
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
939 libdir=$ac_optarg ;;
940
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
946 libexecdir=$ac_optarg ;;
947
948 -localedir | --localedir | --localedi | --localed | --locale)
949 ac_prev=localedir ;;
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
952
953 -localstatedir | --localstatedir | --localstatedi | --localstated \
954 | --localstate | --localstat | --localsta | --localst | --locals)
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958 localstatedir=$ac_optarg ;;
959
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
961 ac_prev=mandir ;;
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
963 mandir=$ac_optarg ;;
964
965 -nfp | --nfp | --nf)
966 # Obsolete; use --without-fp.
967 with_fp=no ;;
968
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c | -n)
971 no_create=yes ;;
972
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 no_recursion=yes ;;
976
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984 oldincludedir=$ac_optarg ;;
985
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
987 ac_prev=prefix ;;
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989 prefix=$ac_optarg ;;
990
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996 program_prefix=$ac_optarg ;;
997
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003 program_suffix=$ac_optarg ;;
1004
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
1020 program_transform_name=$ac_optarg ;;
1021
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1023 ac_prev=pdfdir ;;
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1026
1027 -psdir | --psdir | --psdi | --psd | --ps)
1028 ac_prev=psdir ;;
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 psdir=$ac_optarg ;;
1031
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 silent=yes ;;
1035
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1037 ac_prev=sbindir ;;
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1039 | --sbi=* | --sb=*)
1040 sbindir=$ac_optarg ;;
1041
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1045 | --sha | --sh)
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1050 | --sha=* | --sh=*)
1051 sharedstatedir=$ac_optarg ;;
1052
1053 -site | --site | --sit)
1054 ac_prev=site ;;
1055 -site=* | --site=* | --sit=*)
1056 site=$ac_optarg ;;
1057
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1059 ac_prev=srcdir ;;
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061 srcdir=$ac_optarg ;;
1062
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068 sysconfdir=$ac_optarg ;;
1069
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
1071 ac_prev=target_alias ;;
1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073 target_alias=$ac_optarg ;;
1074
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 verbose=yes ;;
1077
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
1080
1081 -with-* | --with-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid package name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090 "with_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval with_$ac_useropt=\$ac_optarg ;;
1096
1097 -without-* | --without-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=no ;;
1112
1113 --x)
1114 # Obsolete; use --with-x.
1115 with_x=yes ;;
1116
1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118 | --x-incl | --x-inc | --x-in | --x-i)
1119 ac_prev=x_includes ;;
1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122 x_includes=$ac_optarg ;;
1123
1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126 ac_prev=x_libraries ;;
1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129 x_libraries=$ac_optarg ;;
1130
1131 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information"
1133 ;;
1134
1135 *=*)
1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 case $ac_envvar in #(
1139 '' | [0-9]* | *[!_$as_cr_alnum]* )
1140 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1141 esac
1142 eval $ac_envvar=\$ac_optarg
1143 export $ac_envvar ;;
1144
1145 *)
1146 # FIXME: should be removed in autoconf 3.0.
1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1151 ;;
1152
1153 esac
1154 done
1155
1156 if test -n "$ac_prev"; then
1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158 as_fn_error $? "missing argument to $ac_option"
1159 fi
1160
1161 if test -n "$ac_unrecognized_opts"; then
1162 case $enable_option_checking in
1163 no) ;;
1164 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166 esac
1167 fi
1168
1169 # Check all directory arguments for consistency.
1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1174 do
1175 eval ac_val=\$$ac_var
1176 # Remove trailing slashes.
1177 case $ac_val in
1178 */ )
1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\$ac_val;;
1181 esac
1182 # Be sure to have absolute directory names.
1183 case $ac_val in
1184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186 esac
1187 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1188 done
1189
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1196
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used" >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1205 fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error $? "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error $? "pwd does not report name of working directory"
1220
1221
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\).*/{
1245 s//\1/
1246 q
1247 }
1248 s/.*/./; q'`
1249 srcdir=$ac_confdir
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 srcdir=..
1252 fi
1253 else
1254 ac_srcdir_defaulted=no
1255 fi
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1259 fi
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1263 pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 srcdir=.
1267 fi
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1280
1281 #
1282 # Report the --help message.
1283 #
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1287 cat <<_ACEOF
1288 \`configure' configures xcmsdb 1.0.4 to adapt to many kinds of systems.
1289
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1291
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1294
1295 Defaults for the options are specified in brackets.
1296
1297 Configuration:
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking ...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 [PREFIX]
1313
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1318
1319 For better control, use the options below.
1320
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/xcmsdb]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1341 _ACEOF
1342
1343 cat <<\_ACEOF
1344
1345 Program names:
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1349
1350 System types:
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 _ACEOF
1354 fi
1355
1356 if test -n "$ac_init_help"; then
1357 case $ac_init_help in
1358 short | recursive ) echo "Configuration of xcmsdb 1.0.4:";;
1359 esac
1360 cat <<\_ACEOF
1361
1362 Optional Features:
1363 --disable-option-checking ignore unrecognized --enable/--with options
1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1366 --enable-maintainer-mode enable make rules and dependencies not useful
1367 (and sometimes confusing) to the casual installer
1368 --disable-dependency-tracking speeds up one-time build
1369 --enable-dependency-tracking do not reject slow dependency extractors
1370 --disable-selective-werror
1371 Turn off selective compiler errors. (default:
1372 enabled)
1373 --enable-strict-compilation
1374 Enable all warnings from compiler and make them
1375 errors (default: disabled)
1376 --enable-silent-rules less verbose build output (undo: `make V=1')
1377 --disable-silent-rules verbose build output (undo: `make V=0')
1378
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 PKG_CONFIG path to pkg-config utility
1389 XCMSDB_CFLAGS
1390 C compiler flags for XCMSDB, overriding pkg-config
1391 XCMSDB_LIBS linker flags for XCMSDB, overriding pkg-config
1392
1393 Use these variables to override the choices made by `configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1395
1396 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1397 _ACEOF
1398 ac_status=$?
1399 fi
1400
1401 if test "$ac_init_help" = "recursive"; then
1402 # If there are subdirs, report their specific --help.
1403 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1404 test -d "$ac_dir" ||
1405 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1406 continue
1407 ac_builddir=.
1408
1409 case "$ac_dir" in
1410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *)
1412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1413 # A ".." for each directory in $ac_dir_suffix.
1414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1415 case $ac_top_builddir_sub in
1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418 esac ;;
1419 esac
1420 ac_abs_top_builddir=$ac_pwd
1421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422 # for backward compatibility:
1423 ac_top_builddir=$ac_top_build_prefix
1424
1425 case $srcdir in
1426 .) # We are building in place.
1427 ac_srcdir=.
1428 ac_top_srcdir=$ac_top_builddir_sub
1429 ac_abs_top_srcdir=$ac_pwd ;;
1430 [\\/]* | ?:[\\/]* ) # Absolute name.
1431 ac_srcdir=$srcdir$ac_dir_suffix;
1432 ac_top_srcdir=$srcdir
1433 ac_abs_top_srcdir=$srcdir ;;
1434 *) # Relative name.
1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436 ac_top_srcdir=$ac_top_build_prefix$srcdir
1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 esac
1439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440
1441 cd "$ac_dir" || { ac_status=$?; continue; }
1442 # Check for guested configure.
1443 if test -f "$ac_srcdir/configure.gnu"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446 elif test -f "$ac_srcdir/configure"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure" --help=recursive
1449 else
1450 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 fi || ac_status=$?
1452 cd "$ac_pwd" || { ac_status=$?; break; }
1453 done
1454 fi
1455
1456 test -n "$ac_init_help" && exit $ac_status
1457 if $ac_init_version; then
1458 cat <<\_ACEOF
1459 xcmsdb configure 1.0.4
1460 generated by GNU Autoconf 2.68
1461
1462 Copyright (C) 2010 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466 exit
1467 fi
1468
1469 ## ------------------------ ##
1470 ## Autoconf initialization. ##
1471 ## ------------------------ ##
1472
1473 # ac_fn_c_try_compile LINENO
1474 # --------------------------
1475 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1476 ac_fn_c_try_compile ()
1477 {
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 rm -f conftest.$ac_objext
1480 if { { ac_try="$ac_compile"
1481 case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484 esac
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 $as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_compile") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1493 fi
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } && {
1496 test -z "$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1498 } && test -s conftest.$ac_objext; then :
1499 ac_retval=0
1500 else
1501 $as_echo "$as_me: failed program was:" >&5
1502 sed 's/^/| /' conftest.$ac_ext >&5
1503
1504 ac_retval=1
1505 fi
1506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1507 as_fn_set_status $ac_retval
1508
1509 } # ac_fn_c_try_compile
1510
1511 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1512 # ---------------------------------------------
1513 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1514 # accordingly.
1515 ac_fn_c_check_decl ()
1516 {
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 as_decl_name=`echo $2|sed 's/ *(.*//'`
1519 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1521 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1522 if eval \${$3+:} false; then :
1523 $as_echo_n "(cached) " >&6
1524 else
1525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1526 /* end confdefs.h. */
1527 $4
1528 int
1529 main ()
1530 {
1531 #ifndef $as_decl_name
1532 #ifdef __cplusplus
1533 (void) $as_decl_use;
1534 #else
1535 (void) $as_decl_name;
1536 #endif
1537 #endif
1538
1539 ;
1540 return 0;
1541 }
1542 _ACEOF
1543 if ac_fn_c_try_compile "$LINENO"; then :
1544 eval "$3=yes"
1545 else
1546 eval "$3=no"
1547 fi
1548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1549 fi
1550 eval ac_res=\$$3
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1552 $as_echo "$ac_res" >&6; }
1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554
1555 } # ac_fn_c_check_decl
1556
1557 # ac_fn_c_try_cpp LINENO
1558 # ----------------------
1559 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_cpp ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { { ac_try="$ac_cpp conftest.$ac_ext"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } > conftest.i && {
1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588 fi
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_cpp
1593
1594 # ac_fn_c_try_run LINENO
1595 # ----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1597 # that executables *can* be run.
1598 ac_fn_c_try_run ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_link"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>&5
1609 ac_status=$?
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1612 { { case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_try") 2>&5
1619 ac_status=$?
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; }; }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: program exited with status $ac_status" >&5
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=$ac_status
1629 fi
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_run
1635
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655 else
1656 eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_compile
1666
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 $as_test_x conftest$ac_exeext
1695 }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702 fi
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_link
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1715
1716 It was created by xcmsdb $as_me 1.0.4, which was
1717 generated by GNU Autoconf 2.68. Invocation command line was
1718
1719 $ $0 $@
1720
1721 _ACEOF
1722 exec 5>>config.log
1723 {
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1728
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1737
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1745
1746 _ASUNAME
1747
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 $as_echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1756
1757 } >&5
1758
1759 cat >&5 <<_ACEOF
1760
1761
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1765
1766 _ACEOF
1767
1768
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1779 do
1780 for ac_arg
1781 do
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
1787 *\'*)
1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 esac
1790 case $ac_pass in
1791 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1792 2)
1793 as_fn_append ac_configure_args1 " '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1796 else
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1805 ;;
1806 -* ) ac_must_keep_next=true ;;
1807 esac
1808 fi
1809 as_fn_append ac_configure_args " '$ac_arg'"
1810 ;;
1811 esac
1812 done
1813 done
1814 { ac_configure_args0=; unset ac_configure_args0;}
1815 { ac_configure_args1=; unset ac_configure_args1;}
1816
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1824 {
1825 echo
1826
1827 $as_echo "## ---------------- ##
1828 ## Cache variables. ##
1829 ## ---------------- ##"
1830 echo
1831 # The following way of writing the cache mishandles newlines in values,
1832 (
1833 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1834 eval ac_val=\$$ac_var
1835 case $ac_val in #(
1836 *${as_nl}*)
1837 case $ac_var in #(
1838 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1840 esac
1841 case $ac_var in #(
1842 _ | IFS | as_nl) ;; #(
1843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1844 *) { eval $ac_var=; unset $ac_var;} ;;
1845 esac ;;
1846 esac
1847 done
1848 (set) 2>&1 |
1849 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1850 *${as_nl}ac_space=\ *)
1851 sed -n \
1852 "s/'\''/'\''\\\\'\'''\''/g;
1853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1854 ;; #(
1855 *)
1856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1857 ;;
1858 esac |
1859 sort
1860 )
1861 echo
1862
1863 $as_echo "## ----------------- ##
1864 ## Output variables. ##
1865 ## ----------------- ##"
1866 echo
1867 for ac_var in $ac_subst_vars
1868 do
1869 eval ac_val=\$$ac_var
1870 case $ac_val in
1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 esac
1873 $as_echo "$ac_var='\''$ac_val'\''"
1874 done | sort
1875 echo
1876
1877 if test -n "$ac_subst_files"; then
1878 $as_echo "## ------------------- ##
1879 ## File substitutions. ##
1880 ## ------------------- ##"
1881 echo
1882 for ac_var in $ac_subst_files
1883 do
1884 eval ac_val=\$$ac_var
1885 case $ac_val in
1886 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887 esac
1888 $as_echo "$ac_var='\''$ac_val'\''"
1889 done | sort
1890 echo
1891 fi
1892
1893 if test -s confdefs.h; then
1894 $as_echo "## ----------- ##
1895 ## confdefs.h. ##
1896 ## ----------- ##"
1897 echo
1898 cat confdefs.h
1899 echo
1900 fi
1901 test "$ac_signal" != 0 &&
1902 $as_echo "$as_me: caught signal $ac_signal"
1903 $as_echo "$as_me: exit $exit_status"
1904 } >&5
1905 rm -f core *.core core.conftest.* &&
1906 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1907 exit $exit_status
1908 ' 0
1909 for ac_signal in 1 2 13 15; do
1910 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1911 done
1912 ac_signal=0
1913
1914 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1915 rm -f -r conftest* confdefs.h
1916
1917 $as_echo "/* confdefs.h */" > confdefs.h
1918
1919 # Predefined preprocessor variables.
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_NAME "$PACKAGE_NAME"
1923 _ACEOF
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1927 _ACEOF
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1931 _ACEOF
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_STRING "$PACKAGE_STRING"
1935 _ACEOF
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1939 _ACEOF
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_URL "$PACKAGE_URL"
1943 _ACEOF
1944
1945
1946 # Let the site file select an alternate cache file if it wants to.
1947 # Prefer an explicitly selected file to automatically selected ones.
1948 ac_site_file1=NONE
1949 ac_site_file2=NONE
1950 if test -n "$CONFIG_SITE"; then
1951 # We do not want a PATH search for config.site.
1952 case $CONFIG_SITE in #((
1953 -*) ac_site_file1=./$CONFIG_SITE;;
1954 */*) ac_site_file1=$CONFIG_SITE;;
1955 *) ac_site_file1=./$CONFIG_SITE;;
1956 esac
1957 elif test "x$prefix" != xNONE; then
1958 ac_site_file1=$prefix/share/config.site
1959 ac_site_file2=$prefix/etc/config.site
1960 else
1961 ac_site_file1=$ac_default_prefix/share/config.site
1962 ac_site_file2=$ac_default_prefix/etc/config.site
1963 fi
1964 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1965 do
1966 test "x$ac_site_file" = xNONE && continue
1967 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1969 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1970 sed 's/^/| /' "$ac_site_file" >&5
1971 . "$ac_site_file" \
1972 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1974 as_fn_error $? "failed to load site script $ac_site_file
1975 See \`config.log' for more details" "$LINENO" 5; }
1976 fi
1977 done
1978
1979 if test -r "$cache_file"; then
1980 # Some versions of bash will fail to source /dev/null (special files
1981 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1982 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1984 $as_echo "$as_me: loading cache $cache_file" >&6;}
1985 case $cache_file in
1986 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1987 *) . "./$cache_file";;
1988 esac
1989 fi
1990 else
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1992 $as_echo "$as_me: creating cache $cache_file" >&6;}
1993 >$cache_file
1994 fi
1995
1996 # Check that the precious variables saved in the cache have kept the same
1997 # value.
1998 ac_cache_corrupted=false
1999 for ac_var in $ac_precious_vars; do
2000 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2001 eval ac_new_set=\$ac_env_${ac_var}_set
2002 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2003 eval ac_new_val=\$ac_env_${ac_var}_value
2004 case $ac_old_set,$ac_new_set in
2005 set,)
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2007 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2008 ac_cache_corrupted=: ;;
2009 ,set)
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2013 ,);;
2014 *)
2015 if test "x$ac_old_val" != "x$ac_new_val"; then
2016 # differences in whitespace do not lead to failure.
2017 ac_old_val_w=`echo x $ac_old_val`
2018 ac_new_val_w=`echo x $ac_new_val`
2019 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2021 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2022 ac_cache_corrupted=:
2023 else
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2025 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2026 eval $ac_var=\$ac_old_val
2027 fi
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2029 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2031 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2032 fi;;
2033 esac
2034 # Pass precious variables to config.status.
2035 if test "$ac_new_set" = set; then
2036 case $ac_new_val in
2037 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2038 *) ac_arg=$ac_var=$ac_new_val ;;
2039 esac
2040 case " $ac_configure_args " in
2041 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2042 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2043 esac
2044 fi
2045 done
2046 if $ac_cache_corrupted; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2050 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2051 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2052 fi
2053 ## -------------------- ##
2054 ## Main body of script. ##
2055 ## -------------------- ##
2056
2057 ac_ext=c
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062
2063
2064 am__api_version='1.11'
2065
2066 ac_aux_dir=
2067 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2068 if test -f "$ac_dir/install-sh"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/install-sh -c"
2071 break
2072 elif test -f "$ac_dir/install.sh"; then
2073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/install.sh -c"
2075 break
2076 elif test -f "$ac_dir/shtool"; then
2077 ac_aux_dir=$ac_dir
2078 ac_install_sh="$ac_aux_dir/shtool install -c"
2079 break
2080 fi
2081 done
2082 if test -z "$ac_aux_dir"; then
2083 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2084 fi
2085
2086 # These three variables are undocumented and unsupported,
2087 # and are intended to be withdrawn in a future Autoconf release.
2088 # They can cause serious problems if a builder's source tree is in a directory
2089 # whose full name contains unusual characters.
2090 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2091 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2092 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2093
2094
2095 # Find a good install program. We prefer a C program (faster),
2096 # so one script is as good as another. But avoid the broken or
2097 # incompatible versions:
2098 # SysV /etc/install, /usr/sbin/install
2099 # SunOS /usr/etc/install
2100 # IRIX /sbin/install
2101 # AIX /bin/install
2102 # AmigaOS /C/install, which installs bootblocks on floppy discs
2103 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2104 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2105 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2106 # OS/2's system install, which has a completely different semantic
2107 # ./install, which can be erroneously created by make from ./install.sh.
2108 # Reject install programs that cannot install multiple files.
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2110 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2111 if test -z "$INSTALL"; then
2112 if ${ac_cv_path_install+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 # Account for people who put trailing slashes in PATH elements.
2121 case $as_dir/ in #((
2122 ./ | .// | /[cC]/* | \
2123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2124 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2125 /usr/ucb/* ) ;;
2126 *)
2127 # OSF1 and SCO ODT 3.0 have their own names for install.
2128 # Don't use installbsd from OSF since it installs stuff as root
2129 # by default.
2130 for ac_prog in ginstall scoinst install; do
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2133 if test $ac_prog = install &&
2134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2135 # AIX install. It has an incompatible calling convention.
2136 :
2137 elif test $ac_prog = install &&
2138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2139 # program-specific install script used by HP pwplus--don't use.
2140 :
2141 else
2142 rm -rf conftest.one conftest.two conftest.dir
2143 echo one > conftest.one
2144 echo two > conftest.two
2145 mkdir conftest.dir
2146 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2147 test -s conftest.one && test -s conftest.two &&
2148 test -s conftest.dir/conftest.one &&
2149 test -s conftest.dir/conftest.two
2150 then
2151 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2152 break 3
2153 fi
2154 fi
2155 fi
2156 done
2157 done
2158 ;;
2159 esac
2160
2161 done
2162 IFS=$as_save_IFS
2163
2164 rm -rf conftest.one conftest.two conftest.dir
2165
2166 fi
2167 if test "${ac_cv_path_install+set}" = set; then
2168 INSTALL=$ac_cv_path_install
2169 else
2170 # As a last resort, use the slow shell script. Don't cache a
2171 # value for INSTALL within a source directory, because that will
2172 # break other packages using the cache if that directory is
2173 # removed, or if the value is a relative name.
2174 INSTALL=$ac_install_sh
2175 fi
2176 fi
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2178 $as_echo "$INSTALL" >&6; }
2179
2180 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2181 # It thinks the first close brace ends the variable substitution.
2182 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2183
2184 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2185
2186 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2187
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2189 $as_echo_n "checking whether build environment is sane... " >&6; }
2190 # Just in case
2191 sleep 1
2192 echo timestamp > conftest.file
2193 # Reject unsafe characters in $srcdir or the absolute working directory
2194 # name. Accept space and tab only in the latter.
2195 am_lf='
2196 '
2197 case `pwd` in
2198 *[\\\"\#\$\&\'\`$am_lf]*)
2199 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2200 esac
2201 case $srcdir in
2202 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2203 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2204 esac
2205
2206 # Do `set' in a subshell so we don't clobber the current shell's
2207 # arguments. Must try -L first in case configure is actually a
2208 # symlink; some systems play weird games with the mod time of symlinks
2209 # (eg FreeBSD returns the mod time of the symlink's containing
2210 # directory).
2211 if (
2212 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2213 if test "$*" = "X"; then
2214 # -L didn't work.
2215 set X `ls -t "$srcdir/configure" conftest.file`
2216 fi
2217 rm -f conftest.file
2218 if test "$*" != "X $srcdir/configure conftest.file" \
2219 && test "$*" != "X conftest.file $srcdir/configure"; then
2220
2221 # If neither matched, then we have a broken ls. This can happen
2222 # if, for instance, CONFIG_SHELL is bash and it inherits a
2223 # broken ls alias from the environment. This has actually
2224 # happened. Such a system could not be considered "sane".
2225 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2226 alias in your environment" "$LINENO" 5
2227 fi
2228
2229 test "$2" = conftest.file
2230 )
2231 then
2232 # Ok.
2233 :
2234 else
2235 as_fn_error $? "newly created file is older than distributed files!
2236 Check your system clock" "$LINENO" 5
2237 fi
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2239 $as_echo "yes" >&6; }
2240 test "$program_prefix" != NONE &&
2241 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2242 # Use a double $ so make ignores it.
2243 test "$program_suffix" != NONE &&
2244 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2245 # Double any \ or $.
2246 # By default was `s,x,x', remove it if useless.
2247 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2248 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2249
2250 # expand $ac_aux_dir to an absolute path
2251 am_aux_dir=`cd $ac_aux_dir && pwd`
2252
2253 if test x"${MISSING+set}" != xset; then
2254 case $am_aux_dir in
2255 *\ * | *\ *)
2256 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2257 *)
2258 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2259 esac
2260 fi
2261 # Use eval to expand $SHELL
2262 if eval "$MISSING --run true"; then
2263 am_missing_run="$MISSING --run "
2264 else
2265 am_missing_run=
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2267 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2268 fi
2269
2270 if test x"${install_sh}" != xset; then
2271 case $am_aux_dir in
2272 *\ * | *\ *)
2273 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2274 *)
2275 install_sh="\${SHELL} $am_aux_dir/install-sh"
2276 esac
2277 fi
2278
2279 # Installed binaries are usually stripped using `strip' when the user
2280 # run `make install-strip'. However `strip' might not be the right
2281 # tool to use in cross-compilation environments, therefore Automake
2282 # will honor the `STRIP' environment variable to overrule this program.
2283 if test "$cross_compiling" != no; then
2284 if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}strip; ac_word=$2
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2288 $as_echo_n "checking for $ac_word... " >&6; }
2289 if ${ac_cv_prog_STRIP+:} false; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 if test -n "$STRIP"; then
2293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2305 fi
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 fi
2311 fi
2312 STRIP=$ac_cv_prog_STRIP
2313 if test -n "$STRIP"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2315 $as_echo "$STRIP" >&6; }
2316 else
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2318 $as_echo "no" >&6; }
2319 fi
2320
2321
2322 fi
2323 if test -z "$ac_cv_prog_STRIP"; then
2324 ac_ct_STRIP=$STRIP
2325 # Extract the first word of "strip", so it can be a program name with args.
2326 set dummy strip; ac_word=$2
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2328 $as_echo_n "checking for $ac_word... " >&6; }
2329 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 if test -n "$ac_ct_STRIP"; then
2333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342 ac_cv_prog_ac_ct_STRIP="strip"
2343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2345 fi
2346 done
2347 done
2348 IFS=$as_save_IFS
2349
2350 fi
2351 fi
2352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2353 if test -n "$ac_ct_STRIP"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2355 $as_echo "$ac_ct_STRIP" >&6; }
2356 else
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2358 $as_echo "no" >&6; }
2359 fi
2360
2361 if test "x$ac_ct_STRIP" = x; then
2362 STRIP=":"
2363 else
2364 case $cross_compiling:$ac_tool_warned in
2365 yes:)
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2368 ac_tool_warned=yes ;;
2369 esac
2370 STRIP=$ac_ct_STRIP
2371 fi
2372 else
2373 STRIP="$ac_cv_prog_STRIP"
2374 fi
2375
2376 fi
2377 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2378
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2380 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2381 if test -z "$MKDIR_P"; then
2382 if ${ac_cv_path_mkdir+:} false; then :
2383 $as_echo_n "(cached) " >&6
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2387 do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_prog in mkdir gmkdir; do
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2393 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2394 'mkdir (GNU coreutils) '* | \
2395 'mkdir (coreutils) '* | \
2396 'mkdir (fileutils) '4.1*)
2397 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2398 break 3;;
2399 esac
2400 done
2401 done
2402 done
2403 IFS=$as_save_IFS
2404
2405 fi
2406
2407 test -d ./--version && rmdir ./--version
2408 if test "${ac_cv_path_mkdir+set}" = set; then
2409 MKDIR_P="$ac_cv_path_mkdir -p"
2410 else
2411 # As a last resort, use the slow shell script. Don't cache a
2412 # value for MKDIR_P within a source directory, because that will
2413 # break other packages using the cache if that directory is
2414 # removed, or if the value is a relative name.
2415 MKDIR_P="$ac_install_sh -d"
2416 fi
2417 fi
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2419 $as_echo "$MKDIR_P" >&6; }
2420
2421 mkdir_p="$MKDIR_P"
2422 case $mkdir_p in
2423 [\\/$]* | ?:[\\/]*) ;;
2424 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2425 esac
2426
2427 for ac_prog in gawk mawk nawk awk
2428 do
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; 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_AWK+:} false; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$AWK"; then
2437 ac_cv_prog_AWK="$AWK" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_AWK="$ac_prog"
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 AWK=$ac_cv_prog_AWK
2457 if test -n "$AWK"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2459 $as_echo "$AWK" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2463 fi
2464
2465
2466 test -n "$AWK" && break
2467 done
2468
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2470 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2471 set x ${MAKE-make}
2472 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2473 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 cat >conftest.make <<\_ACEOF
2477 SHELL = /bin/sh
2478 all:
2479 @echo '@@@%%%=$(MAKE)=@@@%%%'
2480 _ACEOF
2481 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2482 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2483 *@@@%%%=?*=@@@%%%*)
2484 eval ac_cv_prog_make_${ac_make}_set=yes;;
2485 *)
2486 eval ac_cv_prog_make_${ac_make}_set=no;;
2487 esac
2488 rm -f conftest.make
2489 fi
2490 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492 $as_echo "yes" >&6; }
2493 SET_MAKE=
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2497 SET_MAKE="MAKE=${MAKE-make}"
2498 fi
2499
2500 rm -rf .tst 2>/dev/null
2501 mkdir .tst 2>/dev/null
2502 if test -d .tst; then
2503 am__leading_dot=.
2504 else
2505 am__leading_dot=_
2506 fi
2507 rmdir .tst 2>/dev/null
2508
2509 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2510 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2511 # is not polluted with repeated "-I."
2512 am__isrc=' -I$(srcdir)'
2513 # test to see if srcdir already configured
2514 if test -f $srcdir/config.status; then
2515 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2516 fi
2517 fi
2518
2519 # test whether we have cygpath
2520 if test -z "$CYGPATH_W"; then
2521 if (cygpath --version) >/dev/null 2>/dev/null; then
2522 CYGPATH_W='cygpath -w'
2523 else
2524 CYGPATH_W=echo
2525 fi
2526 fi
2527
2528
2529 # Define the identity of the package.
2530 PACKAGE='xcmsdb'
2531 VERSION='1.0.4'
2532
2533
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE "$PACKAGE"
2536 _ACEOF
2537
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define VERSION "$VERSION"
2541 _ACEOF
2542
2543 # Some tools Automake needs.
2544
2545 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2546
2547
2548 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2549
2550
2551 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2552
2553
2554 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2555
2556
2557 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2558
2559 # We need awk for the "check" target. The system "awk" is bad on
2560 # some platforms.
2561 # Always define AMTAR for backward compatibility.
2562
2563 AMTAR=${AMTAR-"${am_missing_run}tar"}
2564
2565 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2566
2567
2568
2569
2570
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2573 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2574 # Check whether --enable-maintainer-mode was given.
2575 if test "${enable_maintainer_mode+set}" = set; then :
2576 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2577 else
2578 USE_MAINTAINER_MODE=no
2579 fi
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2582 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2583 if test $USE_MAINTAINER_MODE = yes; then
2584 MAINTAINER_MODE_TRUE=
2585 MAINTAINER_MODE_FALSE='#'
2586 else
2587 MAINTAINER_MODE_TRUE='#'
2588 MAINTAINER_MODE_FALSE=
2589 fi
2590
2591 MAINT=$MAINTAINER_MODE_TRUE
2592
2593
2594
2595 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608 ac_config_headers="$ac_config_headers config.h"
2609
2610
2611 DEPDIR="${am__leading_dot}deps"
2612
2613 ac_config_commands="$ac_config_commands depfiles"
2614
2615
2616 am_make=${MAKE-make}
2617 cat > confinc << 'END'
2618 am__doit:
2619 @echo this is the am__doit target
2620 .PHONY: am__doit
2621 END
2622 # If we don't find an include directive, just comment out the code.
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2624 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2625 am__include="#"
2626 am__quote=
2627 _am_result=none
2628 # First try GNU make style include.
2629 echo "include confinc" > confmf
2630 # Ignore all kinds of additional output from `make'.
2631 case `$am_make -s -f confmf 2> /dev/null` in #(
2632 *the\ am__doit\ target*)
2633 am__include=include
2634 am__quote=
2635 _am_result=GNU
2636 ;;
2637 esac
2638 # Now try BSD make style include.
2639 if test "$am__include" = "#"; then
2640 echo '.include "confinc"' > confmf
2641 case `$am_make -s -f confmf 2> /dev/null` in #(
2642 *the\ am__doit\ target*)
2643 am__include=.include
2644 am__quote="\""
2645 _am_result=BSD
2646 ;;
2647 esac
2648 fi
2649
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2652 $as_echo "$_am_result" >&6; }
2653 rm -f confinc confmf
2654
2655 # Check whether --enable-dependency-tracking was given.
2656 if test "${enable_dependency_tracking+set}" = set; then :
2657 enableval=$enable_dependency_tracking;
2658 fi
2659
2660 if test "x$enable_dependency_tracking" != xno; then
2661 am_depcomp="$ac_aux_dir/depcomp"
2662 AMDEPBACKSLASH='\'
2663 fi
2664 if test "x$enable_dependency_tracking" != xno; then
2665 AMDEP_TRUE=
2666 AMDEP_FALSE='#'
2667 else
2668 AMDEP_TRUE='#'
2669 AMDEP_FALSE=
2670 fi
2671
2672
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678 if test -n "$ac_tool_prefix"; then
2679 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_CC+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 CC=$ac_cv_prog_CC
2707 if test -n "$CC"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2709 $as_echo "$CC" >&6; }
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715
2716 fi
2717 if test -z "$ac_cv_prog_CC"; then
2718 ac_ct_CC=$CC
2719 # Extract the first word of "gcc", so it can be a program name with args.
2720 set dummy gcc; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if test -n "$ac_ct_CC"; then
2727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_ac_ct_CC="gcc"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2747 if test -n "$ac_ct_CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2749 $as_echo "$ac_ct_CC" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755 if test "x$ac_ct_CC" = x; then
2756 CC=""
2757 else
2758 case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762 ac_tool_warned=yes ;;
2763 esac
2764 CC=$ac_ct_CC
2765 fi
2766 else
2767 CC="$ac_cv_prog_CC"
2768 fi
2769
2770 if test -z "$CC"; then
2771 if test -n "$ac_tool_prefix"; then
2772 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2773 set dummy ${ac_tool_prefix}cc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_CC="${ac_tool_prefix}cc"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 CC=$ac_cv_prog_CC
2800 if test -n "$CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2802 $as_echo "$CC" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809 fi
2810 fi
2811 if test -z "$CC"; then
2812 # Extract the first word of "cc", so it can be a program name with args.
2813 set dummy cc; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_CC+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 ac_prog_rejected=no
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2831 ac_prog_rejected=yes
2832 continue
2833 fi
2834 ac_cv_prog_CC="cc"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 if test $ac_prog_rejected = yes; then
2843 # We found a bogon in the path, so make sure we never use it.
2844 set dummy $ac_cv_prog_CC
2845 shift
2846 if test $# != 0; then
2847 # We chose a different compiler from the bogus one.
2848 # However, it has the same basename, so the bogon will be chosen
2849 # first if we set CC to just the basename; use the full file name.
2850 shift
2851 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2852 fi
2853 fi
2854 fi
2855 fi
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2859 $as_echo "$CC" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866 fi
2867 if test -z "$CC"; then
2868 if test -n "$ac_tool_prefix"; then
2869 for ac_prog in cl.exe
2870 do
2871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 test -n "$CC" && break
2909 done
2910 fi
2911 if test -z "$CC"; then
2912 ac_ct_CC=$CC
2913 for ac_prog in cl.exe
2914 do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916 set dummy $ac_prog; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$ac_ct_CC"; then
2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_ac_ct_CC="$ac_prog"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943 if test -n "$ac_ct_CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2945 $as_echo "$ac_ct_CC" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 test -n "$ac_ct_CC" && break
2953 done
2954
2955 if test "x$ac_ct_CC" = x; then
2956 CC=""
2957 else
2958 case $cross_compiling:$ac_tool_warned in
2959 yes:)
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned=yes ;;
2963 esac
2964 CC=$ac_ct_CC
2965 fi
2966 fi
2967
2968 fi
2969
2970
2971 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2973 as_fn_error $? "no acceptable C compiler found in \$PATH
2974 See \`config.log' for more details" "$LINENO" 5; }
2975
2976 # Provide some information about the compiler.
2977 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2978 set X $ac_compile
2979 ac_compiler=$2
2980 for ac_option in --version -v -V -qversion; do
2981 { { ac_try="$ac_compiler $ac_option >&5"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987 $as_echo "$ac_try_echo"; } >&5
2988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2989 ac_status=$?
2990 if test -s conftest.err; then
2991 sed '10a\
2992 ... rest of stderr output deleted ...
2993 10q' conftest.err >conftest.er1
2994 cat conftest.er1 >&5
2995 fi
2996 rm -f conftest.er1 conftest.err
2997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998 test $ac_status = 0; }
2999 done
3000
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h. */
3003
3004 int
3005 main ()
3006 {
3007
3008 ;
3009 return 0;
3010 }
3011 _ACEOF
3012 ac_clean_files_save=$ac_clean_files
3013 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3014 # Try to create an executable without -o first, disregard a.out.
3015 # It will help us diagnose broken compilers, and finding out an intuition
3016 # of exeext.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3018 $as_echo_n "checking whether the C compiler works... " >&6; }
3019 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3020
3021 # The possible output files:
3022 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3023
3024 ac_rmfiles=
3025 for ac_file in $ac_files
3026 do
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3029 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3030 esac
3031 done
3032 rm -f $ac_rmfiles
3033
3034 if { { ac_try="$ac_link_default"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_link_default") 2>&5
3042 ac_status=$?
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }; then :
3045 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3046 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3047 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3048 # so that the user can short-circuit this test for compilers unknown to
3049 # Autoconf.
3050 for ac_file in $ac_files ''
3051 do
3052 test -f "$ac_file" || continue
3053 case $ac_file in
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3055 ;;
3056 [ab].out )
3057 # We found the default executable, but exeext='' is most
3058 # certainly right.
3059 break;;
3060 *.* )
3061 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3062 then :; else
3063 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064 fi
3065 # We set ac_cv_exeext here because the later test for it is not
3066 # safe: cross compilers may not add the suffix if given an `-o'
3067 # argument, so we may need to know it at that point already.
3068 # Even if this section looks crufty: it has the advantage of
3069 # actually working.
3070 break;;
3071 * )
3072 break;;
3073 esac
3074 done
3075 test "$ac_cv_exeext" = no && ac_cv_exeext=
3076
3077 else
3078 ac_file=''
3079 fi
3080 if test -z "$ac_file"; then :
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error 77 "C compiler cannot create executables
3089 See \`config.log' for more details" "$LINENO" 5; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3092 $as_echo "yes" >&6; }
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3095 $as_echo_n "checking for C compiler default output file name... " >&6; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3097 $as_echo "$ac_file" >&6; }
3098 ac_exeext=$ac_cv_exeext
3099
3100 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3101 ac_clean_files=$ac_clean_files_save
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3103 $as_echo_n "checking for suffix of executables... " >&6; }
3104 if { { ac_try="$ac_link"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link") 2>&5
3112 ac_status=$?
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }; then :
3115 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3116 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3117 # work properly (i.e., refer to `conftest.exe'), while it won't with
3118 # `rm'.
3119 for ac_file in conftest.exe conftest conftest.*; do
3120 test -f "$ac_file" || continue
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3123 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 break;;
3125 * ) break;;
3126 esac
3127 done
3128 else
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3132 See \`config.log' for more details" "$LINENO" 5; }
3133 fi
3134 rm -f conftest conftest$ac_cv_exeext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3136 $as_echo "$ac_cv_exeext" >&6; }
3137
3138 rm -f conftest.$ac_ext
3139 EXEEXT=$ac_cv_exeext
3140 ac_exeext=$EXEEXT
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3143 #include <stdio.h>
3144 int
3145 main ()
3146 {
3147 FILE *f = fopen ("conftest.out", "w");
3148 return ferror (f) || fclose (f) != 0;
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 ac_clean_files="$ac_clean_files conftest.out"
3155 # Check that the compiler produces executables we can run. If not, either
3156 # the compiler is broken, or we cross compile.
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3158 $as_echo_n "checking whether we are cross compiling... " >&6; }
3159 if test "$cross_compiling" != yes; then
3160 { { ac_try="$ac_link"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_link") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }
3171 if { ac_try='./conftest$ac_cv_exeext'
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details" "$LINENO" 5; }
3192 fi
3193 fi
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3196 $as_echo "$cross_compiling" >&6; }
3197
3198 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3199 ac_clean_files=$ac_clean_files_save
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3201 $as_echo_n "checking for suffix of object files... " >&6; }
3202 if ${ac_cv_objext+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 rm -f conftest.o conftest.obj
3217 if { { ac_try="$ac_compile"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_compile") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; then :
3228 for ac_file in conftest.o conftest.obj conftest.*; do
3229 test -f "$ac_file" || continue;
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3233 break;;
3234 esac
3235 done
3236 else
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 fi
3245 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3246 fi
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3248 $as_echo "$ac_cv_objext" >&6; }
3249 OBJEXT=$ac_cv_objext
3250 ac_objext=$OBJEXT
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3252 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3253 if ${ac_cv_c_compiler_gnu+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262 #ifndef __GNUC__
3263 choke me
3264 #endif
3265
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 if ac_fn_c_try_compile "$LINENO"; then :
3271 ac_compiler_gnu=yes
3272 else
3273 ac_compiler_gnu=no
3274 fi
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3277
3278 fi
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3280 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3281 if test $ac_compiler_gnu = yes; then
3282 GCC=yes
3283 else
3284 GCC=
3285 fi
3286 ac_test_CFLAGS=${CFLAGS+set}
3287 ac_save_CFLAGS=$CFLAGS
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3289 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3290 if ${ac_cv_prog_cc_g+:} false; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 ac_save_c_werror_flag=$ac_c_werror_flag
3294 ac_c_werror_flag=yes
3295 ac_cv_prog_cc_g=no
3296 CFLAGS="-g"
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3299
3300 int
3301 main ()
3302 {
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_cv_prog_cc_g=yes
3310 else
3311 CFLAGS=""
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314
3315 int
3316 main ()
3317 {
3318
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324
3325 else
3326 ac_c_werror_flag=$ac_save_c_werror_flag
3327 CFLAGS="-g"
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330
3331 int
3332 main ()
3333 {
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 if ac_fn_c_try_compile "$LINENO"; then :
3340 ac_cv_prog_cc_g=yes
3341 fi
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 fi
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3350 $as_echo "$ac_cv_prog_cc_g" >&6; }
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3355 CFLAGS="-g -O2"
3356 else
3357 CFLAGS="-g"
3358 fi
3359 else
3360 if test "$GCC" = yes; then
3361 CFLAGS="-O2"
3362 else
3363 CFLAGS=
3364 fi
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3368 if ${ac_cv_prog_cc_c89+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 ac_cv_prog_cc_c89=no
3372 ac_save_CC=$CC
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <stdarg.h>
3376 #include <stdio.h>
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3383 char **p;
3384 int i;
3385 {
3386 return p[i];
3387 }
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3389 {
3390 char *s;
3391 va_list v;
3392 va_start (v,p);
3393 s = g (p, va_arg (v,int));
3394 va_end (v);
3395 return s;
3396 }
3397
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3399 function prototypes and stuff, but not '\xHH' hex character constants.
3400 These don't provoke an error unfortunately, instead are silently treated
3401 as 'x'. The following induces an error, until -std is added to get
3402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3403 array size at least. It's necessary to write '\x00'==0 to get something
3404 that's true only with -std. */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408 inside strings and character constants. */
3409 #define FOO(x) 'x'
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416 int argc;
3417 char **argv;
3418 int
3419 main ()
3420 {
3421 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 do
3429 CC="$ac_save_CC $ac_arg"
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_cv_prog_cc_c89=$ac_arg
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext
3434 test "x$ac_cv_prog_cc_c89" != "xno" && break
3435 done
3436 rm -f conftest.$ac_ext
3437 CC=$ac_save_CC
3438
3439 fi
3440 # AC_CACHE_VAL
3441 case "x$ac_cv_prog_cc_c89" in
3442 x)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3444 $as_echo "none needed" >&6; } ;;
3445 xno)
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3447 $as_echo "unsupported" >&6; } ;;
3448 *)
3449 CC="$CC $ac_cv_prog_cc_c89"
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3451 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3452 esac
3453 if test "x$ac_cv_prog_cc_c89" != xno; then :
3454
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463 depcc="$CC" am_compiler_list=
3464
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3466 $as_echo_n "checking dependency style of $depcc... " >&6; }
3467 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3471 # We make a subdir and do the tests there. Otherwise we can end up
3472 # making bogus files that we don't know about and never remove. For
3473 # instance it was reported that on HP-UX the gcc test will end up
3474 # making a dummy file named `D' -- because `-MD' means `put the output
3475 # in D'.
3476 mkdir conftest.dir
3477 # Copy depcomp to subdir because otherwise we won't find it if we're
3478 # using a relative directory.
3479 cp "$am_depcomp" conftest.dir
3480 cd conftest.dir
3481 # We will build objects and dependencies in a subdirectory because
3482 # it helps to detect inapplicable dependency modes. For instance
3483 # both Tru64's cc and ICC support -MD to output dependencies as a
3484 # side effect of compilation, but ICC will put the dependencies in
3485 # the current directory while Tru64 will put them in the object
3486 # directory.
3487 mkdir sub
3488
3489 am_cv_CC_dependencies_compiler_type=none
3490 if test "$am_compiler_list" = ""; then
3491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3492 fi
3493 am__universal=false
3494 case " $depcc " in #(
3495 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3496 esac
3497
3498 for depmode in $am_compiler_list; do
3499 # Setup a source with many dependencies, because some compilers
3500 # like to wrap large dependency lists on column 80 (with \), and
3501 # we should not choose a depcomp mode which is confused by this.
3502 #
3503 # We need to recreate these files for each test, as the compiler may
3504 # overwrite some of them when testing with obscure command lines.
3505 # This happens at least with the AIX C compiler.
3506 : > sub/conftest.c
3507 for i in 1 2 3 4 5 6; do
3508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3509 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3510 # Solaris 8's {/usr,}/bin/sh.
3511 touch sub/conftst$i.h
3512 done
3513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3514
3515 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3516 # mode. It turns out that the SunPro C++ compiler does not properly
3517 # handle `-M -o', and we need to detect this. Also, some Intel
3518 # versions had trouble with output in subdirs
3519 am__obj=sub/conftest.${OBJEXT-o}
3520 am__minus_obj="-o $am__obj"
3521 case $depmode in
3522 gcc)
3523 # This depmode causes a compiler race in universal mode.
3524 test "$am__universal" = false || continue
3525 ;;
3526 nosideeffect)
3527 # after this tag, mechanisms are not by side-effect, so they'll
3528 # only be used when explicitly requested
3529 if test "x$enable_dependency_tracking" = xyes; then
3530 continue
3531 else
3532 break
3533 fi
3534 ;;
3535 msvisualcpp | msvcmsys)
3536 # This compiler won't grok `-c -o', but also, the minuso test has
3537 # not run yet. These depmodes are late enough in the game, and
3538 # so weak that their functioning should not be impacted.
3539 am__obj=conftest.${OBJEXT-o}
3540 am__minus_obj=
3541 ;;
3542 none) break ;;
3543 esac
3544 if depmode=$depmode \
3545 source=sub/conftest.c object=$am__obj \
3546 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3547 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3548 >/dev/null 2>conftest.err &&
3549 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3551 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3553 # icc doesn't choke on unknown options, it will just issue warnings
3554 # or remarks (even with -Werror). So we grep stderr for any message
3555 # that says an option was ignored or not supported.
3556 # When given -MP, icc 7.0 and 7.1 complain thusly:
3557 # icc: Command line warning: ignoring option '-M'; no argument required
3558 # The diagnosis changed in icc 8.0:
3559 # icc: Command line remark: option '-MP' not supported
3560 if (grep 'ignoring option' conftest.err ||
3561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3562 am_cv_CC_dependencies_compiler_type=$depmode
3563 break
3564 fi
3565 fi
3566 done
3567
3568 cd ..
3569 rm -rf conftest.dir
3570 else
3571 am_cv_CC_dependencies_compiler_type=none
3572 fi
3573
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3576 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3578
3579 if
3580 test "x$enable_dependency_tracking" != xno \
3581 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3582 am__fastdepCC_TRUE=
3583 am__fastdepCC_FALSE='#'
3584 else
3585 am__fastdepCC_TRUE='#'
3586 am__fastdepCC_FALSE=
3587 fi
3588
3589
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3592 if ${ac_cv_prog_cc_c99+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_cv_prog_cc_c99=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #include <stdarg.h>
3600 #include <stdbool.h>
3601 #include <stdlib.h>
3602 #include <wchar.h>
3603 #include <stdio.h>
3604
3605 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3606 #define debug(...) fprintf (stderr, __VA_ARGS__)
3607 #define showlist(...) puts (#__VA_ARGS__)
3608 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3609 static void
3610 test_varargs_macros (void)
3611 {
3612 int x = 1234;
3613 int y = 5678;
3614 debug ("Flag");
3615 debug ("X = %d\n", x);
3616 showlist (The first, second, and third items.);
3617 report (x>y, "x is %d but y is %d", x, y);
3618 }
3619
3620 // Check long long types.
3621 #define BIG64 18446744073709551615ull
3622 #define BIG32 4294967295ul
3623 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3624 #if !BIG_OK
3625 your preprocessor is broken;
3626 #endif
3627 #if BIG_OK
3628 #else
3629 your preprocessor is broken;
3630 #endif
3631 static long long int bignum = -9223372036854775807LL;
3632 static unsigned long long int ubignum = BIG64;
3633
3634 struct incomplete_array
3635 {
3636 int datasize;
3637 double data[];
3638 };
3639
3640 struct named_init {
3641 int number;
3642 const wchar_t *name;
3643 double average;
3644 };
3645
3646 typedef const char *ccp;
3647
3648 static inline int
3649 test_restrict (ccp restrict text)
3650 {
3651 // See if C++-style comments work.
3652 // Iterate through items via the restricted pointer.
3653 // Also check for declarations in for loops.
3654 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3655 continue;
3656 return 0;
3657 }
3658
3659 // Check varargs and va_copy.
3660 static void
3661 test_varargs (const char *format, ...)
3662 {
3663 va_list args;
3664 va_start (args, format);
3665 va_list args_copy;
3666 va_copy (args_copy, args);
3667
3668 const char *str;
3669 int number;
3670 float fnumber;
3671
3672 while (*format)
3673 {
3674 switch (*format++)
3675 {
3676 case 's': // string
3677 str = va_arg (args_copy, const char *);
3678 break;
3679 case 'd': // int
3680 number = va_arg (args_copy, int);
3681 break;
3682 case 'f': // float
3683 fnumber = va_arg (args_copy, double);
3684 break;
3685 default:
3686 break;
3687 }
3688 }
3689 va_end (args_copy);
3690 va_end (args);
3691 }
3692
3693 int
3694 main ()
3695 {
3696
3697 // Check bool.
3698 _Bool success = false;
3699
3700 // Check restrict.
3701 if (test_restrict ("String literal") == 0)
3702 success = true;
3703 char *restrict newvar = "Another string";
3704
3705 // Check varargs.
3706 test_varargs ("s, d' f .", "string", 65, 34.234);
3707 test_varargs_macros ();
3708
3709 // Check flexible array members.
3710 struct incomplete_array *ia =
3711 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3712 ia->datasize = 10;
3713 for (int i = 0; i < ia->datasize; ++i)
3714 ia->data[i] = i * 1.234;
3715
3716 // Check named initializers.
3717 struct named_init ni = {
3718 .number = 34,
3719 .name = L"Test wide string",
3720 .average = 543.34343,
3721 };
3722
3723 ni.number = 58;
3724
3725 int dynamic_array[ni.number];
3726 dynamic_array[ni.number - 1] = 543;
3727
3728 // work around unused variable warnings
3729 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3730 || dynamic_array[ni.number - 1] != 543);
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3737 do
3738 CC="$ac_save_CC $ac_arg"
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_prog_cc_c99=$ac_arg
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext
3743 test "x$ac_cv_prog_cc_c99" != "xno" && break
3744 done
3745 rm -f conftest.$ac_ext
3746 CC=$ac_save_CC
3747
3748 fi
3749 # AC_CACHE_VAL
3750 case "x$ac_cv_prog_cc_c99" in
3751 x)
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753 $as_echo "none needed" >&6; } ;;
3754 xno)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756 $as_echo "unsupported" >&6; } ;;
3757 *)
3758 CC="$CC $ac_cv_prog_cc_c99"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3760 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3761 esac
3762 if test "x$ac_cv_prog_cc_c99" != xno; then :
3763
3764 fi
3765
3766
3767
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3774 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3775 # On Suns, sometimes $CPP names a directory.
3776 if test -n "$CPP" && test -d "$CPP"; then
3777 CPP=
3778 fi
3779 if test -z "$CPP"; then
3780 if ${ac_cv_prog_CPP+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 # Double quotes because CPP needs to be expanded
3784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785 do
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3788 do
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #ifdef __STDC__
3798 # include <limits.h>
3799 #else
3800 # include <assert.h>
3801 #endif
3802 Syntax error
3803 _ACEOF
3804 if ac_fn_c_try_cpp "$LINENO"; then :
3805
3806 else
3807 # Broken: fails on valid input.
3808 continue
3809 fi
3810 rm -f conftest.err conftest.i conftest.$ac_ext
3811
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3817 _ACEOF
3818 if ac_fn_c_try_cpp "$LINENO"; then :
3819 # Broken: success on invalid input.
3820 continue
3821 else
3822 # Passes both tests.
3823 ac_preproc_ok=:
3824 break
3825 fi
3826 rm -f conftest.err conftest.i conftest.$ac_ext
3827
3828 done
3829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3830 rm -f conftest.i conftest.err conftest.$ac_ext
3831 if $ac_preproc_ok; then :
3832 break
3833 fi
3834
3835 done
3836 ac_cv_prog_CPP=$CPP
3837
3838 fi
3839 CPP=$ac_cv_prog_CPP
3840 else
3841 ac_cv_prog_CPP=$CPP
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3844 $as_echo "$CPP" >&6; }
3845 ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3847 do
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #ifdef __STDC__
3857 # include <limits.h>
3858 #else
3859 # include <assert.h>
3860 #endif
3861 Syntax error
3862 _ACEOF
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3864
3865 else
3866 # Broken: fails on valid input.
3867 continue
3868 fi
3869 rm -f conftest.err conftest.i conftest.$ac_ext
3870
3871 # OK, works on sane cases. Now check whether nonexistent headers
3872 # can be detected and how.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #include <ac_nonexistent.h>
3876 _ACEOF
3877 if ac_fn_c_try_cpp "$LINENO"; then :
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3884 fi
3885 rm -f conftest.err conftest.i conftest.$ac_ext
3886
3887 done
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.i conftest.err conftest.$ac_ext
3890 if $ac_preproc_ok; then :
3891
3892 else
3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3896 See \`config.log' for more details" "$LINENO" 5; }
3897 fi
3898
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3907 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3908 if ${ac_cv_path_GREP+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -z "$GREP"; then
3912 ac_path_GREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in grep ggrep; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3922 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3923 # Check for GNU ac_path_GREP and select it if it is found.
3924 # Check for GNU $ac_path_GREP
3925 case `"$ac_path_GREP" --version 2>&1` in
3926 *GNU*)
3927 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3928 *)
3929 ac_count=0
3930 $as_echo_n 0123456789 >"conftest.in"
3931 while :
3932 do
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
3936 $as_echo 'GREP' >> "conftest.nl"
3937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939 as_fn_arith $ac_count + 1 && ac_count=$as_val
3940 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3941 # Best one so far, save it but keep looking for a better one
3942 ac_cv_path_GREP="$ac_path_GREP"
3943 ac_path_GREP_max=$ac_count
3944 fi
3945 # 10*(2^10) chars as input seems more than enough
3946 test $ac_count -gt 10 && break
3947 done
3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 esac
3950
3951 $ac_path_GREP_found && break 3
3952 done
3953 done
3954 done
3955 IFS=$as_save_IFS
3956 if test -z "$ac_cv_path_GREP"; then
3957 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3958 fi
3959 else
3960 ac_cv_path_GREP=$GREP
3961 fi
3962
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3965 $as_echo "$ac_cv_path_GREP" >&6; }
3966 GREP="$ac_cv_path_GREP"
3967
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3970 $as_echo_n "checking for egrep... " >&6; }
3971 if ${ac_cv_path_EGREP+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3975 then ac_cv_path_EGREP="$GREP -E"
3976 else
3977 if test -z "$EGREP"; then
3978 ac_path_EGREP_found=false
3979 # Loop through the user's path and test for each of PROGNAME-LIST
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_prog in egrep; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3988 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3989 # Check for GNU ac_path_EGREP and select it if it is found.
3990 # Check for GNU $ac_path_EGREP
3991 case `"$ac_path_EGREP" --version 2>&1` in
3992 *GNU*)
3993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3994 *)
3995 ac_count=0
3996 $as_echo_n 0123456789 >"conftest.in"
3997 while :
3998 do
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
4002 $as_echo 'EGREP' >> "conftest.nl"
4003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005 as_fn_arith $ac_count + 1 && ac_count=$as_val
4006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_EGREP="$ac_path_EGREP"
4009 ac_path_EGREP_max=$ac_count
4010 fi
4011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4013 done
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 esac
4016
4017 $ac_path_EGREP_found && break 3
4018 done
4019 done
4020 done
4021 IFS=$as_save_IFS
4022 if test -z "$ac_cv_path_EGREP"; then
4023 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 fi
4025 else
4026 ac_cv_path_EGREP=$EGREP
4027 fi
4028
4029 fi
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4032 $as_echo "$ac_cv_path_EGREP" >&6; }
4033 EGREP="$ac_cv_path_EGREP"
4034
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4037 $as_echo_n "checking for ANSI C header files... " >&6; }
4038 if ${ac_cv_header_stdc+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043 #include <stdlib.h>
4044 #include <stdarg.h>
4045 #include <string.h>
4046 #include <float.h>
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_header_stdc=yes
4058 else
4059 ac_cv_header_stdc=no
4060 fi
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062
4063 if test $ac_cv_header_stdc = yes; then
4064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067 #include <string.h>
4068
4069 _ACEOF
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071 $EGREP "memchr" >/dev/null 2>&1; then :
4072
4073 else
4074 ac_cv_header_stdc=no
4075 fi
4076 rm -f conftest*
4077
4078 fi
4079
4080 if test $ac_cv_header_stdc = yes; then
4081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <stdlib.h>
4085
4086 _ACEOF
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 $EGREP "free" >/dev/null 2>&1; then :
4089
4090 else
4091 ac_cv_header_stdc=no
4092 fi
4093 rm -f conftest*
4094
4095 fi
4096
4097 if test $ac_cv_header_stdc = yes; then
4098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4099 if test "$cross_compiling" = yes; then :
4100 :
4101 else
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <ctype.h>
4105 #include <stdlib.h>
4106 #if ((' ' & 0x0FF) == 0x020)
4107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4109 #else
4110 # define ISLOWER(c) \
4111 (('a' <= (c) && (c) <= 'i') \
4112 || ('j' <= (c) && (c) <= 'r') \
4113 || ('s' <= (c) && (c) <= 'z'))
4114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4115 #endif
4116
4117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4118 int
4119 main ()
4120 {
4121 int i;
4122 for (i = 0; i < 256; i++)
4123 if (XOR (islower (i), ISLOWER (i))
4124 || toupper (i) != TOUPPER (i))
4125 return 2;
4126 return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_run "$LINENO"; then :
4130
4131 else
4132 ac_cv_header_stdc=no
4133 fi
4134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4135 conftest.$ac_objext conftest.beam conftest.$ac_ext
4136 fi
4137
4138 fi
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4141 $as_echo "$ac_cv_header_stdc" >&6; }
4142 if test $ac_cv_header_stdc = yes; then
4143
4144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4145
4146 fi
4147
4148 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4149 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4150 inttypes.h stdint.h unistd.h
4151 do :
4152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4154 "
4155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4156 cat >>confdefs.h <<_ACEOF
4157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4158 _ACEOF
4159
4160 fi
4161
4162 done
4163
4164
4165
4166
4167 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4168 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4169 CLANGCC="yes"
4170 else
4171 CLANGCC="no"
4172 fi
4173
4174 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4175 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4176 INTELCC="yes"
4177 else
4178 INTELCC="no"
4179 fi
4180
4181 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4182 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4183 SUNCC="yes"
4184 else
4185 SUNCC="no"
4186 fi
4187
4188
4189
4190
4191 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4192 if test -n "$ac_tool_prefix"; then
4193 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 case $PKG_CONFIG in
4201 [\\/]* | ?:[\\/]*)
4202 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4203 ;;
4204 *)
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220 ;;
4221 esac
4222 fi
4223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4224 if test -n "$PKG_CONFIG"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4226 $as_echo "$PKG_CONFIG" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233 fi
4234 if test -z "$ac_cv_path_PKG_CONFIG"; then
4235 ac_pt_PKG_CONFIG=$PKG_CONFIG
4236 # Extract the first word of "pkg-config", so it can be a program name with args.
4237 set dummy pkg-config; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 case $ac_pt_PKG_CONFIG in
4244 [\\/]* | ?:[\\/]*)
4245 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4246 ;;
4247 *)
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 ;;
4264 esac
4265 fi
4266 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4267 if test -n "$ac_pt_PKG_CONFIG"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4269 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4273 fi
4274
4275 if test "x$ac_pt_PKG_CONFIG" = x; then
4276 PKG_CONFIG=""
4277 else
4278 case $cross_compiling:$ac_tool_warned in
4279 yes:)
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4282 ac_tool_warned=yes ;;
4283 esac
4284 PKG_CONFIG=$ac_pt_PKG_CONFIG
4285 fi
4286 else
4287 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4288 fi
4289
4290 fi
4291 if test -n "$PKG_CONFIG"; then
4292 _pkg_min_version=0.9.0
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4294 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4295 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4297 $as_echo "yes" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 PKG_CONFIG=""
4302 fi
4303
4304 fi
4305 # Make sure we can run config.sub.
4306 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4307 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4310 $as_echo_n "checking build system type... " >&6; }
4311 if ${ac_cv_build+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 ac_build_alias=$build_alias
4315 test "x$ac_build_alias" = x &&
4316 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4317 test "x$ac_build_alias" = x &&
4318 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4319 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4321
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4324 $as_echo "$ac_cv_build" >&6; }
4325 case $ac_cv_build in
4326 *-*-*) ;;
4327 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4328 esac
4329 build=$ac_cv_build
4330 ac_save_IFS=$IFS; IFS='-'
4331 set x $ac_cv_build
4332 shift
4333 build_cpu=$1
4334 build_vendor=$2
4335 shift; shift
4336 # Remember, the first character of IFS is used to create $*,
4337 # except with old shells:
4338 build_os=$*
4339 IFS=$ac_save_IFS
4340 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4341
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4344 $as_echo_n "checking host system type... " >&6; }
4345 if ${ac_cv_host+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test "x$host_alias" = x; then
4349 ac_cv_host=$ac_cv_build
4350 else
4351 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4353 fi
4354
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4357 $as_echo "$ac_cv_host" >&6; }
4358 case $ac_cv_host in
4359 *-*-*) ;;
4360 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4361 esac
4362 host=$ac_cv_host
4363 ac_save_IFS=$IFS; IFS='-'
4364 set x $ac_cv_host
4365 shift
4366 host_cpu=$1
4367 host_vendor=$2
4368 shift; shift
4369 # Remember, the first character of IFS is used to create $*,
4370 # except with old shells:
4371 host_os=$*
4372 IFS=$ac_save_IFS
4373 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4377 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4378 if ${ac_cv_path_SED+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4382 for ac_i in 1 2 3 4 5 6 7; do
4383 ac_script="$ac_script$as_nl$ac_script"
4384 done
4385 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4386 { ac_script=; unset ac_script;}
4387 if test -z "$SED"; then
4388 ac_path_SED_found=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_prog in sed gsed; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4398 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4399 # Check for GNU ac_path_SED and select it if it is found.
4400 # Check for GNU $ac_path_SED
4401 case `"$ac_path_SED" --version 2>&1` in
4402 *GNU*)
4403 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4404 *)
4405 ac_count=0
4406 $as_echo_n 0123456789 >"conftest.in"
4407 while :
4408 do
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo '' >> "conftest.nl"
4413 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
4416 if test $ac_count -gt ${ac_path_SED_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_SED="$ac_path_SED"
4419 ac_path_SED_max=$ac_count
4420 fi
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4423 done
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 esac
4426
4427 $ac_path_SED_found && break 3
4428 done
4429 done
4430 done
4431 IFS=$as_save_IFS
4432 if test -z "$ac_cv_path_SED"; then
4433 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4434 fi
4435 else
4436 ac_cv_path_SED=$SED
4437 fi
4438
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4441 $as_echo "$ac_cv_path_SED" >&6; }
4442 SED="$ac_cv_path_SED"
4443 rm -f conftest.sed
4444
4445
4446
4447
4448
4449
4450 # Check whether --enable-selective-werror was given.
4451 if test "${enable_selective_werror+set}" = set; then :
4452 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4453 else
4454 SELECTIVE_WERROR=yes
4455 fi
4456
4457
4458 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4459 if test "x$SUNCC" = "xyes"; then
4460 BASE_CFLAGS="-v"
4461 else
4462 BASE_CFLAGS=""
4463 fi
4464
4465 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4466
4467
4468
4469
4470
4471 xorg_testset_save_CFLAGS="$CFLAGS"
4472
4473 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4476 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4477 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 int i;
4483 _ACEOF
4484 if ac_fn_c_try_compile "$LINENO"; then :
4485 xorg_cv_cc_flag_unknown_warning_option=yes
4486 else
4487 xorg_cv_cc_flag_unknown_warning_option=no
4488 fi
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4492 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4493 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4494 CFLAGS="$xorg_testset_save_CFLAGS"
4495 fi
4496
4497 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4500 fi
4501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4503 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4504 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 int i;
4510 _ACEOF
4511 if ac_fn_c_try_compile "$LINENO"; then :
4512 xorg_cv_cc_flag_unused_command_line_argument=yes
4513 else
4514 xorg_cv_cc_flag_unused_command_line_argument=no
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4519 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4520 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4521 CFLAGS="$xorg_testset_save_CFLAGS"
4522 fi
4523
4524 found="no"
4525
4526 if test $found = "no" ; then
4527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4529 fi
4530
4531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4533 fi
4534
4535 CFLAGS="$CFLAGS -Wall"
4536
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4538 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4539 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4540 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 int i;
4546 int
4547 main ()
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_link "$LINENO"; then :
4555 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4556 else
4557 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext \
4560 conftest$ac_exeext conftest.$ac_ext
4561 fi
4562
4563
4564 CFLAGS="$xorg_testset_save_CFLAGS"
4565
4566 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4568 $as_echo "$supported" >&6; }
4569 if test "$supported" = "yes" ; then
4570 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4571 found="yes"
4572 fi
4573 fi
4574
4575
4576
4577
4578
4579
4580
4581 xorg_testset_save_CFLAGS="$CFLAGS"
4582
4583 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 int i;
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 xorg_cv_cc_flag_unknown_warning_option=yes
4596 else
4597 xorg_cv_cc_flag_unknown_warning_option=no
4598 fi
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4603 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4604 CFLAGS="$xorg_testset_save_CFLAGS"
4605 fi
4606
4607 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4610 fi
4611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 int i;
4620 _ACEOF
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 xorg_cv_cc_flag_unused_command_line_argument=yes
4623 else
4624 xorg_cv_cc_flag_unused_command_line_argument=no
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4630 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4631 CFLAGS="$xorg_testset_save_CFLAGS"
4632 fi
4633
4634 found="no"
4635
4636 if test $found = "no" ; then
4637 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4639 fi
4640
4641 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4643 fi
4644
4645 CFLAGS="$CFLAGS -Wpointer-arith"
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4648 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4649 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4650 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 int i;
4656 int
4657 main ()
4658 {
4659
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 if ac_fn_c_try_link "$LINENO"; then :
4665 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4666 else
4667 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext \
4670 conftest$ac_exeext conftest.$ac_ext
4671 fi
4672
4673
4674 CFLAGS="$xorg_testset_save_CFLAGS"
4675
4676 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4678 $as_echo "$supported" >&6; }
4679 if test "$supported" = "yes" ; then
4680 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4681 found="yes"
4682 fi
4683 fi
4684
4685
4686
4687
4688
4689
4690
4691 xorg_testset_save_CFLAGS="$CFLAGS"
4692
4693 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4696 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4697 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 int i;
4703 _ACEOF
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 xorg_cv_cc_flag_unknown_warning_option=yes
4706 else
4707 xorg_cv_cc_flag_unknown_warning_option=no
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4712 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4713 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4714 CFLAGS="$xorg_testset_save_CFLAGS"
4715 fi
4716
4717 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4720 fi
4721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4723 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4724 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 int i;
4730 _ACEOF
4731 if ac_fn_c_try_compile "$LINENO"; then :
4732 xorg_cv_cc_flag_unused_command_line_argument=yes
4733 else
4734 xorg_cv_cc_flag_unused_command_line_argument=no
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4739 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4740 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4741 CFLAGS="$xorg_testset_save_CFLAGS"
4742 fi
4743
4744 found="no"
4745
4746 if test $found = "no" ; then
4747 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4749 fi
4750
4751 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4753 fi
4754
4755 CFLAGS="$CFLAGS -Wstrict-prototypes"
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4758 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4759 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4760 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 int i;
4766 int
4767 main ()
4768 {
4769
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_link "$LINENO"; then :
4775 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4776 else
4777 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext \
4780 conftest$ac_exeext conftest.$ac_ext
4781 fi
4782
4783
4784 CFLAGS="$xorg_testset_save_CFLAGS"
4785
4786 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4788 $as_echo "$supported" >&6; }
4789 if test "$supported" = "yes" ; then
4790 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4791 found="yes"
4792 fi
4793 fi
4794
4795
4796
4797
4798
4799
4800
4801 xorg_testset_save_CFLAGS="$CFLAGS"
4802
4803 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 int i;
4813 _ACEOF
4814 if ac_fn_c_try_compile "$LINENO"; then :
4815 xorg_cv_cc_flag_unknown_warning_option=yes
4816 else
4817 xorg_cv_cc_flag_unknown_warning_option=no
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4823 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4824 CFLAGS="$xorg_testset_save_CFLAGS"
4825 fi
4826
4827 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4830 fi
4831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 int i;
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842 xorg_cv_cc_flag_unused_command_line_argument=yes
4843 else
4844 xorg_cv_cc_flag_unused_command_line_argument=no
4845 fi
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4850 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4851 CFLAGS="$xorg_testset_save_CFLAGS"
4852 fi
4853
4854 found="no"
4855
4856 if test $found = "no" ; then
4857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859 fi
4860
4861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4863 fi
4864
4865 CFLAGS="$CFLAGS -Wmissing-prototypes"
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4868 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4869 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4870 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 int i;
4876 int
4877 main ()
4878 {
4879
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_link "$LINENO"; then :
4885 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4886 else
4887 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext \
4890 conftest$ac_exeext conftest.$ac_ext
4891 fi
4892
4893
4894 CFLAGS="$xorg_testset_save_CFLAGS"
4895
4896 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4898 $as_echo "$supported" >&6; }
4899 if test "$supported" = "yes" ; then
4900 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4901 found="yes"
4902 fi
4903 fi
4904
4905
4906
4907
4908
4909
4910
4911 xorg_testset_save_CFLAGS="$CFLAGS"
4912
4913 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 int i;
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925 xorg_cv_cc_flag_unknown_warning_option=yes
4926 else
4927 xorg_cv_cc_flag_unknown_warning_option=no
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4933 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4934 CFLAGS="$xorg_testset_save_CFLAGS"
4935 fi
4936
4937 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4938 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4940 fi
4941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 int i;
4950 _ACEOF
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 xorg_cv_cc_flag_unused_command_line_argument=yes
4953 else
4954 xorg_cv_cc_flag_unused_command_line_argument=no
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4960 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4961 CFLAGS="$xorg_testset_save_CFLAGS"
4962 fi
4963
4964 found="no"
4965
4966 if test $found = "no" ; then
4967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969 fi
4970
4971 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4973 fi
4974
4975 CFLAGS="$CFLAGS -Wmissing-declarations"
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4978 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4979 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
4980 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 int i;
4986 int
4987 main ()
4988 {
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_c_try_link "$LINENO"; then :
4995 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4996 else
4997 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext \
5000 conftest$ac_exeext conftest.$ac_ext
5001 fi
5002
5003
5004 CFLAGS="$xorg_testset_save_CFLAGS"
5005
5006 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5008 $as_echo "$supported" >&6; }
5009 if test "$supported" = "yes" ; then
5010 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5011 found="yes"
5012 fi
5013 fi
5014
5015
5016
5017
5018
5019
5020
5021 xorg_testset_save_CFLAGS="$CFLAGS"
5022
5023 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5026 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5027 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 int i;
5033 _ACEOF
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 xorg_cv_cc_flag_unknown_warning_option=yes
5036 else
5037 xorg_cv_cc_flag_unknown_warning_option=no
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5042 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5043 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5044 CFLAGS="$xorg_testset_save_CFLAGS"
5045 fi
5046
5047 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050 fi
5051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5053 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5054 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 int i;
5060 _ACEOF
5061 if ac_fn_c_try_compile "$LINENO"; then :
5062 xorg_cv_cc_flag_unused_command_line_argument=yes
5063 else
5064 xorg_cv_cc_flag_unused_command_line_argument=no
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5069 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5070 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5071 CFLAGS="$xorg_testset_save_CFLAGS"
5072 fi
5073
5074 found="no"
5075
5076 if test $found = "no" ; then
5077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079 fi
5080
5081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5083 fi
5084
5085 CFLAGS="$CFLAGS -Wnested-externs"
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5088 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5089 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5090 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 int i;
5096 int
5097 main ()
5098 {
5099
5100 ;
5101 return 0;
5102 }
5103 _ACEOF
5104 if ac_fn_c_try_link "$LINENO"; then :
5105 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5106 else
5107 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext \
5110 conftest$ac_exeext conftest.$ac_ext
5111 fi
5112
5113
5114 CFLAGS="$xorg_testset_save_CFLAGS"
5115
5116 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5118 $as_echo "$supported" >&6; }
5119 if test "$supported" = "yes" ; then
5120 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5121 found="yes"
5122 fi
5123 fi
5124
5125
5126
5127
5128
5129
5130
5131 xorg_testset_save_CFLAGS="$CFLAGS"
5132
5133 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5136 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5137 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 int i;
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"; then :
5145 xorg_cv_cc_flag_unknown_warning_option=yes
5146 else
5147 xorg_cv_cc_flag_unknown_warning_option=no
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5152 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5153 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5154 CFLAGS="$xorg_testset_save_CFLAGS"
5155 fi
5156
5157 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160 fi
5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5163 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5164 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 int i;
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 xorg_cv_cc_flag_unused_command_line_argument=yes
5173 else
5174 xorg_cv_cc_flag_unused_command_line_argument=no
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5179 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5180 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5181 CFLAGS="$xorg_testset_save_CFLAGS"
5182 fi
5183
5184 found="no"
5185
5186 if test $found = "no" ; then
5187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189 fi
5190
5191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5193 fi
5194
5195 CFLAGS="$CFLAGS -Wbad-function-cast"
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5198 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5199 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5200 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 int i;
5206 int
5207 main ()
5208 {
5209
5210 ;
5211 return 0;
5212 }
5213 _ACEOF
5214 if ac_fn_c_try_link "$LINENO"; then :
5215 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5216 else
5217 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5221 fi
5222
5223
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225
5226 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5228 $as_echo "$supported" >&6; }
5229 if test "$supported" = "yes" ; then
5230 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5231 found="yes"
5232 fi
5233 fi
5234
5235
5236
5237
5238
5239
5240
5241 xorg_testset_save_CFLAGS="$CFLAGS"
5242
5243 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5246 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5247 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 int i;
5253 _ACEOF
5254 if ac_fn_c_try_compile "$LINENO"; then :
5255 xorg_cv_cc_flag_unknown_warning_option=yes
5256 else
5257 xorg_cv_cc_flag_unknown_warning_option=no
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5262 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5263 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5264 CFLAGS="$xorg_testset_save_CFLAGS"
5265 fi
5266
5267 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5270 fi
5271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5273 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5274 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 int i;
5280 _ACEOF
5281 if ac_fn_c_try_compile "$LINENO"; then :
5282 xorg_cv_cc_flag_unused_command_line_argument=yes
5283 else
5284 xorg_cv_cc_flag_unused_command_line_argument=no
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5289 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5290 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5291 CFLAGS="$xorg_testset_save_CFLAGS"
5292 fi
5293
5294 found="no"
5295
5296 if test $found = "no" ; then
5297 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299 fi
5300
5301 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5303 fi
5304
5305 CFLAGS="$CFLAGS -Wformat=2"
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5308 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5309 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5310 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 int i;
5316 int
5317 main ()
5318 {
5319
5320 ;
5321 return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_link "$LINENO"; then :
5325 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5326 else
5327 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext \
5330 conftest$ac_exeext conftest.$ac_ext
5331 fi
5332
5333
5334 CFLAGS="$xorg_testset_save_CFLAGS"
5335
5336 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5338 $as_echo "$supported" >&6; }
5339 if test "$supported" = "yes" ; then
5340 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5341 found="yes"
5342 fi
5343 fi
5344
5345 if test $found = "no" ; then
5346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5348 fi
5349
5350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5352 fi
5353
5354 CFLAGS="$CFLAGS -Wformat"
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5357 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5358 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5359 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 int i;
5365 int
5366 main ()
5367 {
5368
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_link "$LINENO"; then :
5374 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5375 else
5376 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5380 fi
5381
5382
5383 CFLAGS="$xorg_testset_save_CFLAGS"
5384
5385 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5387 $as_echo "$supported" >&6; }
5388 if test "$supported" = "yes" ; then
5389 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5390 found="yes"
5391 fi
5392 fi
5393
5394
5395
5396
5397
5398
5399
5400 xorg_testset_save_CFLAGS="$CFLAGS"
5401
5402 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 int i;
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414 xorg_cv_cc_flag_unknown_warning_option=yes
5415 else
5416 xorg_cv_cc_flag_unknown_warning_option=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5422 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5423 CFLAGS="$xorg_testset_save_CFLAGS"
5424 fi
5425
5426 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429 fi
5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 xorg_cv_cc_flag_unused_command_line_argument=yes
5442 else
5443 xorg_cv_cc_flag_unused_command_line_argument=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5449 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5450 CFLAGS="$xorg_testset_save_CFLAGS"
5451 fi
5452
5453 found="no"
5454
5455 if test $found = "no" ; then
5456 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458 fi
5459
5460 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5462 fi
5463
5464 CFLAGS="$CFLAGS -Wold-style-definition"
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5467 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5468 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5469 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 int i;
5475 int
5476 main ()
5477 {
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 if ac_fn_c_try_link "$LINENO"; then :
5484 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5485 else
5486 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext \
5489 conftest$ac_exeext conftest.$ac_ext
5490 fi
5491
5492
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494
5495 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497 $as_echo "$supported" >&6; }
5498 if test "$supported" = "yes" ; then
5499 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5500 found="yes"
5501 fi
5502 fi
5503
5504
5505
5506
5507
5508
5509
5510 xorg_testset_save_CFLAGS="$CFLAGS"
5511
5512 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5516 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 int i;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 xorg_cv_cc_flag_unknown_warning_option=yes
5525 else
5526 xorg_cv_cc_flag_unknown_warning_option=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5531 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5532 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5533 CFLAGS="$xorg_testset_save_CFLAGS"
5534 fi
5535
5536 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539 fi
5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5542 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5543 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 int i;
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 xorg_cv_cc_flag_unused_command_line_argument=yes
5552 else
5553 xorg_cv_cc_flag_unused_command_line_argument=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5558 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5559 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5560 CFLAGS="$xorg_testset_save_CFLAGS"
5561 fi
5562
5563 found="no"
5564
5565 if test $found = "no" ; then
5566 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568 fi
5569
5570 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5572 fi
5573
5574 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5577 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5578 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5579 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 int i;
5585 int
5586 main ()
5587 {
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_c_try_link "$LINENO"; then :
5594 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5595 else
5596 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext \
5599 conftest$ac_exeext conftest.$ac_ext
5600 fi
5601
5602
5603 CFLAGS="$xorg_testset_save_CFLAGS"
5604
5605 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5607 $as_echo "$supported" >&6; }
5608 if test "$supported" = "yes" ; then
5609 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5610 found="yes"
5611 fi
5612 fi
5613
5614
5615
5616 # This chunk adds additional warnings that could catch undesired effects.
5617
5618
5619
5620
5621
5622 xorg_testset_save_CFLAGS="$CFLAGS"
5623
5624 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5627 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5628 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 int i;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 xorg_cv_cc_flag_unknown_warning_option=yes
5637 else
5638 xorg_cv_cc_flag_unknown_warning_option=no
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5643 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5644 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5645 CFLAGS="$xorg_testset_save_CFLAGS"
5646 fi
5647
5648 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5649 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651 fi
5652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5654 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5655 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 int i;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 xorg_cv_cc_flag_unused_command_line_argument=yes
5664 else
5665 xorg_cv_cc_flag_unused_command_line_argument=no
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5670 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5671 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5672 CFLAGS="$xorg_testset_save_CFLAGS"
5673 fi
5674
5675 found="no"
5676
5677 if test $found = "no" ; then
5678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680 fi
5681
5682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5684 fi
5685
5686 CFLAGS="$CFLAGS -Wunused"
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5689 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5690 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5691 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 int i;
5697 int
5698 main ()
5699 {
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5707 else
5708 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 fi
5713
5714
5715 CFLAGS="$xorg_testset_save_CFLAGS"
5716
5717 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5719 $as_echo "$supported" >&6; }
5720 if test "$supported" = "yes" ; then
5721 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5722 found="yes"
5723 fi
5724 fi
5725
5726
5727
5728
5729
5730
5731
5732 xorg_testset_save_CFLAGS="$CFLAGS"
5733
5734 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5737 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5738 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 int i;
5744 _ACEOF
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746 xorg_cv_cc_flag_unknown_warning_option=yes
5747 else
5748 xorg_cv_cc_flag_unknown_warning_option=no
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5753 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5754 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5755 CFLAGS="$xorg_testset_save_CFLAGS"
5756 fi
5757
5758 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5759 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761 fi
5762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5764 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5765 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 int i;
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 xorg_cv_cc_flag_unused_command_line_argument=yes
5774 else
5775 xorg_cv_cc_flag_unused_command_line_argument=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5780 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5781 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5782 CFLAGS="$xorg_testset_save_CFLAGS"
5783 fi
5784
5785 found="no"
5786
5787 if test $found = "no" ; then
5788 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790 fi
5791
5792 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794 fi
5795
5796 CFLAGS="$CFLAGS -Wuninitialized"
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5799 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5800 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5801 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 int i;
5807 int
5808 main ()
5809 {
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"; then :
5816 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5817 else
5818 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext \
5821 conftest$ac_exeext conftest.$ac_ext
5822 fi
5823
5824
5825 CFLAGS="$xorg_testset_save_CFLAGS"
5826
5827 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5829 $as_echo "$supported" >&6; }
5830 if test "$supported" = "yes" ; then
5831 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5832 found="yes"
5833 fi
5834 fi
5835
5836
5837
5838
5839
5840
5841
5842 xorg_testset_save_CFLAGS="$CFLAGS"
5843
5844 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 int i;
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 xorg_cv_cc_flag_unknown_warning_option=yes
5857 else
5858 xorg_cv_cc_flag_unknown_warning_option=no
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5864 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5865 CFLAGS="$xorg_testset_save_CFLAGS"
5866 fi
5867
5868 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5869 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871 fi
5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 int i;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 xorg_cv_cc_flag_unused_command_line_argument=yes
5884 else
5885 xorg_cv_cc_flag_unused_command_line_argument=no
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5891 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5892 CFLAGS="$xorg_testset_save_CFLAGS"
5893 fi
5894
5895 found="no"
5896
5897 if test $found = "no" ; then
5898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900 fi
5901
5902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5904 fi
5905
5906 CFLAGS="$CFLAGS -Wshadow"
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5909 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5910 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
5911 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 int i;
5917 int
5918 main ()
5919 {
5920
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"; then :
5926 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5927 else
5928 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5932 fi
5933
5934
5935 CFLAGS="$xorg_testset_save_CFLAGS"
5936
5937 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939 $as_echo "$supported" >&6; }
5940 if test "$supported" = "yes" ; then
5941 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5942 found="yes"
5943 fi
5944 fi
5945
5946
5947
5948
5949
5950
5951
5952 xorg_testset_save_CFLAGS="$CFLAGS"
5953
5954 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 int i;
5964 _ACEOF
5965 if ac_fn_c_try_compile "$LINENO"; then :
5966 xorg_cv_cc_flag_unknown_warning_option=yes
5967 else
5968 xorg_cv_cc_flag_unknown_warning_option=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5974 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5975 CFLAGS="$xorg_testset_save_CFLAGS"
5976 fi
5977
5978 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5981 fi
5982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 int i;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993 xorg_cv_cc_flag_unused_command_line_argument=yes
5994 else
5995 xorg_cv_cc_flag_unused_command_line_argument=no
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6001 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6002 CFLAGS="$xorg_testset_save_CFLAGS"
6003 fi
6004
6005 found="no"
6006
6007 if test $found = "no" ; then
6008 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010 fi
6011
6012 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014 fi
6015
6016 CFLAGS="$CFLAGS -Wcast-qual"
6017
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6019 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6020 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6021 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 int i;
6027 int
6028 main ()
6029 {
6030
6031 ;
6032 return 0;
6033 }
6034 _ACEOF
6035 if ac_fn_c_try_link "$LINENO"; then :
6036 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6037 else
6038 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042 fi
6043
6044
6045 CFLAGS="$xorg_testset_save_CFLAGS"
6046
6047 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6049 $as_echo "$supported" >&6; }
6050 if test "$supported" = "yes" ; then
6051 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6052 found="yes"
6053 fi
6054 fi
6055
6056
6057
6058
6059
6060
6061
6062 xorg_testset_save_CFLAGS="$CFLAGS"
6063
6064 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 int i;
6074 _ACEOF
6075 if ac_fn_c_try_compile "$LINENO"; then :
6076 xorg_cv_cc_flag_unknown_warning_option=yes
6077 else
6078 xorg_cv_cc_flag_unknown_warning_option=no
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6084 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6085 CFLAGS="$xorg_testset_save_CFLAGS"
6086 fi
6087
6088 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6091 fi
6092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 int i;
6101 _ACEOF
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 xorg_cv_cc_flag_unused_command_line_argument=yes
6104 else
6105 xorg_cv_cc_flag_unused_command_line_argument=no
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6111 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6112 CFLAGS="$xorg_testset_save_CFLAGS"
6113 fi
6114
6115 found="no"
6116
6117 if test $found = "no" ; then
6118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6120 fi
6121
6122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124 fi
6125
6126 CFLAGS="$CFLAGS -Wmissing-noreturn"
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6129 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6130 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6131 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 int i;
6137 int
6138 main ()
6139 {
6140
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_link "$LINENO"; then :
6146 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6147 else
6148 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext \
6151 conftest$ac_exeext conftest.$ac_ext
6152 fi
6153
6154
6155 CFLAGS="$xorg_testset_save_CFLAGS"
6156
6157 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6159 $as_echo "$supported" >&6; }
6160 if test "$supported" = "yes" ; then
6161 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6162 found="yes"
6163 fi
6164 fi
6165
6166
6167
6168
6169
6170
6171
6172 xorg_testset_save_CFLAGS="$CFLAGS"
6173
6174 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6177 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6178 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6183 int i;
6184 _ACEOF
6185 if ac_fn_c_try_compile "$LINENO"; then :
6186 xorg_cv_cc_flag_unknown_warning_option=yes
6187 else
6188 xorg_cv_cc_flag_unknown_warning_option=no
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 fi
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6193 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6194 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6195 CFLAGS="$xorg_testset_save_CFLAGS"
6196 fi
6197
6198 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6201 fi
6202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6204 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6205 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 int i;
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213 xorg_cv_cc_flag_unused_command_line_argument=yes
6214 else
6215 xorg_cv_cc_flag_unused_command_line_argument=no
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6220 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6221 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6222 CFLAGS="$xorg_testset_save_CFLAGS"
6223 fi
6224
6225 found="no"
6226
6227 if test $found = "no" ; then
6228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6230 fi
6231
6232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6234 fi
6235
6236 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6237
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6239 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6240 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6241 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 int i;
6247 int
6248 main ()
6249 {
6250
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 if ac_fn_c_try_link "$LINENO"; then :
6256 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6257 else
6258 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262 fi
6263
6264
6265 CFLAGS="$xorg_testset_save_CFLAGS"
6266
6267 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6269 $as_echo "$supported" >&6; }
6270 if test "$supported" = "yes" ; then
6271 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6272 found="yes"
6273 fi
6274 fi
6275
6276
6277
6278
6279
6280
6281
6282 xorg_testset_save_CFLAGS="$CFLAGS"
6283
6284 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6287 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6288 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 int i;
6294 _ACEOF
6295 if ac_fn_c_try_compile "$LINENO"; then :
6296 xorg_cv_cc_flag_unknown_warning_option=yes
6297 else
6298 xorg_cv_cc_flag_unknown_warning_option=no
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6303 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6304 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6305 CFLAGS="$xorg_testset_save_CFLAGS"
6306 fi
6307
6308 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311 fi
6312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6314 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6315 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 int i;
6321 _ACEOF
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323 xorg_cv_cc_flag_unused_command_line_argument=yes
6324 else
6325 xorg_cv_cc_flag_unused_command_line_argument=no
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6330 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6331 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6332 CFLAGS="$xorg_testset_save_CFLAGS"
6333 fi
6334
6335 found="no"
6336
6337 if test $found = "no" ; then
6338 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340 fi
6341
6342 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344 fi
6345
6346 CFLAGS="$CFLAGS -Wredundant-decls"
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6349 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6350 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6351 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 int i;
6357 int
6358 main ()
6359 {
6360
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_link "$LINENO"; then :
6366 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6367 else
6368 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
6372 fi
6373
6374
6375 CFLAGS="$xorg_testset_save_CFLAGS"
6376
6377 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6379 $as_echo "$supported" >&6; }
6380 if test "$supported" = "yes" ; then
6381 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6382 found="yes"
6383 fi
6384 fi
6385
6386
6387
6388 # These are currently disabled because they are noisy. They will be enabled
6389 # in the future once the codebase is sufficiently modernized to silence
6390 # them. For now, I don't want them to drown out the other warnings.
6391 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6392 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6393 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6394
6395 # Turn some warnings into errors, so we don't accidently get successful builds
6396 # when there are problems that should be fixed.
6397
6398 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6399
6400
6401
6402
6403
6404 xorg_testset_save_CFLAGS="$CFLAGS"
6405
6406 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 int i;
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418 xorg_cv_cc_flag_unknown_warning_option=yes
6419 else
6420 xorg_cv_cc_flag_unknown_warning_option=no
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6426 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6427 CFLAGS="$xorg_testset_save_CFLAGS"
6428 fi
6429
6430 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433 fi
6434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 int i;
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"; then :
6445 xorg_cv_cc_flag_unused_command_line_argument=yes
6446 else
6447 xorg_cv_cc_flag_unused_command_line_argument=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6453 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6454 CFLAGS="$xorg_testset_save_CFLAGS"
6455 fi
6456
6457 found="no"
6458
6459 if test $found = "no" ; then
6460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 fi
6463
6464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466 fi
6467
6468 CFLAGS="$CFLAGS -Werror=implicit"
6469
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6471 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6472 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6473 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 int i;
6479 int
6480 main ()
6481 {
6482
6483 ;
6484 return 0;
6485 }
6486 _ACEOF
6487 if ac_fn_c_try_link "$LINENO"; then :
6488 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6489 else
6490 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext \
6493 conftest$ac_exeext conftest.$ac_ext
6494 fi
6495
6496
6497 CFLAGS="$xorg_testset_save_CFLAGS"
6498
6499 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6501 $as_echo "$supported" >&6; }
6502 if test "$supported" = "yes" ; then
6503 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6504 found="yes"
6505 fi
6506 fi
6507
6508 if test $found = "no" ; then
6509 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6511 fi
6512
6513 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6515 fi
6516
6517 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6518
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6520 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6521 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6522 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 int i;
6528 int
6529 main ()
6530 {
6531
6532 ;
6533 return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_link "$LINENO"; then :
6537 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6538 else
6539 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext \
6542 conftest$ac_exeext conftest.$ac_ext
6543 fi
6544
6545
6546 CFLAGS="$xorg_testset_save_CFLAGS"
6547
6548 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6550 $as_echo "$supported" >&6; }
6551 if test "$supported" = "yes" ; then
6552 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6553 found="yes"
6554 fi
6555 fi
6556
6557
6558
6559
6560
6561
6562
6563 xorg_testset_save_CFLAGS="$CFLAGS"
6564
6565 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6568 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6569 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 xorg_cv_cc_flag_unknown_warning_option=yes
6578 else
6579 xorg_cv_cc_flag_unknown_warning_option=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6584 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6585 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6586 CFLAGS="$xorg_testset_save_CFLAGS"
6587 fi
6588
6589 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592 fi
6593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6595 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6596 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 int i;
6602 _ACEOF
6603 if ac_fn_c_try_compile "$LINENO"; then :
6604 xorg_cv_cc_flag_unused_command_line_argument=yes
6605 else
6606 xorg_cv_cc_flag_unused_command_line_argument=no
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6611 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6612 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6613 CFLAGS="$xorg_testset_save_CFLAGS"
6614 fi
6615
6616 found="no"
6617
6618 if test $found = "no" ; then
6619 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621 fi
6622
6623 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6625 fi
6626
6627 CFLAGS="$CFLAGS -Werror=nonnull"
6628
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6630 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6631 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6632 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 int i;
6638 int
6639 main ()
6640 {
6641
6642 ;
6643 return 0;
6644 }
6645 _ACEOF
6646 if ac_fn_c_try_link "$LINENO"; then :
6647 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6648 else
6649 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6650 fi
6651 rm -f core conftest.err conftest.$ac_objext \
6652 conftest$ac_exeext conftest.$ac_ext
6653 fi
6654
6655
6656 CFLAGS="$xorg_testset_save_CFLAGS"
6657
6658 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6660 $as_echo "$supported" >&6; }
6661 if test "$supported" = "yes" ; then
6662 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6663 found="yes"
6664 fi
6665 fi
6666
6667
6668
6669
6670
6671
6672
6673 xorg_testset_save_CFLAGS="$CFLAGS"
6674
6675 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 int i;
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 xorg_cv_cc_flag_unknown_warning_option=yes
6688 else
6689 xorg_cv_cc_flag_unknown_warning_option=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 fi
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6695 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6696 CFLAGS="$xorg_testset_save_CFLAGS"
6697 fi
6698
6699 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702 fi
6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 int i;
6712 _ACEOF
6713 if ac_fn_c_try_compile "$LINENO"; then :
6714 xorg_cv_cc_flag_unused_command_line_argument=yes
6715 else
6716 xorg_cv_cc_flag_unused_command_line_argument=no
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6722 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6723 CFLAGS="$xorg_testset_save_CFLAGS"
6724 fi
6725
6726 found="no"
6727
6728 if test $found = "no" ; then
6729 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6731 fi
6732
6733 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6735 fi
6736
6737 CFLAGS="$CFLAGS -Werror=init-self"
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6740 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6741 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6742 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 int i;
6748 int
6749 main ()
6750 {
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 if ac_fn_c_try_link "$LINENO"; then :
6757 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6758 else
6759 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext \
6762 conftest$ac_exeext conftest.$ac_ext
6763 fi
6764
6765
6766 CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770 $as_echo "$supported" >&6; }
6771 if test "$supported" = "yes" ; then
6772 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6773 found="yes"
6774 fi
6775 fi
6776
6777
6778
6779
6780
6781
6782
6783 xorg_testset_save_CFLAGS="$CFLAGS"
6784
6785 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6788 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6789 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6794 int i;
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 xorg_cv_cc_flag_unknown_warning_option=yes
6798 else
6799 xorg_cv_cc_flag_unknown_warning_option=no
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6804 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6805 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6806 CFLAGS="$xorg_testset_save_CFLAGS"
6807 fi
6808
6809 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812 fi
6813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6815 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6816 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821 int i;
6822 _ACEOF
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824 xorg_cv_cc_flag_unused_command_line_argument=yes
6825 else
6826 xorg_cv_cc_flag_unused_command_line_argument=no
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 fi
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6831 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6832 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6833 CFLAGS="$xorg_testset_save_CFLAGS"
6834 fi
6835
6836 found="no"
6837
6838 if test $found = "no" ; then
6839 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841 fi
6842
6843 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6845 fi
6846
6847 CFLAGS="$CFLAGS -Werror=main"
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6850 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6851 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6852 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 int i;
6858 int
6859 main ()
6860 {
6861
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_link "$LINENO"; then :
6867 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6868 else
6869 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext \
6872 conftest$ac_exeext conftest.$ac_ext
6873 fi
6874
6875
6876 CFLAGS="$xorg_testset_save_CFLAGS"
6877
6878 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6880 $as_echo "$supported" >&6; }
6881 if test "$supported" = "yes" ; then
6882 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6883 found="yes"
6884 fi
6885 fi
6886
6887
6888
6889
6890
6891
6892
6893 xorg_testset_save_CFLAGS="$CFLAGS"
6894
6895 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 int i;
6905 _ACEOF
6906 if ac_fn_c_try_compile "$LINENO"; then :
6907 xorg_cv_cc_flag_unknown_warning_option=yes
6908 else
6909 xorg_cv_cc_flag_unknown_warning_option=no
6910 fi
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 fi
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6915 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6916 CFLAGS="$xorg_testset_save_CFLAGS"
6917 fi
6918
6919 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922 fi
6923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"; then :
6934 xorg_cv_cc_flag_unused_command_line_argument=yes
6935 else
6936 xorg_cv_cc_flag_unused_command_line_argument=no
6937 fi
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6942 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6943 CFLAGS="$xorg_testset_save_CFLAGS"
6944 fi
6945
6946 found="no"
6947
6948 if test $found = "no" ; then
6949 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951 fi
6952
6953 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6955 fi
6956
6957 CFLAGS="$CFLAGS -Werror=missing-braces"
6958
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6960 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6961 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
6962 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967 int i;
6968 int
6969 main ()
6970 {
6971
6972 ;
6973 return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6978 else
6979 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 fi
6984
6985
6986 CFLAGS="$xorg_testset_save_CFLAGS"
6987
6988 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6990 $as_echo "$supported" >&6; }
6991 if test "$supported" = "yes" ; then
6992 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6993 found="yes"
6994 fi
6995 fi
6996
6997
6998
6999
7000
7001
7002
7003 xorg_testset_save_CFLAGS="$CFLAGS"
7004
7005 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014 int i;
7015 _ACEOF
7016 if ac_fn_c_try_compile "$LINENO"; then :
7017 xorg_cv_cc_flag_unknown_warning_option=yes
7018 else
7019 xorg_cv_cc_flag_unknown_warning_option=no
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7025 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7026 CFLAGS="$xorg_testset_save_CFLAGS"
7027 fi
7028
7029 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7032 fi
7033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 int i;
7042 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"; then :
7044 xorg_cv_cc_flag_unused_command_line_argument=yes
7045 else
7046 xorg_cv_cc_flag_unused_command_line_argument=no
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 fi
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7052 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7053 CFLAGS="$xorg_testset_save_CFLAGS"
7054 fi
7055
7056 found="no"
7057
7058 if test $found = "no" ; then
7059 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7061 fi
7062
7063 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7065 fi
7066
7067 CFLAGS="$CFLAGS -Werror=sequence-point"
7068
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7070 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7071 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7072 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077 int i;
7078 int
7079 main ()
7080 {
7081
7082 ;
7083 return 0;
7084 }
7085 _ACEOF
7086 if ac_fn_c_try_link "$LINENO"; then :
7087 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7088 else
7089 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7090 fi
7091 rm -f core conftest.err conftest.$ac_objext \
7092 conftest$ac_exeext conftest.$ac_ext
7093 fi
7094
7095
7096 CFLAGS="$xorg_testset_save_CFLAGS"
7097
7098 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7100 $as_echo "$supported" >&6; }
7101 if test "$supported" = "yes" ; then
7102 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7103 found="yes"
7104 fi
7105 fi
7106
7107
7108
7109
7110
7111
7112
7113 xorg_testset_save_CFLAGS="$CFLAGS"
7114
7115 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7118 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7119 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124 int i;
7125 _ACEOF
7126 if ac_fn_c_try_compile "$LINENO"; then :
7127 xorg_cv_cc_flag_unknown_warning_option=yes
7128 else
7129 xorg_cv_cc_flag_unknown_warning_option=no
7130 fi
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7134 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7135 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7136 CFLAGS="$xorg_testset_save_CFLAGS"
7137 fi
7138
7139 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 fi
7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7145 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7146 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 int i;
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 xorg_cv_cc_flag_unused_command_line_argument=yes
7155 else
7156 xorg_cv_cc_flag_unused_command_line_argument=no
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7161 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7162 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7163 CFLAGS="$xorg_testset_save_CFLAGS"
7164 fi
7165
7166 found="no"
7167
7168 if test $found = "no" ; then
7169 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171 fi
7172
7173 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7175 fi
7176
7177 CFLAGS="$CFLAGS -Werror=return-type"
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7180 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7181 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7182 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 int i;
7188 int
7189 main ()
7190 {
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_link "$LINENO"; then :
7197 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7198 else
7199 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203 fi
7204
7205
7206 CFLAGS="$xorg_testset_save_CFLAGS"
7207
7208 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7210 $as_echo "$supported" >&6; }
7211 if test "$supported" = "yes" ; then
7212 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7213 found="yes"
7214 fi
7215 fi
7216
7217 if test $found = "no" ; then
7218 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220 fi
7221
7222 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224 fi
7225
7226 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7229 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7230 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7231 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 int i;
7237 int
7238 main ()
7239 {
7240
7241 ;
7242 return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_link "$LINENO"; then :
7246 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7247 else
7248 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 fi
7253
7254
7255 CFLAGS="$xorg_testset_save_CFLAGS"
7256
7257 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7259 $as_echo "$supported" >&6; }
7260 if test "$supported" = "yes" ; then
7261 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7262 found="yes"
7263 fi
7264 fi
7265
7266
7267
7268
7269
7270
7271
7272 xorg_testset_save_CFLAGS="$CFLAGS"
7273
7274 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 int i;
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 xorg_cv_cc_flag_unknown_warning_option=yes
7287 else
7288 xorg_cv_cc_flag_unknown_warning_option=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7294 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7295 CFLAGS="$xorg_testset_save_CFLAGS"
7296 fi
7297
7298 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301 fi
7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 int i;
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 xorg_cv_cc_flag_unused_command_line_argument=yes
7314 else
7315 xorg_cv_cc_flag_unused_command_line_argument=no
7316 fi
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 fi
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7321 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7322 CFLAGS="$xorg_testset_save_CFLAGS"
7323 fi
7324
7325 found="no"
7326
7327 if test $found = "no" ; then
7328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7330 fi
7331
7332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7334 fi
7335
7336 CFLAGS="$CFLAGS -Werror=trigraphs"
7337
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7339 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7340 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7341 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 int i;
7347 int
7348 main ()
7349 {
7350
7351 ;
7352 return 0;
7353 }
7354 _ACEOF
7355 if ac_fn_c_try_link "$LINENO"; then :
7356 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7357 else
7358 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7359 fi
7360 rm -f core conftest.err conftest.$ac_objext \
7361 conftest$ac_exeext conftest.$ac_ext
7362 fi
7363
7364
7365 CFLAGS="$xorg_testset_save_CFLAGS"
7366
7367 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7369 $as_echo "$supported" >&6; }
7370 if test "$supported" = "yes" ; then
7371 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7372 found="yes"
7373 fi
7374 fi
7375
7376
7377
7378
7379
7380
7381
7382 xorg_testset_save_CFLAGS="$CFLAGS"
7383
7384 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393 int i;
7394 _ACEOF
7395 if ac_fn_c_try_compile "$LINENO"; then :
7396 xorg_cv_cc_flag_unknown_warning_option=yes
7397 else
7398 xorg_cv_cc_flag_unknown_warning_option=no
7399 fi
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 fi
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7404 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7405 CFLAGS="$xorg_testset_save_CFLAGS"
7406 fi
7407
7408 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411 fi
7412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420 int i;
7421 _ACEOF
7422 if ac_fn_c_try_compile "$LINENO"; then :
7423 xorg_cv_cc_flag_unused_command_line_argument=yes
7424 else
7425 xorg_cv_cc_flag_unused_command_line_argument=no
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7431 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7432 CFLAGS="$xorg_testset_save_CFLAGS"
7433 fi
7434
7435 found="no"
7436
7437 if test $found = "no" ; then
7438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440 fi
7441
7442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7444 fi
7445
7446 CFLAGS="$CFLAGS -Werror=array-bounds"
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7449 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7450 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7451 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456 int i;
7457 int
7458 main ()
7459 {
7460
7461 ;
7462 return 0;
7463 }
7464 _ACEOF
7465 if ac_fn_c_try_link "$LINENO"; then :
7466 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7467 else
7468 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7472 fi
7473
7474
7475 CFLAGS="$xorg_testset_save_CFLAGS"
7476
7477 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7479 $as_echo "$supported" >&6; }
7480 if test "$supported" = "yes" ; then
7481 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7482 found="yes"
7483 fi
7484 fi
7485
7486
7487
7488
7489
7490
7491
7492 xorg_testset_save_CFLAGS="$CFLAGS"
7493
7494 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7497 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7498 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 int i;
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 xorg_cv_cc_flag_unknown_warning_option=yes
7507 else
7508 xorg_cv_cc_flag_unknown_warning_option=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7513 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7514 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7515 CFLAGS="$xorg_testset_save_CFLAGS"
7516 fi
7517
7518 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521 fi
7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7524 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7525 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 int i;
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 xorg_cv_cc_flag_unused_command_line_argument=yes
7534 else
7535 xorg_cv_cc_flag_unused_command_line_argument=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7540 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7541 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7542 CFLAGS="$xorg_testset_save_CFLAGS"
7543 fi
7544
7545 found="no"
7546
7547 if test $found = "no" ; then
7548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7550 fi
7551
7552 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554 fi
7555
7556 CFLAGS="$CFLAGS -Werror=write-strings"
7557
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7559 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7560 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7561 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 int i;
7567 int
7568 main ()
7569 {
7570
7571 ;
7572 return 0;
7573 }
7574 _ACEOF
7575 if ac_fn_c_try_link "$LINENO"; then :
7576 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7577 else
7578 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext \
7581 conftest$ac_exeext conftest.$ac_ext
7582 fi
7583
7584
7585 CFLAGS="$xorg_testset_save_CFLAGS"
7586
7587 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7589 $as_echo "$supported" >&6; }
7590 if test "$supported" = "yes" ; then
7591 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7592 found="yes"
7593 fi
7594 fi
7595
7596
7597
7598
7599
7600
7601
7602 xorg_testset_save_CFLAGS="$CFLAGS"
7603
7604 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 int i;
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 xorg_cv_cc_flag_unknown_warning_option=yes
7617 else
7618 xorg_cv_cc_flag_unknown_warning_option=no
7619 fi
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7624 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7625 CFLAGS="$xorg_testset_save_CFLAGS"
7626 fi
7627
7628 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7629 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7631 fi
7632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 int i;
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 xorg_cv_cc_flag_unused_command_line_argument=yes
7644 else
7645 xorg_cv_cc_flag_unused_command_line_argument=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 fi
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7651 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7652 CFLAGS="$xorg_testset_save_CFLAGS"
7653 fi
7654
7655 found="no"
7656
7657 if test $found = "no" ; then
7658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 fi
7661
7662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7664 fi
7665
7666 CFLAGS="$CFLAGS -Werror=address"
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7669 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7670 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7671 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 int i;
7677 int
7678 main ()
7679 {
7680
7681 ;
7682 return 0;
7683 }
7684 _ACEOF
7685 if ac_fn_c_try_link "$LINENO"; then :
7686 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7687 else
7688 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7692 fi
7693
7694
7695 CFLAGS="$xorg_testset_save_CFLAGS"
7696
7697 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7699 $as_echo "$supported" >&6; }
7700 if test "$supported" = "yes" ; then
7701 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7702 found="yes"
7703 fi
7704 fi
7705
7706
7707
7708
7709
7710
7711
7712 xorg_testset_save_CFLAGS="$CFLAGS"
7713
7714 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7717 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7718 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 int i;
7724 _ACEOF
7725 if ac_fn_c_try_compile "$LINENO"; then :
7726 xorg_cv_cc_flag_unknown_warning_option=yes
7727 else
7728 xorg_cv_cc_flag_unknown_warning_option=no
7729 fi
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7733 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7734 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7735 CFLAGS="$xorg_testset_save_CFLAGS"
7736 fi
7737
7738 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7741 fi
7742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7744 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7745 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750 int i;
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 xorg_cv_cc_flag_unused_command_line_argument=yes
7754 else
7755 xorg_cv_cc_flag_unused_command_line_argument=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 fi
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7760 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7761 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7762 CFLAGS="$xorg_testset_save_CFLAGS"
7763 fi
7764
7765 found="no"
7766
7767 if test $found = "no" ; then
7768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770 fi
7771
7772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774 fi
7775
7776 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7779 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7780 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7781 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 int i;
7787 int
7788 main ()
7789 {
7790
7791 ;
7792 return 0;
7793 }
7794 _ACEOF
7795 if ac_fn_c_try_link "$LINENO"; then :
7796 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7797 else
7798 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802 fi
7803
7804
7805 CFLAGS="$xorg_testset_save_CFLAGS"
7806
7807 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7809 $as_echo "$supported" >&6; }
7810 if test "$supported" = "yes" ; then
7811 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7812 found="yes"
7813 fi
7814 fi
7815
7816 if test $found = "no" ; then
7817 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7819 fi
7820
7821 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7823 fi
7824
7825 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7826
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7828 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7829 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7830 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 int i;
7836 int
7837 main ()
7838 {
7839
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 if ac_fn_c_try_link "$LINENO"; then :
7845 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7846 else
7847 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 fi
7852
7853
7854 CFLAGS="$xorg_testset_save_CFLAGS"
7855
7856 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7858 $as_echo "$supported" >&6; }
7859 if test "$supported" = "yes" ; then
7860 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7861 found="yes"
7862 fi
7863 fi
7864
7865
7866
7867
7868
7869
7870
7871 xorg_testset_save_CFLAGS="$CFLAGS"
7872
7873 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7876 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7877 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7882 int i;
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885 xorg_cv_cc_flag_unknown_warning_option=yes
7886 else
7887 xorg_cv_cc_flag_unknown_warning_option=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 fi
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7892 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7893 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7894 CFLAGS="$xorg_testset_save_CFLAGS"
7895 fi
7896
7897 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900 fi
7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7903 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7904 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 int i;
7910 _ACEOF
7911 if ac_fn_c_try_compile "$LINENO"; then :
7912 xorg_cv_cc_flag_unused_command_line_argument=yes
7913 else
7914 xorg_cv_cc_flag_unused_command_line_argument=no
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7919 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7920 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7921 CFLAGS="$xorg_testset_save_CFLAGS"
7922 fi
7923
7924 found="no"
7925
7926 if test $found = "no" ; then
7927 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929 fi
7930
7931 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7933 fi
7934
7935 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7936
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7938 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7939 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7940 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 int i;
7946 int
7947 main ()
7948 {
7949
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7956 else
7957 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 fi
7962
7963
7964 CFLAGS="$xorg_testset_save_CFLAGS"
7965
7966 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7968 $as_echo "$supported" >&6; }
7969 if test "$supported" = "yes" ; then
7970 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7971 found="yes"
7972 fi
7973 fi
7974
7975 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7976 else
7977 { $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
7978 $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;}
7979
7980
7981
7982
7983
7984 xorg_testset_save_CFLAGS="$CFLAGS"
7985
7986 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7989 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7990 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 int i;
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"; then :
7998 xorg_cv_cc_flag_unknown_warning_option=yes
7999 else
8000 xorg_cv_cc_flag_unknown_warning_option=no
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8005 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8006 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8007 CFLAGS="$xorg_testset_save_CFLAGS"
8008 fi
8009
8010 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013 fi
8014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8016 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8017 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8022 int i;
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 xorg_cv_cc_flag_unused_command_line_argument=yes
8026 else
8027 xorg_cv_cc_flag_unused_command_line_argument=no
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8032 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8033 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8034 CFLAGS="$xorg_testset_save_CFLAGS"
8035 fi
8036
8037 found="no"
8038
8039 if test $found = "no" ; then
8040 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042 fi
8043
8044 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8046 fi
8047
8048 CFLAGS="$CFLAGS -Wimplicit"
8049
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8051 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8052 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8053 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 int i;
8059 int
8060 main ()
8061 {
8062
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_link "$LINENO"; then :
8068 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8069 else
8070 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8071 fi
8072 rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 fi
8075
8076
8077 CFLAGS="$xorg_testset_save_CFLAGS"
8078
8079 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8081 $as_echo "$supported" >&6; }
8082 if test "$supported" = "yes" ; then
8083 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8084 found="yes"
8085 fi
8086 fi
8087
8088
8089
8090
8091
8092
8093
8094 xorg_testset_save_CFLAGS="$CFLAGS"
8095
8096 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8099 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8100 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 int i;
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108 xorg_cv_cc_flag_unknown_warning_option=yes
8109 else
8110 xorg_cv_cc_flag_unknown_warning_option=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8115 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8116 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8117 CFLAGS="$xorg_testset_save_CFLAGS"
8118 fi
8119
8120 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8121 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123 fi
8124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8126 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8127 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 int i;
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 xorg_cv_cc_flag_unused_command_line_argument=yes
8136 else
8137 xorg_cv_cc_flag_unused_command_line_argument=no
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8142 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8143 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8144 CFLAGS="$xorg_testset_save_CFLAGS"
8145 fi
8146
8147 found="no"
8148
8149 if test $found = "no" ; then
8150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8152 fi
8153
8154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8156 fi
8157
8158 CFLAGS="$CFLAGS -Wnonnull"
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8161 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8162 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8163 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 int i;
8169 int
8170 main ()
8171 {
8172
8173 ;
8174 return 0;
8175 }
8176 _ACEOF
8177 if ac_fn_c_try_link "$LINENO"; then :
8178 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8179 else
8180 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 fi
8185
8186
8187 CFLAGS="$xorg_testset_save_CFLAGS"
8188
8189 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8191 $as_echo "$supported" >&6; }
8192 if test "$supported" = "yes" ; then
8193 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8194 found="yes"
8195 fi
8196 fi
8197
8198
8199
8200
8201
8202
8203
8204 xorg_testset_save_CFLAGS="$CFLAGS"
8205
8206 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8209 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8210 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 int i;
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"; then :
8218 xorg_cv_cc_flag_unknown_warning_option=yes
8219 else
8220 xorg_cv_cc_flag_unknown_warning_option=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8225 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8226 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8227 CFLAGS="$xorg_testset_save_CFLAGS"
8228 fi
8229
8230 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8231 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233 fi
8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8236 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8237 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 int i;
8243 _ACEOF
8244 if ac_fn_c_try_compile "$LINENO"; then :
8245 xorg_cv_cc_flag_unused_command_line_argument=yes
8246 else
8247 xorg_cv_cc_flag_unused_command_line_argument=no
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8252 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8253 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8254 CFLAGS="$xorg_testset_save_CFLAGS"
8255 fi
8256
8257 found="no"
8258
8259 if test $found = "no" ; then
8260 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8262 fi
8263
8264 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8266 fi
8267
8268 CFLAGS="$CFLAGS -Winit-self"
8269
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8271 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8272 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8273 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 int i;
8279 int
8280 main ()
8281 {
8282
8283 ;
8284 return 0;
8285 }
8286 _ACEOF
8287 if ac_fn_c_try_link "$LINENO"; then :
8288 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8289 else
8290 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8294 fi
8295
8296
8297 CFLAGS="$xorg_testset_save_CFLAGS"
8298
8299 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8301 $as_echo "$supported" >&6; }
8302 if test "$supported" = "yes" ; then
8303 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8304 found="yes"
8305 fi
8306 fi
8307
8308
8309
8310
8311
8312
8313
8314 xorg_testset_save_CFLAGS="$CFLAGS"
8315
8316 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 int i;
8326 _ACEOF
8327 if ac_fn_c_try_compile "$LINENO"; then :
8328 xorg_cv_cc_flag_unknown_warning_option=yes
8329 else
8330 xorg_cv_cc_flag_unknown_warning_option=no
8331 fi
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8336 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8337 CFLAGS="$xorg_testset_save_CFLAGS"
8338 fi
8339
8340 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 fi
8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 int i;
8353 _ACEOF
8354 if ac_fn_c_try_compile "$LINENO"; then :
8355 xorg_cv_cc_flag_unused_command_line_argument=yes
8356 else
8357 xorg_cv_cc_flag_unused_command_line_argument=no
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8363 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8364 CFLAGS="$xorg_testset_save_CFLAGS"
8365 fi
8366
8367 found="no"
8368
8369 if test $found = "no" ; then
8370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372 fi
8373
8374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8376 fi
8377
8378 CFLAGS="$CFLAGS -Wmain"
8379
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8381 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8382 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8383 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 int i;
8389 int
8390 main ()
8391 {
8392
8393 ;
8394 return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_link "$LINENO"; then :
8398 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8399 else
8400 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 fi
8405
8406
8407 CFLAGS="$xorg_testset_save_CFLAGS"
8408
8409 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8411 $as_echo "$supported" >&6; }
8412 if test "$supported" = "yes" ; then
8413 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8414 found="yes"
8415 fi
8416 fi
8417
8418
8419
8420
8421
8422
8423
8424 xorg_testset_save_CFLAGS="$CFLAGS"
8425
8426 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8429 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8430 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 int i;
8436 _ACEOF
8437 if ac_fn_c_try_compile "$LINENO"; then :
8438 xorg_cv_cc_flag_unknown_warning_option=yes
8439 else
8440 xorg_cv_cc_flag_unknown_warning_option=no
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 fi
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8445 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8446 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8447 CFLAGS="$xorg_testset_save_CFLAGS"
8448 fi
8449
8450 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8453 fi
8454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8456 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8457 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int i;
8463 _ACEOF
8464 if ac_fn_c_try_compile "$LINENO"; then :
8465 xorg_cv_cc_flag_unused_command_line_argument=yes
8466 else
8467 xorg_cv_cc_flag_unused_command_line_argument=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8472 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8473 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8474 CFLAGS="$xorg_testset_save_CFLAGS"
8475 fi
8476
8477 found="no"
8478
8479 if test $found = "no" ; then
8480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8482 fi
8483
8484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8486 fi
8487
8488 CFLAGS="$CFLAGS -Wmissing-braces"
8489
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8491 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8492 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8493 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 int i;
8499 int
8500 main ()
8501 {
8502
8503 ;
8504 return 0;
8505 }
8506 _ACEOF
8507 if ac_fn_c_try_link "$LINENO"; then :
8508 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8509 else
8510 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514 fi
8515
8516
8517 CFLAGS="$xorg_testset_save_CFLAGS"
8518
8519 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8521 $as_echo "$supported" >&6; }
8522 if test "$supported" = "yes" ; then
8523 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8524 found="yes"
8525 fi
8526 fi
8527
8528
8529
8530
8531
8532
8533
8534 xorg_testset_save_CFLAGS="$CFLAGS"
8535
8536 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 int i;
8546 _ACEOF
8547 if ac_fn_c_try_compile "$LINENO"; then :
8548 xorg_cv_cc_flag_unknown_warning_option=yes
8549 else
8550 xorg_cv_cc_flag_unknown_warning_option=no
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 fi
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8556 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8557 CFLAGS="$xorg_testset_save_CFLAGS"
8558 fi
8559
8560 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563 fi
8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 int i;
8573 _ACEOF
8574 if ac_fn_c_try_compile "$LINENO"; then :
8575 xorg_cv_cc_flag_unused_command_line_argument=yes
8576 else
8577 xorg_cv_cc_flag_unused_command_line_argument=no
8578 fi
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8583 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8584 CFLAGS="$xorg_testset_save_CFLAGS"
8585 fi
8586
8587 found="no"
8588
8589 if test $found = "no" ; then
8590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8592 fi
8593
8594 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8596 fi
8597
8598 CFLAGS="$CFLAGS -Wsequence-point"
8599
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8601 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8602 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8603 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608 int i;
8609 int
8610 main ()
8611 {
8612
8613 ;
8614 return 0;
8615 }
8616 _ACEOF
8617 if ac_fn_c_try_link "$LINENO"; then :
8618 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8619 else
8620 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 fi
8625
8626
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628
8629 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8631 $as_echo "$supported" >&6; }
8632 if test "$supported" = "yes" ; then
8633 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8634 found="yes"
8635 fi
8636 fi
8637
8638
8639
8640
8641
8642
8643
8644 xorg_testset_save_CFLAGS="$CFLAGS"
8645
8646 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 int i;
8656 _ACEOF
8657 if ac_fn_c_try_compile "$LINENO"; then :
8658 xorg_cv_cc_flag_unknown_warning_option=yes
8659 else
8660 xorg_cv_cc_flag_unknown_warning_option=no
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8666 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8667 CFLAGS="$xorg_testset_save_CFLAGS"
8668 fi
8669
8670 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8673 fi
8674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 int i;
8683 _ACEOF
8684 if ac_fn_c_try_compile "$LINENO"; then :
8685 xorg_cv_cc_flag_unused_command_line_argument=yes
8686 else
8687 xorg_cv_cc_flag_unused_command_line_argument=no
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8693 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8694 CFLAGS="$xorg_testset_save_CFLAGS"
8695 fi
8696
8697 found="no"
8698
8699 if test $found = "no" ; then
8700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8702 fi
8703
8704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8706 fi
8707
8708 CFLAGS="$CFLAGS -Wreturn-type"
8709
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8711 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8712 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8713 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 int i;
8719 int
8720 main ()
8721 {
8722
8723 ;
8724 return 0;
8725 }
8726 _ACEOF
8727 if ac_fn_c_try_link "$LINENO"; then :
8728 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8729 else
8730 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8731 fi
8732 rm -f core conftest.err conftest.$ac_objext \
8733 conftest$ac_exeext conftest.$ac_ext
8734 fi
8735
8736
8737 CFLAGS="$xorg_testset_save_CFLAGS"
8738
8739 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8741 $as_echo "$supported" >&6; }
8742 if test "$supported" = "yes" ; then
8743 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8744 found="yes"
8745 fi
8746 fi
8747
8748
8749
8750
8751
8752
8753
8754 xorg_testset_save_CFLAGS="$CFLAGS"
8755
8756 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8759 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8760 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 int i;
8766 _ACEOF
8767 if ac_fn_c_try_compile "$LINENO"; then :
8768 xorg_cv_cc_flag_unknown_warning_option=yes
8769 else
8770 xorg_cv_cc_flag_unknown_warning_option=no
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8773 fi
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8775 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8776 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8777 CFLAGS="$xorg_testset_save_CFLAGS"
8778 fi
8779
8780 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783 fi
8784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8786 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8787 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 int i;
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"; then :
8795 xorg_cv_cc_flag_unused_command_line_argument=yes
8796 else
8797 xorg_cv_cc_flag_unused_command_line_argument=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8802 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8803 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8804 CFLAGS="$xorg_testset_save_CFLAGS"
8805 fi
8806
8807 found="no"
8808
8809 if test $found = "no" ; then
8810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8812 fi
8813
8814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8816 fi
8817
8818 CFLAGS="$CFLAGS -Wtrigraphs"
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8821 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8822 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8823 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8828 int i;
8829 int
8830 main ()
8831 {
8832
8833 ;
8834 return 0;
8835 }
8836 _ACEOF
8837 if ac_fn_c_try_link "$LINENO"; then :
8838 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8839 else
8840 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8841 fi
8842 rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 fi
8845
8846
8847 CFLAGS="$xorg_testset_save_CFLAGS"
8848
8849 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8851 $as_echo "$supported" >&6; }
8852 if test "$supported" = "yes" ; then
8853 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8854 found="yes"
8855 fi
8856 fi
8857
8858
8859
8860
8861
8862
8863
8864 xorg_testset_save_CFLAGS="$CFLAGS"
8865
8866 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 int i;
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"; then :
8878 xorg_cv_cc_flag_unknown_warning_option=yes
8879 else
8880 xorg_cv_cc_flag_unknown_warning_option=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8886 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888 fi
8889
8890 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 int i;
8903 _ACEOF
8904 if ac_fn_c_try_compile "$LINENO"; then :
8905 xorg_cv_cc_flag_unused_command_line_argument=yes
8906 else
8907 xorg_cv_cc_flag_unused_command_line_argument=no
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8913 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8914 CFLAGS="$xorg_testset_save_CFLAGS"
8915 fi
8916
8917 found="no"
8918
8919 if test $found = "no" ; then
8920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8922 fi
8923
8924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8926 fi
8927
8928 CFLAGS="$CFLAGS -Warray-bounds"
8929
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8931 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8932 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
8933 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 int i;
8939 int
8940 main ()
8941 {
8942
8943 ;
8944 return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_link "$LINENO"; then :
8948 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8949 else
8950 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext \
8953 conftest$ac_exeext conftest.$ac_ext
8954 fi
8955
8956
8957 CFLAGS="$xorg_testset_save_CFLAGS"
8958
8959 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8961 $as_echo "$supported" >&6; }
8962 if test "$supported" = "yes" ; then
8963 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8964 found="yes"
8965 fi
8966 fi
8967
8968
8969
8970
8971
8972
8973
8974 xorg_testset_save_CFLAGS="$CFLAGS"
8975
8976 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8980 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 int i;
8986 _ACEOF
8987 if ac_fn_c_try_compile "$LINENO"; then :
8988 xorg_cv_cc_flag_unknown_warning_option=yes
8989 else
8990 xorg_cv_cc_flag_unknown_warning_option=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8996 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8997 CFLAGS="$xorg_testset_save_CFLAGS"
8998 fi
8999
9000 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9003 fi
9004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 int i;
9013 _ACEOF
9014 if ac_fn_c_try_compile "$LINENO"; then :
9015 xorg_cv_cc_flag_unused_command_line_argument=yes
9016 else
9017 xorg_cv_cc_flag_unused_command_line_argument=no
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9023 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9024 CFLAGS="$xorg_testset_save_CFLAGS"
9025 fi
9026
9027 found="no"
9028
9029 if test $found = "no" ; then
9030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032 fi
9033
9034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036 fi
9037
9038 CFLAGS="$CFLAGS -Wwrite-strings"
9039
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9041 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9042 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9043 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 int i;
9049 int
9050 main ()
9051 {
9052
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"; then :
9058 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9059 else
9060 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 fi
9065
9066
9067 CFLAGS="$xorg_testset_save_CFLAGS"
9068
9069 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9071 $as_echo "$supported" >&6; }
9072 if test "$supported" = "yes" ; then
9073 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9074 found="yes"
9075 fi
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084 xorg_testset_save_CFLAGS="$CFLAGS"
9085
9086 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 int i;
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 xorg_cv_cc_flag_unknown_warning_option=yes
9099 else
9100 xorg_cv_cc_flag_unknown_warning_option=no
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9106 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9107 CFLAGS="$xorg_testset_save_CFLAGS"
9108 fi
9109
9110 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9113 fi
9114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122 int i;
9123 _ACEOF
9124 if ac_fn_c_try_compile "$LINENO"; then :
9125 xorg_cv_cc_flag_unused_command_line_argument=yes
9126 else
9127 xorg_cv_cc_flag_unused_command_line_argument=no
9128 fi
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9133 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9134 CFLAGS="$xorg_testset_save_CFLAGS"
9135 fi
9136
9137 found="no"
9138
9139 if test $found = "no" ; then
9140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142 fi
9143
9144 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146 fi
9147
9148 CFLAGS="$CFLAGS -Waddress"
9149
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9151 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9152 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9153 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 int i;
9159 int
9160 main ()
9161 {
9162
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 if ac_fn_c_try_link "$LINENO"; then :
9168 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9169 else
9170 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174 fi
9175
9176
9177 CFLAGS="$xorg_testset_save_CFLAGS"
9178
9179 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9181 $as_echo "$supported" >&6; }
9182 if test "$supported" = "yes" ; then
9183 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9184 found="yes"
9185 fi
9186 fi
9187
9188
9189
9190
9191
9192
9193
9194 xorg_testset_save_CFLAGS="$CFLAGS"
9195
9196 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 int i;
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 xorg_cv_cc_flag_unknown_warning_option=yes
9209 else
9210 xorg_cv_cc_flag_unknown_warning_option=no
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9216 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9217 CFLAGS="$xorg_testset_save_CFLAGS"
9218 fi
9219
9220 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223 fi
9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 int i;
9233 _ACEOF
9234 if ac_fn_c_try_compile "$LINENO"; then :
9235 xorg_cv_cc_flag_unused_command_line_argument=yes
9236 else
9237 xorg_cv_cc_flag_unused_command_line_argument=no
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 fi
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244 CFLAGS="$xorg_testset_save_CFLAGS"
9245 fi
9246
9247 found="no"
9248
9249 if test $found = "no" ; then
9250 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252 fi
9253
9254 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256 fi
9257
9258 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9259
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9261 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9262 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9263 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 int i;
9269 int
9270 main ()
9271 {
9272
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9279 else
9280 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 fi
9285
9286
9287 CFLAGS="$xorg_testset_save_CFLAGS"
9288
9289 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9291 $as_echo "$supported" >&6; }
9292 if test "$supported" = "yes" ; then
9293 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9294 found="yes"
9295 fi
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304 xorg_testset_save_CFLAGS="$CFLAGS"
9305
9306 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9309 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9310 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 int i;
9316 _ACEOF
9317 if ac_fn_c_try_compile "$LINENO"; then :
9318 xorg_cv_cc_flag_unknown_warning_option=yes
9319 else
9320 xorg_cv_cc_flag_unknown_warning_option=no
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9325 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9326 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9327 CFLAGS="$xorg_testset_save_CFLAGS"
9328 fi
9329
9330 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333 fi
9334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9336 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9337 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342 int i;
9343 _ACEOF
9344 if ac_fn_c_try_compile "$LINENO"; then :
9345 xorg_cv_cc_flag_unused_command_line_argument=yes
9346 else
9347 xorg_cv_cc_flag_unused_command_line_argument=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9352 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9353 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9354 CFLAGS="$xorg_testset_save_CFLAGS"
9355 fi
9356
9357 found="no"
9358
9359 if test $found = "no" ; then
9360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9362 fi
9363
9364 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9366 fi
9367
9368 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9369
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9371 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9372 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9373 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 int i;
9379 int
9380 main ()
9381 {
9382
9383 ;
9384 return 0;
9385 }
9386 _ACEOF
9387 if ac_fn_c_try_link "$LINENO"; then :
9388 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9389 else
9390 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9391 fi
9392 rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394 fi
9395
9396
9397 CFLAGS="$xorg_testset_save_CFLAGS"
9398
9399 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9401 $as_echo "$supported" >&6; }
9402 if test "$supported" = "yes" ; then
9403 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9404 found="yes"
9405 fi
9406 fi
9407
9408
9409 fi
9410
9411
9412
9413
9414
9415
9416 CWARNFLAGS="$BASE_CFLAGS"
9417 if test "x$GCC" = xyes ; then
9418 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9419 fi
9420
9421
9422
9423
9424
9425
9426 # Check whether --enable-strict-compilation was given.
9427 if test "${enable_strict_compilation+set}" = set; then :
9428 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9429 else
9430 STRICT_COMPILE=no
9431 fi
9432
9433
9434 STRICT_CFLAGS=""
9435
9436
9437
9438
9439
9440 xorg_testset_save_CFLAGS="$CFLAGS"
9441
9442 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9445 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9446 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 int i;
9452 _ACEOF
9453 if ac_fn_c_try_compile "$LINENO"; then :
9454 xorg_cv_cc_flag_unknown_warning_option=yes
9455 else
9456 xorg_cv_cc_flag_unknown_warning_option=no
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459 fi
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9461 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9462 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9463 CFLAGS="$xorg_testset_save_CFLAGS"
9464 fi
9465
9466 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9467 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9469 fi
9470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9472 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9473 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 int i;
9479 _ACEOF
9480 if ac_fn_c_try_compile "$LINENO"; then :
9481 xorg_cv_cc_flag_unused_command_line_argument=yes
9482 else
9483 xorg_cv_cc_flag_unused_command_line_argument=no
9484 fi
9485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9486 fi
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9488 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9489 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9490 CFLAGS="$xorg_testset_save_CFLAGS"
9491 fi
9492
9493 found="no"
9494
9495 if test $found = "no" ; then
9496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9498 fi
9499
9500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9502 fi
9503
9504 CFLAGS="$CFLAGS -pedantic"
9505
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9507 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9508 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9509 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514 int i;
9515 int
9516 main ()
9517 {
9518
9519 ;
9520 return 0;
9521 }
9522 _ACEOF
9523 if ac_fn_c_try_link "$LINENO"; then :
9524 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9525 else
9526 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9527 fi
9528 rm -f core conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530 fi
9531
9532
9533 CFLAGS="$xorg_testset_save_CFLAGS"
9534
9535 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9537 $as_echo "$supported" >&6; }
9538 if test "$supported" = "yes" ; then
9539 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9540 found="yes"
9541 fi
9542 fi
9543
9544
9545
9546
9547
9548
9549
9550 xorg_testset_save_CFLAGS="$CFLAGS"
9551
9552 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 int i;
9562 _ACEOF
9563 if ac_fn_c_try_compile "$LINENO"; then :
9564 xorg_cv_cc_flag_unknown_warning_option=yes
9565 else
9566 xorg_cv_cc_flag_unknown_warning_option=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9572 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9573 CFLAGS="$xorg_testset_save_CFLAGS"
9574 fi
9575
9576 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9577 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9579 fi
9580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 int i;
9589 _ACEOF
9590 if ac_fn_c_try_compile "$LINENO"; then :
9591 xorg_cv_cc_flag_unused_command_line_argument=yes
9592 else
9593 xorg_cv_cc_flag_unused_command_line_argument=no
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9599 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9600 CFLAGS="$xorg_testset_save_CFLAGS"
9601 fi
9602
9603 found="no"
9604
9605 if test $found = "no" ; then
9606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9608 fi
9609
9610 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9612 fi
9613
9614 CFLAGS="$CFLAGS -Werror"
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9617 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9618 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9619 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9624 int i;
9625 int
9626 main ()
9627 {
9628
9629 ;
9630 return 0;
9631 }
9632 _ACEOF
9633 if ac_fn_c_try_link "$LINENO"; then :
9634 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9635 else
9636 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 fi
9641
9642
9643 CFLAGS="$xorg_testset_save_CFLAGS"
9644
9645 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9647 $as_echo "$supported" >&6; }
9648 if test "$supported" = "yes" ; then
9649 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9650 found="yes"
9651 fi
9652 fi
9653
9654 if test $found = "no" ; then
9655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9657 fi
9658
9659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9661 fi
9662
9663 CFLAGS="$CFLAGS -errwarn"
9664
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9666 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9667 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9668 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 int i;
9674 int
9675 main ()
9676 {
9677
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_c_try_link "$LINENO"; then :
9683 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9684 else
9685 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 fi
9690
9691
9692 CFLAGS="$xorg_testset_save_CFLAGS"
9693
9694 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9696 $as_echo "$supported" >&6; }
9697 if test "$supported" = "yes" ; then
9698 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9699 found="yes"
9700 fi
9701 fi
9702
9703
9704
9705 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9706 # activate it with -Werror, so we add it here explicitly.
9707
9708
9709
9710
9711
9712 xorg_testset_save_CFLAGS="$CFLAGS"
9713
9714 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9717 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9718 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 int i;
9724 _ACEOF
9725 if ac_fn_c_try_compile "$LINENO"; then :
9726 xorg_cv_cc_flag_unknown_warning_option=yes
9727 else
9728 xorg_cv_cc_flag_unknown_warning_option=no
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 fi
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9733 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9734 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9735 CFLAGS="$xorg_testset_save_CFLAGS"
9736 fi
9737
9738 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741 fi
9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9744 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9745 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9750 int i;
9751 _ACEOF
9752 if ac_fn_c_try_compile "$LINENO"; then :
9753 xorg_cv_cc_flag_unused_command_line_argument=yes
9754 else
9755 xorg_cv_cc_flag_unused_command_line_argument=no
9756 fi
9757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9758 fi
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9760 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9761 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9762 CFLAGS="$xorg_testset_save_CFLAGS"
9763 fi
9764
9765 found="no"
9766
9767 if test $found = "no" ; then
9768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770 fi
9771
9772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9774 fi
9775
9776 CFLAGS="$CFLAGS -Werror=attributes"
9777
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9779 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9780 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9781 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 int i;
9787 int
9788 main ()
9789 {
9790
9791 ;
9792 return 0;
9793 }
9794 _ACEOF
9795 if ac_fn_c_try_link "$LINENO"; then :
9796 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9797 else
9798 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802 fi
9803
9804
9805 CFLAGS="$xorg_testset_save_CFLAGS"
9806
9807 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9809 $as_echo "$supported" >&6; }
9810 if test "$supported" = "yes" ; then
9811 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9812 found="yes"
9813 fi
9814 fi
9815
9816
9817
9818 if test "x$STRICT_COMPILE" = "xyes"; then
9819 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9820 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9821 fi
9822
9823
9824
9825
9826
9827
9828 cat >>confdefs.h <<_ACEOF
9829 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9830 _ACEOF
9831
9832 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9833 if test "x$PVM" = "x"; then
9834 PVM="0"
9835 fi
9836
9837 cat >>confdefs.h <<_ACEOF
9838 #define PACKAGE_VERSION_MINOR $PVM
9839 _ACEOF
9840
9841 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9842 if test "x$PVP" = "x"; then
9843 PVP="0"
9844 fi
9845
9846 cat >>confdefs.h <<_ACEOF
9847 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9848 _ACEOF
9849
9850
9851
9852 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9853 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9854 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9855 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9856
9857
9858
9859
9860 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9861 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9862 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9863 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9864 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9865
9866
9867
9868
9869
9870
9871 if test x$APP_MAN_SUFFIX = x ; then
9872 APP_MAN_SUFFIX=1
9873 fi
9874 if test x$APP_MAN_DIR = x ; then
9875 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9876 fi
9877
9878 if test x$LIB_MAN_SUFFIX = x ; then
9879 LIB_MAN_SUFFIX=3
9880 fi
9881 if test x$LIB_MAN_DIR = x ; then
9882 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9883 fi
9884
9885 if test x$FILE_MAN_SUFFIX = x ; then
9886 case $host_os in
9887 solaris*) FILE_MAN_SUFFIX=4 ;;
9888 *) FILE_MAN_SUFFIX=5 ;;
9889 esac
9890 fi
9891 if test x$FILE_MAN_DIR = x ; then
9892 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9893 fi
9894
9895 if test x$MISC_MAN_SUFFIX = x ; then
9896 case $host_os in
9897 solaris*) MISC_MAN_SUFFIX=5 ;;
9898 *) MISC_MAN_SUFFIX=7 ;;
9899 esac
9900 fi
9901 if test x$MISC_MAN_DIR = x ; then
9902 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9903 fi
9904
9905 if test x$DRIVER_MAN_SUFFIX = x ; then
9906 case $host_os in
9907 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9908 *) DRIVER_MAN_SUFFIX=4 ;;
9909 esac
9910 fi
9911 if test x$DRIVER_MAN_DIR = x ; then
9912 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9913 fi
9914
9915 if test x$ADMIN_MAN_SUFFIX = x ; then
9916 case $host_os in
9917 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9918 *) ADMIN_MAN_SUFFIX=8 ;;
9919 esac
9920 fi
9921 if test x$ADMIN_MAN_DIR = x ; then
9922 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9923 fi
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939 XORG_MAN_PAGE="X Version 11"
9940
9941 MAN_SUBSTS="\
9942 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9943 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9944 -e 's|__xservername__|Xorg|g' \
9945 -e 's|__xconfigfile__|xorg.conf|g' \
9946 -e 's|__projectroot__|\$(prefix)|g' \
9947 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9948 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9949 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9950 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9951 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9952 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9953 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9954
9955
9956
9957 # Check whether --enable-silent-rules was given.
9958 if test "${enable_silent_rules+set}" = set; then :
9959 enableval=$enable_silent_rules;
9960 fi
9961
9962 case $enable_silent_rules in
9963 yes) AM_DEFAULT_VERBOSITY=0;;
9964 no) AM_DEFAULT_VERBOSITY=1;;
9965 *) AM_DEFAULT_VERBOSITY=0;;
9966 esac
9967 AM_BACKSLASH='\'
9968
9969
9970
9971 # Checks for pkg-config packages
9972
9973 pkg_failed=no
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCMSDB" >&5
9975 $as_echo_n "checking for XCMSDB... " >&6; }
9976
9977 if test -n "$XCMSDB_CFLAGS"; then
9978 pkg_cv_XCMSDB_CFLAGS="$XCMSDB_CFLAGS"
9979 elif test -n "$PKG_CONFIG"; then
9980 if test -n "$PKG_CONFIG" && \
9981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
9982 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
9983 ac_status=$?
9984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9985 test $ac_status = 0; }; then
9986 pkg_cv_XCMSDB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
9987 else
9988 pkg_failed=yes
9989 fi
9990 else
9991 pkg_failed=untried
9992 fi
9993 if test -n "$XCMSDB_LIBS"; then
9994 pkg_cv_XCMSDB_LIBS="$XCMSDB_LIBS"
9995 elif test -n "$PKG_CONFIG"; then
9996 if test -n "$PKG_CONFIG" && \
9997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
9998 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
9999 ac_status=$?
10000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10001 test $ac_status = 0; }; then
10002 pkg_cv_XCMSDB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
10003 else
10004 pkg_failed=yes
10005 fi
10006 else
10007 pkg_failed=untried
10008 fi
10009
10010
10011
10012 if test $pkg_failed = yes; then
10013
10014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10015 _pkg_short_errors_supported=yes
10016 else
10017 _pkg_short_errors_supported=no
10018 fi
10019 if test $_pkg_short_errors_supported = yes; then
10020 XCMSDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
10021 else
10022 XCMSDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
10023 fi
10024 # Put the nasty error message in config.log where it belongs
10025 echo "$XCMSDB_PKG_ERRORS" >&5
10026
10027 as_fn_error $? "Package requirements (x11) were not met:
10028
10029 $XCMSDB_PKG_ERRORS
10030
10031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10032 installed software in a non-standard prefix.
10033
10034 Alternatively, you may set the environment variables XCMSDB_CFLAGS
10035 and XCMSDB_LIBS to avoid the need to call pkg-config.
10036 See the pkg-config man page for more details.
10037 " "$LINENO" 5
10038 elif test $pkg_failed = untried; then
10039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10041 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10042 is in your PATH or set the PKG_CONFIG environment variable to the full
10043 path to pkg-config.
10044
10045 Alternatively, you may set the environment variables XCMSDB_CFLAGS
10046 and XCMSDB_LIBS to avoid the need to call pkg-config.
10047 See the pkg-config man page for more details.
10048
10049 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10050 See \`config.log' for more details" "$LINENO" 5; }
10051 else
10052 XCMSDB_CFLAGS=$pkg_cv_XCMSDB_CFLAGS
10053 XCMSDB_LIBS=$pkg_cv_XCMSDB_LIBS
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10055 $as_echo "yes" >&6; }
10056 :
10057 fi
10058
10059 ac_config_files="$ac_config_files Makefile man/Makefile"
10060
10061 cat >confcache <<\_ACEOF
10062 # This file is a shell script that caches the results of configure
10063 # tests run on this system so they can be shared between configure
10064 # scripts and configure runs, see configure's option --config-cache.
10065 # It is not useful on other systems. If it contains results you don't
10066 # want to keep, you may remove or edit it.
10067 #
10068 # config.status only pays attention to the cache file if you give it
10069 # the --recheck option to rerun configure.
10070 #
10071 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10072 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10073 # following values.
10074
10075 _ACEOF
10076
10077 # The following way of writing the cache mishandles newlines in values,
10078 # but we know of no workaround that is simple, portable, and efficient.
10079 # So, we kill variables containing newlines.
10080 # Ultrix sh set writes to stderr and can't be redirected directly,
10081 # and sets the high bit in the cache file unless we assign to the vars.
10082 (
10083 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10084 eval ac_val=\$$ac_var
10085 case $ac_val in #(
10086 *${as_nl}*)
10087 case $ac_var in #(
10088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10090 esac
10091 case $ac_var in #(
10092 _ | IFS | as_nl) ;; #(
10093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10094 *) { eval $ac_var=; unset $ac_var;} ;;
10095 esac ;;
10096 esac
10097 done
10098
10099 (set) 2>&1 |
10100 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10101 *${as_nl}ac_space=\ *)
10102 # `set' does not quote correctly, so add quotes: double-quote
10103 # substitution turns \\\\ into \\, and sed turns \\ into \.
10104 sed -n \
10105 "s/'/'\\\\''/g;
10106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10107 ;; #(
10108 *)
10109 # `set' quotes correctly as required by POSIX, so do not add quotes.
10110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10111 ;;
10112 esac |
10113 sort
10114 ) |
10115 sed '
10116 /^ac_cv_env_/b end
10117 t clear
10118 :clear
10119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10120 t end
10121 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10122 :end' >>confcache
10123 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10124 if test -w "$cache_file"; then
10125 if test "x$cache_file" != "x/dev/null"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10127 $as_echo "$as_me: updating cache $cache_file" >&6;}
10128 if test ! -f "$cache_file" || test -h "$cache_file"; then
10129 cat confcache >"$cache_file"
10130 else
10131 case $cache_file in #(
10132 */* | ?:*)
10133 mv -f confcache "$cache_file"$$ &&
10134 mv -f "$cache_file"$$ "$cache_file" ;; #(
10135 *)
10136 mv -f confcache "$cache_file" ;;
10137 esac
10138 fi
10139 fi
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10142 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10143 fi
10144 fi
10145 rm -f confcache
10146
10147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10148 # Let make expand exec_prefix.
10149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10150
10151 DEFS=-DHAVE_CONFIG_H
10152
10153 ac_libobjs=
10154 ac_ltlibobjs=
10155 U=
10156 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10157 # 1. Remove the extension, and $U if already installed.
10158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10161 # will be set to the directory where LIBOBJS objects are built.
10162 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10163 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10164 done
10165 LIBOBJS=$ac_libobjs
10166
10167 LTLIBOBJS=$ac_ltlibobjs
10168
10169
10170 if test -n "$EXEEXT"; then
10171 am__EXEEXT_TRUE=
10172 am__EXEEXT_FALSE='#'
10173 else
10174 am__EXEEXT_TRUE='#'
10175 am__EXEEXT_FALSE=
10176 fi
10177
10178 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10179 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10181 fi
10182 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10183 as_fn_error $? "conditional \"AMDEP\" was never defined.
10184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10185 fi
10186 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10187 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10189 fi
10190
10191 : "${CONFIG_STATUS=./config.status}"
10192 ac_write_fail=0
10193 ac_clean_files_save=$ac_clean_files
10194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10197 as_write_fail=0
10198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10199 #! $SHELL
10200 # Generated by $as_me.
10201 # Run this file to recreate the current configuration.
10202 # Compiler output produced by configure, useful for debugging
10203 # configure, is in config.log if it exists.
10204
10205 debug=false
10206 ac_cs_recheck=false
10207 ac_cs_silent=false
10208
10209 SHELL=\${CONFIG_SHELL-$SHELL}
10210 export SHELL
10211 _ASEOF
10212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10213 ## -------------------- ##
10214 ## M4sh Initialization. ##
10215 ## -------------------- ##
10216
10217 # Be more Bourne compatible
10218 DUALCASE=1; export DUALCASE # for MKS sh
10219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10220 emulate sh
10221 NULLCMD=:
10222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10223 # is contrary to our usage. Disable this feature.
10224 alias -g '${1+"$@"}'='"$@"'
10225 setopt NO_GLOB_SUBST
10226 else
10227 case `(set -o) 2>/dev/null` in #(
10228 *posix*) :
10229 set -o posix ;; #(
10230 *) :
10231 ;;
10232 esac
10233 fi
10234
10235
10236 as_nl='
10237 '
10238 export as_nl
10239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10243 # Prefer a ksh shell builtin over an external printf program on Solaris,
10244 # but without wasting forks for bash or zsh.
10245 if test -z "$BASH_VERSION$ZSH_VERSION" \
10246 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10247 as_echo='print -r --'
10248 as_echo_n='print -rn --'
10249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10250 as_echo='printf %s\n'
10251 as_echo_n='printf %s'
10252 else
10253 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10254 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10255 as_echo_n='/usr/ucb/echo -n'
10256 else
10257 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10258 as_echo_n_body='eval
10259 arg=$1;
10260 case $arg in #(
10261 *"$as_nl"*)
10262 expr "X$arg" : "X\\(.*\\)$as_nl";
10263 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10264 esac;
10265 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10266 '
10267 export as_echo_n_body
10268 as_echo_n='sh -c $as_echo_n_body as_echo'
10269 fi
10270 export as_echo_body
10271 as_echo='sh -c $as_echo_body as_echo'
10272 fi
10273
10274 # The user is always right.
10275 if test "${PATH_SEPARATOR+set}" != set; then
10276 PATH_SEPARATOR=:
10277 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10278 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10279 PATH_SEPARATOR=';'
10280 }
10281 fi
10282
10283
10284 # IFS
10285 # We need space, tab and new line, in precisely that order. Quoting is
10286 # there to prevent editors from complaining about space-tab.
10287 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10288 # splitting by setting IFS to empty value.)
10289 IFS=" "" $as_nl"
10290
10291 # Find who we are. Look in the path if we contain no directory separator.
10292 as_myself=
10293 case $0 in #((
10294 *[\\/]* ) as_myself=$0 ;;
10295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10301 done
10302 IFS=$as_save_IFS
10303
10304 ;;
10305 esac
10306 # We did not find ourselves, most probably we were run as `sh COMMAND'
10307 # in which case we are not to be found in the path.
10308 if test "x$as_myself" = x; then
10309 as_myself=$0
10310 fi
10311 if test ! -f "$as_myself"; then
10312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10313 exit 1
10314 fi
10315
10316 # Unset variables that we do not need and which cause bugs (e.g. in
10317 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10318 # suppresses any "Segmentation fault" message there. '((' could
10319 # trigger a bug in pdksh 5.2.14.
10320 for as_var in BASH_ENV ENV MAIL MAILPATH
10321 do eval test x\${$as_var+set} = xset \
10322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10323 done
10324 PS1='$ '
10325 PS2='> '
10326 PS4='+ '
10327
10328 # NLS nuisances.
10329 LC_ALL=C
10330 export LC_ALL
10331 LANGUAGE=C
10332 export LANGUAGE
10333
10334 # CDPATH.
10335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10336
10337
10338 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10339 # ----------------------------------------
10340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10342 # script with STATUS, using 1 if that was 0.
10343 as_fn_error ()
10344 {
10345 as_status=$1; test $as_status -eq 0 && as_status=1
10346 if test "$4"; then
10347 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10349 fi
10350 $as_echo "$as_me: error: $2" >&2
10351 as_fn_exit $as_status
10352 } # as_fn_error
10353
10354
10355 # as_fn_set_status STATUS
10356 # -----------------------
10357 # Set $? to STATUS, without forking.
10358 as_fn_set_status ()
10359 {
10360 return $1
10361 } # as_fn_set_status
10362
10363 # as_fn_exit STATUS
10364 # -----------------
10365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10366 as_fn_exit ()
10367 {
10368 set +e
10369 as_fn_set_status $1
10370 exit $1
10371 } # as_fn_exit
10372
10373 # as_fn_unset VAR
10374 # ---------------
10375 # Portably unset VAR.
10376 as_fn_unset ()
10377 {
10378 { eval $1=; unset $1;}
10379 }
10380 as_unset=as_fn_unset
10381 # as_fn_append VAR VALUE
10382 # ----------------------
10383 # Append the text in VALUE to the end of the definition contained in VAR. Take
10384 # advantage of any shell optimizations that allow amortized linear growth over
10385 # repeated appends, instead of the typical quadratic growth present in naive
10386 # implementations.
10387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10388 eval 'as_fn_append ()
10389 {
10390 eval $1+=\$2
10391 }'
10392 else
10393 as_fn_append ()
10394 {
10395 eval $1=\$$1\$2
10396 }
10397 fi # as_fn_append
10398
10399 # as_fn_arith ARG...
10400 # ------------------
10401 # Perform arithmetic evaluation on the ARGs, and store the result in the
10402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10403 # must be portable across $(()) and expr.
10404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10405 eval 'as_fn_arith ()
10406 {
10407 as_val=$(( $* ))
10408 }'
10409 else
10410 as_fn_arith ()
10411 {
10412 as_val=`expr "$@" || test $? -eq 1`
10413 }
10414 fi # as_fn_arith
10415
10416
10417 if expr a : '\(a\)' >/dev/null 2>&1 &&
10418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10419 as_expr=expr
10420 else
10421 as_expr=false
10422 fi
10423
10424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10425 as_basename=basename
10426 else
10427 as_basename=false
10428 fi
10429
10430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10431 as_dirname=dirname
10432 else
10433 as_dirname=false
10434 fi
10435
10436 as_me=`$as_basename -- "$0" ||
10437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10438 X"$0" : 'X\(//\)$' \| \
10439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10440 $as_echo X/"$0" |
10441 sed '/^.*\/\([^/][^/]*\)\/*$/{
10442 s//\1/
10443 q
10444 }
10445 /^X\/\(\/\/\)$/{
10446 s//\1/
10447 q
10448 }
10449 /^X\/\(\/\).*/{
10450 s//\1/
10451 q
10452 }
10453 s/.*/./; q'`
10454
10455 # Avoid depending upon Character Ranges.
10456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10459 as_cr_digits='0123456789'
10460 as_cr_alnum=$as_cr_Letters$as_cr_digits
10461
10462 ECHO_C= ECHO_N= ECHO_T=
10463 case `echo -n x` in #(((((
10464 -n*)
10465 case `echo 'xy\c'` in
10466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10467 xy) ECHO_C='\c';;
10468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10469 ECHO_T=' ';;
10470 esac;;
10471 *)
10472 ECHO_N='-n';;
10473 esac
10474
10475 rm -f conf$$ conf$$.exe conf$$.file
10476 if test -d conf$$.dir; then
10477 rm -f conf$$.dir/conf$$.file
10478 else
10479 rm -f conf$$.dir
10480 mkdir conf$$.dir 2>/dev/null
10481 fi
10482 if (echo >conf$$.file) 2>/dev/null; then
10483 if ln -s conf$$.file conf$$ 2>/dev/null; then
10484 as_ln_s='ln -s'
10485 # ... but there are two gotchas:
10486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10488 # In both cases, we have to default to `cp -p'.
10489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10490 as_ln_s='cp -p'
10491 elif ln conf$$.file conf$$ 2>/dev/null; then
10492 as_ln_s=ln
10493 else
10494 as_ln_s='cp -p'
10495 fi
10496 else
10497 as_ln_s='cp -p'
10498 fi
10499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10500 rmdir conf$$.dir 2>/dev/null
10501
10502
10503 # as_fn_mkdir_p
10504 # -------------
10505 # Create "$as_dir" as a directory, including parents if necessary.
10506 as_fn_mkdir_p ()
10507 {
10508
10509 case $as_dir in #(
10510 -*) as_dir=./$as_dir;;
10511 esac
10512 test -d "$as_dir" || eval $as_mkdir_p || {
10513 as_dirs=
10514 while :; do
10515 case $as_dir in #(
10516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10517 *) as_qdir=$as_dir;;
10518 esac
10519 as_dirs="'$as_qdir' $as_dirs"
10520 as_dir=`$as_dirname -- "$as_dir" ||
10521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10522 X"$as_dir" : 'X\(//\)[^/]' \| \
10523 X"$as_dir" : 'X\(//\)$' \| \
10524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10525 $as_echo X"$as_dir" |
10526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10527 s//\1/
10528 q
10529 }
10530 /^X\(\/\/\)[^/].*/{
10531 s//\1/
10532 q
10533 }
10534 /^X\(\/\/\)$/{
10535 s//\1/
10536 q
10537 }
10538 /^X\(\/\).*/{
10539 s//\1/
10540 q
10541 }
10542 s/.*/./; q'`
10543 test -d "$as_dir" && break
10544 done
10545 test -z "$as_dirs" || eval "mkdir $as_dirs"
10546 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10547
10548
10549 } # as_fn_mkdir_p
10550 if mkdir -p . 2>/dev/null; then
10551 as_mkdir_p='mkdir -p "$as_dir"'
10552 else
10553 test -d ./-p && rmdir ./-p
10554 as_mkdir_p=false
10555 fi
10556
10557 if test -x / >/dev/null 2>&1; then
10558 as_test_x='test -x'
10559 else
10560 if ls -dL / >/dev/null 2>&1; then
10561 as_ls_L_option=L
10562 else
10563 as_ls_L_option=
10564 fi
10565 as_test_x='
10566 eval sh -c '\''
10567 if test -d "$1"; then
10568 test -d "$1/.";
10569 else
10570 case $1 in #(
10571 -*)set "./$1";;
10572 esac;
10573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10574 ???[sx]*):;;*)false;;esac;fi
10575 '\'' sh
10576 '
10577 fi
10578 as_executable_p=$as_test_x
10579
10580 # Sed expression to map a string onto a valid CPP name.
10581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10582
10583 # Sed expression to map a string onto a valid variable name.
10584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10585
10586
10587 exec 6>&1
10588 ## ----------------------------------- ##
10589 ## Main body of $CONFIG_STATUS script. ##
10590 ## ----------------------------------- ##
10591 _ASEOF
10592 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10593
10594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10595 # Save the log message, to keep $0 and so on meaningful, and to
10596 # report actual input values of CONFIG_FILES etc. instead of their
10597 # values after options handling.
10598 ac_log="
10599 This file was extended by xcmsdb $as_me 1.0.4, which was
10600 generated by GNU Autoconf 2.68. Invocation command line was
10601
10602 CONFIG_FILES = $CONFIG_FILES
10603 CONFIG_HEADERS = $CONFIG_HEADERS
10604 CONFIG_LINKS = $CONFIG_LINKS
10605 CONFIG_COMMANDS = $CONFIG_COMMANDS
10606 $ $0 $@
10607
10608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10609 "
10610
10611 _ACEOF
10612
10613 case $ac_config_files in *"
10614 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10615 esac
10616
10617 case $ac_config_headers in *"
10618 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10619 esac
10620
10621
10622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10623 # Files that config.status was made for.
10624 config_files="$ac_config_files"
10625 config_headers="$ac_config_headers"
10626 config_commands="$ac_config_commands"
10627
10628 _ACEOF
10629
10630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10631 ac_cs_usage="\
10632 \`$as_me' instantiates files and other configuration actions
10633 from templates according to the current configuration. Unless the files
10634 and actions are specified as TAGs, all are instantiated by default.
10635
10636 Usage: $0 [OPTION]... [TAG]...
10637
10638 -h, --help print this help, then exit
10639 -V, --version print version number and configuration settings, then exit
10640 --config print configuration, then exit
10641 -q, --quiet, --silent
10642 do not print progress messages
10643 -d, --debug don't remove temporary files
10644 --recheck update $as_me by reconfiguring in the same conditions
10645 --file=FILE[:TEMPLATE]
10646 instantiate the configuration file FILE
10647 --header=FILE[:TEMPLATE]
10648 instantiate the configuration header FILE
10649
10650 Configuration files:
10651 $config_files
10652
10653 Configuration headers:
10654 $config_headers
10655
10656 Configuration commands:
10657 $config_commands
10658
10659 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10660
10661 _ACEOF
10662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10663 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10664 ac_cs_version="\\
10665 xcmsdb config.status 1.0.4
10666 configured by $0, generated by GNU Autoconf 2.68,
10667 with options \\"\$ac_cs_config\\"
10668
10669 Copyright (C) 2010 Free Software Foundation, Inc.
10670 This config.status script is free software; the Free Software Foundation
10671 gives unlimited permission to copy, distribute and modify it."
10672
10673 ac_pwd='$ac_pwd'
10674 srcdir='$srcdir'
10675 INSTALL='$INSTALL'
10676 MKDIR_P='$MKDIR_P'
10677 AWK='$AWK'
10678 test -n "\$AWK" || AWK=awk
10679 _ACEOF
10680
10681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10682 # The default lists apply if the user does not specify any file.
10683 ac_need_defaults=:
10684 while test $# != 0
10685 do
10686 case $1 in
10687 --*=?*)
10688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10690 ac_shift=:
10691 ;;
10692 --*=)
10693 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10694 ac_optarg=
10695 ac_shift=:
10696 ;;
10697 *)
10698 ac_option=$1
10699 ac_optarg=$2
10700 ac_shift=shift
10701 ;;
10702 esac
10703
10704 case $ac_option in
10705 # Handling of the options.
10706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10707 ac_cs_recheck=: ;;
10708 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10709 $as_echo "$ac_cs_version"; exit ;;
10710 --config | --confi | --conf | --con | --co | --c )
10711 $as_echo "$ac_cs_config"; exit ;;
10712 --debug | --debu | --deb | --de | --d | -d )
10713 debug=: ;;
10714 --file | --fil | --fi | --f )
10715 $ac_shift
10716 case $ac_optarg in
10717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10718 '') as_fn_error $? "missing file argument" ;;
10719 esac
10720 as_fn_append CONFIG_FILES " '$ac_optarg'"
10721 ac_need_defaults=false;;
10722 --header | --heade | --head | --hea )
10723 $ac_shift
10724 case $ac_optarg in
10725 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10726 esac
10727 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10728 ac_need_defaults=false;;
10729 --he | --h)
10730 # Conflict between --help and --header
10731 as_fn_error $? "ambiguous option: \`$1'
10732 Try \`$0 --help' for more information.";;
10733 --help | --hel | -h )
10734 $as_echo "$ac_cs_usage"; exit ;;
10735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10737 ac_cs_silent=: ;;
10738
10739 # This is an error.
10740 -*) as_fn_error $? "unrecognized option: \`$1'
10741 Try \`$0 --help' for more information." ;;
10742
10743 *) as_fn_append ac_config_targets " $1"
10744 ac_need_defaults=false ;;
10745
10746 esac
10747 shift
10748 done
10749
10750 ac_configure_extra_args=
10751
10752 if $ac_cs_silent; then
10753 exec 6>/dev/null
10754 ac_configure_extra_args="$ac_configure_extra_args --silent"
10755 fi
10756
10757 _ACEOF
10758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10759 if \$ac_cs_recheck; then
10760 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10761 shift
10762 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10763 CONFIG_SHELL='$SHELL'
10764 export CONFIG_SHELL
10765 exec "\$@"
10766 fi
10767
10768 _ACEOF
10769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10770 exec 5>>config.log
10771 {
10772 echo
10773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10774 ## Running $as_me. ##
10775 _ASBOX
10776 $as_echo "$ac_log"
10777 } >&5
10778
10779 _ACEOF
10780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10781 #
10782 # INIT-COMMANDS
10783 #
10784 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10785
10786 _ACEOF
10787
10788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10789
10790 # Handling of arguments.
10791 for ac_config_target in $ac_config_targets
10792 do
10793 case $ac_config_target in
10794 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10795 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10796 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10797 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10798
10799 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10800 esac
10801 done
10802
10803
10804 # If the user did not use the arguments to specify the items to instantiate,
10805 # then the envvar interface is used. Set only those that are not.
10806 # We use the long form for the default assignment because of an extremely
10807 # bizarre bug on SunOS 4.1.3.
10808 if $ac_need_defaults; then
10809 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10810 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10811 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10812 fi
10813
10814 # Have a temporary directory for convenience. Make it in the build tree
10815 # simply because there is no reason against having it here, and in addition,
10816 # creating and moving files from /tmp can sometimes cause problems.
10817 # Hook for its removal unless debugging.
10818 # Note that there is a small window in which the directory will not be cleaned:
10819 # after its creation but before its name has been assigned to `$tmp'.
10820 $debug ||
10821 {
10822 tmp= ac_tmp=
10823 trap 'exit_status=$?
10824 : "${ac_tmp:=$tmp}"
10825 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10826 ' 0
10827 trap 'as_fn_exit 1' 1 2 13 15
10828 }
10829 # Create a (secure) tmp directory for tmp files.
10830
10831 {
10832 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10833 test -d "$tmp"
10834 } ||
10835 {
10836 tmp=./conf$$-$RANDOM
10837 (umask 077 && mkdir "$tmp")
10838 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10839 ac_tmp=$tmp
10840
10841 # Set up the scripts for CONFIG_FILES section.
10842 # No need to generate them if there are no CONFIG_FILES.
10843 # This happens for instance with `./config.status config.h'.
10844 if test -n "$CONFIG_FILES"; then
10845
10846
10847 ac_cr=`echo X | tr X '\015'`
10848 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10849 # But we know of no other shell where ac_cr would be empty at this
10850 # point, so we can use a bashism as a fallback.
10851 if test "x$ac_cr" = x; then
10852 eval ac_cr=\$\'\\r\'
10853 fi
10854 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10855 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10856 ac_cs_awk_cr='\\r'
10857 else
10858 ac_cs_awk_cr=$ac_cr
10859 fi
10860
10861 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10862 _ACEOF
10863
10864
10865 {
10866 echo "cat >conf$$subs.awk <<_ACEOF" &&
10867 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10868 echo "_ACEOF"
10869 } >conf$$subs.sh ||
10870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10871 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10872 ac_delim='%!_!# '
10873 for ac_last_try in false false false false false :; do
10874 . ./conf$$subs.sh ||
10875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10876
10877 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10878 if test $ac_delim_n = $ac_delim_num; then
10879 break
10880 elif $ac_last_try; then
10881 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10882 else
10883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10884 fi
10885 done
10886 rm -f conf$$subs.sh
10887
10888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10889 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10890 _ACEOF
10891 sed -n '
10892 h
10893 s/^/S["/; s/!.*/"]=/
10894 p
10895 g
10896 s/^[^!]*!//
10897 :repl
10898 t repl
10899 s/'"$ac_delim"'$//
10900 t delim
10901 :nl
10902 h
10903 s/\(.\{148\}\)..*/\1/
10904 t more1
10905 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10906 p
10907 n
10908 b repl
10909 :more1
10910 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10911 p
10912 g
10913 s/.\{148\}//
10914 t nl
10915 :delim
10916 h
10917 s/\(.\{148\}\)..*/\1/
10918 t more2
10919 s/["\\]/\\&/g; s/^/"/; s/$/"/
10920 p
10921 b
10922 :more2
10923 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10924 p
10925 g
10926 s/.\{148\}//
10927 t delim
10928 ' <conf$$subs.awk | sed '
10929 /^[^""]/{
10930 N
10931 s/\n//
10932 }
10933 ' >>$CONFIG_STATUS || ac_write_fail=1
10934 rm -f conf$$subs.awk
10935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10936 _ACAWK
10937 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10938 for (key in S) S_is_set[key] = 1
10939 FS = ""
10940
10941 }
10942 {
10943 line = $ 0
10944 nfields = split(line, field, "@")
10945 substed = 0
10946 len = length(field[1])
10947 for (i = 2; i < nfields; i++) {
10948 key = field[i]
10949 keylen = length(key)
10950 if (S_is_set[key]) {
10951 value = S[key]
10952 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10953 len += length(value) + length(field[++i])
10954 substed = 1
10955 } else
10956 len += 1 + keylen
10957 }
10958
10959 print line
10960 }
10961
10962 _ACAWK
10963 _ACEOF
10964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10965 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10966 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10967 else
10968 cat
10969 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10970 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10971 _ACEOF
10972
10973 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10974 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10975 # trailing colons and then remove the whole line if VPATH becomes empty
10976 # (actually we leave an empty line to preserve line numbers).
10977 if test "x$srcdir" = x.; then
10978 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10979 h
10980 s///
10981 s/^/:/
10982 s/[ ]*$/:/
10983 s/:\$(srcdir):/:/g
10984 s/:\${srcdir}:/:/g
10985 s/:@srcdir@:/:/g
10986 s/^:*//
10987 s/:*$//
10988 x
10989 s/\(=[ ]*\).*/\1/
10990 G
10991 s/\n//
10992 s/^[^=]*=[ ]*$//
10993 }'
10994 fi
10995
10996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10997 fi # test -n "$CONFIG_FILES"
10998
10999 # Set up the scripts for CONFIG_HEADERS section.
11000 # No need to generate them if there are no CONFIG_HEADERS.
11001 # This happens for instance with `./config.status Makefile'.
11002 if test -n "$CONFIG_HEADERS"; then
11003 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11004 BEGIN {
11005 _ACEOF
11006
11007 # Transform confdefs.h into an awk script `defines.awk', embedded as
11008 # here-document in config.status, that substitutes the proper values into
11009 # config.h.in to produce config.h.
11010
11011 # Create a delimiter string that does not exist in confdefs.h, to ease
11012 # handling of long lines.
11013 ac_delim='%!_!# '
11014 for ac_last_try in false false :; do
11015 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11016 if test -z "$ac_tt"; then
11017 break
11018 elif $ac_last_try; then
11019 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11020 else
11021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11022 fi
11023 done
11024
11025 # For the awk script, D is an array of macro values keyed by name,
11026 # likewise P contains macro parameters if any. Preserve backslash
11027 # newline sequences.
11028
11029 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11030 sed -n '
11031 s/.\{148\}/&'"$ac_delim"'/g
11032 t rset
11033 :rset
11034 s/^[ ]*#[ ]*define[ ][ ]*/ /
11035 t def
11036 d
11037 :def
11038 s/\\$//
11039 t bsnl
11040 s/["\\]/\\&/g
11041 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11042 D["\1"]=" \3"/p
11043 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11044 d
11045 :bsnl
11046 s/["\\]/\\&/g
11047 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11048 D["\1"]=" \3\\\\\\n"\\/p
11049 t cont
11050 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11051 t cont
11052 d
11053 :cont
11054 n
11055 s/.\{148\}/&'"$ac_delim"'/g
11056 t clear
11057 :clear
11058 s/\\$//
11059 t bsnlc
11060 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11061 d
11062 :bsnlc
11063 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11064 b cont
11065 ' <confdefs.h | sed '
11066 s/'"$ac_delim"'/"\\\
11067 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11068
11069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11070 for (key in D) D_is_set[key] = 1
11071 FS = ""
11072 }
11073 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11074 line = \$ 0
11075 split(line, arg, " ")
11076 if (arg[1] == "#") {
11077 defundef = arg[2]
11078 mac1 = arg[3]
11079 } else {
11080 defundef = substr(arg[1], 2)
11081 mac1 = arg[2]
11082 }
11083 split(mac1, mac2, "(") #)
11084 macro = mac2[1]
11085 prefix = substr(line, 1, index(line, defundef) - 1)
11086 if (D_is_set[macro]) {
11087 # Preserve the white space surrounding the "#".
11088 print prefix "define", macro P[macro] D[macro]
11089 next
11090 } else {
11091 # Replace #undef with comments. This is necessary, for example,
11092 # in the case of _POSIX_SOURCE, which is predefined and required
11093 # on some systems where configure will not decide to define it.
11094 if (defundef == "undef") {
11095 print "/*", prefix defundef, macro, "*/"
11096 next
11097 }
11098 }
11099 }
11100 { print }
11101 _ACAWK
11102 _ACEOF
11103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11104 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11105 fi # test -n "$CONFIG_HEADERS"
11106
11107
11108 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11109 shift
11110 for ac_tag
11111 do
11112 case $ac_tag in
11113 :[FHLC]) ac_mode=$ac_tag; continue;;
11114 esac
11115 case $ac_mode$ac_tag in
11116 :[FHL]*:*);;
11117 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11118 :[FH]-) ac_tag=-:-;;
11119 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11120 esac
11121 ac_save_IFS=$IFS
11122 IFS=:
11123 set x $ac_tag
11124 IFS=$ac_save_IFS
11125 shift
11126 ac_file=$1
11127 shift
11128
11129 case $ac_mode in
11130 :L) ac_source=$1;;
11131 :[FH])
11132 ac_file_inputs=
11133 for ac_f
11134 do
11135 case $ac_f in
11136 -) ac_f="$ac_tmp/stdin";;
11137 *) # Look for the file first in the build tree, then in the source tree
11138 # (if the path is not absolute). The absolute path cannot be DOS-style,
11139 # because $ac_f cannot contain `:'.
11140 test -f "$ac_f" ||
11141 case $ac_f in
11142 [\\/$]*) false;;
11143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11144 esac ||
11145 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11146 esac
11147 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11148 as_fn_append ac_file_inputs " '$ac_f'"
11149 done
11150
11151 # Let's still pretend it is `configure' which instantiates (i.e., don't
11152 # use $as_me), people would be surprised to read:
11153 # /* config.h. Generated by config.status. */
11154 configure_input='Generated from '`
11155 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11156 `' by configure.'
11157 if test x"$ac_file" != x-; then
11158 configure_input="$ac_file. $configure_input"
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11160 $as_echo "$as_me: creating $ac_file" >&6;}
11161 fi
11162 # Neutralize special characters interpreted by sed in replacement strings.
11163 case $configure_input in #(
11164 *\&* | *\|* | *\\* )
11165 ac_sed_conf_input=`$as_echo "$configure_input" |
11166 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11167 *) ac_sed_conf_input=$configure_input;;
11168 esac
11169
11170 case $ac_tag in
11171 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11173 esac
11174 ;;
11175 esac
11176
11177 ac_dir=`$as_dirname -- "$ac_file" ||
11178 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11179 X"$ac_file" : 'X\(//\)[^/]' \| \
11180 X"$ac_file" : 'X\(//\)$' \| \
11181 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11182 $as_echo X"$ac_file" |
11183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11184 s//\1/
11185 q
11186 }
11187 /^X\(\/\/\)[^/].*/{
11188 s//\1/
11189 q
11190 }
11191 /^X\(\/\/\)$/{
11192 s//\1/
11193 q
11194 }
11195 /^X\(\/\).*/{
11196 s//\1/
11197 q
11198 }
11199 s/.*/./; q'`
11200 as_dir="$ac_dir"; as_fn_mkdir_p
11201 ac_builddir=.
11202
11203 case "$ac_dir" in
11204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11205 *)
11206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11207 # A ".." for each directory in $ac_dir_suffix.
11208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11209 case $ac_top_builddir_sub in
11210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11212 esac ;;
11213 esac
11214 ac_abs_top_builddir=$ac_pwd
11215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11216 # for backward compatibility:
11217 ac_top_builddir=$ac_top_build_prefix
11218
11219 case $srcdir in
11220 .) # We are building in place.
11221 ac_srcdir=.
11222 ac_top_srcdir=$ac_top_builddir_sub
11223 ac_abs_top_srcdir=$ac_pwd ;;
11224 [\\/]* | ?:[\\/]* ) # Absolute name.
11225 ac_srcdir=$srcdir$ac_dir_suffix;
11226 ac_top_srcdir=$srcdir
11227 ac_abs_top_srcdir=$srcdir ;;
11228 *) # Relative name.
11229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11230 ac_top_srcdir=$ac_top_build_prefix$srcdir
11231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11232 esac
11233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11234
11235
11236 case $ac_mode in
11237 :F)
11238 #
11239 # CONFIG_FILE
11240 #
11241
11242 case $INSTALL in
11243 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11244 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11245 esac
11246 ac_MKDIR_P=$MKDIR_P
11247 case $MKDIR_P in
11248 [\\/$]* | ?:[\\/]* ) ;;
11249 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11250 esac
11251 _ACEOF
11252
11253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11254 # If the template does not know about datarootdir, expand it.
11255 # FIXME: This hack should be removed a few years after 2.60.
11256 ac_datarootdir_hack=; ac_datarootdir_seen=
11257 ac_sed_dataroot='
11258 /datarootdir/ {
11259 p
11260 q
11261 }
11262 /@datadir@/p
11263 /@docdir@/p
11264 /@infodir@/p
11265 /@localedir@/p
11266 /@mandir@/p'
11267 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11268 *datarootdir*) ac_datarootdir_seen=yes;;
11269 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11271 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11272 _ACEOF
11273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11274 ac_datarootdir_hack='
11275 s&@datadir@&$datadir&g
11276 s&@docdir@&$docdir&g
11277 s&@infodir@&$infodir&g
11278 s&@localedir@&$localedir&g
11279 s&@mandir@&$mandir&g
11280 s&\\\${datarootdir}&$datarootdir&g' ;;
11281 esac
11282 _ACEOF
11283
11284 # Neutralize VPATH when `$srcdir' = `.'.
11285 # Shell code in configure.ac might set extrasub.
11286 # FIXME: do we really want to maintain this feature?
11287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11288 ac_sed_extra="$ac_vpsub
11289 $extrasub
11290 _ACEOF
11291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11292 :t
11293 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11294 s|@configure_input@|$ac_sed_conf_input|;t t
11295 s&@top_builddir@&$ac_top_builddir_sub&;t t
11296 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11297 s&@srcdir@&$ac_srcdir&;t t
11298 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11299 s&@top_srcdir@&$ac_top_srcdir&;t t
11300 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11301 s&@builddir@&$ac_builddir&;t t
11302 s&@abs_builddir@&$ac_abs_builddir&;t t
11303 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11304 s&@INSTALL@&$ac_INSTALL&;t t
11305 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11306 $ac_datarootdir_hack
11307 "
11308 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11309 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11310
11311 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11312 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11313 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11314 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11316 which seems to be undefined. Please make sure it is defined" >&5
11317 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11318 which seems to be undefined. Please make sure it is defined" >&2;}
11319
11320 rm -f "$ac_tmp/stdin"
11321 case $ac_file in
11322 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11323 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11324 esac \
11325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11326 ;;
11327 :H)
11328 #
11329 # CONFIG_HEADER
11330 #
11331 if test x"$ac_file" != x-; then
11332 {
11333 $as_echo "/* $configure_input */" \
11334 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11335 } >"$ac_tmp/config.h" \
11336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11337 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11339 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11340 else
11341 rm -f "$ac_file"
11342 mv "$ac_tmp/config.h" "$ac_file" \
11343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11344 fi
11345 else
11346 $as_echo "/* $configure_input */" \
11347 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11348 || as_fn_error $? "could not create -" "$LINENO" 5
11349 fi
11350 # Compute "$ac_file"'s index in $config_headers.
11351 _am_arg="$ac_file"
11352 _am_stamp_count=1
11353 for _am_header in $config_headers :; do
11354 case $_am_header in
11355 $_am_arg | $_am_arg:* )
11356 break ;;
11357 * )
11358 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11359 esac
11360 done
11361 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11362 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11363 X"$_am_arg" : 'X\(//\)[^/]' \| \
11364 X"$_am_arg" : 'X\(//\)$' \| \
11365 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11366 $as_echo X"$_am_arg" |
11367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11368 s//\1/
11369 q
11370 }
11371 /^X\(\/\/\)[^/].*/{
11372 s//\1/
11373 q
11374 }
11375 /^X\(\/\/\)$/{
11376 s//\1/
11377 q
11378 }
11379 /^X\(\/\).*/{
11380 s//\1/
11381 q
11382 }
11383 s/.*/./; q'`/stamp-h$_am_stamp_count
11384 ;;
11385
11386 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11387 $as_echo "$as_me: executing $ac_file commands" >&6;}
11388 ;;
11389 esac
11390
11391
11392 case $ac_file$ac_mode in
11393 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11394 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11395 # are listed without --file. Let's play safe and only enable the eval
11396 # if we detect the quoting.
11397 case $CONFIG_FILES in
11398 *\'*) eval set x "$CONFIG_FILES" ;;
11399 *) set x $CONFIG_FILES ;;
11400 esac
11401 shift
11402 for mf
11403 do
11404 # Strip MF so we end up with the name of the file.
11405 mf=`echo "$mf" | sed -e 's/:.*$//'`
11406 # Check whether this is an Automake generated Makefile or not.
11407 # We used to match only the files named `Makefile.in', but
11408 # some people rename them; so instead we look at the file content.
11409 # Grep'ing the first line is not enough: some people post-process
11410 # each Makefile.in and add a new line on top of each file to say so.
11411 # Grep'ing the whole file is not good either: AIX grep has a line
11412 # limit of 2048, but all sed's we know have understand at least 4000.
11413 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11414 dirpart=`$as_dirname -- "$mf" ||
11415 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11416 X"$mf" : 'X\(//\)[^/]' \| \
11417 X"$mf" : 'X\(//\)$' \| \
11418 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11419 $as_echo X"$mf" |
11420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11421 s//\1/
11422 q
11423 }
11424 /^X\(\/\/\)[^/].*/{
11425 s//\1/
11426 q
11427 }
11428 /^X\(\/\/\)$/{
11429 s//\1/
11430 q
11431 }
11432 /^X\(\/\).*/{
11433 s//\1/
11434 q
11435 }
11436 s/.*/./; q'`
11437 else
11438 continue
11439 fi
11440 # Extract the definition of DEPDIR, am__include, and am__quote
11441 # from the Makefile without running `make'.
11442 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11443 test -z "$DEPDIR" && continue
11444 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11445 test -z "am__include" && continue
11446 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11447 # When using ansi2knr, U may be empty or an underscore; expand it
11448 U=`sed -n 's/^U = //p' < "$mf"`
11449 # Find all dependency output files, they are included files with
11450 # $(DEPDIR) in their names. We invoke sed twice because it is the
11451 # simplest approach to changing $(DEPDIR) to its actual value in the
11452 # expansion.
11453 for file in `sed -n "
11454 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11455 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11456 # Make sure the directory exists.
11457 test -f "$dirpart/$file" && continue
11458 fdir=`$as_dirname -- "$file" ||
11459 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11460 X"$file" : 'X\(//\)[^/]' \| \
11461 X"$file" : 'X\(//\)$' \| \
11462 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11463 $as_echo X"$file" |
11464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11465 s//\1/
11466 q
11467 }
11468 /^X\(\/\/\)[^/].*/{
11469 s//\1/
11470 q
11471 }
11472 /^X\(\/\/\)$/{
11473 s//\1/
11474 q
11475 }
11476 /^X\(\/\).*/{
11477 s//\1/
11478 q
11479 }
11480 s/.*/./; q'`
11481 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11482 # echo "creating $dirpart/$file"
11483 echo '# dummy' > "$dirpart/$file"
11484 done
11485 done
11486 }
11487 ;;
11488
11489 esac
11490 done # for ac_tag
11491
11492
11493 as_fn_exit 0
11494 _ACEOF
11495 ac_clean_files=$ac_clean_files_save
11496
11497 test $ac_write_fail = 0 ||
11498 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11499
11500
11501 # configure is writing to config.log, and then calls config.status.
11502 # config.status does its own redirection, appending to config.log.
11503 # Unfortunately, on DOS this fails, as config.log is still kept open
11504 # by configure, so config.status won't be able to write to it; its
11505 # output is simply discarded. So we exec the FD to /dev/null,
11506 # effectively closing config.log, so it can be properly (re)opened and
11507 # appended to by config.status. When coming back to configure, we
11508 # need to make the FD available again.
11509 if test "$no_create" != yes; then
11510 ac_cs_success=:
11511 ac_config_status_args=
11512 test "$silent" = yes &&
11513 ac_config_status_args="$ac_config_status_args --quiet"
11514 exec 5>/dev/null
11515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11516 exec 5>>config.log
11517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11518 # would make configure fail if this is the last instruction.
11519 $ac_cs_success || as_fn_exit 1
11520 fi
11521 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11523 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11524 fi
11525
11526