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 xfindproxy 1.0.3.
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='xfindproxy'
563 PACKAGE_TARNAME='xfindproxy'
564 PACKAGE_VERSION='1.0.3'
565 PACKAGE_STRING='xfindproxy 1.0.3'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 XFINDPROXY_LIBS
611 XFINDPROXY_CFLAGS
612 MAN_SUBSTS
613 XORG_MAN_PAGE
614 ADMIN_MAN_DIR
615 DRIVER_MAN_DIR
616 MISC_MAN_DIR
617 FILE_MAN_DIR
618 LIB_MAN_DIR
619 APP_MAN_DIR
620 ADMIN_MAN_SUFFIX
621 DRIVER_MAN_SUFFIX
622 MISC_MAN_SUFFIX
623 FILE_MAN_SUFFIX
624 LIB_MAN_SUFFIX
625 APP_MAN_SUFFIX
626 SED
627 host_os
628 host_vendor
629 host_cpu
630 host
631 build_os
632 build_vendor
633 build_cpu
634 build
635 INSTALL_CMD
636 PKG_CONFIG
637 CHANGELOG_CMD
638 STRICT_CFLAGS
639 CWARNFLAGS
640 BASE_CFLAGS
641 EGREP
642 GREP
643 CPP
644 am__fastdepCC_FALSE
645 am__fastdepCC_TRUE
646 CCDEPMODE
647 am__nodep
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_BACKSLASH
665 AM_DEFAULT_VERBOSITY
666 AM_DEFAULT_V
667 AM_V
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
673 AWK
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_silent_rules
733 enable_maintainer_mode
734 enable_dependency_tracking
735 enable_selective_werror
736 enable_strict_compilation
737 '
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP
747 PKG_CONFIG
748 XFINDPROXY_CFLAGS
749 XFINDPROXY_LIBS'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *=) ac_optarg= ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
870
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
875
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
880
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1100
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1134
1135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1137 ;;
1138
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1148
1149 *)
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1155 ;;
1156
1157 esac
1158 done
1159
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error $? "missing argument to $ac_option"
1163 fi
1164
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1171 fi
1172
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1178 do
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1193
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1200
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used" >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1209 fi
1210 fi
1211
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215 test "$silent" = yes && exec 6>/dev/null
1216
1217
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error $? "working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error $? "pwd does not report name of working directory"
1224
1225
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\).*/{
1249 s//\1/
1250 q
1251 }
1252 s/.*/./; q'`
1253 srcdir=$ac_confdir
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 srcdir=..
1256 fi
1257 else
1258 ac_srcdir_defaulted=no
1259 fi
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 fi
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1271 fi
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1284
1285 #
1286 # Report the --help message.
1287 #
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures xfindproxy 1.0.3 to adapt to many kinds of systems.
1293
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1298
1299 Defaults for the options are specified in brackets.
1300
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking ...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1317
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1322
1323 For better control, use the options below.
1324
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/xfindproxy]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1346
1347 cat <<\_ACEOF
1348
1349 Program names:
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1353
1354 System types:
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 _ACEOF
1358 fi
1359
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of xfindproxy 1.0.3:";;
1363 esac
1364 cat <<\_ACEOF
1365
1366 Optional Features:
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-silent-rules less verbose build output (undo: "make V=1")
1371 --disable-silent-rules verbose build output (undo: "make V=0")
1372 --enable-maintainer-mode
1373 enable make rules and dependencies not useful (and
1374 sometimes confusing) to the casual installer
1375 --enable-dependency-tracking
1376 do not reject slow dependency extractors
1377 --disable-dependency-tracking
1378 speeds up one-time build
1379 --disable-selective-werror
1380 Turn off selective compiler errors. (default:
1381 enabled)
1382 --enable-strict-compilation
1383 Enable all warnings from compiler and make them
1384 errors (default: disabled)
1385
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1394 CPP C preprocessor
1395 PKG_CONFIG path to pkg-config utility
1396 XFINDPROXY_CFLAGS
1397 C compiler flags for XFINDPROXY, overriding pkg-config
1398 XFINDPROXY_LIBS
1399 linker flags for XFINDPROXY, overriding pkg-config
1400
1401 Use these variables to override the choices made by `configure' or to help
1402 it to find libraries and programs with nonstandard names/locations.
1403
1404 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1405 _ACEOF
1406 ac_status=$?
1407 fi
1408
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" ||
1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1414 continue
1415 ac_builddir=.
1416
1417 case "$ac_dir" in
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *)
1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 esac ;;
1427 esac
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1432
1433 case $srcdir in
1434 .) # We are building in place.
1435 ac_srcdir=.
1436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
1439 ac_srcdir=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1442 *) # Relative name.
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 esac
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448
1449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1457 else
1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459 fi || ac_status=$?
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1461 done
1462 fi
1463
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1466 cat <<\_ACEOF
1467 xfindproxy configure 1.0.3
1468 generated by GNU Autoconf 2.68
1469
1470 Copyright (C) 2010 Free Software Foundation, Inc.
1471 This configure script is free software; the Free Software Foundation
1472 gives unlimited permission to copy, distribute and modify it.
1473 _ACEOF
1474 exit
1475 fi
1476
1477 ## ------------------------ ##
1478 ## Autoconf initialization. ##
1479 ## ------------------------ ##
1480
1481 # ac_fn_c_try_compile LINENO
1482 # --------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_compile ()
1485 {
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 rm -f conftest.$ac_objext
1488 if { { ac_try="$ac_compile"
1489 case "(($ac_try" in
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1492 esac
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_compile") 2>conftest.err
1496 ac_status=$?
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1501 fi
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest.$ac_objext; then :
1507 ac_retval=0
1508 else
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1511
1512 ac_retval=1
1513 fi
1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1515 as_fn_set_status $ac_retval
1516
1517 } # ac_fn_c_try_compile
1518
1519 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1520 # ---------------------------------------------
1521 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1522 # accordingly.
1523 ac_fn_c_check_decl ()
1524 {
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 as_decl_name=`echo $2|sed 's/ *(.*//'`
1527 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1529 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1530 if eval \${$3+:} false; then :
1531 $as_echo_n "(cached) " >&6
1532 else
1533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1534 /* end confdefs.h. */
1535 $4
1536 int
1537 main ()
1538 {
1539 #ifndef $as_decl_name
1540 #ifdef __cplusplus
1541 (void) $as_decl_use;
1542 #else
1543 (void) $as_decl_name;
1544 #endif
1545 #endif
1546
1547 ;
1548 return 0;
1549 }
1550 _ACEOF
1551 if ac_fn_c_try_compile "$LINENO"; then :
1552 eval "$3=yes"
1553 else
1554 eval "$3=no"
1555 fi
1556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1557 fi
1558 eval ac_res=\$$3
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1560 $as_echo "$ac_res" >&6; }
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562
1563 } # ac_fn_c_check_decl
1564
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_cpp ()
1569 {
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_cpp
1601
1602 # ac_fn_c_try_run LINENO
1603 # ----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1605 # that executables *can* be run.
1606 ac_fn_c_try_run ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>&5
1617 ac_status=$?
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1620 { { case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_try") 2>&5
1627 ac_status=$?
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; }; }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: program exited with status $ac_status" >&5
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=$ac_status
1637 fi
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_run
1643
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663 else
1664 eval "$3=no"
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 fi
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_header_compile
1674
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_link ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 $as_test_x conftest$ac_exeext
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_link
1720 cat >config.log <<_ACEOF
1721 This file contains any messages produced by compilers while
1722 running configure, to aid debugging if configure makes a mistake.
1723
1724 It was created by xfindproxy $as_me 1.0.3, which was
1725 generated by GNU Autoconf 2.68. Invocation command line was
1726
1727 $ $0 $@
1728
1729 _ACEOF
1730 exec 5>>config.log
1731 {
1732 cat <<_ASUNAME
1733 ## --------- ##
1734 ## Platform. ##
1735 ## --------- ##
1736
1737 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1738 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1739 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1740 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1741 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1742
1743 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1744 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1745
1746 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1747 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1748 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1749 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1750 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1751 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1752 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1753
1754 _ASUNAME
1755
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 $as_echo "PATH: $as_dir"
1762 done
1763 IFS=$as_save_IFS
1764
1765 } >&5
1766
1767 cat >&5 <<_ACEOF
1768
1769
1770 ## ----------- ##
1771 ## Core tests. ##
1772 ## ----------- ##
1773
1774 _ACEOF
1775
1776
1777 # Keep a trace of the command line.
1778 # Strip out --no-create and --no-recursion so they do not pile up.
1779 # Strip out --silent because we don't want to record it for future runs.
1780 # Also quote any args containing shell meta-characters.
1781 # Make two passes to allow for proper duplicate-argument suppression.
1782 ac_configure_args=
1783 ac_configure_args0=
1784 ac_configure_args1=
1785 ac_must_keep_next=false
1786 for ac_pass in 1 2
1787 do
1788 for ac_arg
1789 do
1790 case $ac_arg in
1791 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1793 | -silent | --silent | --silen | --sile | --sil)
1794 continue ;;
1795 *\'*)
1796 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1797 esac
1798 case $ac_pass in
1799 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1800 2)
1801 as_fn_append ac_configure_args1 " '$ac_arg'"
1802 if test $ac_must_keep_next = true; then
1803 ac_must_keep_next=false # Got value, back to normal.
1804 else
1805 case $ac_arg in
1806 *=* | --config-cache | -C | -disable-* | --disable-* \
1807 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1808 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1809 | -with-* | --with-* | -without-* | --without-* | --x)
1810 case "$ac_configure_args0 " in
1811 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1812 esac
1813 ;;
1814 -* ) ac_must_keep_next=true ;;
1815 esac
1816 fi
1817 as_fn_append ac_configure_args " '$ac_arg'"
1818 ;;
1819 esac
1820 done
1821 done
1822 { ac_configure_args0=; unset ac_configure_args0;}
1823 { ac_configure_args1=; unset ac_configure_args1;}
1824
1825 # When interrupted or exit'd, cleanup temporary files, and complete
1826 # config.log. We remove comments because anyway the quotes in there
1827 # would cause problems or look ugly.
1828 # WARNING: Use '\'' to represent an apostrophe within the trap.
1829 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1830 trap 'exit_status=$?
1831 # Save into config.log some information that might help in debugging.
1832 {
1833 echo
1834
1835 $as_echo "## ---------------- ##
1836 ## Cache variables. ##
1837 ## ---------------- ##"
1838 echo
1839 # The following way of writing the cache mishandles newlines in values,
1840 (
1841 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1842 eval ac_val=\$$ac_var
1843 case $ac_val in #(
1844 *${as_nl}*)
1845 case $ac_var in #(
1846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1848 esac
1849 case $ac_var in #(
1850 _ | IFS | as_nl) ;; #(
1851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1852 *) { eval $ac_var=; unset $ac_var;} ;;
1853 esac ;;
1854 esac
1855 done
1856 (set) 2>&1 |
1857 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1858 *${as_nl}ac_space=\ *)
1859 sed -n \
1860 "s/'\''/'\''\\\\'\'''\''/g;
1861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1862 ;; #(
1863 *)
1864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1865 ;;
1866 esac |
1867 sort
1868 )
1869 echo
1870
1871 $as_echo "## ----------------- ##
1872 ## Output variables. ##
1873 ## ----------------- ##"
1874 echo
1875 for ac_var in $ac_subst_vars
1876 do
1877 eval ac_val=\$$ac_var
1878 case $ac_val in
1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 esac
1881 $as_echo "$ac_var='\''$ac_val'\''"
1882 done | sort
1883 echo
1884
1885 if test -n "$ac_subst_files"; then
1886 $as_echo "## ------------------- ##
1887 ## File substitutions. ##
1888 ## ------------------- ##"
1889 echo
1890 for ac_var in $ac_subst_files
1891 do
1892 eval ac_val=\$$ac_var
1893 case $ac_val in
1894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 esac
1896 $as_echo "$ac_var='\''$ac_val'\''"
1897 done | sort
1898 echo
1899 fi
1900
1901 if test -s confdefs.h; then
1902 $as_echo "## ----------- ##
1903 ## confdefs.h. ##
1904 ## ----------- ##"
1905 echo
1906 cat confdefs.h
1907 echo
1908 fi
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1912 } >&5
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915 exit $exit_status
1916 ' 0
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1919 done
1920 ac_signal=0
1921
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1924
1925 $as_echo "/* confdefs.h */" > confdefs.h
1926
1927 # Predefined preprocessor variables.
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_NAME "$PACKAGE_NAME"
1931 _ACEOF
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1935 _ACEOF
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1943 _ACEOF
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1947 _ACEOF
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_URL "$PACKAGE_URL"
1951 _ACEOF
1952
1953
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer an explicitly selected file to automatically selected ones.
1956 ac_site_file1=NONE
1957 ac_site_file2=NONE
1958 if test -n "$CONFIG_SITE"; then
1959 # We do not want a PATH search for config.site.
1960 case $CONFIG_SITE in #((
1961 -*) ac_site_file1=./$CONFIG_SITE;;
1962 */*) ac_site_file1=$CONFIG_SITE;;
1963 *) ac_site_file1=./$CONFIG_SITE;;
1964 esac
1965 elif test "x$prefix" != xNONE; then
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1968 else
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1971 fi
1972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1973 do
1974 test "x$ac_site_file" = xNONE && continue
1975 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1979 . "$ac_site_file" \
1980 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1982 as_fn_error $? "failed to load site script $ac_site_file
1983 See \`config.log' for more details" "$LINENO" 5; }
1984 fi
1985 done
1986
1987 if test -r "$cache_file"; then
1988 # Some versions of bash will fail to source /dev/null (special files
1989 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1990 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1992 $as_echo "$as_me: loading cache $cache_file" >&6;}
1993 case $cache_file in
1994 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1995 *) . "./$cache_file";;
1996 esac
1997 fi
1998 else
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2000 $as_echo "$as_me: creating cache $cache_file" >&6;}
2001 >$cache_file
2002 fi
2003
2004 # Check that the precious variables saved in the cache have kept the same
2005 # value.
2006 ac_cache_corrupted=false
2007 for ac_var in $ac_precious_vars; do
2008 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2009 eval ac_new_set=\$ac_env_${ac_var}_set
2010 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2011 eval ac_new_val=\$ac_env_${ac_var}_value
2012 case $ac_old_set,$ac_new_set in
2013 set,)
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2017 ,set)
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2019 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2020 ac_cache_corrupted=: ;;
2021 ,);;
2022 *)
2023 if test "x$ac_old_val" != "x$ac_new_val"; then
2024 # differences in whitespace do not lead to failure.
2025 ac_old_val_w=`echo x $ac_old_val`
2026 ac_new_val_w=`echo x $ac_new_val`
2027 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2029 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2030 ac_cache_corrupted=:
2031 else
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2033 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2034 eval $ac_var=\$ac_old_val
2035 fi
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2037 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2039 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2040 fi;;
2041 esac
2042 # Pass precious variables to config.status.
2043 if test "$ac_new_set" = set; then
2044 case $ac_new_val in
2045 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2046 *) ac_arg=$ac_var=$ac_new_val ;;
2047 esac
2048 case " $ac_configure_args " in
2049 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2050 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2051 esac
2052 fi
2053 done
2054 if $ac_cache_corrupted; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2058 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2059 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2060 fi
2061 ## -------------------- ##
2062 ## Main body of script. ##
2063 ## -------------------- ##
2064
2065 ac_ext=c
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070
2071
2072
2073 ac_config_headers="$ac_config_headers config.h"
2074
2075
2076 # Initialize Automake
2077 am__api_version='1.14'
2078
2079 ac_aux_dir=
2080 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2081 if test -f "$ac_dir/install-sh"; then
2082 ac_aux_dir=$ac_dir
2083 ac_install_sh="$ac_aux_dir/install-sh -c"
2084 break
2085 elif test -f "$ac_dir/install.sh"; then
2086 ac_aux_dir=$ac_dir
2087 ac_install_sh="$ac_aux_dir/install.sh -c"
2088 break
2089 elif test -f "$ac_dir/shtool"; then
2090 ac_aux_dir=$ac_dir
2091 ac_install_sh="$ac_aux_dir/shtool install -c"
2092 break
2093 fi
2094 done
2095 if test -z "$ac_aux_dir"; then
2096 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2097 fi
2098
2099 # These three variables are undocumented and unsupported,
2100 # and are intended to be withdrawn in a future Autoconf release.
2101 # They can cause serious problems if a builder's source tree is in a directory
2102 # whose full name contains unusual characters.
2103 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2104 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2105 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2106
2107
2108 # Find a good install program. We prefer a C program (faster),
2109 # so one script is as good as another. But avoid the broken or
2110 # incompatible versions:
2111 # SysV /etc/install, /usr/sbin/install
2112 # SunOS /usr/etc/install
2113 # IRIX /sbin/install
2114 # AIX /bin/install
2115 # AmigaOS /C/install, which installs bootblocks on floppy discs
2116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2119 # OS/2's system install, which has a completely different semantic
2120 # ./install, which can be erroneously created by make from ./install.sh.
2121 # Reject install programs that cannot install multiple files.
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2123 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2124 if test -z "$INSTALL"; then
2125 if ${ac_cv_path_install+:} false; then :
2126 $as_echo_n "(cached) " >&6
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 # Account for people who put trailing slashes in PATH elements.
2134 case $as_dir/ in #((
2135 ./ | .// | /[cC]/* | \
2136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2137 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2138 /usr/ucb/* ) ;;
2139 *)
2140 # OSF1 and SCO ODT 3.0 have their own names for install.
2141 # Don't use installbsd from OSF since it installs stuff as root
2142 # by default.
2143 for ac_prog in ginstall scoinst install; do
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2146 if test $ac_prog = install &&
2147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2148 # AIX install. It has an incompatible calling convention.
2149 :
2150 elif test $ac_prog = install &&
2151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2152 # program-specific install script used by HP pwplus--don't use.
2153 :
2154 else
2155 rm -rf conftest.one conftest.two conftest.dir
2156 echo one > conftest.one
2157 echo two > conftest.two
2158 mkdir conftest.dir
2159 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2160 test -s conftest.one && test -s conftest.two &&
2161 test -s conftest.dir/conftest.one &&
2162 test -s conftest.dir/conftest.two
2163 then
2164 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2165 break 3
2166 fi
2167 fi
2168 fi
2169 done
2170 done
2171 ;;
2172 esac
2173
2174 done
2175 IFS=$as_save_IFS
2176
2177 rm -rf conftest.one conftest.two conftest.dir
2178
2179 fi
2180 if test "${ac_cv_path_install+set}" = set; then
2181 INSTALL=$ac_cv_path_install
2182 else
2183 # As a last resort, use the slow shell script. Don't cache a
2184 # value for INSTALL within a source directory, because that will
2185 # break other packages using the cache if that directory is
2186 # removed, or if the value is a relative name.
2187 INSTALL=$ac_install_sh
2188 fi
2189 fi
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2191 $as_echo "$INSTALL" >&6; }
2192
2193 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2194 # It thinks the first close brace ends the variable substitution.
2195 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2196
2197 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2198
2199 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2200
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2202 $as_echo_n "checking whether build environment is sane... " >&6; }
2203 # Reject unsafe characters in $srcdir or the absolute working directory
2204 # name. Accept space and tab only in the latter.
2205 am_lf='
2206 '
2207 case `pwd` in
2208 *[\\\"\#\$\&\'\`$am_lf]*)
2209 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2210 esac
2211 case $srcdir in
2212 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2213 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2214 esac
2215
2216 # Do 'set' in a subshell so we don't clobber the current shell's
2217 # arguments. Must try -L first in case configure is actually a
2218 # symlink; some systems play weird games with the mod time of symlinks
2219 # (eg FreeBSD returns the mod time of the symlink's containing
2220 # directory).
2221 if (
2222 am_has_slept=no
2223 for am_try in 1 2; do
2224 echo "timestamp, slept: $am_has_slept" > conftest.file
2225 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2226 if test "$*" = "X"; then
2227 # -L didn't work.
2228 set X `ls -t "$srcdir/configure" conftest.file`
2229 fi
2230 if test "$*" != "X $srcdir/configure conftest.file" \
2231 && test "$*" != "X conftest.file $srcdir/configure"; then
2232
2233 # If neither matched, then we have a broken ls. This can happen
2234 # if, for instance, CONFIG_SHELL is bash and it inherits a
2235 # broken ls alias from the environment. This has actually
2236 # happened. Such a system could not be considered "sane".
2237 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2238 alias in your environment" "$LINENO" 5
2239 fi
2240 if test "$2" = conftest.file || test $am_try -eq 2; then
2241 break
2242 fi
2243 # Just in case.
2244 sleep 1
2245 am_has_slept=yes
2246 done
2247 test "$2" = conftest.file
2248 )
2249 then
2250 # Ok.
2251 :
2252 else
2253 as_fn_error $? "newly created file is older than distributed files!
2254 Check your system clock" "$LINENO" 5
2255 fi
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2257 $as_echo "yes" >&6; }
2258 # If we didn't sleep, we still need to ensure time stamps of config.status and
2259 # generated files are strictly newer.
2260 am_sleep_pid=
2261 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2262 ( sleep 1 ) &
2263 am_sleep_pid=$!
2264 fi
2265
2266 rm -f conftest.file
2267
2268 test "$program_prefix" != NONE &&
2269 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2270 # Use a double $ so make ignores it.
2271 test "$program_suffix" != NONE &&
2272 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2273 # Double any \ or $.
2274 # By default was `s,x,x', remove it if useless.
2275 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2276 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2277
2278 # expand $ac_aux_dir to an absolute path
2279 am_aux_dir=`cd $ac_aux_dir && pwd`
2280
2281 if test x"${MISSING+set}" != xset; then
2282 case $am_aux_dir in
2283 *\ * | *\ *)
2284 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2285 *)
2286 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2287 esac
2288 fi
2289 # Use eval to expand $SHELL
2290 if eval "$MISSING --is-lightweight"; then
2291 am_missing_run="$MISSING "
2292 else
2293 am_missing_run=
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2295 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2296 fi
2297
2298 if test x"${install_sh}" != xset; then
2299 case $am_aux_dir in
2300 *\ * | *\ *)
2301 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2302 *)
2303 install_sh="\${SHELL} $am_aux_dir/install-sh"
2304 esac
2305 fi
2306
2307 # Installed binaries are usually stripped using 'strip' when the user
2308 # run "make install-strip". However 'strip' might not be the right
2309 # tool to use in cross-compilation environments, therefore Automake
2310 # will honor the 'STRIP' environment variable to overrule this program.
2311 if test "$cross_compiling" != no; then
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}strip; ac_word=$2
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2316 $as_echo_n "checking for $ac_word... " >&6; }
2317 if ${ac_cv_prog_STRIP+:} false; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 if test -n "$STRIP"; then
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334 done
2335 done
2336 IFS=$as_save_IFS
2337
2338 fi
2339 fi
2340 STRIP=$ac_cv_prog_STRIP
2341 if test -n "$STRIP"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2343 $as_echo "$STRIP" >&6; }
2344 else
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2346 $as_echo "no" >&6; }
2347 fi
2348
2349
2350 fi
2351 if test -z "$ac_cv_prog_STRIP"; then
2352 ac_ct_STRIP=$STRIP
2353 # Extract the first word of "strip", so it can be a program name with args.
2354 set dummy strip; ac_word=$2
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test -n "$ac_ct_STRIP"; then
2361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_ac_ct_STRIP="strip"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2381 if test -n "$ac_ct_STRIP"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2383 $as_echo "$ac_ct_STRIP" >&6; }
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386 $as_echo "no" >&6; }
2387 fi
2388
2389 if test "x$ac_ct_STRIP" = x; then
2390 STRIP=":"
2391 else
2392 case $cross_compiling:$ac_tool_warned in
2393 yes:)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2396 ac_tool_warned=yes ;;
2397 esac
2398 STRIP=$ac_ct_STRIP
2399 fi
2400 else
2401 STRIP="$ac_cv_prog_STRIP"
2402 fi
2403
2404 fi
2405 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2406
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2408 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2409 if test -z "$MKDIR_P"; then
2410 if ${ac_cv_path_mkdir+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_prog in mkdir gmkdir; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2421 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2422 'mkdir (GNU coreutils) '* | \
2423 'mkdir (coreutils) '* | \
2424 'mkdir (fileutils) '4.1*)
2425 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2426 break 3;;
2427 esac
2428 done
2429 done
2430 done
2431 IFS=$as_save_IFS
2432
2433 fi
2434
2435 test -d ./--version && rmdir ./--version
2436 if test "${ac_cv_path_mkdir+set}" = set; then
2437 MKDIR_P="$ac_cv_path_mkdir -p"
2438 else
2439 # As a last resort, use the slow shell script. Don't cache a
2440 # value for MKDIR_P within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the value is a relative name.
2443 MKDIR_P="$ac_install_sh -d"
2444 fi
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2447 $as_echo "$MKDIR_P" >&6; }
2448
2449 for ac_prog in gawk mawk nawk awk
2450 do
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_AWK+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test -n "$AWK"; then
2459 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_AWK="$ac_prog"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 AWK=$ac_cv_prog_AWK
2479 if test -n "$AWK"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2481 $as_echo "$AWK" >&6; }
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2485 fi
2486
2487
2488 test -n "$AWK" && break
2489 done
2490
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2492 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2493 set x ${MAKE-make}
2494 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2495 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 cat >conftest.make <<\_ACEOF
2499 SHELL = /bin/sh
2500 all:
2501 @echo '@@@%%%=$(MAKE)=@@@%%%'
2502 _ACEOF
2503 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2504 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2505 *@@@%%%=?*=@@@%%%*)
2506 eval ac_cv_prog_make_${ac_make}_set=yes;;
2507 *)
2508 eval ac_cv_prog_make_${ac_make}_set=no;;
2509 esac
2510 rm -f conftest.make
2511 fi
2512 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2514 $as_echo "yes" >&6; }
2515 SET_MAKE=
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 SET_MAKE="MAKE=${MAKE-make}"
2520 fi
2521
2522 rm -rf .tst 2>/dev/null
2523 mkdir .tst 2>/dev/null
2524 if test -d .tst; then
2525 am__leading_dot=.
2526 else
2527 am__leading_dot=_
2528 fi
2529 rmdir .tst 2>/dev/null
2530
2531 # Check whether --enable-silent-rules was given.
2532 if test "${enable_silent_rules+set}" = set; then :
2533 enableval=$enable_silent_rules;
2534 fi
2535
2536 case $enable_silent_rules in # (((
2537 yes) AM_DEFAULT_VERBOSITY=0;;
2538 no) AM_DEFAULT_VERBOSITY=1;;
2539 *) AM_DEFAULT_VERBOSITY=1;;
2540 esac
2541 am_make=${MAKE-make}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2543 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2544 if ${am_cv_make_support_nested_variables+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 if $as_echo 'TRUE=$(BAR$(V))
2548 BAR0=false
2549 BAR1=true
2550 V=1
2551 am__doit:
2552 @$(TRUE)
2553 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2554 am_cv_make_support_nested_variables=yes
2555 else
2556 am_cv_make_support_nested_variables=no
2557 fi
2558 fi
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2560 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2561 if test $am_cv_make_support_nested_variables = yes; then
2562 AM_V='$(V)'
2563 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2564 else
2565 AM_V=$AM_DEFAULT_VERBOSITY
2566 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2567 fi
2568 AM_BACKSLASH='\'
2569
2570 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2571 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2572 # is not polluted with repeated "-I."
2573 am__isrc=' -I$(srcdir)'
2574 # test to see if srcdir already configured
2575 if test -f $srcdir/config.status; then
2576 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2577 fi
2578 fi
2579
2580 # test whether we have cygpath
2581 if test -z "$CYGPATH_W"; then
2582 if (cygpath --version) >/dev/null 2>/dev/null; then
2583 CYGPATH_W='cygpath -w'
2584 else
2585 CYGPATH_W=echo
2586 fi
2587 fi
2588
2589
2590 # Define the identity of the package.
2591 PACKAGE='xfindproxy'
2592 VERSION='1.0.3'
2593
2594
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE "$PACKAGE"
2597 _ACEOF
2598
2599
2600 cat >>confdefs.h <<_ACEOF
2601 #define VERSION "$VERSION"
2602 _ACEOF
2603
2604 # Some tools Automake needs.
2605
2606 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2607
2608
2609 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2610
2611
2612 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2613
2614
2615 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2616
2617
2618 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2619
2620 # For better backward compatibility. To be removed once Automake 1.9.x
2621 # dies out for good. For more background, see:
2622 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2623 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2624 mkdir_p='$(MKDIR_P)'
2625
2626 # We need awk for the "check" target. The system "awk" is bad on
2627 # some platforms.
2628 # Always define AMTAR for backward compatibility. Yes, it's still used
2629 # in the wild :-( We should find a proper way to deprecate it ...
2630 AMTAR='$${TAR-tar}'
2631
2632
2633 # We'll loop over all known methods to create a tar archive until one works.
2634 _am_tools='gnutar pax cpio none'
2635
2636 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2637
2638
2639
2640
2641
2642
2643 # POSIX will say in a future version that running "rm -f" with no argument
2644 # is OK; and we want to be able to make that assumption in our Makefile
2645 # recipes. So use an aggressive probe to check that the usage we want is
2646 # actually supported "in the wild" to an acceptable degree.
2647 # See automake bug#10828.
2648 # To make any issue more visible, cause the running configure to be aborted
2649 # by default if the 'rm' program in use doesn't match our expectations; the
2650 # user can still override this though.
2651 if rm -f && rm -fr && rm -rf; then : OK; else
2652 cat >&2 <<'END'
2653 Oops!
2654
2655 Your 'rm' program seems unable to run without file operands specified
2656 on the command line, even when the '-f' option is present. This is contrary
2657 to the behaviour of most rm programs out there, and not conforming with
2658 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2659
2660 Please tell bug-automake@gnu.org about your system, including the value
2661 of your $PATH and any error possibly output before this message. This
2662 can help us improve future automake versions.
2663
2664 END
2665 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2666 echo 'Configuration will proceed anyway, since you have set the' >&2
2667 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2668 echo >&2
2669 else
2670 cat >&2 <<'END'
2671 Aborting the configuration process, to ensure you take notice of the issue.
2672
2673 You can download and install GNU coreutils to get an 'rm' implementation
2674 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2675
2676 If you want to complete the configuration process using your problematic
2677 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2678 to "yes", and re-run configure.
2679
2680 END
2681 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2682 fi
2683 fi
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2686 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2687 # Check whether --enable-maintainer-mode was given.
2688 if test "${enable_maintainer_mode+set}" = set; then :
2689 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2690 else
2691 USE_MAINTAINER_MODE=no
2692 fi
2693
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2695 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2696 if test $USE_MAINTAINER_MODE = yes; then
2697 MAINTAINER_MODE_TRUE=
2698 MAINTAINER_MODE_FALSE='#'
2699 else
2700 MAINTAINER_MODE_TRUE='#'
2701 MAINTAINER_MODE_FALSE=
2702 fi
2703
2704 MAINT=$MAINTAINER_MODE_TRUE
2705
2706
2707
2708 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720 DEPDIR="${am__leading_dot}deps"
2721
2722 ac_config_commands="$ac_config_commands depfiles"
2723
2724
2725 am_make=${MAKE-make}
2726 cat > confinc << 'END'
2727 am__doit:
2728 @echo this is the am__doit target
2729 .PHONY: am__doit
2730 END
2731 # If we don't find an include directive, just comment out the code.
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2733 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2734 am__include="#"
2735 am__quote=
2736 _am_result=none
2737 # First try GNU make style include.
2738 echo "include confinc" > confmf
2739 # Ignore all kinds of additional output from 'make'.
2740 case `$am_make -s -f confmf 2> /dev/null` in #(
2741 *the\ am__doit\ target*)
2742 am__include=include
2743 am__quote=
2744 _am_result=GNU
2745 ;;
2746 esac
2747 # Now try BSD make style include.
2748 if test "$am__include" = "#"; then
2749 echo '.include "confinc"' > confmf
2750 case `$am_make -s -f confmf 2> /dev/null` in #(
2751 *the\ am__doit\ target*)
2752 am__include=.include
2753 am__quote="\""
2754 _am_result=BSD
2755 ;;
2756 esac
2757 fi
2758
2759
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2761 $as_echo "$_am_result" >&6; }
2762 rm -f confinc confmf
2763
2764 # Check whether --enable-dependency-tracking was given.
2765 if test "${enable_dependency_tracking+set}" = set; then :
2766 enableval=$enable_dependency_tracking;
2767 fi
2768
2769 if test "x$enable_dependency_tracking" != xno; then
2770 am_depcomp="$ac_aux_dir/depcomp"
2771 AMDEPBACKSLASH='\'
2772 am__nodep='_no'
2773 fi
2774 if test "x$enable_dependency_tracking" != xno; then
2775 AMDEP_TRUE=
2776 AMDEP_FALSE='#'
2777 else
2778 AMDEP_TRUE='#'
2779 AMDEP_FALSE=
2780 fi
2781
2782
2783 ac_ext=c
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$ac_cv_prog_CC"; then
2828 ac_ct_CC=$CC
2829 # Extract the first word of "gcc", so it can be a program name with args.
2830 set dummy gcc; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CC="gcc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857 if test -n "$ac_ct_CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2859 $as_echo "$ac_ct_CC" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865 if test "x$ac_ct_CC" = x; then
2866 CC=""
2867 else
2868 case $cross_compiling:$ac_tool_warned in
2869 yes:)
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872 ac_tool_warned=yes ;;
2873 esac
2874 CC=$ac_ct_CC
2875 fi
2876 else
2877 CC="$ac_cv_prog_CC"
2878 fi
2879
2880 if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}cc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}cc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 fi
2921 if test -z "$CC"; then
2922 # Extract the first word of "cc", so it can be a program name with args.
2923 set dummy cc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 ac_prog_rejected=no
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2941 ac_prog_rejected=yes
2942 continue
2943 fi
2944 ac_cv_prog_CC="cc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 if test $ac_prog_rejected = yes; then
2953 # We found a bogon in the path, so make sure we never use it.
2954 set dummy $ac_cv_prog_CC
2955 shift
2956 if test $# != 0; then
2957 # We chose a different compiler from the bogus one.
2958 # However, it has the same basename, so the bogon will be chosen
2959 # first if we set CC to just the basename; use the full file name.
2960 shift
2961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 fi
2963 fi
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 for ac_prog in cl.exe
2980 do
2981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018 test -n "$CC" && break
3019 done
3020 fi
3021 if test -z "$CC"; then
3022 ac_ct_CC=$CC
3023 for ac_prog in cl.exe
3024 do
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_ac_ct_CC="$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 $as_echo "$ac_ct_CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 test -n "$ac_ct_CC" && break
3063 done
3064
3065 if test "x$ac_ct_CC" = x; then
3066 CC=""
3067 else
3068 case $cross_compiling:$ac_tool_warned in
3069 yes:)
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072 ac_tool_warned=yes ;;
3073 esac
3074 CC=$ac_ct_CC
3075 fi
3076 fi
3077
3078 fi
3079
3080
3081 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "no acceptable C compiler found in \$PATH
3084 See \`config.log' for more details" "$LINENO" 5; }
3085
3086 # Provide some information about the compiler.
3087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3088 set X $ac_compile
3089 ac_compiler=$2
3090 for ac_option in --version -v -V -qversion; do
3091 { { ac_try="$ac_compiler $ac_option >&5"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3099 ac_status=$?
3100 if test -s conftest.err; then
3101 sed '10a\
3102 ... rest of stderr output deleted ...
3103 10q' conftest.err >conftest.er1
3104 cat conftest.er1 >&5
3105 fi
3106 rm -f conftest.er1 conftest.err
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }
3109 done
3110
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3113
3114 int
3115 main ()
3116 {
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 ac_clean_files_save=$ac_clean_files
3123 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3124 # Try to create an executable without -o first, disregard a.out.
3125 # It will help us diagnose broken compilers, and finding out an intuition
3126 # of exeext.
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3128 $as_echo_n "checking whether the C compiler works... " >&6; }
3129 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3130
3131 # The possible output files:
3132 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3133
3134 ac_rmfiles=
3135 for ac_file in $ac_files
3136 do
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3139 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3140 esac
3141 done
3142 rm -f $ac_rmfiles
3143
3144 if { { ac_try="$ac_link_default"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_link_default") 2>&5
3152 ac_status=$?
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }; then :
3155 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3156 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3157 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3158 # so that the user can short-circuit this test for compilers unknown to
3159 # Autoconf.
3160 for ac_file in $ac_files ''
3161 do
3162 test -f "$ac_file" || continue
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3165 ;;
3166 [ab].out )
3167 # We found the default executable, but exeext='' is most
3168 # certainly right.
3169 break;;
3170 *.* )
3171 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3172 then :; else
3173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 fi
3175 # We set ac_cv_exeext here because the later test for it is not
3176 # safe: cross compilers may not add the suffix if given an `-o'
3177 # argument, so we may need to know it at that point already.
3178 # Even if this section looks crufty: it has the advantage of
3179 # actually working.
3180 break;;
3181 * )
3182 break;;
3183 esac
3184 done
3185 test "$ac_cv_exeext" = no && ac_cv_exeext=
3186
3187 else
3188 ac_file=''
3189 fi
3190 if test -z "$ac_file"; then :
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error 77 "C compiler cannot create executables
3199 See \`config.log' for more details" "$LINENO" 5; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202 $as_echo "yes" >&6; }
3203 fi
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3205 $as_echo_n "checking for C compiler default output file name... " >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 ac_exeext=$ac_cv_exeext
3209
3210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3211 ac_clean_files=$ac_clean_files_save
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3213 $as_echo_n "checking for suffix of executables... " >&6; }
3214 if { { ac_try="$ac_link"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_link") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; then :
3225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3227 # work properly (i.e., refer to `conftest.exe'), while it won't with
3228 # `rm'.
3229 for ac_file in conftest.exe conftest conftest.*; do
3230 test -f "$ac_file" || continue
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 break;;
3235 * ) break;;
3236 esac
3237 done
3238 else
3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3242 See \`config.log' for more details" "$LINENO" 5; }
3243 fi
3244 rm -f conftest conftest$ac_cv_exeext
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3246 $as_echo "$ac_cv_exeext" >&6; }
3247
3248 rm -f conftest.$ac_ext
3249 EXEEXT=$ac_cv_exeext
3250 ac_exeext=$EXEEXT
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253 #include <stdio.h>
3254 int
3255 main ()
3256 {
3257 FILE *f = fopen ("conftest.out", "w");
3258 return ferror (f) || fclose (f) != 0;
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 ac_clean_files="$ac_clean_files conftest.out"
3265 # Check that the compiler produces executables we can run. If not, either
3266 # the compiler is broken, or we cross compile.
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3268 $as_echo_n "checking whether we are cross compiling... " >&6; }
3269 if test "$cross_compiling" != yes; then
3270 { { ac_try="$ac_link"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_link") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }
3281 if { ac_try='./conftest$ac_cv_exeext'
3282 { { case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_try") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; }; then
3292 cross_compiling=no
3293 else
3294 if test "$cross_compiling" = maybe; then
3295 cross_compiling=yes
3296 else
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "cannot run C compiled programs.
3300 If you meant to cross compile, use \`--host'.
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 fi
3303 fi
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3306 $as_echo "$cross_compiling" >&6; }
3307
3308 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3309 ac_clean_files=$ac_clean_files_save
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3311 $as_echo_n "checking for suffix of object files... " >&6; }
3312 if ${ac_cv_objext+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main ()
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 rm -f conftest.o conftest.obj
3327 if { { ac_try="$ac_compile"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_compile") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 for ac_file in conftest.o conftest.obj conftest.*; do
3339 test -f "$ac_file" || continue;
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3343 break;;
3344 esac
3345 done
3346 else
3347 $as_echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error $? "cannot compute suffix of object files: cannot compile
3353 See \`config.log' for more details" "$LINENO" 5; }
3354 fi
3355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3358 $as_echo "$ac_cv_objext" >&6; }
3359 OBJEXT=$ac_cv_objext
3360 ac_objext=$OBJEXT
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3362 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3363 if ${ac_cv_c_compiler_gnu+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372 #ifndef __GNUC__
3373 choke me
3374 #endif
3375
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_compiler_gnu=yes
3382 else
3383 ac_compiler_gnu=no
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3387
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3390 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3391 if test $ac_compiler_gnu = yes; then
3392 GCC=yes
3393 else
3394 GCC=
3395 fi
3396 ac_test_CFLAGS=${CFLAGS+set}
3397 ac_save_CFLAGS=$CFLAGS
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3399 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3400 if ${ac_cv_prog_cc_g+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 ac_save_c_werror_flag=$ac_c_werror_flag
3404 ac_c_werror_flag=yes
3405 ac_cv_prog_cc_g=no
3406 CFLAGS="-g"
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419 ac_cv_prog_cc_g=yes
3420 else
3421 CFLAGS=""
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434
3435 else
3436 ac_c_werror_flag=$ac_save_c_werror_flag
3437 CFLAGS="-g"
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 if ac_fn_c_try_compile "$LINENO"; then :
3450 ac_cv_prog_cc_g=yes
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3460 $as_echo "$ac_cv_prog_cc_g" >&6; }
3461 if test "$ac_test_CFLAGS" = set; then
3462 CFLAGS=$ac_save_CFLAGS
3463 elif test $ac_cv_prog_cc_g = yes; then
3464 if test "$GCC" = yes; then
3465 CFLAGS="-g -O2"
3466 else
3467 CFLAGS="-g"
3468 fi
3469 else
3470 if test "$GCC" = yes; then
3471 CFLAGS="-O2"
3472 else
3473 CFLAGS=
3474 fi
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3477 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3478 if ${ac_cv_prog_cc_c89+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 ac_cv_prog_cc_c89=no
3482 ac_save_CC=$CC
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485 #include <stdarg.h>
3486 #include <stdio.h>
3487 #include <sys/types.h>
3488 #include <sys/stat.h>
3489 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3490 struct buf { int x; };
3491 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3492 static char *e (p, i)
3493 char **p;
3494 int i;
3495 {
3496 return p[i];
3497 }
3498 static char *f (char * (*g) (char **, int), char **p, ...)
3499 {
3500 char *s;
3501 va_list v;
3502 va_start (v,p);
3503 s = g (p, va_arg (v,int));
3504 va_end (v);
3505 return s;
3506 }
3507
3508 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3509 function prototypes and stuff, but not '\xHH' hex character constants.
3510 These don't provoke an error unfortunately, instead are silently treated
3511 as 'x'. The following induces an error, until -std is added to get
3512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3513 array size at least. It's necessary to write '\x00'==0 to get something
3514 that's true only with -std. */
3515 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3516
3517 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3518 inside strings and character constants. */
3519 #define FOO(x) 'x'
3520 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3521
3522 int test (int i, double x);
3523 struct s1 {int (*f) (int a);};
3524 struct s2 {int (*f) (double a);};
3525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3526 int argc;
3527 char **argv;
3528 int
3529 main ()
3530 {
3531 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3537 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3538 do
3539 CC="$ac_save_CC $ac_arg"
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_cv_prog_cc_c89=$ac_arg
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext
3544 test "x$ac_cv_prog_cc_c89" != "xno" && break
3545 done
3546 rm -f conftest.$ac_ext
3547 CC=$ac_save_CC
3548
3549 fi
3550 # AC_CACHE_VAL
3551 case "x$ac_cv_prog_cc_c89" in
3552 x)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3554 $as_echo "none needed" >&6; } ;;
3555 xno)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3557 $as_echo "unsupported" >&6; } ;;
3558 *)
3559 CC="$CC $ac_cv_prog_cc_c89"
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3561 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3562 esac
3563 if test "x$ac_cv_prog_cc_c89" != xno; then :
3564
3565 fi
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
3573 ac_ext=c
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3579 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3580 if ${am_cv_prog_cc_c_o+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585
3586 int
3587 main ()
3588 {
3589
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 # Make sure it works both with $CC and with simple cc.
3595 # Following AC_PROG_CC_C_O, we do the test twice because some
3596 # compilers refuse to overwrite an existing .o file with -o,
3597 # though they will create one.
3598 am_cv_prog_cc_c_o=yes
3599 for am_i in 1 2; do
3600 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3601 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } \
3605 && test -f conftest2.$ac_objext; then
3606 : OK
3607 else
3608 am_cv_prog_cc_c_o=no
3609 break
3610 fi
3611 done
3612 rm -f core conftest*
3613 unset am_i
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3616 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3617 if test "$am_cv_prog_cc_c_o" != yes; then
3618 # Losing compiler, so override with the script.
3619 # FIXME: It is wrong to rewrite CC.
3620 # But if we don't then we get into trouble of one sort or another.
3621 # A longer-term fix would be to have automake use am__CC in this case,
3622 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3623 CC="$am_aux_dir/compile $CC"
3624 fi
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631
3632 depcc="$CC" am_compiler_list=
3633
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3635 $as_echo_n "checking dependency style of $depcc... " >&6; }
3636 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3640 # We make a subdir and do the tests there. Otherwise we can end up
3641 # making bogus files that we don't know about and never remove. For
3642 # instance it was reported that on HP-UX the gcc test will end up
3643 # making a dummy file named 'D' -- because '-MD' means "put the output
3644 # in D".
3645 rm -rf conftest.dir
3646 mkdir conftest.dir
3647 # Copy depcomp to subdir because otherwise we won't find it if we're
3648 # using a relative directory.
3649 cp "$am_depcomp" conftest.dir
3650 cd conftest.dir
3651 # We will build objects and dependencies in a subdirectory because
3652 # it helps to detect inapplicable dependency modes. For instance
3653 # both Tru64's cc and ICC support -MD to output dependencies as a
3654 # side effect of compilation, but ICC will put the dependencies in
3655 # the current directory while Tru64 will put them in the object
3656 # directory.
3657 mkdir sub
3658
3659 am_cv_CC_dependencies_compiler_type=none
3660 if test "$am_compiler_list" = ""; then
3661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3662 fi
3663 am__universal=false
3664 case " $depcc " in #(
3665 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3666 esac
3667
3668 for depmode in $am_compiler_list; do
3669 # Setup a source with many dependencies, because some compilers
3670 # like to wrap large dependency lists on column 80 (with \), and
3671 # we should not choose a depcomp mode which is confused by this.
3672 #
3673 # We need to recreate these files for each test, as the compiler may
3674 # overwrite some of them when testing with obscure command lines.
3675 # This happens at least with the AIX C compiler.
3676 : > sub/conftest.c
3677 for i in 1 2 3 4 5 6; do
3678 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3679 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3680 # Solaris 10 /bin/sh.
3681 echo '/* dummy */' > sub/conftst$i.h
3682 done
3683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3684
3685 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3686 # mode. It turns out that the SunPro C++ compiler does not properly
3687 # handle '-M -o', and we need to detect this. Also, some Intel
3688 # versions had trouble with output in subdirs.
3689 am__obj=sub/conftest.${OBJEXT-o}
3690 am__minus_obj="-o $am__obj"
3691 case $depmode in
3692 gcc)
3693 # This depmode causes a compiler race in universal mode.
3694 test "$am__universal" = false || continue
3695 ;;
3696 nosideeffect)
3697 # After this tag, mechanisms are not by side-effect, so they'll
3698 # only be used when explicitly requested.
3699 if test "x$enable_dependency_tracking" = xyes; then
3700 continue
3701 else
3702 break
3703 fi
3704 ;;
3705 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3706 # This compiler won't grok '-c -o', but also, the minuso test has
3707 # not run yet. These depmodes are late enough in the game, and
3708 # so weak that their functioning should not be impacted.
3709 am__obj=conftest.${OBJEXT-o}
3710 am__minus_obj=
3711 ;;
3712 none) break ;;
3713 esac
3714 if depmode=$depmode \
3715 source=sub/conftest.c object=$am__obj \
3716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3717 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3718 >/dev/null 2>conftest.err &&
3719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3721 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3723 # icc doesn't choke on unknown options, it will just issue warnings
3724 # or remarks (even with -Werror). So we grep stderr for any message
3725 # that says an option was ignored or not supported.
3726 # When given -MP, icc 7.0 and 7.1 complain thusly:
3727 # icc: Command line warning: ignoring option '-M'; no argument required
3728 # The diagnosis changed in icc 8.0:
3729 # icc: Command line remark: option '-MP' not supported
3730 if (grep 'ignoring option' conftest.err ||
3731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3732 am_cv_CC_dependencies_compiler_type=$depmode
3733 break
3734 fi
3735 fi
3736 done
3737
3738 cd ..
3739 rm -rf conftest.dir
3740 else
3741 am_cv_CC_dependencies_compiler_type=none
3742 fi
3743
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3746 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3747 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748
3749 if
3750 test "x$enable_dependency_tracking" != xno \
3751 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3752 am__fastdepCC_TRUE=
3753 am__fastdepCC_FALSE='#'
3754 else
3755 am__fastdepCC_TRUE='#'
3756 am__fastdepCC_FALSE=
3757 fi
3758
3759
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3761 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3762 if ${ac_cv_prog_cc_c99+:} false; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 ac_cv_prog_cc_c99=no
3766 ac_save_CC=$CC
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769 #include <stdarg.h>
3770 #include <stdbool.h>
3771 #include <stdlib.h>
3772 #include <wchar.h>
3773 #include <stdio.h>
3774
3775 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3776 #define debug(...) fprintf (stderr, __VA_ARGS__)
3777 #define showlist(...) puts (#__VA_ARGS__)
3778 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3779 static void
3780 test_varargs_macros (void)
3781 {
3782 int x = 1234;
3783 int y = 5678;
3784 debug ("Flag");
3785 debug ("X = %d\n", x);
3786 showlist (The first, second, and third items.);
3787 report (x>y, "x is %d but y is %d", x, y);
3788 }
3789
3790 // Check long long types.
3791 #define BIG64 18446744073709551615ull
3792 #define BIG32 4294967295ul
3793 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3794 #if !BIG_OK
3795 your preprocessor is broken;
3796 #endif
3797 #if BIG_OK
3798 #else
3799 your preprocessor is broken;
3800 #endif
3801 static long long int bignum = -9223372036854775807LL;
3802 static unsigned long long int ubignum = BIG64;
3803
3804 struct incomplete_array
3805 {
3806 int datasize;
3807 double data[];
3808 };
3809
3810 struct named_init {
3811 int number;
3812 const wchar_t *name;
3813 double average;
3814 };
3815
3816 typedef const char *ccp;
3817
3818 static inline int
3819 test_restrict (ccp restrict text)
3820 {
3821 // See if C++-style comments work.
3822 // Iterate through items via the restricted pointer.
3823 // Also check for declarations in for loops.
3824 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3825 continue;
3826 return 0;
3827 }
3828
3829 // Check varargs and va_copy.
3830 static void
3831 test_varargs (const char *format, ...)
3832 {
3833 va_list args;
3834 va_start (args, format);
3835 va_list args_copy;
3836 va_copy (args_copy, args);
3837
3838 const char *str;
3839 int number;
3840 float fnumber;
3841
3842 while (*format)
3843 {
3844 switch (*format++)
3845 {
3846 case 's': // string
3847 str = va_arg (args_copy, const char *);
3848 break;
3849 case 'd': // int
3850 number = va_arg (args_copy, int);
3851 break;
3852 case 'f': // float
3853 fnumber = va_arg (args_copy, double);
3854 break;
3855 default:
3856 break;
3857 }
3858 }
3859 va_end (args_copy);
3860 va_end (args);
3861 }
3862
3863 int
3864 main ()
3865 {
3866
3867 // Check bool.
3868 _Bool success = false;
3869
3870 // Check restrict.
3871 if (test_restrict ("String literal") == 0)
3872 success = true;
3873 char *restrict newvar = "Another string";
3874
3875 // Check varargs.
3876 test_varargs ("s, d' f .", "string", 65, 34.234);
3877 test_varargs_macros ();
3878
3879 // Check flexible array members.
3880 struct incomplete_array *ia =
3881 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3882 ia->datasize = 10;
3883 for (int i = 0; i < ia->datasize; ++i)
3884 ia->data[i] = i * 1.234;
3885
3886 // Check named initializers.
3887 struct named_init ni = {
3888 .number = 34,
3889 .name = L"Test wide string",
3890 .average = 543.34343,
3891 };
3892
3893 ni.number = 58;
3894
3895 int dynamic_array[ni.number];
3896 dynamic_array[ni.number - 1] = 543;
3897
3898 // work around unused variable warnings
3899 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3900 || dynamic_array[ni.number - 1] != 543);
3901
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3907 do
3908 CC="$ac_save_CC $ac_arg"
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_prog_cc_c99=$ac_arg
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext
3913 test "x$ac_cv_prog_cc_c99" != "xno" && break
3914 done
3915 rm -f conftest.$ac_ext
3916 CC=$ac_save_CC
3917
3918 fi
3919 # AC_CACHE_VAL
3920 case "x$ac_cv_prog_cc_c99" in
3921 x)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3923 $as_echo "none needed" >&6; } ;;
3924 xno)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3926 $as_echo "unsupported" >&6; } ;;
3927 *)
3928 CC="$CC $ac_cv_prog_cc_c99"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3930 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3931 esac
3932 if test "x$ac_cv_prog_cc_c99" != xno; then :
3933
3934 fi
3935
3936
3937
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3944 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3945 # On Suns, sometimes $CPP names a directory.
3946 if test -n "$CPP" && test -d "$CPP"; then
3947 CPP=
3948 fi
3949 if test -z "$CPP"; then
3950 if ${ac_cv_prog_CPP+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 # Double quotes because CPP needs to be expanded
3954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3955 do
3956 ac_preproc_ok=false
3957 for ac_c_preproc_warn_flag in '' yes
3958 do
3959 # Use a header file that comes with gcc, so configuring glibc
3960 # with a fresh cross-compiler works.
3961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3962 # <limits.h> exists even on freestanding compilers.
3963 # On the NeXT, cc -E runs the code through the compiler's parser,
3964 # not just through cpp. "Syntax error" is here to catch this case.
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #ifdef __STDC__
3968 # include <limits.h>
3969 #else
3970 # include <assert.h>
3971 #endif
3972 Syntax error
3973 _ACEOF
3974 if ac_fn_c_try_cpp "$LINENO"; then :
3975
3976 else
3977 # Broken: fails on valid input.
3978 continue
3979 fi
3980 rm -f conftest.err conftest.i conftest.$ac_ext
3981
3982 # OK, works on sane cases. Now check whether nonexistent headers
3983 # can be detected and how.
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986 #include <ac_nonexistent.h>
3987 _ACEOF
3988 if ac_fn_c_try_cpp "$LINENO"; then :
3989 # Broken: success on invalid input.
3990 continue
3991 else
3992 # Passes both tests.
3993 ac_preproc_ok=:
3994 break
3995 fi
3996 rm -f conftest.err conftest.i conftest.$ac_ext
3997
3998 done
3999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4000 rm -f conftest.i conftest.err conftest.$ac_ext
4001 if $ac_preproc_ok; then :
4002 break
4003 fi
4004
4005 done
4006 ac_cv_prog_CPP=$CPP
4007
4008 fi
4009 CPP=$ac_cv_prog_CPP
4010 else
4011 ac_cv_prog_CPP=$CPP
4012 fi
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4014 $as_echo "$CPP" >&6; }
4015 ac_preproc_ok=false
4016 for ac_c_preproc_warn_flag in '' yes
4017 do
4018 # Use a header file that comes with gcc, so configuring glibc
4019 # with a fresh cross-compiler works.
4020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4021 # <limits.h> exists even on freestanding compilers.
4022 # On the NeXT, cc -E runs the code through the compiler's parser,
4023 # not just through cpp. "Syntax error" is here to catch this case.
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026 #ifdef __STDC__
4027 # include <limits.h>
4028 #else
4029 # include <assert.h>
4030 #endif
4031 Syntax error
4032 _ACEOF
4033 if ac_fn_c_try_cpp "$LINENO"; then :
4034
4035 else
4036 # Broken: fails on valid input.
4037 continue
4038 fi
4039 rm -f conftest.err conftest.i conftest.$ac_ext
4040
4041 # OK, works on sane cases. Now check whether nonexistent headers
4042 # can be detected and how.
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #include <ac_nonexistent.h>
4046 _ACEOF
4047 if ac_fn_c_try_cpp "$LINENO"; then :
4048 # Broken: success on invalid input.
4049 continue
4050 else
4051 # Passes both tests.
4052 ac_preproc_ok=:
4053 break
4054 fi
4055 rm -f conftest.err conftest.i conftest.$ac_ext
4056
4057 done
4058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4059 rm -f conftest.i conftest.err conftest.$ac_ext
4060 if $ac_preproc_ok; then :
4061
4062 else
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4066 See \`config.log' for more details" "$LINENO" 5; }
4067 fi
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074
4075
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4077 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4078 if ${ac_cv_path_GREP+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if test -z "$GREP"; then
4082 ac_path_GREP_found=false
4083 # Loop through the user's path and test for each of PROGNAME-LIST
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086 do
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_prog in grep ggrep; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4092 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4093 # Check for GNU ac_path_GREP and select it if it is found.
4094 # Check for GNU $ac_path_GREP
4095 case `"$ac_path_GREP" --version 2>&1` in
4096 *GNU*)
4097 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4098 *)
4099 ac_count=0
4100 $as_echo_n 0123456789 >"conftest.in"
4101 while :
4102 do
4103 cat "conftest.in" "conftest.in" >"conftest.tmp"
4104 mv "conftest.tmp" "conftest.in"
4105 cp "conftest.in" "conftest.nl"
4106 $as_echo 'GREP' >> "conftest.nl"
4107 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109 as_fn_arith $ac_count + 1 && ac_count=$as_val
4110 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4111 # Best one so far, save it but keep looking for a better one
4112 ac_cv_path_GREP="$ac_path_GREP"
4113 ac_path_GREP_max=$ac_count
4114 fi
4115 # 10*(2^10) chars as input seems more than enough
4116 test $ac_count -gt 10 && break
4117 done
4118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 esac
4120
4121 $ac_path_GREP_found && break 3
4122 done
4123 done
4124 done
4125 IFS=$as_save_IFS
4126 if test -z "$ac_cv_path_GREP"; then
4127 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4128 fi
4129 else
4130 ac_cv_path_GREP=$GREP
4131 fi
4132
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4135 $as_echo "$ac_cv_path_GREP" >&6; }
4136 GREP="$ac_cv_path_GREP"
4137
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4140 $as_echo_n "checking for egrep... " >&6; }
4141 if ${ac_cv_path_EGREP+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4145 then ac_cv_path_EGREP="$GREP -E"
4146 else
4147 if test -z "$EGREP"; then
4148 ac_path_EGREP_found=false
4149 # Loop through the user's path and test for each of PROGNAME-LIST
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_prog in egrep; do
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4159 # Check for GNU ac_path_EGREP and select it if it is found.
4160 # Check for GNU $ac_path_EGREP
4161 case `"$ac_path_EGREP" --version 2>&1` in
4162 *GNU*)
4163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4164 *)
4165 ac_count=0
4166 $as_echo_n 0123456789 >"conftest.in"
4167 while :
4168 do
4169 cat "conftest.in" "conftest.in" >"conftest.tmp"
4170 mv "conftest.tmp" "conftest.in"
4171 cp "conftest.in" "conftest.nl"
4172 $as_echo 'EGREP' >> "conftest.nl"
4173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175 as_fn_arith $ac_count + 1 && ac_count=$as_val
4176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4177 # Best one so far, save it but keep looking for a better one
4178 ac_cv_path_EGREP="$ac_path_EGREP"
4179 ac_path_EGREP_max=$ac_count
4180 fi
4181 # 10*(2^10) chars as input seems more than enough
4182 test $ac_count -gt 10 && break
4183 done
4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185 esac
4186
4187 $ac_path_EGREP_found && break 3
4188 done
4189 done
4190 done
4191 IFS=$as_save_IFS
4192 if test -z "$ac_cv_path_EGREP"; then
4193 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4194 fi
4195 else
4196 ac_cv_path_EGREP=$EGREP
4197 fi
4198
4199 fi
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4202 $as_echo "$ac_cv_path_EGREP" >&6; }
4203 EGREP="$ac_cv_path_EGREP"
4204
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4207 $as_echo_n "checking for ANSI C header files... " >&6; }
4208 if ${ac_cv_header_stdc+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #include <stdlib.h>
4214 #include <stdarg.h>
4215 #include <string.h>
4216 #include <float.h>
4217
4218 int
4219 main ()
4220 {
4221
4222 ;
4223 return 0;
4224 }
4225 _ACEOF
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_header_stdc=yes
4228 else
4229 ac_cv_header_stdc=no
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232
4233 if test $ac_cv_header_stdc = yes; then
4234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <string.h>
4238
4239 _ACEOF
4240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4241 $EGREP "memchr" >/dev/null 2>&1; then :
4242
4243 else
4244 ac_cv_header_stdc=no
4245 fi
4246 rm -f conftest*
4247
4248 fi
4249
4250 if test $ac_cv_header_stdc = yes; then
4251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <stdlib.h>
4255
4256 _ACEOF
4257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4258 $EGREP "free" >/dev/null 2>&1; then :
4259
4260 else
4261 ac_cv_header_stdc=no
4262 fi
4263 rm -f conftest*
4264
4265 fi
4266
4267 if test $ac_cv_header_stdc = yes; then
4268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4269 if test "$cross_compiling" = yes; then :
4270 :
4271 else
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <ctype.h>
4275 #include <stdlib.h>
4276 #if ((' ' & 0x0FF) == 0x020)
4277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4279 #else
4280 # define ISLOWER(c) \
4281 (('a' <= (c) && (c) <= 'i') \
4282 || ('j' <= (c) && (c) <= 'r') \
4283 || ('s' <= (c) && (c) <= 'z'))
4284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4285 #endif
4286
4287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4288 int
4289 main ()
4290 {
4291 int i;
4292 for (i = 0; i < 256; i++)
4293 if (XOR (islower (i), ISLOWER (i))
4294 || toupper (i) != TOUPPER (i))
4295 return 2;
4296 return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_run "$LINENO"; then :
4300
4301 else
4302 ac_cv_header_stdc=no
4303 fi
4304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4305 conftest.$ac_objext conftest.beam conftest.$ac_ext
4306 fi
4307
4308 fi
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4311 $as_echo "$ac_cv_header_stdc" >&6; }
4312 if test $ac_cv_header_stdc = yes; then
4313
4314 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4315
4316 fi
4317
4318 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4319 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4320 inttypes.h stdint.h unistd.h
4321 do :
4322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4323 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4324 "
4325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4326 cat >>confdefs.h <<_ACEOF
4327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4328 _ACEOF
4329
4330 fi
4331
4332 done
4333
4334
4335
4336
4337
4338
4339 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4340 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4341 CLANGCC="yes"
4342 else
4343 CLANGCC="no"
4344 fi
4345
4346 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4347 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4348 INTELCC="yes"
4349 else
4350 INTELCC="no"
4351 fi
4352
4353 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4354 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4355 SUNCC="yes"
4356 else
4357 SUNCC="no"
4358 fi
4359
4360
4361
4362
4363 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4364 if test -n "$ac_tool_prefix"; then
4365 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4366 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 case $PKG_CONFIG in
4373 [\\/]* | ?:[\\/]*)
4374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4375 ;;
4376 *)
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392 ;;
4393 esac
4394 fi
4395 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4396 if test -n "$PKG_CONFIG"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4398 $as_echo "$PKG_CONFIG" >&6; }
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4402 fi
4403
4404
4405 fi
4406 if test -z "$ac_cv_path_PKG_CONFIG"; then
4407 ac_pt_PKG_CONFIG=$PKG_CONFIG
4408 # Extract the first word of "pkg-config", so it can be a program name with args.
4409 set dummy pkg-config; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 case $ac_pt_PKG_CONFIG in
4416 [\\/]* | ?:[\\/]*)
4417 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4418 ;;
4419 *)
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4430 fi
4431 done
4432 done
4433 IFS=$as_save_IFS
4434
4435 ;;
4436 esac
4437 fi
4438 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4439 if test -n "$ac_pt_PKG_CONFIG"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4441 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446
4447 if test "x$ac_pt_PKG_CONFIG" = x; then
4448 PKG_CONFIG=""
4449 else
4450 case $cross_compiling:$ac_tool_warned in
4451 yes:)
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4454 ac_tool_warned=yes ;;
4455 esac
4456 PKG_CONFIG=$ac_pt_PKG_CONFIG
4457 fi
4458 else
4459 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4460 fi
4461
4462 fi
4463 if test -n "$PKG_CONFIG"; then
4464 _pkg_min_version=0.9.0
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4466 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4467 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469 $as_echo "yes" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 PKG_CONFIG=""
4474 fi
4475
4476 fi
4477 # Make sure we can run config.sub.
4478 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4479 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4480
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4482 $as_echo_n "checking build system type... " >&6; }
4483 if ${ac_cv_build+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 ac_build_alias=$build_alias
4487 test "x$ac_build_alias" = x &&
4488 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4489 test "x$ac_build_alias" = x &&
4490 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4491 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4492 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4493
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4496 $as_echo "$ac_cv_build" >&6; }
4497 case $ac_cv_build in
4498 *-*-*) ;;
4499 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4500 esac
4501 build=$ac_cv_build
4502 ac_save_IFS=$IFS; IFS='-'
4503 set x $ac_cv_build
4504 shift
4505 build_cpu=$1
4506 build_vendor=$2
4507 shift; shift
4508 # Remember, the first character of IFS is used to create $*,
4509 # except with old shells:
4510 build_os=$*
4511 IFS=$ac_save_IFS
4512 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4513
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4516 $as_echo_n "checking host system type... " >&6; }
4517 if ${ac_cv_host+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test "x$host_alias" = x; then
4521 ac_cv_host=$ac_cv_build
4522 else
4523 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4524 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4525 fi
4526
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4529 $as_echo "$ac_cv_host" >&6; }
4530 case $ac_cv_host in
4531 *-*-*) ;;
4532 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4533 esac
4534 host=$ac_cv_host
4535 ac_save_IFS=$IFS; IFS='-'
4536 set x $ac_cv_host
4537 shift
4538 host_cpu=$1
4539 host_vendor=$2
4540 shift; shift
4541 # Remember, the first character of IFS is used to create $*,
4542 # except with old shells:
4543 host_os=$*
4544 IFS=$ac_save_IFS
4545 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4546
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4549 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4550 if ${ac_cv_path_SED+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4554 for ac_i in 1 2 3 4 5 6 7; do
4555 ac_script="$ac_script$as_nl$ac_script"
4556 done
4557 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4558 { ac_script=; unset ac_script;}
4559 if test -z "$SED"; then
4560 ac_path_SED_found=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in sed gsed; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4570 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4571 # Check for GNU ac_path_SED and select it if it is found.
4572 # Check for GNU $ac_path_SED
4573 case `"$ac_path_SED" --version 2>&1` in
4574 *GNU*)
4575 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4576 *)
4577 ac_count=0
4578 $as_echo_n 0123456789 >"conftest.in"
4579 while :
4580 do
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo '' >> "conftest.nl"
4585 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 as_fn_arith $ac_count + 1 && ac_count=$as_val
4588 if test $ac_count -gt ${ac_path_SED_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_SED="$ac_path_SED"
4591 ac_path_SED_max=$ac_count
4592 fi
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4595 done
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597 esac
4598
4599 $ac_path_SED_found && break 3
4600 done
4601 done
4602 done
4603 IFS=$as_save_IFS
4604 if test -z "$ac_cv_path_SED"; then
4605 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4606 fi
4607 else
4608 ac_cv_path_SED=$SED
4609 fi
4610
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4613 $as_echo "$ac_cv_path_SED" >&6; }
4614 SED="$ac_cv_path_SED"
4615 rm -f conftest.sed
4616
4617
4618
4619
4620
4621
4622 # Check whether --enable-selective-werror was given.
4623 if test "${enable_selective_werror+set}" = set; then :
4624 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4625 else
4626 SELECTIVE_WERROR=yes
4627 fi
4628
4629
4630
4631
4632
4633 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4634 if test "x$SUNCC" = "xyes"; then
4635 BASE_CFLAGS="-v"
4636 else
4637 BASE_CFLAGS=""
4638 fi
4639
4640 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 xorg_testset_save_CFLAGS="$CFLAGS"
4655
4656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4659 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4660 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 int i;
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 xorg_cv_cc_flag_unknown_warning_option=yes
4669 else
4670 xorg_cv_cc_flag_unknown_warning_option=no
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4675 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4677 CFLAGS="$xorg_testset_save_CFLAGS"
4678 fi
4679
4680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4683 fi
4684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4686 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4687 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 int i;
4693 _ACEOF
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695 xorg_cv_cc_flag_unused_command_line_argument=yes
4696 else
4697 xorg_cv_cc_flag_unused_command_line_argument=no
4698 fi
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4702 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4704 CFLAGS="$xorg_testset_save_CFLAGS"
4705 fi
4706
4707 found="no"
4708
4709 if test $found = "no" ; then
4710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4712 fi
4713
4714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4716 fi
4717
4718 CFLAGS="$CFLAGS -Wall"
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4721 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4722 cacheid=xorg_cv_cc_flag__Wall
4723 if eval \${$cacheid+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4728 int i;
4729 int
4730 main ()
4731 {
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_link "$LINENO"; then :
4738 eval $cacheid=yes
4739 else
4740 eval $cacheid=no
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext \
4743 conftest$ac_exeext conftest.$ac_ext
4744 fi
4745
4746
4747 CFLAGS="$xorg_testset_save_CFLAGS"
4748
4749 eval supported=\$$cacheid
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4751 $as_echo "$supported" >&6; }
4752 if test "$supported" = "yes" ; then
4753 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4754 found="yes"
4755 fi
4756 fi
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772 xorg_testset_save_CFLAGS="$CFLAGS"
4773
4774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4777 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4778 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783 int i;
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 xorg_cv_cc_flag_unknown_warning_option=yes
4787 else
4788 xorg_cv_cc_flag_unknown_warning_option=no
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4793 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4795 CFLAGS="$xorg_testset_save_CFLAGS"
4796 fi
4797
4798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4801 fi
4802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4804 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4805 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 int i;
4811 _ACEOF
4812 if ac_fn_c_try_compile "$LINENO"; then :
4813 xorg_cv_cc_flag_unused_command_line_argument=yes
4814 else
4815 xorg_cv_cc_flag_unused_command_line_argument=no
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 fi
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4820 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4822 CFLAGS="$xorg_testset_save_CFLAGS"
4823 fi
4824
4825 found="no"
4826
4827 if test $found = "no" ; then
4828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4830 fi
4831
4832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4834 fi
4835
4836 CFLAGS="$CFLAGS -Wpointer-arith"
4837
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4839 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4840 cacheid=xorg_cv_cc_flag__Wpointer_arith
4841 if eval \${$cacheid+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846 int i;
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_c_try_link "$LINENO"; then :
4856 eval $cacheid=yes
4857 else
4858 eval $cacheid=no
4859 fi
4860 rm -f core conftest.err conftest.$ac_objext \
4861 conftest$ac_exeext conftest.$ac_ext
4862 fi
4863
4864
4865 CFLAGS="$xorg_testset_save_CFLAGS"
4866
4867 eval supported=\$$cacheid
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4869 $as_echo "$supported" >&6; }
4870 if test "$supported" = "yes" ; then
4871 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4872 found="yes"
4873 fi
4874 fi
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 xorg_testset_save_CFLAGS="$CFLAGS"
4891
4892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4895 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4896 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 int i;
4902 _ACEOF
4903 if ac_fn_c_try_compile "$LINENO"; then :
4904 xorg_cv_cc_flag_unknown_warning_option=yes
4905 else
4906 xorg_cv_cc_flag_unknown_warning_option=no
4907 fi
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4911 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4913 CFLAGS="$xorg_testset_save_CFLAGS"
4914 fi
4915
4916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4919 fi
4920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4922 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4923 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 int i;
4929 _ACEOF
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 xorg_cv_cc_flag_unused_command_line_argument=yes
4932 else
4933 xorg_cv_cc_flag_unused_command_line_argument=no
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4938 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4940 CFLAGS="$xorg_testset_save_CFLAGS"
4941 fi
4942
4943 found="no"
4944
4945 if test $found = "no" ; then
4946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948 fi
4949
4950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4952 fi
4953
4954 CFLAGS="$CFLAGS -Wmissing-declarations"
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4957 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4958 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4959 if eval \${$cacheid+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 int i;
4965 int
4966 main ()
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_link "$LINENO"; then :
4974 eval $cacheid=yes
4975 else
4976 eval $cacheid=no
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4980 fi
4981
4982
4983 CFLAGS="$xorg_testset_save_CFLAGS"
4984
4985 eval supported=\$$cacheid
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4987 $as_echo "$supported" >&6; }
4988 if test "$supported" = "yes" ; then
4989 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4990 found="yes"
4991 fi
4992 fi
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 xorg_testset_save_CFLAGS="$CFLAGS"
5009
5010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 int i;
5020 _ACEOF
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 xorg_cv_cc_flag_unknown_warning_option=yes
5023 else
5024 xorg_cv_cc_flag_unknown_warning_option=no
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5031 CFLAGS="$xorg_testset_save_CFLAGS"
5032 fi
5033
5034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5037 fi
5038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 int i;
5047 _ACEOF
5048 if ac_fn_c_try_compile "$LINENO"; then :
5049 xorg_cv_cc_flag_unused_command_line_argument=yes
5050 else
5051 xorg_cv_cc_flag_unused_command_line_argument=no
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5058 CFLAGS="$xorg_testset_save_CFLAGS"
5059 fi
5060
5061 found="no"
5062
5063 if test $found = "no" ; then
5064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066 fi
5067
5068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070 fi
5071
5072 CFLAGS="$CFLAGS -Wformat=2"
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5075 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5076 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5077 if eval \${$cacheid+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082 int i;
5083 int
5084 main ()
5085 {
5086
5087 ;
5088 return 0;
5089 }
5090 _ACEOF
5091 if ac_fn_c_try_link "$LINENO"; then :
5092 eval $cacheid=yes
5093 else
5094 eval $cacheid=no
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext \
5097 conftest$ac_exeext conftest.$ac_ext
5098 fi
5099
5100
5101 CFLAGS="$xorg_testset_save_CFLAGS"
5102
5103 eval supported=\$$cacheid
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5105 $as_echo "$supported" >&6; }
5106 if test "$supported" = "yes" ; then
5107 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5108 found="yes"
5109 fi
5110 fi
5111
5112 if test $found = "no" ; then
5113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5115 fi
5116
5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119 fi
5120
5121 CFLAGS="$CFLAGS -Wformat"
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5124 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5125 cacheid=xorg_cv_cc_flag__Wformat
5126 if eval \${$cacheid+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5131 int i;
5132 int
5133 main ()
5134 {
5135
5136 ;
5137 return 0;
5138 }
5139 _ACEOF
5140 if ac_fn_c_try_link "$LINENO"; then :
5141 eval $cacheid=yes
5142 else
5143 eval $cacheid=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext conftest.$ac_ext
5147 fi
5148
5149
5150 CFLAGS="$xorg_testset_save_CFLAGS"
5151
5152 eval supported=\$$cacheid
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5154 $as_echo "$supported" >&6; }
5155 if test "$supported" = "yes" ; then
5156 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5157 found="yes"
5158 fi
5159 fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 xorg_testset_save_CFLAGS="$CFLAGS"
5178
5179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5182 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5183 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 int i;
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"; then :
5191 xorg_cv_cc_flag_unknown_warning_option=yes
5192 else
5193 xorg_cv_cc_flag_unknown_warning_option=no
5194 fi
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5198 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5200 CFLAGS="$xorg_testset_save_CFLAGS"
5201 fi
5202
5203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206 fi
5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5209 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5210 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 int i;
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"; then :
5218 xorg_cv_cc_flag_unused_command_line_argument=yes
5219 else
5220 xorg_cv_cc_flag_unused_command_line_argument=no
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5225 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5227 CFLAGS="$xorg_testset_save_CFLAGS"
5228 fi
5229
5230 found="no"
5231
5232 if test $found = "no" ; then
5233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235 fi
5236
5237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5239 fi
5240
5241 CFLAGS="$CFLAGS -Wstrict-prototypes"
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5244 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5245 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5246 if eval \${$cacheid+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 int i;
5252 int
5253 main ()
5254 {
5255
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 if ac_fn_c_try_link "$LINENO"; then :
5261 eval $cacheid=yes
5262 else
5263 eval $cacheid=no
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5267 fi
5268
5269
5270 CFLAGS="$xorg_testset_save_CFLAGS"
5271
5272 eval supported=\$$cacheid
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5274 $as_echo "$supported" >&6; }
5275 if test "$supported" = "yes" ; then
5276 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5277 found="yes"
5278 fi
5279 fi
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295 xorg_testset_save_CFLAGS="$CFLAGS"
5296
5297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5300 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5301 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 int i;
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 xorg_cv_cc_flag_unknown_warning_option=yes
5310 else
5311 xorg_cv_cc_flag_unknown_warning_option=no
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5316 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5318 CFLAGS="$xorg_testset_save_CFLAGS"
5319 fi
5320
5321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324 fi
5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5327 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5328 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 int i;
5334 _ACEOF
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336 xorg_cv_cc_flag_unused_command_line_argument=yes
5337 else
5338 xorg_cv_cc_flag_unused_command_line_argument=no
5339 fi
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 fi
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5343 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5345 CFLAGS="$xorg_testset_save_CFLAGS"
5346 fi
5347
5348 found="no"
5349
5350 if test $found = "no" ; then
5351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353 fi
5354
5355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5357 fi
5358
5359 CFLAGS="$CFLAGS -Wmissing-prototypes"
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5362 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5363 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5364 if eval \${$cacheid+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 int i;
5370 int
5371 main ()
5372 {
5373
5374 ;
5375 return 0;
5376 }
5377 _ACEOF
5378 if ac_fn_c_try_link "$LINENO"; then :
5379 eval $cacheid=yes
5380 else
5381 eval $cacheid=no
5382 fi
5383 rm -f core conftest.err conftest.$ac_objext \
5384 conftest$ac_exeext conftest.$ac_ext
5385 fi
5386
5387
5388 CFLAGS="$xorg_testset_save_CFLAGS"
5389
5390 eval supported=\$$cacheid
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5392 $as_echo "$supported" >&6; }
5393 if test "$supported" = "yes" ; then
5394 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5395 found="yes"
5396 fi
5397 fi
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 xorg_testset_save_CFLAGS="$CFLAGS"
5414
5415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5418 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5419 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 int i;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 xorg_cv_cc_flag_unknown_warning_option=yes
5428 else
5429 xorg_cv_cc_flag_unknown_warning_option=no
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5434 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5436 CFLAGS="$xorg_testset_save_CFLAGS"
5437 fi
5438
5439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5442 fi
5443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5445 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5446 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 int i;
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454 xorg_cv_cc_flag_unused_command_line_argument=yes
5455 else
5456 xorg_cv_cc_flag_unused_command_line_argument=no
5457 fi
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5461 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5463 CFLAGS="$xorg_testset_save_CFLAGS"
5464 fi
5465
5466 found="no"
5467
5468 if test $found = "no" ; then
5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471 fi
5472
5473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475 fi
5476
5477 CFLAGS="$CFLAGS -Wnested-externs"
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5480 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5481 cacheid=xorg_cv_cc_flag__Wnested_externs
5482 if eval \${$cacheid+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 int i;
5488 int
5489 main ()
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_link "$LINENO"; then :
5497 eval $cacheid=yes
5498 else
5499 eval $cacheid=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext \
5502 conftest$ac_exeext conftest.$ac_ext
5503 fi
5504
5505
5506 CFLAGS="$xorg_testset_save_CFLAGS"
5507
5508 eval supported=\$$cacheid
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5510 $as_echo "$supported" >&6; }
5511 if test "$supported" = "yes" ; then
5512 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5513 found="yes"
5514 fi
5515 fi
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 xorg_testset_save_CFLAGS="$CFLAGS"
5532
5533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5536 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5537 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 int i;
5543 _ACEOF
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 xorg_cv_cc_flag_unknown_warning_option=yes
5546 else
5547 xorg_cv_cc_flag_unknown_warning_option=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5552 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5554 CFLAGS="$xorg_testset_save_CFLAGS"
5555 fi
5556
5557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560 fi
5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5563 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5564 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 int i;
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"; then :
5572 xorg_cv_cc_flag_unused_command_line_argument=yes
5573 else
5574 xorg_cv_cc_flag_unused_command_line_argument=no
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5579 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5581 CFLAGS="$xorg_testset_save_CFLAGS"
5582 fi
5583
5584 found="no"
5585
5586 if test $found = "no" ; then
5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589 fi
5590
5591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5593 fi
5594
5595 CFLAGS="$CFLAGS -Wbad-function-cast"
5596
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5598 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5599 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5600 if eval \${$cacheid+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 int i;
5606 int
5607 main ()
5608 {
5609
5610 ;
5611 return 0;
5612 }
5613 _ACEOF
5614 if ac_fn_c_try_link "$LINENO"; then :
5615 eval $cacheid=yes
5616 else
5617 eval $cacheid=no
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621 fi
5622
5623
5624 CFLAGS="$xorg_testset_save_CFLAGS"
5625
5626 eval supported=\$$cacheid
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5628 $as_echo "$supported" >&6; }
5629 if test "$supported" = "yes" ; then
5630 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5631 found="yes"
5632 fi
5633 fi
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649 xorg_testset_save_CFLAGS="$CFLAGS"
5650
5651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5654 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5655 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5664 else
5665 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5670 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5672 CFLAGS="$xorg_testset_save_CFLAGS"
5673 fi
5674
5675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678 fi
5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5681 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5682 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 int i;
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690 xorg_cv_cc_flag_unused_command_line_argument=yes
5691 else
5692 xorg_cv_cc_flag_unused_command_line_argument=no
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5697 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5699 CFLAGS="$xorg_testset_save_CFLAGS"
5700 fi
5701
5702 found="no"
5703
5704 if test $found = "no" ; then
5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 fi
5708
5709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711 fi
5712
5713 CFLAGS="$CFLAGS -Wold-style-definition"
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5716 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5717 cacheid=xorg_cv_cc_flag__Wold_style_definition
5718 if eval \${$cacheid+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 int i;
5724 int
5725 main ()
5726 {
5727
5728 ;
5729 return 0;
5730 }
5731 _ACEOF
5732 if ac_fn_c_try_link "$LINENO"; then :
5733 eval $cacheid=yes
5734 else
5735 eval $cacheid=no
5736 fi
5737 rm -f core conftest.err conftest.$ac_objext \
5738 conftest$ac_exeext conftest.$ac_ext
5739 fi
5740
5741
5742 CFLAGS="$xorg_testset_save_CFLAGS"
5743
5744 eval supported=\$$cacheid
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5746 $as_echo "$supported" >&6; }
5747 if test "$supported" = "yes" ; then
5748 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5749 found="yes"
5750 fi
5751 fi
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 xorg_testset_save_CFLAGS="$CFLAGS"
5768
5769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5772 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5773 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 int i;
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 xorg_cv_cc_flag_unknown_warning_option=yes
5782 else
5783 xorg_cv_cc_flag_unknown_warning_option=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5788 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5790 CFLAGS="$xorg_testset_save_CFLAGS"
5791 fi
5792
5793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796 fi
5797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5799 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5800 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 int i;
5806 _ACEOF
5807 if ac_fn_c_try_compile "$LINENO"; then :
5808 xorg_cv_cc_flag_unused_command_line_argument=yes
5809 else
5810 xorg_cv_cc_flag_unused_command_line_argument=no
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5815 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5817 CFLAGS="$xorg_testset_save_CFLAGS"
5818 fi
5819
5820 found="no"
5821
5822 if test $found = "no" ; then
5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825 fi
5826
5827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5829 fi
5830
5831 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5834 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5835 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5836 if eval \${$cacheid+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 int i;
5842 int
5843 main ()
5844 {
5845
5846 ;
5847 return 0;
5848 }
5849 _ACEOF
5850 if ac_fn_c_try_link "$LINENO"; then :
5851 eval $cacheid=yes
5852 else
5853 eval $cacheid=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5857 fi
5858
5859
5860 CFLAGS="$xorg_testset_save_CFLAGS"
5861
5862 eval supported=\$$cacheid
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5864 $as_echo "$supported" >&6; }
5865 if test "$supported" = "yes" ; then
5866 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5867 found="yes"
5868 fi
5869 fi
5870
5871
5872
5873
5874
5875 # This chunk adds additional warnings that could catch undesired effects.
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889 xorg_testset_save_CFLAGS="$CFLAGS"
5890
5891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 int i;
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"; then :
5903 xorg_cv_cc_flag_unknown_warning_option=yes
5904 else
5905 xorg_cv_cc_flag_unknown_warning_option=no
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5912 CFLAGS="$xorg_testset_save_CFLAGS"
5913 fi
5914
5915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918 fi
5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 int i;
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"; then :
5930 xorg_cv_cc_flag_unused_command_line_argument=yes
5931 else
5932 xorg_cv_cc_flag_unused_command_line_argument=no
5933 fi
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5939 CFLAGS="$xorg_testset_save_CFLAGS"
5940 fi
5941
5942 found="no"
5943
5944 if test $found = "no" ; then
5945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5947 fi
5948
5949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5951 fi
5952
5953 CFLAGS="$CFLAGS -Wunused"
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5956 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5957 cacheid=xorg_cv_cc_flag__Wunused
5958 if eval \${$cacheid+:} 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 int
5965 main ()
5966 {
5967
5968 ;
5969 return 0;
5970 }
5971 _ACEOF
5972 if ac_fn_c_try_link "$LINENO"; then :
5973 eval $cacheid=yes
5974 else
5975 eval $cacheid=no
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext \
5978 conftest$ac_exeext conftest.$ac_ext
5979 fi
5980
5981
5982 CFLAGS="$xorg_testset_save_CFLAGS"
5983
5984 eval supported=\$$cacheid
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5986 $as_echo "$supported" >&6; }
5987 if test "$supported" = "yes" ; then
5988 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5989 found="yes"
5990 fi
5991 fi
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007 xorg_testset_save_CFLAGS="$CFLAGS"
6008
6009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018 int i;
6019 _ACEOF
6020 if ac_fn_c_try_compile "$LINENO"; then :
6021 xorg_cv_cc_flag_unknown_warning_option=yes
6022 else
6023 xorg_cv_cc_flag_unknown_warning_option=no
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6030 CFLAGS="$xorg_testset_save_CFLAGS"
6031 fi
6032
6033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036 fi
6037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 int i;
6046 _ACEOF
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048 xorg_cv_cc_flag_unused_command_line_argument=yes
6049 else
6050 xorg_cv_cc_flag_unused_command_line_argument=no
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6057 CFLAGS="$xorg_testset_save_CFLAGS"
6058 fi
6059
6060 found="no"
6061
6062 if test $found = "no" ; then
6063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065 fi
6066
6067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6069 fi
6070
6071 CFLAGS="$CFLAGS -Wuninitialized"
6072
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6074 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6075 cacheid=xorg_cv_cc_flag__Wuninitialized
6076 if eval \${$cacheid+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 int i;
6082 int
6083 main ()
6084 {
6085
6086 ;
6087 return 0;
6088 }
6089 _ACEOF
6090 if ac_fn_c_try_link "$LINENO"; then :
6091 eval $cacheid=yes
6092 else
6093 eval $cacheid=no
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext \
6096 conftest$ac_exeext conftest.$ac_ext
6097 fi
6098
6099
6100 CFLAGS="$xorg_testset_save_CFLAGS"
6101
6102 eval supported=\$$cacheid
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6104 $as_echo "$supported" >&6; }
6105 if test "$supported" = "yes" ; then
6106 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6107 found="yes"
6108 fi
6109 fi
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 xorg_testset_save_CFLAGS="$CFLAGS"
6126
6127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6131 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 xorg_cv_cc_flag_unknown_warning_option=yes
6140 else
6141 xorg_cv_cc_flag_unknown_warning_option=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6148 CFLAGS="$xorg_testset_save_CFLAGS"
6149 fi
6150
6151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154 fi
6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 int i;
6164 _ACEOF
6165 if ac_fn_c_try_compile "$LINENO"; then :
6166 xorg_cv_cc_flag_unused_command_line_argument=yes
6167 else
6168 xorg_cv_cc_flag_unused_command_line_argument=no
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6175 CFLAGS="$xorg_testset_save_CFLAGS"
6176 fi
6177
6178 found="no"
6179
6180 if test $found = "no" ; then
6181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183 fi
6184
6185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6187 fi
6188
6189 CFLAGS="$CFLAGS -Wshadow"
6190
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6192 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6193 cacheid=xorg_cv_cc_flag__Wshadow
6194 if eval \${$cacheid+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 int i;
6200 int
6201 main ()
6202 {
6203
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 eval $cacheid=yes
6210 else
6211 eval $cacheid=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 fi
6216
6217
6218 CFLAGS="$xorg_testset_save_CFLAGS"
6219
6220 eval supported=\$$cacheid
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6222 $as_echo "$supported" >&6; }
6223 if test "$supported" = "yes" ; then
6224 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6225 found="yes"
6226 fi
6227 fi
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 xorg_testset_save_CFLAGS="$CFLAGS"
6244
6245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 int i;
6255 _ACEOF
6256 if ac_fn_c_try_compile "$LINENO"; then :
6257 xorg_cv_cc_flag_unknown_warning_option=yes
6258 else
6259 xorg_cv_cc_flag_unknown_warning_option=no
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6266 CFLAGS="$xorg_testset_save_CFLAGS"
6267 fi
6268
6269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6272 fi
6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 int i;
6282 _ACEOF
6283 if ac_fn_c_try_compile "$LINENO"; then :
6284 xorg_cv_cc_flag_unused_command_line_argument=yes
6285 else
6286 xorg_cv_cc_flag_unused_command_line_argument=no
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6293 CFLAGS="$xorg_testset_save_CFLAGS"
6294 fi
6295
6296 found="no"
6297
6298 if test $found = "no" ; then
6299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6301 fi
6302
6303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6305 fi
6306
6307 CFLAGS="$CFLAGS -Wcast-qual"
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6310 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6311 cacheid=xorg_cv_cc_flag__Wcast_qual
6312 if eval \${$cacheid+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 int i;
6318 int
6319 main ()
6320 {
6321
6322 ;
6323 return 0;
6324 }
6325 _ACEOF
6326 if ac_fn_c_try_link "$LINENO"; then :
6327 eval $cacheid=yes
6328 else
6329 eval $cacheid=no
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext \
6332 conftest$ac_exeext conftest.$ac_ext
6333 fi
6334
6335
6336 CFLAGS="$xorg_testset_save_CFLAGS"
6337
6338 eval supported=\$$cacheid
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6340 $as_echo "$supported" >&6; }
6341 if test "$supported" = "yes" ; then
6342 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6343 found="yes"
6344 fi
6345 fi
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361 xorg_testset_save_CFLAGS="$CFLAGS"
6362
6363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 int i;
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 xorg_cv_cc_flag_unknown_warning_option=yes
6376 else
6377 xorg_cv_cc_flag_unknown_warning_option=no
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6384 CFLAGS="$xorg_testset_save_CFLAGS"
6385 fi
6386
6387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6390 fi
6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 int i;
6400 _ACEOF
6401 if ac_fn_c_try_compile "$LINENO"; then :
6402 xorg_cv_cc_flag_unused_command_line_argument=yes
6403 else
6404 xorg_cv_cc_flag_unused_command_line_argument=no
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6411 CFLAGS="$xorg_testset_save_CFLAGS"
6412 fi
6413
6414 found="no"
6415
6416 if test $found = "no" ; then
6417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419 fi
6420
6421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423 fi
6424
6425 CFLAGS="$CFLAGS -Wmissing-noreturn"
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6428 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6429 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6430 if eval \${$cacheid+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 int i;
6436 int
6437 main ()
6438 {
6439
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_link "$LINENO"; then :
6445 eval $cacheid=yes
6446 else
6447 eval $cacheid=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6451 fi
6452
6453
6454 CFLAGS="$xorg_testset_save_CFLAGS"
6455
6456 eval supported=\$$cacheid
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6458 $as_echo "$supported" >&6; }
6459 if test "$supported" = "yes" ; then
6460 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6461 found="yes"
6462 fi
6463 fi
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479 xorg_testset_save_CFLAGS="$CFLAGS"
6480
6481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490 int i;
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493 xorg_cv_cc_flag_unknown_warning_option=yes
6494 else
6495 xorg_cv_cc_flag_unknown_warning_option=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6502 CFLAGS="$xorg_testset_save_CFLAGS"
6503 fi
6504
6505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508 fi
6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6517 int i;
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520 xorg_cv_cc_flag_unused_command_line_argument=yes
6521 else
6522 xorg_cv_cc_flag_unused_command_line_argument=no
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6529 CFLAGS="$xorg_testset_save_CFLAGS"
6530 fi
6531
6532 found="no"
6533
6534 if test $found = "no" ; then
6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 fi
6538
6539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6541 fi
6542
6543 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6546 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6547 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6548 if eval \${$cacheid+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 int i;
6554 int
6555 main ()
6556 {
6557
6558 ;
6559 return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_c_try_link "$LINENO"; then :
6563 eval $cacheid=yes
6564 else
6565 eval $cacheid=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext \
6568 conftest$ac_exeext conftest.$ac_ext
6569 fi
6570
6571
6572 CFLAGS="$xorg_testset_save_CFLAGS"
6573
6574 eval supported=\$$cacheid
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6576 $as_echo "$supported" >&6; }
6577 if test "$supported" = "yes" ; then
6578 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6579 found="yes"
6580 fi
6581 fi
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597 xorg_testset_save_CFLAGS="$CFLAGS"
6598
6599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6602 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6603 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 int i;
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 xorg_cv_cc_flag_unknown_warning_option=yes
6612 else
6613 xorg_cv_cc_flag_unknown_warning_option=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6618 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6620 CFLAGS="$xorg_testset_save_CFLAGS"
6621 fi
6622
6623 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6626 fi
6627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6630 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 int i;
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"; then :
6638 xorg_cv_cc_flag_unused_command_line_argument=yes
6639 else
6640 xorg_cv_cc_flag_unused_command_line_argument=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6645 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6647 CFLAGS="$xorg_testset_save_CFLAGS"
6648 fi
6649
6650 found="no"
6651
6652 if test $found = "no" ; then
6653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655 fi
6656
6657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6659 fi
6660
6661 CFLAGS="$CFLAGS -Wredundant-decls"
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6664 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6665 cacheid=xorg_cv_cc_flag__Wredundant_decls
6666 if eval \${$cacheid+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 int i;
6672 int
6673 main ()
6674 {
6675
6676 ;
6677 return 0;
6678 }
6679 _ACEOF
6680 if ac_fn_c_try_link "$LINENO"; then :
6681 eval $cacheid=yes
6682 else
6683 eval $cacheid=no
6684 fi
6685 rm -f core conftest.err conftest.$ac_objext \
6686 conftest$ac_exeext conftest.$ac_ext
6687 fi
6688
6689
6690 CFLAGS="$xorg_testset_save_CFLAGS"
6691
6692 eval supported=\$$cacheid
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6694 $as_echo "$supported" >&6; }
6695 if test "$supported" = "yes" ; then
6696 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6697 found="yes"
6698 fi
6699 fi
6700
6701
6702
6703 # These are currently disabled because they are noisy. They will be enabled
6704 # in the future once the codebase is sufficiently modernized to silence
6705 # them. For now, I don't want them to drown out the other warnings.
6706 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6707 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6708 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6709
6710 # Turn some warnings into errors, so we don't accidently get successful builds
6711 # when there are problems that should be fixed.
6712
6713 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727 xorg_testset_save_CFLAGS="$CFLAGS"
6728
6729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738 int i;
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741 xorg_cv_cc_flag_unknown_warning_option=yes
6742 else
6743 xorg_cv_cc_flag_unknown_warning_option=no
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 fi
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6750 CFLAGS="$xorg_testset_save_CFLAGS"
6751 fi
6752
6753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6756 fi
6757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 int i;
6766 _ACEOF
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 xorg_cv_cc_flag_unused_command_line_argument=yes
6769 else
6770 xorg_cv_cc_flag_unused_command_line_argument=no
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6777 CFLAGS="$xorg_testset_save_CFLAGS"
6778 fi
6779
6780 found="no"
6781
6782 if test $found = "no" ; then
6783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6785 fi
6786
6787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6789 fi
6790
6791 CFLAGS="$CFLAGS -Werror=implicit"
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6794 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6795 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6796 if eval \${$cacheid+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 int i;
6802 int
6803 main ()
6804 {
6805
6806 ;
6807 return 0;
6808 }
6809 _ACEOF
6810 if ac_fn_c_try_link "$LINENO"; then :
6811 eval $cacheid=yes
6812 else
6813 eval $cacheid=no
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext \
6816 conftest$ac_exeext conftest.$ac_ext
6817 fi
6818
6819
6820 CFLAGS="$xorg_testset_save_CFLAGS"
6821
6822 eval supported=\$$cacheid
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6824 $as_echo "$supported" >&6; }
6825 if test "$supported" = "yes" ; then
6826 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6827 found="yes"
6828 fi
6829 fi
6830
6831 if test $found = "no" ; then
6832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834 fi
6835
6836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838 fi
6839
6840 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6843 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6844 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6845 if eval \${$cacheid+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 int i;
6851 int
6852 main ()
6853 {
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_link "$LINENO"; then :
6860 eval $cacheid=yes
6861 else
6862 eval $cacheid=no
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext \
6865 conftest$ac_exeext conftest.$ac_ext
6866 fi
6867
6868
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6870
6871 eval supported=\$$cacheid
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6873 $as_echo "$supported" >&6; }
6874 if test "$supported" = "yes" ; then
6875 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6876 found="yes"
6877 fi
6878 fi
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894 xorg_testset_save_CFLAGS="$CFLAGS"
6895
6896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6899 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6900 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905 int i;
6906 _ACEOF
6907 if ac_fn_c_try_compile "$LINENO"; then :
6908 xorg_cv_cc_flag_unknown_warning_option=yes
6909 else
6910 xorg_cv_cc_flag_unknown_warning_option=no
6911 fi
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 fi
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6915 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6917 CFLAGS="$xorg_testset_save_CFLAGS"
6918 fi
6919
6920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 fi
6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6926 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6927 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 int i;
6933 _ACEOF
6934 if ac_fn_c_try_compile "$LINENO"; then :
6935 xorg_cv_cc_flag_unused_command_line_argument=yes
6936 else
6937 xorg_cv_cc_flag_unused_command_line_argument=no
6938 fi
6939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 fi
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6942 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6944 CFLAGS="$xorg_testset_save_CFLAGS"
6945 fi
6946
6947 found="no"
6948
6949 if test $found = "no" ; then
6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952 fi
6953
6954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956 fi
6957
6958 CFLAGS="$CFLAGS -Werror=nonnull"
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6961 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6962 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6963 if eval \${$cacheid+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968 int i;
6969 int
6970 main ()
6971 {
6972
6973 ;
6974 return 0;
6975 }
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 eval $cacheid=yes
6979 else
6980 eval $cacheid=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6984 fi
6985
6986
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6988
6989 eval supported=\$$cacheid
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6991 $as_echo "$supported" >&6; }
6992 if test "$supported" = "yes" ; then
6993 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6994 found="yes"
6995 fi
6996 fi
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012 xorg_testset_save_CFLAGS="$CFLAGS"
7013
7014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7017 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7018 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 int i;
7024 _ACEOF
7025 if ac_fn_c_try_compile "$LINENO"; then :
7026 xorg_cv_cc_flag_unknown_warning_option=yes
7027 else
7028 xorg_cv_cc_flag_unknown_warning_option=no
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 fi
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7033 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7035 CFLAGS="$xorg_testset_save_CFLAGS"
7036 fi
7037
7038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7041 fi
7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7044 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7045 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 int i;
7051 _ACEOF
7052 if ac_fn_c_try_compile "$LINENO"; then :
7053 xorg_cv_cc_flag_unused_command_line_argument=yes
7054 else
7055 xorg_cv_cc_flag_unused_command_line_argument=no
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7060 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7062 CFLAGS="$xorg_testset_save_CFLAGS"
7063 fi
7064
7065 found="no"
7066
7067 if test $found = "no" ; then
7068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070 fi
7071
7072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7074 fi
7075
7076 CFLAGS="$CFLAGS -Werror=init-self"
7077
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7079 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7080 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7081 if eval \${$cacheid+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 int i;
7087 int
7088 main ()
7089 {
7090
7091 ;
7092 return 0;
7093 }
7094 _ACEOF
7095 if ac_fn_c_try_link "$LINENO"; then :
7096 eval $cacheid=yes
7097 else
7098 eval $cacheid=no
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7102 fi
7103
7104
7105 CFLAGS="$xorg_testset_save_CFLAGS"
7106
7107 eval supported=\$$cacheid
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7109 $as_echo "$supported" >&6; }
7110 if test "$supported" = "yes" ; then
7111 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7112 found="yes"
7113 fi
7114 fi
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 xorg_testset_save_CFLAGS="$CFLAGS"
7131
7132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 int i;
7142 _ACEOF
7143 if ac_fn_c_try_compile "$LINENO"; then :
7144 xorg_cv_cc_flag_unknown_warning_option=yes
7145 else
7146 xorg_cv_cc_flag_unknown_warning_option=no
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7153 CFLAGS="$xorg_testset_save_CFLAGS"
7154 fi
7155
7156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7159 fi
7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 int i;
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171 xorg_cv_cc_flag_unused_command_line_argument=yes
7172 else
7173 xorg_cv_cc_flag_unused_command_line_argument=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7180 CFLAGS="$xorg_testset_save_CFLAGS"
7181 fi
7182
7183 found="no"
7184
7185 if test $found = "no" ; then
7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188 fi
7189
7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7192 fi
7193
7194 CFLAGS="$CFLAGS -Werror=main"
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7197 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7198 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7199 if eval \${$cacheid+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 int i;
7205 int
7206 main ()
7207 {
7208
7209 ;
7210 return 0;
7211 }
7212 _ACEOF
7213 if ac_fn_c_try_link "$LINENO"; then :
7214 eval $cacheid=yes
7215 else
7216 eval $cacheid=no
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 fi
7221
7222
7223 CFLAGS="$xorg_testset_save_CFLAGS"
7224
7225 eval supported=\$$cacheid
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7227 $as_echo "$supported" >&6; }
7228 if test "$supported" = "yes" ; then
7229 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7230 found="yes"
7231 fi
7232 fi
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248 xorg_testset_save_CFLAGS="$CFLAGS"
7249
7250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 int i;
7260 _ACEOF
7261 if ac_fn_c_try_compile "$LINENO"; then :
7262 xorg_cv_cc_flag_unknown_warning_option=yes
7263 else
7264 xorg_cv_cc_flag_unknown_warning_option=no
7265 fi
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7271 CFLAGS="$xorg_testset_save_CFLAGS"
7272 fi
7273
7274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277 fi
7278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 int i;
7287 _ACEOF
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289 xorg_cv_cc_flag_unused_command_line_argument=yes
7290 else
7291 xorg_cv_cc_flag_unused_command_line_argument=no
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7298 CFLAGS="$xorg_testset_save_CFLAGS"
7299 fi
7300
7301 found="no"
7302
7303 if test $found = "no" ; then
7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306 fi
7307
7308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7310 fi
7311
7312 CFLAGS="$CFLAGS -Werror=missing-braces"
7313
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7315 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7316 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7317 if eval \${$cacheid+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 int i;
7323 int
7324 main ()
7325 {
7326
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_link "$LINENO"; then :
7332 eval $cacheid=yes
7333 else
7334 eval $cacheid=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7338 fi
7339
7340
7341 CFLAGS="$xorg_testset_save_CFLAGS"
7342
7343 eval supported=\$$cacheid
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7345 $as_echo "$supported" >&6; }
7346 if test "$supported" = "yes" ; then
7347 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7348 found="yes"
7349 fi
7350 fi
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366 xorg_testset_save_CFLAGS="$CFLAGS"
7367
7368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 int i;
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"; then :
7380 xorg_cv_cc_flag_unknown_warning_option=yes
7381 else
7382 xorg_cv_cc_flag_unknown_warning_option=no
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 fi
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7389 CFLAGS="$xorg_testset_save_CFLAGS"
7390 fi
7391
7392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395 fi
7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 int i;
7405 _ACEOF
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407 xorg_cv_cc_flag_unused_command_line_argument=yes
7408 else
7409 xorg_cv_cc_flag_unused_command_line_argument=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7416 CFLAGS="$xorg_testset_save_CFLAGS"
7417 fi
7418
7419 found="no"
7420
7421 if test $found = "no" ; then
7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424 fi
7425
7426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7428 fi
7429
7430 CFLAGS="$CFLAGS -Werror=sequence-point"
7431
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7433 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7434 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7435 if eval \${$cacheid+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 int i;
7441 int
7442 main ()
7443 {
7444
7445 ;
7446 return 0;
7447 }
7448 _ACEOF
7449 if ac_fn_c_try_link "$LINENO"; then :
7450 eval $cacheid=yes
7451 else
7452 eval $cacheid=no
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext \
7455 conftest$ac_exeext conftest.$ac_ext
7456 fi
7457
7458
7459 CFLAGS="$xorg_testset_save_CFLAGS"
7460
7461 eval supported=\$$cacheid
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7463 $as_echo "$supported" >&6; }
7464 if test "$supported" = "yes" ; then
7465 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7466 found="yes"
7467 fi
7468 fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 xorg_testset_save_CFLAGS="$CFLAGS"
7485
7486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 int i;
7496 _ACEOF
7497 if ac_fn_c_try_compile "$LINENO"; then :
7498 xorg_cv_cc_flag_unknown_warning_option=yes
7499 else
7500 xorg_cv_cc_flag_unknown_warning_option=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7507 CFLAGS="$xorg_testset_save_CFLAGS"
7508 fi
7509
7510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7513 fi
7514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 int i;
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525 xorg_cv_cc_flag_unused_command_line_argument=yes
7526 else
7527 xorg_cv_cc_flag_unused_command_line_argument=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7534 CFLAGS="$xorg_testset_save_CFLAGS"
7535 fi
7536
7537 found="no"
7538
7539 if test $found = "no" ; then
7540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542 fi
7543
7544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7546 fi
7547
7548 CFLAGS="$CFLAGS -Werror=return-type"
7549
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7551 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7552 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7553 if eval \${$cacheid+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 int i;
7559 int
7560 main ()
7561 {
7562
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"; then :
7568 eval $cacheid=yes
7569 else
7570 eval $cacheid=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7574 fi
7575
7576
7577 CFLAGS="$xorg_testset_save_CFLAGS"
7578
7579 eval supported=\$$cacheid
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7581 $as_echo "$supported" >&6; }
7582 if test "$supported" = "yes" ; then
7583 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7584 found="yes"
7585 fi
7586 fi
7587
7588 if test $found = "no" ; then
7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591 fi
7592
7593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595 fi
7596
7597 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7600 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7601 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7602 if eval \${$cacheid+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 int i;
7608 int
7609 main ()
7610 {
7611
7612 ;
7613 return 0;
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_link "$LINENO"; then :
7617 eval $cacheid=yes
7618 else
7619 eval $cacheid=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
7623 fi
7624
7625
7626 CFLAGS="$xorg_testset_save_CFLAGS"
7627
7628 eval supported=\$$cacheid
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7630 $as_echo "$supported" >&6; }
7631 if test "$supported" = "yes" ; then
7632 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7633 found="yes"
7634 fi
7635 fi
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651 xorg_testset_save_CFLAGS="$CFLAGS"
7652
7653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7656 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7657 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 int i;
7663 _ACEOF
7664 if ac_fn_c_try_compile "$LINENO"; then :
7665 xorg_cv_cc_flag_unknown_warning_option=yes
7666 else
7667 xorg_cv_cc_flag_unknown_warning_option=no
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7672 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7674 CFLAGS="$xorg_testset_save_CFLAGS"
7675 fi
7676
7677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680 fi
7681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7683 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7684 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 int i;
7690 _ACEOF
7691 if ac_fn_c_try_compile "$LINENO"; then :
7692 xorg_cv_cc_flag_unused_command_line_argument=yes
7693 else
7694 xorg_cv_cc_flag_unused_command_line_argument=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7699 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7701 CFLAGS="$xorg_testset_save_CFLAGS"
7702 fi
7703
7704 found="no"
7705
7706 if test $found = "no" ; then
7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 fi
7710
7711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713 fi
7714
7715 CFLAGS="$CFLAGS -Werror=trigraphs"
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7718 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7719 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7720 if eval \${$cacheid+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 int i;
7726 int
7727 main ()
7728 {
7729
7730 ;
7731 return 0;
7732 }
7733 _ACEOF
7734 if ac_fn_c_try_link "$LINENO"; then :
7735 eval $cacheid=yes
7736 else
7737 eval $cacheid=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 fi
7742
7743
7744 CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746 eval supported=\$$cacheid
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748 $as_echo "$supported" >&6; }
7749 if test "$supported" = "yes" ; then
7750 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7751 found="yes"
7752 fi
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 int i;
7781 _ACEOF
7782 if ac_fn_c_try_compile "$LINENO"; then :
7783 xorg_cv_cc_flag_unknown_warning_option=yes
7784 else
7785 xorg_cv_cc_flag_unknown_warning_option=no
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7790 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7792 CFLAGS="$xorg_testset_save_CFLAGS"
7793 fi
7794
7795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798 fi
7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7801 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7802 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 int i;
7808 _ACEOF
7809 if ac_fn_c_try_compile "$LINENO"; then :
7810 xorg_cv_cc_flag_unused_command_line_argument=yes
7811 else
7812 xorg_cv_cc_flag_unused_command_line_argument=no
7813 fi
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815 fi
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7817 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7819 CFLAGS="$xorg_testset_save_CFLAGS"
7820 fi
7821
7822 found="no"
7823
7824 if test $found = "no" ; then
7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827 fi
7828
7829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831 fi
7832
7833 CFLAGS="$CFLAGS -Werror=array-bounds"
7834
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7836 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7837 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7838 if eval \${$cacheid+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 int i;
7844 int
7845 main ()
7846 {
7847
7848 ;
7849 return 0;
7850 }
7851 _ACEOF
7852 if ac_fn_c_try_link "$LINENO"; then :
7853 eval $cacheid=yes
7854 else
7855 eval $cacheid=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 fi
7860
7861
7862 CFLAGS="$xorg_testset_save_CFLAGS"
7863
7864 eval supported=\$$cacheid
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7866 $as_echo "$supported" >&6; }
7867 if test "$supported" = "yes" ; then
7868 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7869 found="yes"
7870 fi
7871 fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887 xorg_testset_save_CFLAGS="$CFLAGS"
7888
7889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7892 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7893 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 int i;
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 xorg_cv_cc_flag_unknown_warning_option=yes
7902 else
7903 xorg_cv_cc_flag_unknown_warning_option=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7908 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911 fi
7912
7913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916 fi
7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7919 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7920 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 int i;
7926 _ACEOF
7927 if ac_fn_c_try_compile "$LINENO"; then :
7928 xorg_cv_cc_flag_unused_command_line_argument=yes
7929 else
7930 xorg_cv_cc_flag_unused_command_line_argument=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7935 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7937 CFLAGS="$xorg_testset_save_CFLAGS"
7938 fi
7939
7940 found="no"
7941
7942 if test $found = "no" ; then
7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945 fi
7946
7947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7949 fi
7950
7951 CFLAGS="$CFLAGS -Werror=write-strings"
7952
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7954 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7955 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7956 if eval \${$cacheid+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 int i;
7962 int
7963 main ()
7964 {
7965
7966 ;
7967 return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"; then :
7971 eval $cacheid=yes
7972 else
7973 eval $cacheid=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 fi
7978
7979
7980 CFLAGS="$xorg_testset_save_CFLAGS"
7981
7982 eval supported=\$$cacheid
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7984 $as_echo "$supported" >&6; }
7985 if test "$supported" = "yes" ; then
7986 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7987 found="yes"
7988 fi
7989 fi
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005 xorg_testset_save_CFLAGS="$CFLAGS"
8006
8007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8010 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8011 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 int i;
8017 _ACEOF
8018 if ac_fn_c_try_compile "$LINENO"; then :
8019 xorg_cv_cc_flag_unknown_warning_option=yes
8020 else
8021 xorg_cv_cc_flag_unknown_warning_option=no
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8026 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8028 CFLAGS="$xorg_testset_save_CFLAGS"
8029 fi
8030
8031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034 fi
8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8037 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8038 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 int i;
8044 _ACEOF
8045 if ac_fn_c_try_compile "$LINENO"; then :
8046 xorg_cv_cc_flag_unused_command_line_argument=yes
8047 else
8048 xorg_cv_cc_flag_unused_command_line_argument=no
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8053 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8055 CFLAGS="$xorg_testset_save_CFLAGS"
8056 fi
8057
8058 found="no"
8059
8060 if test $found = "no" ; then
8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063 fi
8064
8065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8067 fi
8068
8069 CFLAGS="$CFLAGS -Werror=address"
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8072 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8073 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8074 if eval \${$cacheid+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 int i;
8080 int
8081 main ()
8082 {
8083
8084 ;
8085 return 0;
8086 }
8087 _ACEOF
8088 if ac_fn_c_try_link "$LINENO"; then :
8089 eval $cacheid=yes
8090 else
8091 eval $cacheid=no
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 fi
8096
8097
8098 CFLAGS="$xorg_testset_save_CFLAGS"
8099
8100 eval supported=\$$cacheid
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8102 $as_echo "$supported" >&6; }
8103 if test "$supported" = "yes" ; then
8104 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8105 found="yes"
8106 fi
8107 fi
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123 xorg_testset_save_CFLAGS="$CFLAGS"
8124
8125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8128 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8129 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 int i;
8135 _ACEOF
8136 if ac_fn_c_try_compile "$LINENO"; then :
8137 xorg_cv_cc_flag_unknown_warning_option=yes
8138 else
8139 xorg_cv_cc_flag_unknown_warning_option=no
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8144 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8146 CFLAGS="$xorg_testset_save_CFLAGS"
8147 fi
8148
8149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8152 fi
8153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8155 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8156 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 int i;
8162 _ACEOF
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164 xorg_cv_cc_flag_unused_command_line_argument=yes
8165 else
8166 xorg_cv_cc_flag_unused_command_line_argument=no
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8171 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8173 CFLAGS="$xorg_testset_save_CFLAGS"
8174 fi
8175
8176 found="no"
8177
8178 if test $found = "no" ; then
8179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181 fi
8182
8183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8185 fi
8186
8187 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8188
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8190 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8191 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8192 if eval \${$cacheid+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 int i;
8198 int
8199 main ()
8200 {
8201
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 if ac_fn_c_try_link "$LINENO"; then :
8207 eval $cacheid=yes
8208 else
8209 eval $cacheid=no
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 fi
8214
8215
8216 CFLAGS="$xorg_testset_save_CFLAGS"
8217
8218 eval supported=\$$cacheid
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8220 $as_echo "$supported" >&6; }
8221 if test "$supported" = "yes" ; then
8222 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8223 found="yes"
8224 fi
8225 fi
8226
8227 if test $found = "no" ; then
8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230 fi
8231
8232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234 fi
8235
8236 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8239 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8240 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8241 if eval \${$cacheid+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8246 int i;
8247 int
8248 main ()
8249 {
8250
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 if ac_fn_c_try_link "$LINENO"; then :
8256 eval $cacheid=yes
8257 else
8258 eval $cacheid=no
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8262 fi
8263
8264
8265 CFLAGS="$xorg_testset_save_CFLAGS"
8266
8267 eval supported=\$$cacheid
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8269 $as_echo "$supported" >&6; }
8270 if test "$supported" = "yes" ; then
8271 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8272 found="yes"
8273 fi
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 xorg_testset_save_CFLAGS="$CFLAGS"
8291
8292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8295 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8296 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 int i;
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"; then :
8304 xorg_cv_cc_flag_unknown_warning_option=yes
8305 else
8306 xorg_cv_cc_flag_unknown_warning_option=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8311 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319 fi
8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8322 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8323 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 int i;
8329 _ACEOF
8330 if ac_fn_c_try_compile "$LINENO"; then :
8331 xorg_cv_cc_flag_unused_command_line_argument=yes
8332 else
8333 xorg_cv_cc_flag_unused_command_line_argument=no
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8338 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8340 CFLAGS="$xorg_testset_save_CFLAGS"
8341 fi
8342
8343 found="no"
8344
8345 if test $found = "no" ; then
8346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8348 fi
8349
8350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352 fi
8353
8354 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8357 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8358 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8359 if eval \${$cacheid+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 int i;
8365 int
8366 main ()
8367 {
8368
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_link "$LINENO"; then :
8374 eval $cacheid=yes
8375 else
8376 eval $cacheid=no
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 fi
8381
8382
8383 CFLAGS="$xorg_testset_save_CFLAGS"
8384
8385 eval supported=\$$cacheid
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8387 $as_echo "$supported" >&6; }
8388 if test "$supported" = "yes" ; then
8389 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8390 found="yes"
8391 fi
8392 fi
8393
8394 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8395 else
8396 { $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
8397 $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;}
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411 xorg_testset_save_CFLAGS="$CFLAGS"
8412
8413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 int i;
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425 xorg_cv_cc_flag_unknown_warning_option=yes
8426 else
8427 xorg_cv_cc_flag_unknown_warning_option=no
8428 fi
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8434 CFLAGS="$xorg_testset_save_CFLAGS"
8435 fi
8436
8437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440 fi
8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8449 int i;
8450 _ACEOF
8451 if ac_fn_c_try_compile "$LINENO"; then :
8452 xorg_cv_cc_flag_unused_command_line_argument=yes
8453 else
8454 xorg_cv_cc_flag_unused_command_line_argument=no
8455 fi
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8461 CFLAGS="$xorg_testset_save_CFLAGS"
8462 fi
8463
8464 found="no"
8465
8466 if test $found = "no" ; then
8467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469 fi
8470
8471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473 fi
8474
8475 CFLAGS="$CFLAGS -Wimplicit"
8476
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8478 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8479 cacheid=xorg_cv_cc_flag__Wimplicit
8480 if eval \${$cacheid+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 int i;
8486 int
8487 main ()
8488 {
8489
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 if ac_fn_c_try_link "$LINENO"; then :
8495 eval $cacheid=yes
8496 else
8497 eval $cacheid=no
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
8501 fi
8502
8503
8504 CFLAGS="$xorg_testset_save_CFLAGS"
8505
8506 eval supported=\$$cacheid
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8508 $as_echo "$supported" >&6; }
8509 if test "$supported" = "yes" ; then
8510 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8511 found="yes"
8512 fi
8513 fi
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529 xorg_testset_save_CFLAGS="$CFLAGS"
8530
8531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 int i;
8541 _ACEOF
8542 if ac_fn_c_try_compile "$LINENO"; then :
8543 xorg_cv_cc_flag_unknown_warning_option=yes
8544 else
8545 xorg_cv_cc_flag_unknown_warning_option=no
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 fi
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8552 CFLAGS="$xorg_testset_save_CFLAGS"
8553 fi
8554
8555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558 fi
8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 int i;
8568 _ACEOF
8569 if ac_fn_c_try_compile "$LINENO"; then :
8570 xorg_cv_cc_flag_unused_command_line_argument=yes
8571 else
8572 xorg_cv_cc_flag_unused_command_line_argument=no
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8579 CFLAGS="$xorg_testset_save_CFLAGS"
8580 fi
8581
8582 found="no"
8583
8584 if test $found = "no" ; then
8585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587 fi
8588
8589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591 fi
8592
8593 CFLAGS="$CFLAGS -Wnonnull"
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8596 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8597 cacheid=xorg_cv_cc_flag__Wnonnull
8598 if eval \${$cacheid+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 int i;
8604 int
8605 main ()
8606 {
8607
8608 ;
8609 return 0;
8610 }
8611 _ACEOF
8612 if ac_fn_c_try_link "$LINENO"; then :
8613 eval $cacheid=yes
8614 else
8615 eval $cacheid=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 fi
8620
8621
8622 CFLAGS="$xorg_testset_save_CFLAGS"
8623
8624 eval supported=\$$cacheid
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8626 $as_echo "$supported" >&6; }
8627 if test "$supported" = "yes" ; then
8628 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8629 found="yes"
8630 fi
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647 xorg_testset_save_CFLAGS="$CFLAGS"
8648
8649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658 int i;
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 xorg_cv_cc_flag_unknown_warning_option=yes
8662 else
8663 xorg_cv_cc_flag_unknown_warning_option=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8670 CFLAGS="$xorg_testset_save_CFLAGS"
8671 fi
8672
8673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8676 fi
8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 int i;
8686 _ACEOF
8687 if ac_fn_c_try_compile "$LINENO"; then :
8688 xorg_cv_cc_flag_unused_command_line_argument=yes
8689 else
8690 xorg_cv_cc_flag_unused_command_line_argument=no
8691 fi
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8697 CFLAGS="$xorg_testset_save_CFLAGS"
8698 fi
8699
8700 found="no"
8701
8702 if test $found = "no" ; then
8703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705 fi
8706
8707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8709 fi
8710
8711 CFLAGS="$CFLAGS -Winit-self"
8712
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8714 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8715 cacheid=xorg_cv_cc_flag__Winit_self
8716 if eval \${$cacheid+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 int i;
8722 int
8723 main ()
8724 {
8725
8726 ;
8727 return 0;
8728 }
8729 _ACEOF
8730 if ac_fn_c_try_link "$LINENO"; then :
8731 eval $cacheid=yes
8732 else
8733 eval $cacheid=no
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737 fi
8738
8739
8740 CFLAGS="$xorg_testset_save_CFLAGS"
8741
8742 eval supported=\$$cacheid
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8744 $as_echo "$supported" >&6; }
8745 if test "$supported" = "yes" ; then
8746 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8747 found="yes"
8748 fi
8749 fi
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765 xorg_testset_save_CFLAGS="$CFLAGS"
8766
8767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 int i;
8777 _ACEOF
8778 if ac_fn_c_try_compile "$LINENO"; then :
8779 xorg_cv_cc_flag_unknown_warning_option=yes
8780 else
8781 xorg_cv_cc_flag_unknown_warning_option=no
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8788 CFLAGS="$xorg_testset_save_CFLAGS"
8789 fi
8790
8791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8794 fi
8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 int i;
8804 _ACEOF
8805 if ac_fn_c_try_compile "$LINENO"; then :
8806 xorg_cv_cc_flag_unused_command_line_argument=yes
8807 else
8808 xorg_cv_cc_flag_unused_command_line_argument=no
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8815 CFLAGS="$xorg_testset_save_CFLAGS"
8816 fi
8817
8818 found="no"
8819
8820 if test $found = "no" ; then
8821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823 fi
8824
8825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8827 fi
8828
8829 CFLAGS="$CFLAGS -Wmain"
8830
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8832 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8833 cacheid=xorg_cv_cc_flag__Wmain
8834 if eval \${$cacheid+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 int i;
8840 int
8841 main ()
8842 {
8843
8844 ;
8845 return 0;
8846 }
8847 _ACEOF
8848 if ac_fn_c_try_link "$LINENO"; then :
8849 eval $cacheid=yes
8850 else
8851 eval $cacheid=no
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext \
8854 conftest$ac_exeext conftest.$ac_ext
8855 fi
8856
8857
8858 CFLAGS="$xorg_testset_save_CFLAGS"
8859
8860 eval supported=\$$cacheid
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8862 $as_echo "$supported" >&6; }
8863 if test "$supported" = "yes" ; then
8864 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8865 found="yes"
8866 fi
8867 fi
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883 xorg_testset_save_CFLAGS="$CFLAGS"
8884
8885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8888 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8889 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 int i;
8895 _ACEOF
8896 if ac_fn_c_try_compile "$LINENO"; then :
8897 xorg_cv_cc_flag_unknown_warning_option=yes
8898 else
8899 xorg_cv_cc_flag_unknown_warning_option=no
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 fi
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8904 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8906 CFLAGS="$xorg_testset_save_CFLAGS"
8907 fi
8908
8909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8912 fi
8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8915 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8916 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 int i;
8922 _ACEOF
8923 if ac_fn_c_try_compile "$LINENO"; then :
8924 xorg_cv_cc_flag_unused_command_line_argument=yes
8925 else
8926 xorg_cv_cc_flag_unused_command_line_argument=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 fi
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8931 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8933 CFLAGS="$xorg_testset_save_CFLAGS"
8934 fi
8935
8936 found="no"
8937
8938 if test $found = "no" ; then
8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941 fi
8942
8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8945 fi
8946
8947 CFLAGS="$CFLAGS -Wmissing-braces"
8948
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8950 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8951 cacheid=xorg_cv_cc_flag__Wmissing_braces
8952 if eval \${$cacheid+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 int i;
8958 int
8959 main ()
8960 {
8961
8962 ;
8963 return 0;
8964 }
8965 _ACEOF
8966 if ac_fn_c_try_link "$LINENO"; then :
8967 eval $cacheid=yes
8968 else
8969 eval $cacheid=no
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973 fi
8974
8975
8976 CFLAGS="$xorg_testset_save_CFLAGS"
8977
8978 eval supported=\$$cacheid
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8980 $as_echo "$supported" >&6; }
8981 if test "$supported" = "yes" ; then
8982 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8983 found="yes"
8984 fi
8985 fi
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001 xorg_testset_save_CFLAGS="$CFLAGS"
9002
9003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9006 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9007 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9016 else
9017 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9022 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9024 CFLAGS="$xorg_testset_save_CFLAGS"
9025 fi
9026
9027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030 fi
9031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9033 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9034 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 int i;
9040 _ACEOF
9041 if ac_fn_c_try_compile "$LINENO"; then :
9042 xorg_cv_cc_flag_unused_command_line_argument=yes
9043 else
9044 xorg_cv_cc_flag_unused_command_line_argument=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 fi
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9049 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052 fi
9053
9054 found="no"
9055
9056 if test $found = "no" ; then
9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059 fi
9060
9061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9063 fi
9064
9065 CFLAGS="$CFLAGS -Wsequence-point"
9066
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9068 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9069 cacheid=xorg_cv_cc_flag__Wsequence_point
9070 if eval \${$cacheid+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 int i;
9076 int
9077 main ()
9078 {
9079
9080 ;
9081 return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"; then :
9085 eval $cacheid=yes
9086 else
9087 eval $cacheid=no
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 fi
9092
9093
9094 CFLAGS="$xorg_testset_save_CFLAGS"
9095
9096 eval supported=\$$cacheid
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9098 $as_echo "$supported" >&6; }
9099 if test "$supported" = "yes" ; then
9100 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9101 found="yes"
9102 fi
9103 fi
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119 xorg_testset_save_CFLAGS="$CFLAGS"
9120
9121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9124 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9125 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 int i;
9131 _ACEOF
9132 if ac_fn_c_try_compile "$LINENO"; then :
9133 xorg_cv_cc_flag_unknown_warning_option=yes
9134 else
9135 xorg_cv_cc_flag_unknown_warning_option=no
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9140 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9142 CFLAGS="$xorg_testset_save_CFLAGS"
9143 fi
9144
9145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148 fi
9149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9151 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9152 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9157 int i;
9158 _ACEOF
9159 if ac_fn_c_try_compile "$LINENO"; then :
9160 xorg_cv_cc_flag_unused_command_line_argument=yes
9161 else
9162 xorg_cv_cc_flag_unused_command_line_argument=no
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9167 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9169 CFLAGS="$xorg_testset_save_CFLAGS"
9170 fi
9171
9172 found="no"
9173
9174 if test $found = "no" ; then
9175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177 fi
9178
9179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9181 fi
9182
9183 CFLAGS="$CFLAGS -Wreturn-type"
9184
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9186 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9187 cacheid=xorg_cv_cc_flag__Wreturn_type
9188 if eval \${$cacheid+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 int i;
9194 int
9195 main ()
9196 {
9197
9198 ;
9199 return 0;
9200 }
9201 _ACEOF
9202 if ac_fn_c_try_link "$LINENO"; then :
9203 eval $cacheid=yes
9204 else
9205 eval $cacheid=no
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 fi
9210
9211
9212 CFLAGS="$xorg_testset_save_CFLAGS"
9213
9214 eval supported=\$$cacheid
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9216 $as_echo "$supported" >&6; }
9217 if test "$supported" = "yes" ; then
9218 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9219 found="yes"
9220 fi
9221 fi
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237 xorg_testset_save_CFLAGS="$CFLAGS"
9238
9239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9242 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9243 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 int i;
9249 _ACEOF
9250 if ac_fn_c_try_compile "$LINENO"; then :
9251 xorg_cv_cc_flag_unknown_warning_option=yes
9252 else
9253 xorg_cv_cc_flag_unknown_warning_option=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 fi
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9258 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9260 CFLAGS="$xorg_testset_save_CFLAGS"
9261 fi
9262
9263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9266 fi
9267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9269 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9270 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275 int i;
9276 _ACEOF
9277 if ac_fn_c_try_compile "$LINENO"; then :
9278 xorg_cv_cc_flag_unused_command_line_argument=yes
9279 else
9280 xorg_cv_cc_flag_unused_command_line_argument=no
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9285 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9287 CFLAGS="$xorg_testset_save_CFLAGS"
9288 fi
9289
9290 found="no"
9291
9292 if test $found = "no" ; then
9293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295 fi
9296
9297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9299 fi
9300
9301 CFLAGS="$CFLAGS -Wtrigraphs"
9302
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9304 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9305 cacheid=xorg_cv_cc_flag__Wtrigraphs
9306 if eval \${$cacheid+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 int i;
9312 int
9313 main ()
9314 {
9315
9316 ;
9317 return 0;
9318 }
9319 _ACEOF
9320 if ac_fn_c_try_link "$LINENO"; then :
9321 eval $cacheid=yes
9322 else
9323 eval $cacheid=no
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9327 fi
9328
9329
9330 CFLAGS="$xorg_testset_save_CFLAGS"
9331
9332 eval supported=\$$cacheid
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9334 $as_echo "$supported" >&6; }
9335 if test "$supported" = "yes" ; then
9336 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9337 found="yes"
9338 fi
9339 fi
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355 xorg_testset_save_CFLAGS="$CFLAGS"
9356
9357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9360 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9361 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 int i;
9367 _ACEOF
9368 if ac_fn_c_try_compile "$LINENO"; then :
9369 xorg_cv_cc_flag_unknown_warning_option=yes
9370 else
9371 xorg_cv_cc_flag_unknown_warning_option=no
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9376 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9378 CFLAGS="$xorg_testset_save_CFLAGS"
9379 fi
9380
9381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9384 fi
9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9387 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9388 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 int i;
9394 _ACEOF
9395 if ac_fn_c_try_compile "$LINENO"; then :
9396 xorg_cv_cc_flag_unused_command_line_argument=yes
9397 else
9398 xorg_cv_cc_flag_unused_command_line_argument=no
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9403 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406 fi
9407
9408 found="no"
9409
9410 if test $found = "no" ; then
9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 fi
9414
9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9417 fi
9418
9419 CFLAGS="$CFLAGS -Warray-bounds"
9420
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9422 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9423 cacheid=xorg_cv_cc_flag__Warray_bounds
9424 if eval \${$cacheid+:} false; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 int i;
9430 int
9431 main ()
9432 {
9433
9434 ;
9435 return 0;
9436 }
9437 _ACEOF
9438 if ac_fn_c_try_link "$LINENO"; then :
9439 eval $cacheid=yes
9440 else
9441 eval $cacheid=no
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9445 fi
9446
9447
9448 CFLAGS="$xorg_testset_save_CFLAGS"
9449
9450 eval supported=\$$cacheid
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9452 $as_echo "$supported" >&6; }
9453 if test "$supported" = "yes" ; then
9454 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9455 found="yes"
9456 fi
9457 fi
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473 xorg_testset_save_CFLAGS="$CFLAGS"
9474
9475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9478 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9479 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 int i;
9485 _ACEOF
9486 if ac_fn_c_try_compile "$LINENO"; then :
9487 xorg_cv_cc_flag_unknown_warning_option=yes
9488 else
9489 xorg_cv_cc_flag_unknown_warning_option=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 fi
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9494 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9496 CFLAGS="$xorg_testset_save_CFLAGS"
9497 fi
9498
9499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9502 fi
9503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9505 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9506 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 int i;
9512 _ACEOF
9513 if ac_fn_c_try_compile "$LINENO"; then :
9514 xorg_cv_cc_flag_unused_command_line_argument=yes
9515 else
9516 xorg_cv_cc_flag_unused_command_line_argument=no
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 fi
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9521 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9523 CFLAGS="$xorg_testset_save_CFLAGS"
9524 fi
9525
9526 found="no"
9527
9528 if test $found = "no" ; then
9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531 fi
9532
9533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9535 fi
9536
9537 CFLAGS="$CFLAGS -Wwrite-strings"
9538
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9540 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9541 cacheid=xorg_cv_cc_flag__Wwrite_strings
9542 if eval \${$cacheid+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546 /* end confdefs.h. */
9547 int i;
9548 int
9549 main ()
9550 {
9551
9552 ;
9553 return 0;
9554 }
9555 _ACEOF
9556 if ac_fn_c_try_link "$LINENO"; then :
9557 eval $cacheid=yes
9558 else
9559 eval $cacheid=no
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563 fi
9564
9565
9566 CFLAGS="$xorg_testset_save_CFLAGS"
9567
9568 eval supported=\$$cacheid
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9570 $as_echo "$supported" >&6; }
9571 if test "$supported" = "yes" ; then
9572 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9573 found="yes"
9574 fi
9575 fi
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591 xorg_testset_save_CFLAGS="$CFLAGS"
9592
9593 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9596 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9597 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 int i;
9603 _ACEOF
9604 if ac_fn_c_try_compile "$LINENO"; then :
9605 xorg_cv_cc_flag_unknown_warning_option=yes
9606 else
9607 xorg_cv_cc_flag_unknown_warning_option=no
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 fi
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9612 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9614 CFLAGS="$xorg_testset_save_CFLAGS"
9615 fi
9616
9617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620 fi
9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9623 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9624 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 int i;
9630 _ACEOF
9631 if ac_fn_c_try_compile "$LINENO"; then :
9632 xorg_cv_cc_flag_unused_command_line_argument=yes
9633 else
9634 xorg_cv_cc_flag_unused_command_line_argument=no
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637 fi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9639 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9641 CFLAGS="$xorg_testset_save_CFLAGS"
9642 fi
9643
9644 found="no"
9645
9646 if test $found = "no" ; then
9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649 fi
9650
9651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9653 fi
9654
9655 CFLAGS="$CFLAGS -Waddress"
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9658 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9659 cacheid=xorg_cv_cc_flag__Waddress
9660 if eval \${$cacheid+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9665 int i;
9666 int
9667 main ()
9668 {
9669
9670 ;
9671 return 0;
9672 }
9673 _ACEOF
9674 if ac_fn_c_try_link "$LINENO"; then :
9675 eval $cacheid=yes
9676 else
9677 eval $cacheid=no
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 fi
9682
9683
9684 CFLAGS="$xorg_testset_save_CFLAGS"
9685
9686 eval supported=\$$cacheid
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9688 $as_echo "$supported" >&6; }
9689 if test "$supported" = "yes" ; then
9690 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9691 found="yes"
9692 fi
9693 fi
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709 xorg_testset_save_CFLAGS="$CFLAGS"
9710
9711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9714 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9715 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720 int i;
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723 xorg_cv_cc_flag_unknown_warning_option=yes
9724 else
9725 xorg_cv_cc_flag_unknown_warning_option=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 fi
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9730 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9732 CFLAGS="$xorg_testset_save_CFLAGS"
9733 fi
9734
9735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738 fi
9739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9741 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9742 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 int i;
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"; then :
9750 xorg_cv_cc_flag_unused_command_line_argument=yes
9751 else
9752 xorg_cv_cc_flag_unused_command_line_argument=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9757 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9759 CFLAGS="$xorg_testset_save_CFLAGS"
9760 fi
9761
9762 found="no"
9763
9764 if test $found = "no" ; then
9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767 fi
9768
9769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9771 fi
9772
9773 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9774
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9776 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9777 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9778 if eval \${$cacheid+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783 int i;
9784 int
9785 main ()
9786 {
9787
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793 eval $cacheid=yes
9794 else
9795 eval $cacheid=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 fi
9800
9801
9802 CFLAGS="$xorg_testset_save_CFLAGS"
9803
9804 eval supported=\$$cacheid
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9806 $as_echo "$supported" >&6; }
9807 if test "$supported" = "yes" ; then
9808 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9809 found="yes"
9810 fi
9811 fi
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827 xorg_testset_save_CFLAGS="$CFLAGS"
9828
9829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 int i;
9839 _ACEOF
9840 if ac_fn_c_try_compile "$LINENO"; then :
9841 xorg_cv_cc_flag_unknown_warning_option=yes
9842 else
9843 xorg_cv_cc_flag_unknown_warning_option=no
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9850 CFLAGS="$xorg_testset_save_CFLAGS"
9851 fi
9852
9853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9856 fi
9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 int i;
9866 _ACEOF
9867 if ac_fn_c_try_compile "$LINENO"; then :
9868 xorg_cv_cc_flag_unused_command_line_argument=yes
9869 else
9870 xorg_cv_cc_flag_unused_command_line_argument=no
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 fi
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9877 CFLAGS="$xorg_testset_save_CFLAGS"
9878 fi
9879
9880 found="no"
9881
9882 if test $found = "no" ; then
9883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885 fi
9886
9887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9889 fi
9890
9891 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9892
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9894 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9895 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9896 if eval \${$cacheid+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901 int i;
9902 int
9903 main ()
9904 {
9905
9906 ;
9907 return 0;
9908 }
9909 _ACEOF
9910 if ac_fn_c_try_link "$LINENO"; then :
9911 eval $cacheid=yes
9912 else
9913 eval $cacheid=no
9914 fi
9915 rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917 fi
9918
9919
9920 CFLAGS="$xorg_testset_save_CFLAGS"
9921
9922 eval supported=\$$cacheid
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9924 $as_echo "$supported" >&6; }
9925 if test "$supported" = "yes" ; then
9926 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9927 found="yes"
9928 fi
9929 fi
9930
9931
9932 fi
9933
9934
9935
9936
9937
9938
9939
9940 CWARNFLAGS="$BASE_CFLAGS"
9941 if test "x$GCC" = xyes ; then
9942 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9943 fi
9944
9945
9946
9947
9948
9949
9950
9951
9952 # Check whether --enable-strict-compilation was given.
9953 if test "${enable_strict_compilation+set}" = set; then :
9954 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9955 else
9956 STRICT_COMPILE=no
9957 fi
9958
9959
9960
9961
9962
9963
9964 STRICT_CFLAGS=""
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978 xorg_testset_save_CFLAGS="$CFLAGS"
9979
9980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 int i;
9990 _ACEOF
9991 if ac_fn_c_try_compile "$LINENO"; then :
9992 xorg_cv_cc_flag_unknown_warning_option=yes
9993 else
9994 xorg_cv_cc_flag_unknown_warning_option=no
9995 fi
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10001 CFLAGS="$xorg_testset_save_CFLAGS"
10002 fi
10003
10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007 fi
10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10016 int i;
10017 _ACEOF
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019 xorg_cv_cc_flag_unused_command_line_argument=yes
10020 else
10021 xorg_cv_cc_flag_unused_command_line_argument=no
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024 fi
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10028 CFLAGS="$xorg_testset_save_CFLAGS"
10029 fi
10030
10031 found="no"
10032
10033 if test $found = "no" ; then
10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036 fi
10037
10038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10040 fi
10041
10042 CFLAGS="$CFLAGS -pedantic"
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10045 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10046 cacheid=xorg_cv_cc_flag__pedantic
10047 if eval \${$cacheid+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 int i;
10053 int
10054 main ()
10055 {
10056
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062 eval $cacheid=yes
10063 else
10064 eval $cacheid=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 fi
10069
10070
10071 CFLAGS="$xorg_testset_save_CFLAGS"
10072
10073 eval supported=\$$cacheid
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10075 $as_echo "$supported" >&6; }
10076 if test "$supported" = "yes" ; then
10077 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10078 found="yes"
10079 fi
10080 fi
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096 xorg_testset_save_CFLAGS="$CFLAGS"
10097
10098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10101 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 int i;
10108 _ACEOF
10109 if ac_fn_c_try_compile "$LINENO"; then :
10110 xorg_cv_cc_flag_unknown_warning_option=yes
10111 else
10112 xorg_cv_cc_flag_unknown_warning_option=no
10113 fi
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10117 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10119 CFLAGS="$xorg_testset_save_CFLAGS"
10120 fi
10121
10122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125 fi
10126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10128 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 int i;
10135 _ACEOF
10136 if ac_fn_c_try_compile "$LINENO"; then :
10137 xorg_cv_cc_flag_unused_command_line_argument=yes
10138 else
10139 xorg_cv_cc_flag_unused_command_line_argument=no
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10144 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10146 CFLAGS="$xorg_testset_save_CFLAGS"
10147 fi
10148
10149 found="no"
10150
10151 if test $found = "no" ; then
10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154 fi
10155
10156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10158 fi
10159
10160 CFLAGS="$CFLAGS -Werror"
10161
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10163 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10164 cacheid=xorg_cv_cc_flag__Werror
10165 if eval \${$cacheid+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 int
10172 main ()
10173 {
10174
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 if ac_fn_c_try_link "$LINENO"; then :
10180 eval $cacheid=yes
10181 else
10182 eval $cacheid=no
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 fi
10187
10188
10189 CFLAGS="$xorg_testset_save_CFLAGS"
10190
10191 eval supported=\$$cacheid
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10193 $as_echo "$supported" >&6; }
10194 if test "$supported" = "yes" ; then
10195 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10196 found="yes"
10197 fi
10198 fi
10199
10200 if test $found = "no" ; then
10201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203 fi
10204
10205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207 fi
10208
10209 CFLAGS="$CFLAGS -errwarn"
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10212 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10213 cacheid=xorg_cv_cc_flag__errwarn
10214 if eval \${$cacheid+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 int i;
10220 int
10221 main ()
10222 {
10223
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_link "$LINENO"; then :
10229 eval $cacheid=yes
10230 else
10231 eval $cacheid=no
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 fi
10236
10237
10238 CFLAGS="$xorg_testset_save_CFLAGS"
10239
10240 eval supported=\$$cacheid
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10242 $as_echo "$supported" >&6; }
10243 if test "$supported" = "yes" ; then
10244 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10245 found="yes"
10246 fi
10247 fi
10248
10249
10250
10251 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10252 # activate it with -Werror, so we add it here explicitly.
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 xorg_testset_save_CFLAGS="$CFLAGS"
10267
10268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10277 int i;
10278 _ACEOF
10279 if ac_fn_c_try_compile "$LINENO"; then :
10280 xorg_cv_cc_flag_unknown_warning_option=yes
10281 else
10282 xorg_cv_cc_flag_unknown_warning_option=no
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10289 CFLAGS="$xorg_testset_save_CFLAGS"
10290 fi
10291
10292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295 fi
10296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 int i;
10305 _ACEOF
10306 if ac_fn_c_try_compile "$LINENO"; then :
10307 xorg_cv_cc_flag_unused_command_line_argument=yes
10308 else
10309 xorg_cv_cc_flag_unused_command_line_argument=no
10310 fi
10311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10312 fi
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10316 CFLAGS="$xorg_testset_save_CFLAGS"
10317 fi
10318
10319 found="no"
10320
10321 if test $found = "no" ; then
10322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324 fi
10325
10326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10328 fi
10329
10330 CFLAGS="$CFLAGS -Werror=attributes"
10331
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10333 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10334 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10335 if eval \${$cacheid+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340 int i;
10341 int
10342 main ()
10343 {
10344
10345 ;
10346 return 0;
10347 }
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"; then :
10350 eval $cacheid=yes
10351 else
10352 eval $cacheid=no
10353 fi
10354 rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 fi
10357
10358
10359 CFLAGS="$xorg_testset_save_CFLAGS"
10360
10361 eval supported=\$$cacheid
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10363 $as_echo "$supported" >&6; }
10364 if test "$supported" = "yes" ; then
10365 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10366 found="yes"
10367 fi
10368 fi
10369
10370
10371
10372 if test "x$STRICT_COMPILE" = "xyes"; then
10373 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10374 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10375 fi
10376
10377
10378
10379
10380
10381
10382 cat >>confdefs.h <<_ACEOF
10383 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10384 _ACEOF
10385
10386 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10387 if test "x$PVM" = "x"; then
10388 PVM="0"
10389 fi
10390
10391 cat >>confdefs.h <<_ACEOF
10392 #define PACKAGE_VERSION_MINOR $PVM
10393 _ACEOF
10394
10395 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10396 if test "x$PVP" = "x"; then
10397 PVP="0"
10398 fi
10399
10400 cat >>confdefs.h <<_ACEOF
10401 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10402 _ACEOF
10403
10404
10405
10406 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10407 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10408 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10409 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10410
10411
10412
10413
10414 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10415 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10416 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10417 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10418 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10419
10420
10421
10422
10423
10424
10425 if test x$APP_MAN_SUFFIX = x ; then
10426 APP_MAN_SUFFIX=1
10427 fi
10428 if test x$APP_MAN_DIR = x ; then
10429 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10430 fi
10431
10432 if test x$LIB_MAN_SUFFIX = x ; then
10433 LIB_MAN_SUFFIX=3
10434 fi
10435 if test x$LIB_MAN_DIR = x ; then
10436 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10437 fi
10438
10439 if test x$FILE_MAN_SUFFIX = x ; then
10440 case $host_os in
10441 solaris*) FILE_MAN_SUFFIX=4 ;;
10442 *) FILE_MAN_SUFFIX=5 ;;
10443 esac
10444 fi
10445 if test x$FILE_MAN_DIR = x ; then
10446 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10447 fi
10448
10449 if test x$MISC_MAN_SUFFIX = x ; then
10450 case $host_os in
10451 solaris*) MISC_MAN_SUFFIX=5 ;;
10452 *) MISC_MAN_SUFFIX=7 ;;
10453 esac
10454 fi
10455 if test x$MISC_MAN_DIR = x ; then
10456 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10457 fi
10458
10459 if test x$DRIVER_MAN_SUFFIX = x ; then
10460 case $host_os in
10461 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10462 *) DRIVER_MAN_SUFFIX=4 ;;
10463 esac
10464 fi
10465 if test x$DRIVER_MAN_DIR = x ; then
10466 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10467 fi
10468
10469 if test x$ADMIN_MAN_SUFFIX = x ; then
10470 case $host_os in
10471 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10472 *) ADMIN_MAN_SUFFIX=8 ;;
10473 esac
10474 fi
10475 if test x$ADMIN_MAN_DIR = x ; then
10476 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10477 fi
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493 XORG_MAN_PAGE="X Version 11"
10494
10495 MAN_SUBSTS="\
10496 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10497 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10498 -e 's|__xservername__|Xorg|g' \
10499 -e 's|__xconfigfile__|xorg.conf|g' \
10500 -e 's|__projectroot__|\$(prefix)|g' \
10501 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10502 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10503 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10504 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10505 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10506 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10507 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10508
10509
10510
10511 # Check whether --enable-silent-rules was given.
10512 if test "${enable_silent_rules+set}" = set; then :
10513 enableval=$enable_silent_rules;
10514 fi
10515
10516 case $enable_silent_rules in # (((
10517 yes) AM_DEFAULT_VERBOSITY=0;;
10518 no) AM_DEFAULT_VERBOSITY=1;;
10519 *) AM_DEFAULT_VERBOSITY=0;;
10520 esac
10521 am_make=${MAKE-make}
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10523 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10524 if ${am_cv_make_support_nested_variables+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 if $as_echo 'TRUE=$(BAR$(V))
10528 BAR0=false
10529 BAR1=true
10530 V=1
10531 am__doit:
10532 @$(TRUE)
10533 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10534 am_cv_make_support_nested_variables=yes
10535 else
10536 am_cv_make_support_nested_variables=no
10537 fi
10538 fi
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10540 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10541 if test $am_cv_make_support_nested_variables = yes; then
10542 AM_V='$(V)'
10543 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10544 else
10545 AM_V=$AM_DEFAULT_VERBOSITY
10546 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10547 fi
10548 AM_BACKSLASH='\'
10549
10550
10551
10552 # Checks for pkg-config packages
10553
10554 pkg_failed=no
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFINDPROXY" >&5
10556 $as_echo_n "checking for XFINDPROXY... " >&6; }
10557
10558 if test -n "$XFINDPROXY_CFLAGS"; then
10559 pkg_cv_XFINDPROXY_CFLAGS="$XFINDPROXY_CFLAGS"
10560 elif test -n "$PKG_CONFIG"; then
10561 if test -n "$PKG_CONFIG" && \
10562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto ice xt xproxymngproto\""; } >&5
10563 ($PKG_CONFIG --exists --print-errors "xproto ice xt xproxymngproto") 2>&5
10564 ac_status=$?
10565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566 test $ac_status = 0; }; then
10567 pkg_cv_XFINDPROXY_CFLAGS=`$PKG_CONFIG --cflags "xproto ice xt xproxymngproto" 2>/dev/null`
10568 else
10569 pkg_failed=yes
10570 fi
10571 else
10572 pkg_failed=untried
10573 fi
10574 if test -n "$XFINDPROXY_LIBS"; then
10575 pkg_cv_XFINDPROXY_LIBS="$XFINDPROXY_LIBS"
10576 elif test -n "$PKG_CONFIG"; then
10577 if test -n "$PKG_CONFIG" && \
10578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto ice xt xproxymngproto\""; } >&5
10579 ($PKG_CONFIG --exists --print-errors "xproto ice xt xproxymngproto") 2>&5
10580 ac_status=$?
10581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10582 test $ac_status = 0; }; then
10583 pkg_cv_XFINDPROXY_LIBS=`$PKG_CONFIG --libs "xproto ice xt xproxymngproto" 2>/dev/null`
10584 else
10585 pkg_failed=yes
10586 fi
10587 else
10588 pkg_failed=untried
10589 fi
10590
10591
10592
10593 if test $pkg_failed = yes; then
10594
10595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10596 _pkg_short_errors_supported=yes
10597 else
10598 _pkg_short_errors_supported=no
10599 fi
10600 if test $_pkg_short_errors_supported = yes; then
10601 XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto ice xt xproxymngproto" 2>&1`
10602 else
10603 XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto ice xt xproxymngproto" 2>&1`
10604 fi
10605 # Put the nasty error message in config.log where it belongs
10606 echo "$XFINDPROXY_PKG_ERRORS" >&5
10607
10608 as_fn_error $? "Package requirements (xproto ice xt xproxymngproto) were not met:
10609
10610 $XFINDPROXY_PKG_ERRORS
10611
10612 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10613 installed software in a non-standard prefix.
10614
10615 Alternatively, you may set the environment variables XFINDPROXY_CFLAGS
10616 and XFINDPROXY_LIBS to avoid the need to call pkg-config.
10617 See the pkg-config man page for more details.
10618 " "$LINENO" 5
10619 elif test $pkg_failed = untried; then
10620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10622 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10623 is in your PATH or set the PKG_CONFIG environment variable to the full
10624 path to pkg-config.
10625
10626 Alternatively, you may set the environment variables XFINDPROXY_CFLAGS
10627 and XFINDPROXY_LIBS to avoid the need to call pkg-config.
10628 See the pkg-config man page for more details.
10629
10630 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10631 See \`config.log' for more details" "$LINENO" 5; }
10632 else
10633 XFINDPROXY_CFLAGS=$pkg_cv_XFINDPROXY_CFLAGS
10634 XFINDPROXY_LIBS=$pkg_cv_XFINDPROXY_LIBS
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10636 $as_echo "yes" >&6; }
10637 :
10638 fi
10639
10640 ac_config_files="$ac_config_files Makefile"
10641
10642 cat >confcache <<\_ACEOF
10643 # This file is a shell script that caches the results of configure
10644 # tests run on this system so they can be shared between configure
10645 # scripts and configure runs, see configure's option --config-cache.
10646 # It is not useful on other systems. If it contains results you don't
10647 # want to keep, you may remove or edit it.
10648 #
10649 # config.status only pays attention to the cache file if you give it
10650 # the --recheck option to rerun configure.
10651 #
10652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10654 # following values.
10655
10656 _ACEOF
10657
10658 # The following way of writing the cache mishandles newlines in values,
10659 # but we know of no workaround that is simple, portable, and efficient.
10660 # So, we kill variables containing newlines.
10661 # Ultrix sh set writes to stderr and can't be redirected directly,
10662 # and sets the high bit in the cache file unless we assign to the vars.
10663 (
10664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10665 eval ac_val=\$$ac_var
10666 case $ac_val in #(
10667 *${as_nl}*)
10668 case $ac_var in #(
10669 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10670 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10671 esac
10672 case $ac_var in #(
10673 _ | IFS | as_nl) ;; #(
10674 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10675 *) { eval $ac_var=; unset $ac_var;} ;;
10676 esac ;;
10677 esac
10678 done
10679
10680 (set) 2>&1 |
10681 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10682 *${as_nl}ac_space=\ *)
10683 # `set' does not quote correctly, so add quotes: double-quote
10684 # substitution turns \\\\ into \\, and sed turns \\ into \.
10685 sed -n \
10686 "s/'/'\\\\''/g;
10687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10688 ;; #(
10689 *)
10690 # `set' quotes correctly as required by POSIX, so do not add quotes.
10691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10692 ;;
10693 esac |
10694 sort
10695 ) |
10696 sed '
10697 /^ac_cv_env_/b end
10698 t clear
10699 :clear
10700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10701 t end
10702 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10703 :end' >>confcache
10704 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10705 if test -w "$cache_file"; then
10706 if test "x$cache_file" != "x/dev/null"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10708 $as_echo "$as_me: updating cache $cache_file" >&6;}
10709 if test ! -f "$cache_file" || test -h "$cache_file"; then
10710 cat confcache >"$cache_file"
10711 else
10712 case $cache_file in #(
10713 */* | ?:*)
10714 mv -f confcache "$cache_file"$$ &&
10715 mv -f "$cache_file"$$ "$cache_file" ;; #(
10716 *)
10717 mv -f confcache "$cache_file" ;;
10718 esac
10719 fi
10720 fi
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10724 fi
10725 fi
10726 rm -f confcache
10727
10728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10729 # Let make expand exec_prefix.
10730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10731
10732 DEFS=-DHAVE_CONFIG_H
10733
10734 ac_libobjs=
10735 ac_ltlibobjs=
10736 U=
10737 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10738 # 1. Remove the extension, and $U if already installed.
10739 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10740 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10741 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10742 # will be set to the directory where LIBOBJS objects are built.
10743 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10744 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10745 done
10746 LIBOBJS=$ac_libobjs
10747
10748 LTLIBOBJS=$ac_ltlibobjs
10749
10750
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10752 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10753 if test -n "$am_sleep_pid"; then
10754 # Hide warnings about reused PIDs.
10755 wait $am_sleep_pid 2>/dev/null
10756 fi
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10758 $as_echo "done" >&6; }
10759 if test -n "$EXEEXT"; then
10760 am__EXEEXT_TRUE=
10761 am__EXEEXT_FALSE='#'
10762 else
10763 am__EXEEXT_TRUE='#'
10764 am__EXEEXT_FALSE=
10765 fi
10766
10767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10768 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10770 fi
10771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10772 as_fn_error $? "conditional \"AMDEP\" was never defined.
10773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10774 fi
10775 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10778 fi
10779
10780 : "${CONFIG_STATUS=./config.status}"
10781 ac_write_fail=0
10782 ac_clean_files_save=$ac_clean_files
10783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10785 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10786 as_write_fail=0
10787 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10788 #! $SHELL
10789 # Generated by $as_me.
10790 # Run this file to recreate the current configuration.
10791 # Compiler output produced by configure, useful for debugging
10792 # configure, is in config.log if it exists.
10793
10794 debug=false
10795 ac_cs_recheck=false
10796 ac_cs_silent=false
10797
10798 SHELL=\${CONFIG_SHELL-$SHELL}
10799 export SHELL
10800 _ASEOF
10801 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10802 ## -------------------- ##
10803 ## M4sh Initialization. ##
10804 ## -------------------- ##
10805
10806 # Be more Bourne compatible
10807 DUALCASE=1; export DUALCASE # for MKS sh
10808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10809 emulate sh
10810 NULLCMD=:
10811 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10812 # is contrary to our usage. Disable this feature.
10813 alias -g '${1+"$@"}'='"$@"'
10814 setopt NO_GLOB_SUBST
10815 else
10816 case `(set -o) 2>/dev/null` in #(
10817 *posix*) :
10818 set -o posix ;; #(
10819 *) :
10820 ;;
10821 esac
10822 fi
10823
10824
10825 as_nl='
10826 '
10827 export as_nl
10828 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10829 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10830 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10832 # Prefer a ksh shell builtin over an external printf program on Solaris,
10833 # but without wasting forks for bash or zsh.
10834 if test -z "$BASH_VERSION$ZSH_VERSION" \
10835 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10836 as_echo='print -r --'
10837 as_echo_n='print -rn --'
10838 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10839 as_echo='printf %s\n'
10840 as_echo_n='printf %s'
10841 else
10842 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10843 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10844 as_echo_n='/usr/ucb/echo -n'
10845 else
10846 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10847 as_echo_n_body='eval
10848 arg=$1;
10849 case $arg in #(
10850 *"$as_nl"*)
10851 expr "X$arg" : "X\\(.*\\)$as_nl";
10852 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10853 esac;
10854 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10855 '
10856 export as_echo_n_body
10857 as_echo_n='sh -c $as_echo_n_body as_echo'
10858 fi
10859 export as_echo_body
10860 as_echo='sh -c $as_echo_body as_echo'
10861 fi
10862
10863 # The user is always right.
10864 if test "${PATH_SEPARATOR+set}" != set; then
10865 PATH_SEPARATOR=:
10866 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10867 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10868 PATH_SEPARATOR=';'
10869 }
10870 fi
10871
10872
10873 # IFS
10874 # We need space, tab and new line, in precisely that order. Quoting is
10875 # there to prevent editors from complaining about space-tab.
10876 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10877 # splitting by setting IFS to empty value.)
10878 IFS=" "" $as_nl"
10879
10880 # Find who we are. Look in the path if we contain no directory separator.
10881 as_myself=
10882 case $0 in #((
10883 *[\\/]* ) as_myself=$0 ;;
10884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10886 do
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10890 done
10891 IFS=$as_save_IFS
10892
10893 ;;
10894 esac
10895 # We did not find ourselves, most probably we were run as `sh COMMAND'
10896 # in which case we are not to be found in the path.
10897 if test "x$as_myself" = x; then
10898 as_myself=$0
10899 fi
10900 if test ! -f "$as_myself"; then
10901 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10902 exit 1
10903 fi
10904
10905 # Unset variables that we do not need and which cause bugs (e.g. in
10906 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10907 # suppresses any "Segmentation fault" message there. '((' could
10908 # trigger a bug in pdksh 5.2.14.
10909 for as_var in BASH_ENV ENV MAIL MAILPATH
10910 do eval test x\${$as_var+set} = xset \
10911 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10912 done
10913 PS1='$ '
10914 PS2='> '
10915 PS4='+ '
10916
10917 # NLS nuisances.
10918 LC_ALL=C
10919 export LC_ALL
10920 LANGUAGE=C
10921 export LANGUAGE
10922
10923 # CDPATH.
10924 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10925
10926
10927 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10928 # ----------------------------------------
10929 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10930 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10931 # script with STATUS, using 1 if that was 0.
10932 as_fn_error ()
10933 {
10934 as_status=$1; test $as_status -eq 0 && as_status=1
10935 if test "$4"; then
10936 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10937 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10938 fi
10939 $as_echo "$as_me: error: $2" >&2
10940 as_fn_exit $as_status
10941 } # as_fn_error
10942
10943
10944 # as_fn_set_status STATUS
10945 # -----------------------
10946 # Set $? to STATUS, without forking.
10947 as_fn_set_status ()
10948 {
10949 return $1
10950 } # as_fn_set_status
10951
10952 # as_fn_exit STATUS
10953 # -----------------
10954 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10955 as_fn_exit ()
10956 {
10957 set +e
10958 as_fn_set_status $1
10959 exit $1
10960 } # as_fn_exit
10961
10962 # as_fn_unset VAR
10963 # ---------------
10964 # Portably unset VAR.
10965 as_fn_unset ()
10966 {
10967 { eval $1=; unset $1;}
10968 }
10969 as_unset=as_fn_unset
10970 # as_fn_append VAR VALUE
10971 # ----------------------
10972 # Append the text in VALUE to the end of the definition contained in VAR. Take
10973 # advantage of any shell optimizations that allow amortized linear growth over
10974 # repeated appends, instead of the typical quadratic growth present in naive
10975 # implementations.
10976 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10977 eval 'as_fn_append ()
10978 {
10979 eval $1+=\$2
10980 }'
10981 else
10982 as_fn_append ()
10983 {
10984 eval $1=\$$1\$2
10985 }
10986 fi # as_fn_append
10987
10988 # as_fn_arith ARG...
10989 # ------------------
10990 # Perform arithmetic evaluation on the ARGs, and store the result in the
10991 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10992 # must be portable across $(()) and expr.
10993 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10994 eval 'as_fn_arith ()
10995 {
10996 as_val=$(( $* ))
10997 }'
10998 else
10999 as_fn_arith ()
11000 {
11001 as_val=`expr "$@" || test $? -eq 1`
11002 }
11003 fi # as_fn_arith
11004
11005
11006 if expr a : '\(a\)' >/dev/null 2>&1 &&
11007 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11008 as_expr=expr
11009 else
11010 as_expr=false
11011 fi
11012
11013 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11014 as_basename=basename
11015 else
11016 as_basename=false
11017 fi
11018
11019 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11020 as_dirname=dirname
11021 else
11022 as_dirname=false
11023 fi
11024
11025 as_me=`$as_basename -- "$0" ||
11026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11027 X"$0" : 'X\(//\)$' \| \
11028 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11029 $as_echo X/"$0" |
11030 sed '/^.*\/\([^/][^/]*\)\/*$/{
11031 s//\1/
11032 q
11033 }
11034 /^X\/\(\/\/\)$/{
11035 s//\1/
11036 q
11037 }
11038 /^X\/\(\/\).*/{
11039 s//\1/
11040 q
11041 }
11042 s/.*/./; q'`
11043
11044 # Avoid depending upon Character Ranges.
11045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11048 as_cr_digits='0123456789'
11049 as_cr_alnum=$as_cr_Letters$as_cr_digits
11050
11051 ECHO_C= ECHO_N= ECHO_T=
11052 case `echo -n x` in #(((((
11053 -n*)
11054 case `echo 'xy\c'` in
11055 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11056 xy) ECHO_C='\c';;
11057 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11058 ECHO_T=' ';;
11059 esac;;
11060 *)
11061 ECHO_N='-n';;
11062 esac
11063
11064 rm -f conf$$ conf$$.exe conf$$.file
11065 if test -d conf$$.dir; then
11066 rm -f conf$$.dir/conf$$.file
11067 else
11068 rm -f conf$$.dir
11069 mkdir conf$$.dir 2>/dev/null
11070 fi
11071 if (echo >conf$$.file) 2>/dev/null; then
11072 if ln -s conf$$.file conf$$ 2>/dev/null; then
11073 as_ln_s='ln -s'
11074 # ... but there are two gotchas:
11075 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11076 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11077 # In both cases, we have to default to `cp -p'.
11078 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11079 as_ln_s='cp -p'
11080 elif ln conf$$.file conf$$ 2>/dev/null; then
11081 as_ln_s=ln
11082 else
11083 as_ln_s='cp -p'
11084 fi
11085 else
11086 as_ln_s='cp -p'
11087 fi
11088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11089 rmdir conf$$.dir 2>/dev/null
11090
11091
11092 # as_fn_mkdir_p
11093 # -------------
11094 # Create "$as_dir" as a directory, including parents if necessary.
11095 as_fn_mkdir_p ()
11096 {
11097
11098 case $as_dir in #(
11099 -*) as_dir=./$as_dir;;
11100 esac
11101 test -d "$as_dir" || eval $as_mkdir_p || {
11102 as_dirs=
11103 while :; do
11104 case $as_dir in #(
11105 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11106 *) as_qdir=$as_dir;;
11107 esac
11108 as_dirs="'$as_qdir' $as_dirs"
11109 as_dir=`$as_dirname -- "$as_dir" ||
11110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11111 X"$as_dir" : 'X\(//\)[^/]' \| \
11112 X"$as_dir" : 'X\(//\)$' \| \
11113 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11114 $as_echo X"$as_dir" |
11115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11116 s//\1/
11117 q
11118 }
11119 /^X\(\/\/\)[^/].*/{
11120 s//\1/
11121 q
11122 }
11123 /^X\(\/\/\)$/{
11124 s//\1/
11125 q
11126 }
11127 /^X\(\/\).*/{
11128 s//\1/
11129 q
11130 }
11131 s/.*/./; q'`
11132 test -d "$as_dir" && break
11133 done
11134 test -z "$as_dirs" || eval "mkdir $as_dirs"
11135 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11136
11137
11138 } # as_fn_mkdir_p
11139 if mkdir -p . 2>/dev/null; then
11140 as_mkdir_p='mkdir -p "$as_dir"'
11141 else
11142 test -d ./-p && rmdir ./-p
11143 as_mkdir_p=false
11144 fi
11145
11146 if test -x / >/dev/null 2>&1; then
11147 as_test_x='test -x'
11148 else
11149 if ls -dL / >/dev/null 2>&1; then
11150 as_ls_L_option=L
11151 else
11152 as_ls_L_option=
11153 fi
11154 as_test_x='
11155 eval sh -c '\''
11156 if test -d "$1"; then
11157 test -d "$1/.";
11158 else
11159 case $1 in #(
11160 -*)set "./$1";;
11161 esac;
11162 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11163 ???[sx]*):;;*)false;;esac;fi
11164 '\'' sh
11165 '
11166 fi
11167 as_executable_p=$as_test_x
11168
11169 # Sed expression to map a string onto a valid CPP name.
11170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11171
11172 # Sed expression to map a string onto a valid variable name.
11173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11174
11175
11176 exec 6>&1
11177 ## ----------------------------------- ##
11178 ## Main body of $CONFIG_STATUS script. ##
11179 ## ----------------------------------- ##
11180 _ASEOF
11181 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11182
11183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11184 # Save the log message, to keep $0 and so on meaningful, and to
11185 # report actual input values of CONFIG_FILES etc. instead of their
11186 # values after options handling.
11187 ac_log="
11188 This file was extended by xfindproxy $as_me 1.0.3, which was
11189 generated by GNU Autoconf 2.68. Invocation command line was
11190
11191 CONFIG_FILES = $CONFIG_FILES
11192 CONFIG_HEADERS = $CONFIG_HEADERS
11193 CONFIG_LINKS = $CONFIG_LINKS
11194 CONFIG_COMMANDS = $CONFIG_COMMANDS
11195 $ $0 $@
11196
11197 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11198 "
11199
11200 _ACEOF
11201
11202 case $ac_config_files in *"
11203 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11204 esac
11205
11206 case $ac_config_headers in *"
11207 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11208 esac
11209
11210
11211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11212 # Files that config.status was made for.
11213 config_files="$ac_config_files"
11214 config_headers="$ac_config_headers"
11215 config_commands="$ac_config_commands"
11216
11217 _ACEOF
11218
11219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11220 ac_cs_usage="\
11221 \`$as_me' instantiates files and other configuration actions
11222 from templates according to the current configuration. Unless the files
11223 and actions are specified as TAGs, all are instantiated by default.
11224
11225 Usage: $0 [OPTION]... [TAG]...
11226
11227 -h, --help print this help, then exit
11228 -V, --version print version number and configuration settings, then exit
11229 --config print configuration, then exit
11230 -q, --quiet, --silent
11231 do not print progress messages
11232 -d, --debug don't remove temporary files
11233 --recheck update $as_me by reconfiguring in the same conditions
11234 --file=FILE[:TEMPLATE]
11235 instantiate the configuration file FILE
11236 --header=FILE[:TEMPLATE]
11237 instantiate the configuration header FILE
11238
11239 Configuration files:
11240 $config_files
11241
11242 Configuration headers:
11243 $config_headers
11244
11245 Configuration commands:
11246 $config_commands
11247
11248 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11249
11250 _ACEOF
11251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11253 ac_cs_version="\\
11254 xfindproxy config.status 1.0.3
11255 configured by $0, generated by GNU Autoconf 2.68,
11256 with options \\"\$ac_cs_config\\"
11257
11258 Copyright (C) 2010 Free Software Foundation, Inc.
11259 This config.status script is free software; the Free Software Foundation
11260 gives unlimited permission to copy, distribute and modify it."
11261
11262 ac_pwd='$ac_pwd'
11263 srcdir='$srcdir'
11264 INSTALL='$INSTALL'
11265 MKDIR_P='$MKDIR_P'
11266 AWK='$AWK'
11267 test -n "\$AWK" || AWK=awk
11268 _ACEOF
11269
11270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11271 # The default lists apply if the user does not specify any file.
11272 ac_need_defaults=:
11273 while test $# != 0
11274 do
11275 case $1 in
11276 --*=?*)
11277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11279 ac_shift=:
11280 ;;
11281 --*=)
11282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11283 ac_optarg=
11284 ac_shift=:
11285 ;;
11286 *)
11287 ac_option=$1
11288 ac_optarg=$2
11289 ac_shift=shift
11290 ;;
11291 esac
11292
11293 case $ac_option in
11294 # Handling of the options.
11295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11296 ac_cs_recheck=: ;;
11297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11298 $as_echo "$ac_cs_version"; exit ;;
11299 --config | --confi | --conf | --con | --co | --c )
11300 $as_echo "$ac_cs_config"; exit ;;
11301 --debug | --debu | --deb | --de | --d | -d )
11302 debug=: ;;
11303 --file | --fil | --fi | --f )
11304 $ac_shift
11305 case $ac_optarg in
11306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11307 '') as_fn_error $? "missing file argument" ;;
11308 esac
11309 as_fn_append CONFIG_FILES " '$ac_optarg'"
11310 ac_need_defaults=false;;
11311 --header | --heade | --head | --hea )
11312 $ac_shift
11313 case $ac_optarg in
11314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11315 esac
11316 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11317 ac_need_defaults=false;;
11318 --he | --h)
11319 # Conflict between --help and --header
11320 as_fn_error $? "ambiguous option: \`$1'
11321 Try \`$0 --help' for more information.";;
11322 --help | --hel | -h )
11323 $as_echo "$ac_cs_usage"; exit ;;
11324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11326 ac_cs_silent=: ;;
11327
11328 # This is an error.
11329 -*) as_fn_error $? "unrecognized option: \`$1'
11330 Try \`$0 --help' for more information." ;;
11331
11332 *) as_fn_append ac_config_targets " $1"
11333 ac_need_defaults=false ;;
11334
11335 esac
11336 shift
11337 done
11338
11339 ac_configure_extra_args=
11340
11341 if $ac_cs_silent; then
11342 exec 6>/dev/null
11343 ac_configure_extra_args="$ac_configure_extra_args --silent"
11344 fi
11345
11346 _ACEOF
11347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11348 if \$ac_cs_recheck; then
11349 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11350 shift
11351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11352 CONFIG_SHELL='$SHELL'
11353 export CONFIG_SHELL
11354 exec "\$@"
11355 fi
11356
11357 _ACEOF
11358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11359 exec 5>>config.log
11360 {
11361 echo
11362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11363 ## Running $as_me. ##
11364 _ASBOX
11365 $as_echo "$ac_log"
11366 } >&5
11367
11368 _ACEOF
11369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11370 #
11371 # INIT-COMMANDS
11372 #
11373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11374
11375 _ACEOF
11376
11377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11378
11379 # Handling of arguments.
11380 for ac_config_target in $ac_config_targets
11381 do
11382 case $ac_config_target in
11383 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11384 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11386
11387 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11388 esac
11389 done
11390
11391
11392 # If the user did not use the arguments to specify the items to instantiate,
11393 # then the envvar interface is used. Set only those that are not.
11394 # We use the long form for the default assignment because of an extremely
11395 # bizarre bug on SunOS 4.1.3.
11396 if $ac_need_defaults; then
11397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11400 fi
11401
11402 # Have a temporary directory for convenience. Make it in the build tree
11403 # simply because there is no reason against having it here, and in addition,
11404 # creating and moving files from /tmp can sometimes cause problems.
11405 # Hook for its removal unless debugging.
11406 # Note that there is a small window in which the directory will not be cleaned:
11407 # after its creation but before its name has been assigned to `$tmp'.
11408 $debug ||
11409 {
11410 tmp= ac_tmp=
11411 trap 'exit_status=$?
11412 : "${ac_tmp:=$tmp}"
11413 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11414 ' 0
11415 trap 'as_fn_exit 1' 1 2 13 15
11416 }
11417 # Create a (secure) tmp directory for tmp files.
11418
11419 {
11420 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11421 test -d "$tmp"
11422 } ||
11423 {
11424 tmp=./conf$$-$RANDOM
11425 (umask 077 && mkdir "$tmp")
11426 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11427 ac_tmp=$tmp
11428
11429 # Set up the scripts for CONFIG_FILES section.
11430 # No need to generate them if there are no CONFIG_FILES.
11431 # This happens for instance with `./config.status config.h'.
11432 if test -n "$CONFIG_FILES"; then
11433
11434
11435 ac_cr=`echo X | tr X '\015'`
11436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11437 # But we know of no other shell where ac_cr would be empty at this
11438 # point, so we can use a bashism as a fallback.
11439 if test "x$ac_cr" = x; then
11440 eval ac_cr=\$\'\\r\'
11441 fi
11442 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11444 ac_cs_awk_cr='\\r'
11445 else
11446 ac_cs_awk_cr=$ac_cr
11447 fi
11448
11449 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11450 _ACEOF
11451
11452
11453 {
11454 echo "cat >conf$$subs.awk <<_ACEOF" &&
11455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11456 echo "_ACEOF"
11457 } >conf$$subs.sh ||
11458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11460 ac_delim='%!_!# '
11461 for ac_last_try in false false false false false :; do
11462 . ./conf$$subs.sh ||
11463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11464
11465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11466 if test $ac_delim_n = $ac_delim_num; then
11467 break
11468 elif $ac_last_try; then
11469 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11470 else
11471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11472 fi
11473 done
11474 rm -f conf$$subs.sh
11475
11476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11477 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11478 _ACEOF
11479 sed -n '
11480 h
11481 s/^/S["/; s/!.*/"]=/
11482 p
11483 g
11484 s/^[^!]*!//
11485 :repl
11486 t repl
11487 s/'"$ac_delim"'$//
11488 t delim
11489 :nl
11490 h
11491 s/\(.\{148\}\)..*/\1/
11492 t more1
11493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11494 p
11495 n
11496 b repl
11497 :more1
11498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11499 p
11500 g
11501 s/.\{148\}//
11502 t nl
11503 :delim
11504 h
11505 s/\(.\{148\}\)..*/\1/
11506 t more2
11507 s/["\\]/\\&/g; s/^/"/; s/$/"/
11508 p
11509 b
11510 :more2
11511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11512 p
11513 g
11514 s/.\{148\}//
11515 t delim
11516 ' <conf$$subs.awk | sed '
11517 /^[^""]/{
11518 N
11519 s/\n//
11520 }
11521 ' >>$CONFIG_STATUS || ac_write_fail=1
11522 rm -f conf$$subs.awk
11523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11524 _ACAWK
11525 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11526 for (key in S) S_is_set[key] = 1
11527 FS = ""
11528
11529 }
11530 {
11531 line = $ 0
11532 nfields = split(line, field, "@")
11533 substed = 0
11534 len = length(field[1])
11535 for (i = 2; i < nfields; i++) {
11536 key = field[i]
11537 keylen = length(key)
11538 if (S_is_set[key]) {
11539 value = S[key]
11540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11541 len += length(value) + length(field[++i])
11542 substed = 1
11543 } else
11544 len += 1 + keylen
11545 }
11546
11547 print line
11548 }
11549
11550 _ACAWK
11551 _ACEOF
11552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11553 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11554 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11555 else
11556 cat
11557 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11558 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11559 _ACEOF
11560
11561 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11562 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11563 # trailing colons and then remove the whole line if VPATH becomes empty
11564 # (actually we leave an empty line to preserve line numbers).
11565 if test "x$srcdir" = x.; then
11566 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11567 h
11568 s///
11569 s/^/:/
11570 s/[ ]*$/:/
11571 s/:\$(srcdir):/:/g
11572 s/:\${srcdir}:/:/g
11573 s/:@srcdir@:/:/g
11574 s/^:*//
11575 s/:*$//
11576 x
11577 s/\(=[ ]*\).*/\1/
11578 G
11579 s/\n//
11580 s/^[^=]*=[ ]*$//
11581 }'
11582 fi
11583
11584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11585 fi # test -n "$CONFIG_FILES"
11586
11587 # Set up the scripts for CONFIG_HEADERS section.
11588 # No need to generate them if there are no CONFIG_HEADERS.
11589 # This happens for instance with `./config.status Makefile'.
11590 if test -n "$CONFIG_HEADERS"; then
11591 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11592 BEGIN {
11593 _ACEOF
11594
11595 # Transform confdefs.h into an awk script `defines.awk', embedded as
11596 # here-document in config.status, that substitutes the proper values into
11597 # config.h.in to produce config.h.
11598
11599 # Create a delimiter string that does not exist in confdefs.h, to ease
11600 # handling of long lines.
11601 ac_delim='%!_!# '
11602 for ac_last_try in false false :; do
11603 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11604 if test -z "$ac_tt"; then
11605 break
11606 elif $ac_last_try; then
11607 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11608 else
11609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11610 fi
11611 done
11612
11613 # For the awk script, D is an array of macro values keyed by name,
11614 # likewise P contains macro parameters if any. Preserve backslash
11615 # newline sequences.
11616
11617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11618 sed -n '
11619 s/.\{148\}/&'"$ac_delim"'/g
11620 t rset
11621 :rset
11622 s/^[ ]*#[ ]*define[ ][ ]*/ /
11623 t def
11624 d
11625 :def
11626 s/\\$//
11627 t bsnl
11628 s/["\\]/\\&/g
11629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11630 D["\1"]=" \3"/p
11631 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11632 d
11633 :bsnl
11634 s/["\\]/\\&/g
11635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11636 D["\1"]=" \3\\\\\\n"\\/p
11637 t cont
11638 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11639 t cont
11640 d
11641 :cont
11642 n
11643 s/.\{148\}/&'"$ac_delim"'/g
11644 t clear
11645 :clear
11646 s/\\$//
11647 t bsnlc
11648 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11649 d
11650 :bsnlc
11651 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11652 b cont
11653 ' <confdefs.h | sed '
11654 s/'"$ac_delim"'/"\\\
11655 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11656
11657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11658 for (key in D) D_is_set[key] = 1
11659 FS = ""
11660 }
11661 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11662 line = \$ 0
11663 split(line, arg, " ")
11664 if (arg[1] == "#") {
11665 defundef = arg[2]
11666 mac1 = arg[3]
11667 } else {
11668 defundef = substr(arg[1], 2)
11669 mac1 = arg[2]
11670 }
11671 split(mac1, mac2, "(") #)
11672 macro = mac2[1]
11673 prefix = substr(line, 1, index(line, defundef) - 1)
11674 if (D_is_set[macro]) {
11675 # Preserve the white space surrounding the "#".
11676 print prefix "define", macro P[macro] D[macro]
11677 next
11678 } else {
11679 # Replace #undef with comments. This is necessary, for example,
11680 # in the case of _POSIX_SOURCE, which is predefined and required
11681 # on some systems where configure will not decide to define it.
11682 if (defundef == "undef") {
11683 print "/*", prefix defundef, macro, "*/"
11684 next
11685 }
11686 }
11687 }
11688 { print }
11689 _ACAWK
11690 _ACEOF
11691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11692 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11693 fi # test -n "$CONFIG_HEADERS"
11694
11695
11696 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11697 shift
11698 for ac_tag
11699 do
11700 case $ac_tag in
11701 :[FHLC]) ac_mode=$ac_tag; continue;;
11702 esac
11703 case $ac_mode$ac_tag in
11704 :[FHL]*:*);;
11705 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11706 :[FH]-) ac_tag=-:-;;
11707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11708 esac
11709 ac_save_IFS=$IFS
11710 IFS=:
11711 set x $ac_tag
11712 IFS=$ac_save_IFS
11713 shift
11714 ac_file=$1
11715 shift
11716
11717 case $ac_mode in
11718 :L) ac_source=$1;;
11719 :[FH])
11720 ac_file_inputs=
11721 for ac_f
11722 do
11723 case $ac_f in
11724 -) ac_f="$ac_tmp/stdin";;
11725 *) # Look for the file first in the build tree, then in the source tree
11726 # (if the path is not absolute). The absolute path cannot be DOS-style,
11727 # because $ac_f cannot contain `:'.
11728 test -f "$ac_f" ||
11729 case $ac_f in
11730 [\\/$]*) false;;
11731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11732 esac ||
11733 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11734 esac
11735 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11736 as_fn_append ac_file_inputs " '$ac_f'"
11737 done
11738
11739 # Let's still pretend it is `configure' which instantiates (i.e., don't
11740 # use $as_me), people would be surprised to read:
11741 # /* config.h. Generated by config.status. */
11742 configure_input='Generated from '`
11743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11744 `' by configure.'
11745 if test x"$ac_file" != x-; then
11746 configure_input="$ac_file. $configure_input"
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11748 $as_echo "$as_me: creating $ac_file" >&6;}
11749 fi
11750 # Neutralize special characters interpreted by sed in replacement strings.
11751 case $configure_input in #(
11752 *\&* | *\|* | *\\* )
11753 ac_sed_conf_input=`$as_echo "$configure_input" |
11754 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11755 *) ac_sed_conf_input=$configure_input;;
11756 esac
11757
11758 case $ac_tag in
11759 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11761 esac
11762 ;;
11763 esac
11764
11765 ac_dir=`$as_dirname -- "$ac_file" ||
11766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11767 X"$ac_file" : 'X\(//\)[^/]' \| \
11768 X"$ac_file" : 'X\(//\)$' \| \
11769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11770 $as_echo X"$ac_file" |
11771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11772 s//\1/
11773 q
11774 }
11775 /^X\(\/\/\)[^/].*/{
11776 s//\1/
11777 q
11778 }
11779 /^X\(\/\/\)$/{
11780 s//\1/
11781 q
11782 }
11783 /^X\(\/\).*/{
11784 s//\1/
11785 q
11786 }
11787 s/.*/./; q'`
11788 as_dir="$ac_dir"; as_fn_mkdir_p
11789 ac_builddir=.
11790
11791 case "$ac_dir" in
11792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11793 *)
11794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11795 # A ".." for each directory in $ac_dir_suffix.
11796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11797 case $ac_top_builddir_sub in
11798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11800 esac ;;
11801 esac
11802 ac_abs_top_builddir=$ac_pwd
11803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11804 # for backward compatibility:
11805 ac_top_builddir=$ac_top_build_prefix
11806
11807 case $srcdir in
11808 .) # We are building in place.
11809 ac_srcdir=.
11810 ac_top_srcdir=$ac_top_builddir_sub
11811 ac_abs_top_srcdir=$ac_pwd ;;
11812 [\\/]* | ?:[\\/]* ) # Absolute name.
11813 ac_srcdir=$srcdir$ac_dir_suffix;
11814 ac_top_srcdir=$srcdir
11815 ac_abs_top_srcdir=$srcdir ;;
11816 *) # Relative name.
11817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11818 ac_top_srcdir=$ac_top_build_prefix$srcdir
11819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11820 esac
11821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11822
11823
11824 case $ac_mode in
11825 :F)
11826 #
11827 # CONFIG_FILE
11828 #
11829
11830 case $INSTALL in
11831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11833 esac
11834 ac_MKDIR_P=$MKDIR_P
11835 case $MKDIR_P in
11836 [\\/$]* | ?:[\\/]* ) ;;
11837 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11838 esac
11839 _ACEOF
11840
11841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11842 # If the template does not know about datarootdir, expand it.
11843 # FIXME: This hack should be removed a few years after 2.60.
11844 ac_datarootdir_hack=; ac_datarootdir_seen=
11845 ac_sed_dataroot='
11846 /datarootdir/ {
11847 p
11848 q
11849 }
11850 /@datadir@/p
11851 /@docdir@/p
11852 /@infodir@/p
11853 /@localedir@/p
11854 /@mandir@/p'
11855 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11856 *datarootdir*) ac_datarootdir_seen=yes;;
11857 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11859 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11860 _ACEOF
11861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11862 ac_datarootdir_hack='
11863 s&@datadir@&$datadir&g
11864 s&@docdir@&$docdir&g
11865 s&@infodir@&$infodir&g
11866 s&@localedir@&$localedir&g
11867 s&@mandir@&$mandir&g
11868 s&\\\${datarootdir}&$datarootdir&g' ;;
11869 esac
11870 _ACEOF
11871
11872 # Neutralize VPATH when `$srcdir' = `.'.
11873 # Shell code in configure.ac might set extrasub.
11874 # FIXME: do we really want to maintain this feature?
11875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11876 ac_sed_extra="$ac_vpsub
11877 $extrasub
11878 _ACEOF
11879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11880 :t
11881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11882 s|@configure_input@|$ac_sed_conf_input|;t t
11883 s&@top_builddir@&$ac_top_builddir_sub&;t t
11884 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11885 s&@srcdir@&$ac_srcdir&;t t
11886 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11887 s&@top_srcdir@&$ac_top_srcdir&;t t
11888 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11889 s&@builddir@&$ac_builddir&;t t
11890 s&@abs_builddir@&$ac_abs_builddir&;t t
11891 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11892 s&@INSTALL@&$ac_INSTALL&;t t
11893 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11894 $ac_datarootdir_hack
11895 "
11896 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11897 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11898
11899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11900 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11902 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11904 which seems to be undefined. Please make sure it is defined" >&5
11905 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11906 which seems to be undefined. Please make sure it is defined" >&2;}
11907
11908 rm -f "$ac_tmp/stdin"
11909 case $ac_file in
11910 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11911 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11912 esac \
11913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11914 ;;
11915 :H)
11916 #
11917 # CONFIG_HEADER
11918 #
11919 if test x"$ac_file" != x-; then
11920 {
11921 $as_echo "/* $configure_input */" \
11922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11923 } >"$ac_tmp/config.h" \
11924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11925 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11927 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11928 else
11929 rm -f "$ac_file"
11930 mv "$ac_tmp/config.h" "$ac_file" \
11931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11932 fi
11933 else
11934 $as_echo "/* $configure_input */" \
11935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11936 || as_fn_error $? "could not create -" "$LINENO" 5
11937 fi
11938 # Compute "$ac_file"'s index in $config_headers.
11939 _am_arg="$ac_file"
11940 _am_stamp_count=1
11941 for _am_header in $config_headers :; do
11942 case $_am_header in
11943 $_am_arg | $_am_arg:* )
11944 break ;;
11945 * )
11946 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11947 esac
11948 done
11949 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11950 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11951 X"$_am_arg" : 'X\(//\)[^/]' \| \
11952 X"$_am_arg" : 'X\(//\)$' \| \
11953 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11954 $as_echo X"$_am_arg" |
11955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11956 s//\1/
11957 q
11958 }
11959 /^X\(\/\/\)[^/].*/{
11960 s//\1/
11961 q
11962 }
11963 /^X\(\/\/\)$/{
11964 s//\1/
11965 q
11966 }
11967 /^X\(\/\).*/{
11968 s//\1/
11969 q
11970 }
11971 s/.*/./; q'`/stamp-h$_am_stamp_count
11972 ;;
11973
11974 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11975 $as_echo "$as_me: executing $ac_file commands" >&6;}
11976 ;;
11977 esac
11978
11979
11980 case $ac_file$ac_mode in
11981 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11982 # Older Autoconf quotes --file arguments for eval, but not when files
11983 # are listed without --file. Let's play safe and only enable the eval
11984 # if we detect the quoting.
11985 case $CONFIG_FILES in
11986 *\'*) eval set x "$CONFIG_FILES" ;;
11987 *) set x $CONFIG_FILES ;;
11988 esac
11989 shift
11990 for mf
11991 do
11992 # Strip MF so we end up with the name of the file.
11993 mf=`echo "$mf" | sed -e 's/:.*$//'`
11994 # Check whether this is an Automake generated Makefile or not.
11995 # We used to match only the files named 'Makefile.in', but
11996 # some people rename them; so instead we look at the file content.
11997 # Grep'ing the first line is not enough: some people post-process
11998 # each Makefile.in and add a new line on top of each file to say so.
11999 # Grep'ing the whole file is not good either: AIX grep has a line
12000 # limit of 2048, but all sed's we know have understand at least 4000.
12001 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12002 dirpart=`$as_dirname -- "$mf" ||
12003 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12004 X"$mf" : 'X\(//\)[^/]' \| \
12005 X"$mf" : 'X\(//\)$' \| \
12006 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12007 $as_echo X"$mf" |
12008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12009 s//\1/
12010 q
12011 }
12012 /^X\(\/\/\)[^/].*/{
12013 s//\1/
12014 q
12015 }
12016 /^X\(\/\/\)$/{
12017 s//\1/
12018 q
12019 }
12020 /^X\(\/\).*/{
12021 s//\1/
12022 q
12023 }
12024 s/.*/./; q'`
12025 else
12026 continue
12027 fi
12028 # Extract the definition of DEPDIR, am__include, and am__quote
12029 # from the Makefile without running 'make'.
12030 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12031 test -z "$DEPDIR" && continue
12032 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12033 test -z "$am__include" && continue
12034 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12035 # Find all dependency output files, they are included files with
12036 # $(DEPDIR) in their names. We invoke sed twice because it is the
12037 # simplest approach to changing $(DEPDIR) to its actual value in the
12038 # expansion.
12039 for file in `sed -n "
12040 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12041 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12042 # Make sure the directory exists.
12043 test -f "$dirpart/$file" && continue
12044 fdir=`$as_dirname -- "$file" ||
12045 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12046 X"$file" : 'X\(//\)[^/]' \| \
12047 X"$file" : 'X\(//\)$' \| \
12048 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12049 $as_echo X"$file" |
12050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12051 s//\1/
12052 q
12053 }
12054 /^X\(\/\/\)[^/].*/{
12055 s//\1/
12056 q
12057 }
12058 /^X\(\/\/\)$/{
12059 s//\1/
12060 q
12061 }
12062 /^X\(\/\).*/{
12063 s//\1/
12064 q
12065 }
12066 s/.*/./; q'`
12067 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12068 # echo "creating $dirpart/$file"
12069 echo '# dummy' > "$dirpart/$file"
12070 done
12071 done
12072 }
12073 ;;
12074
12075 esac
12076 done # for ac_tag
12077
12078
12079 as_fn_exit 0
12080 _ACEOF
12081 ac_clean_files=$ac_clean_files_save
12082
12083 test $ac_write_fail = 0 ||
12084 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12085
12086
12087 # configure is writing to config.log, and then calls config.status.
12088 # config.status does its own redirection, appending to config.log.
12089 # Unfortunately, on DOS this fails, as config.log is still kept open
12090 # by configure, so config.status won't be able to write to it; its
12091 # output is simply discarded. So we exec the FD to /dev/null,
12092 # effectively closing config.log, so it can be properly (re)opened and
12093 # appended to by config.status. When coming back to configure, we
12094 # need to make the FD available again.
12095 if test "$no_create" != yes; then
12096 ac_cs_success=:
12097 ac_config_status_args=
12098 test "$silent" = yes &&
12099 ac_config_status_args="$ac_config_status_args --quiet"
12100 exec 5>/dev/null
12101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12102 exec 5>>config.log
12103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12104 # would make configure fail if this is the last instruction.
12105 $ac_cs_success || as_fn_exit 1
12106 fi
12107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12110 fi
12111
12112