configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xhost 1.0.7.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xhost'
583 PACKAGE_TARNAME='xhost'
584 PACKAGE_VERSION='1.0.7'
585 PACKAGE_STRING='xhost 1.0.7'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 XAU_LIBS
631 XAU_CFLAGS
632 XHOST_LIBS
633 XHOST_CFLAGS
634 MAN_SUBSTS
635 XORG_MAN_PAGE
636 ADMIN_MAN_DIR
637 DRIVER_MAN_DIR
638 MISC_MAN_DIR
639 FILE_MAN_DIR
640 LIB_MAN_DIR
641 APP_MAN_DIR
642 ADMIN_MAN_SUFFIX
643 DRIVER_MAN_SUFFIX
644 MISC_MAN_SUFFIX
645 FILE_MAN_SUFFIX
646 LIB_MAN_SUFFIX
647 APP_MAN_SUFFIX
648 SED
649 host_os
650 host_vendor
651 host_cpu
652 host
653 build_os
654 build_vendor
655 build_cpu
656 build
657 INSTALL_CMD
658 PKG_CONFIG
659 CHANGELOG_CMD
660 STRICT_CFLAGS
661 CWARNFLAGS
662 BASE_CFLAGS
663 EGREP
664 GREP
665 CPP
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_silent_rules
752 enable_dependency_tracking
753 enable_selective_werror
754 enable_strict_compilation
755 enable_unix_transport
756 enable_tcp_transport
757 enable_ipv6
758 enable_local_transport
759 enable_secure_rpc
760 '
761 ac_precious_vars='build_alias
762 host_alias
763 target_alias
764 CC
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
769 CPP
770 PKG_CONFIG
771 XHOST_CFLAGS
772 XHOST_LIBS
773 XAU_CFLAGS
774 XAU_LIBS'
775
776
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
798
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
824
825 ac_prev=
826 ac_dashdash=
827 for ac_option
828 do
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
834 fi
835
836 case $ac_option in
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
840 esac
841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1125
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 ;;
1181
1182 esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option"
1188 fi
1189
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196 fi
1197
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1203 do
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error $? "pwd does not report name of working directory"
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
1276 srcdir=$ac_confdir
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 srcdir=..
1279 fi
1280 else
1281 ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1290 pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294 fi
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1307
1308 #
1309 # Report the --help message.
1310 #
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315 \`configure' configures xhost 1.0.7 to adapt to many kinds of systems.
1316
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1321
1322 Defaults for the options are specified in brackets.
1323
1324 Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking ...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 [PREFIX]
1340
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1345
1346 For better control, use the options below.
1347
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/xhost]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1368 _ACEOF
1369
1370 cat <<\_ACEOF
1371
1372 Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376
1377 System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of xhost 1.0.7:";;
1386 esac
1387 cat <<\_ACEOF
1388
1389 Optional Features:
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-silent-rules less verbose build output (undo: "make V=1")
1394 --disable-silent-rules verbose build output (undo: "make V=0")
1395 --enable-dependency-tracking
1396 do not reject slow dependency extractors
1397 --disable-dependency-tracking
1398 speeds up one-time build
1399 --disable-selective-werror
1400 Turn off selective compiler errors. (default:
1401 enabled)
1402 --enable-strict-compilation
1403 Enable all warnings from compiler and make them
1404 errors (default: disabled)
1405 --enable-unix-transport Enable UNIX domain socket transport
1406 --enable-tcp-transport Enable TCP socket transport
1407 --enable-ipv6 Enable IPv6 support
1408 --enable-local-transport
1409 Enable os-specific local transport
1410 --enable-secure-rpc Enable Secure RPC
1411
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CPP C preprocessor
1421 PKG_CONFIG path to pkg-config utility
1422 XHOST_CFLAGS
1423 C compiler flags for XHOST, overriding pkg-config
1424 XHOST_LIBS linker flags for XHOST, overriding pkg-config
1425 XAU_CFLAGS C compiler flags for XAU, overriding pkg-config
1426 XAU_LIBS linker flags for XAU, overriding pkg-config
1427
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1430
1431 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1489 fi
1490
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493 cat <<\_ACEOF
1494 xhost configure 1.0.7
1495 generated by GNU Autoconf 2.69
1496
1497 Copyright (C) 2012 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500 _ACEOF
1501 exit
1502 fi
1503
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1507
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1512 {
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1534 ac_retval=0
1535 else
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540 fi
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1543
1544 } # ac_fn_c_try_compile
1545
1546 # ac_fn_c_try_cpp LINENO
1547 # ----------------------
1548 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_cpp ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_cpp conftest.$ac_ext"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } > conftest.i && {
1568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 }; then :
1571 ac_retval=0
1572 else
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576 ac_retval=1
1577 fi
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_cpp
1582
1583 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586 # the include files in INCLUDES and setting the cache variable VAR
1587 # accordingly.
1588 ac_fn_c_check_header_mongrel ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if eval \${$3+:} false; then :
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if eval \${$3+:} false; then :
1595 $as_echo_n "(cached) " >&6
1596 fi
1597 eval ac_res=\$$3
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1600 else
1601 # Is the header compilable?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603 $as_echo_n "checking $2 usability... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1606 $4
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610 ac_header_compiler=yes
1611 else
1612 ac_header_compiler=no
1613 fi
1614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616 $as_echo "$ac_header_compiler" >&6; }
1617
1618 # Is the header present?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620 $as_echo_n "checking $2 presence... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_cpp "$LINENO"; then :
1626 ac_header_preproc=yes
1627 else
1628 ac_header_preproc=no
1629 fi
1630 rm -f conftest.err conftest.i conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632 $as_echo "$ac_header_preproc" >&6; }
1633
1634 # So? What about this header?
1635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1636 yes:no: )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641 ;;
1642 no:yes:* )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1646 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1650 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653 ( $as_echo "## ---------------------------------------------------------------------- ##
1654 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1655 ## ---------------------------------------------------------------------- ##"
1656 ) | sed "s/^/$as_me: WARNING: /" >&2
1657 ;;
1658 esac
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 eval "$3=\$ac_header_compiler"
1665 fi
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672 } # ac_fn_c_check_header_mongrel
1673
1674 # ac_fn_c_try_run LINENO
1675 # ----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677 # that executables *can* be run.
1678 ac_fn_c_try_run ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692 { { case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_try") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; }; }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: program exited with status $ac_status" >&5
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=$ac_status
1709 fi
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_run
1715
1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717 # -------------------------------------------------------
1718 # Tests whether HEADER exists and can be compiled using the include files in
1719 # INCLUDES, setting the cache variable VAR accordingly.
1720 ac_fn_c_check_header_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 $4
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 eval "$3=yes"
1735 else
1736 eval "$3=no"
1737 fi
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 fi
1740 eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745 } # ac_fn_c_check_header_compile
1746
1747 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1748 # ---------------------------------------------
1749 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1750 # accordingly.
1751 ac_fn_c_check_decl ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 as_decl_name=`echo $2|sed 's/ *(.*//'`
1755 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1757 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 int
1765 main ()
1766 {
1767 #ifndef $as_decl_name
1768 #ifdef __cplusplus
1769 (void) $as_decl_use;
1770 #else
1771 (void) $as_decl_name;
1772 #endif
1773 #endif
1774
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_decl
1792
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_link ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 test -x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_link
1838
1839 # ac_fn_c_check_func LINENO FUNC VAR
1840 # ----------------------------------
1841 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1842 ac_fn_c_check_func ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1854 #define $2 innocuous_$2
1855
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $2 (); below.
1858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1859 <limits.h> exists even on freestanding compilers. */
1860
1861 #ifdef __STDC__
1862 # include <limits.h>
1863 #else
1864 # include <assert.h>
1865 #endif
1866
1867 #undef $2
1868
1869 /* Override any GCC internal prototype to avoid an error.
1870 Use char because int might match the return type of a GCC
1871 builtin and then its argument prototype would still apply. */
1872 #ifdef __cplusplus
1873 extern "C"
1874 #endif
1875 char $2 ();
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined __stub_$2 || defined __stub___$2
1880 choke me
1881 #endif
1882
1883 int
1884 main ()
1885 {
1886 return $2 ();
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_link "$LINENO"; then :
1892 eval "$3=yes"
1893 else
1894 eval "$3=no"
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext \
1897 conftest$ac_exeext conftest.$ac_ext
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_check_func
1905
1906 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1907 # ----------------------------------------------------
1908 # Tries to find if the field MEMBER exists in type AGGR, after including
1909 # INCLUDES, setting cache variable VAR accordingly.
1910 ac_fn_c_check_member ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1914 $as_echo_n "checking for $2.$3... " >&6; }
1915 if eval \${$4+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $5
1921 int
1922 main ()
1923 {
1924 static $2 ac_aggr;
1925 if (ac_aggr.$3)
1926 return 0;
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 eval "$4=yes"
1933 else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $5
1937 int
1938 main ()
1939 {
1940 static $2 ac_aggr;
1941 if (sizeof ac_aggr.$3)
1942 return 0;
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$4=yes"
1949 else
1950 eval "$4=no"
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$4
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961 } # ac_fn_c_check_member
1962
1963 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1964 # -------------------------------------------
1965 # Tests whether TYPE exists after having included INCLUDES, setting cache
1966 # variable VAR accordingly.
1967 ac_fn_c_check_type ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1974 else
1975 eval "$3=no"
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 int
1980 main ()
1981 {
1982 if (sizeof ($2))
1983 return 0;
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $4
1992 int
1993 main ()
1994 {
1995 if (sizeof (($2)))
1996 return 0;
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002
2003 else
2004 eval "$3=yes"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 fi
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_c_check_type
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2019
2020 It was created by xhost $as_me 1.0.7, which was
2021 generated by GNU Autoconf 2.69. Invocation command line was
2022
2023 $ $0 $@
2024
2025 _ACEOF
2026 exec 5>>config.log
2027 {
2028 cat <<_ASUNAME
2029 ## --------- ##
2030 ## Platform. ##
2031 ## --------- ##
2032
2033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038
2039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2041
2042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2049
2050 _ASUNAME
2051
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
2057 $as_echo "PATH: $as_dir"
2058 done
2059 IFS=$as_save_IFS
2060
2061 } >&5
2062
2063 cat >&5 <<_ACEOF
2064
2065
2066 ## ----------- ##
2067 ## Core tests. ##
2068 ## ----------- ##
2069
2070 _ACEOF
2071
2072
2073 # Keep a trace of the command line.
2074 # Strip out --no-create and --no-recursion so they do not pile up.
2075 # Strip out --silent because we don't want to record it for future runs.
2076 # Also quote any args containing shell meta-characters.
2077 # Make two passes to allow for proper duplicate-argument suppression.
2078 ac_configure_args=
2079 ac_configure_args0=
2080 ac_configure_args1=
2081 ac_must_keep_next=false
2082 for ac_pass in 1 2
2083 do
2084 for ac_arg
2085 do
2086 case $ac_arg in
2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089 | -silent | --silent | --silen | --sile | --sil)
2090 continue ;;
2091 *\'*)
2092 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2093 esac
2094 case $ac_pass in
2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2096 2)
2097 as_fn_append ac_configure_args1 " '$ac_arg'"
2098 if test $ac_must_keep_next = true; then
2099 ac_must_keep_next=false # Got value, back to normal.
2100 else
2101 case $ac_arg in
2102 *=* | --config-cache | -C | -disable-* | --disable-* \
2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105 | -with-* | --with-* | -without-* | --without-* | --x)
2106 case "$ac_configure_args0 " in
2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2108 esac
2109 ;;
2110 -* ) ac_must_keep_next=true ;;
2111 esac
2112 fi
2113 as_fn_append ac_configure_args " '$ac_arg'"
2114 ;;
2115 esac
2116 done
2117 done
2118 { ac_configure_args0=; unset ac_configure_args0;}
2119 { ac_configure_args1=; unset ac_configure_args1;}
2120
2121 # When interrupted or exit'd, cleanup temporary files, and complete
2122 # config.log. We remove comments because anyway the quotes in there
2123 # would cause problems or look ugly.
2124 # WARNING: Use '\'' to represent an apostrophe within the trap.
2125 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126 trap 'exit_status=$?
2127 # Save into config.log some information that might help in debugging.
2128 {
2129 echo
2130
2131 $as_echo "## ---------------- ##
2132 ## Cache variables. ##
2133 ## ---------------- ##"
2134 echo
2135 # The following way of writing the cache mishandles newlines in values,
2136 (
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in #(
2140 *${as_nl}*)
2141 case $ac_var in #(
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144 esac
2145 case $ac_var in #(
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2149 esac ;;
2150 esac
2151 done
2152 (set) 2>&1 |
2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
2155 sed -n \
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158 ;; #(
2159 *)
2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2161 ;;
2162 esac |
2163 sort
2164 )
2165 echo
2166
2167 $as_echo "## ----------------- ##
2168 ## Output variables. ##
2169 ## ----------------- ##"
2170 echo
2171 for ac_var in $ac_subst_vars
2172 do
2173 eval ac_val=\$$ac_var
2174 case $ac_val in
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 esac
2177 $as_echo "$ac_var='\''$ac_val'\''"
2178 done | sort
2179 echo
2180
2181 if test -n "$ac_subst_files"; then
2182 $as_echo "## ------------------- ##
2183 ## File substitutions. ##
2184 ## ------------------- ##"
2185 echo
2186 for ac_var in $ac_subst_files
2187 do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2195 fi
2196
2197 if test -s confdefs.h; then
2198 $as_echo "## ----------- ##
2199 ## confdefs.h. ##
2200 ## ----------- ##"
2201 echo
2202 cat confdefs.h
2203 echo
2204 fi
2205 test "$ac_signal" != 0 &&
2206 $as_echo "$as_me: caught signal $ac_signal"
2207 $as_echo "$as_me: exit $exit_status"
2208 } >&5
2209 rm -f core *.core core.conftest.* &&
2210 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2211 exit $exit_status
2212 ' 0
2213 for ac_signal in 1 2 13 15; do
2214 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2215 done
2216 ac_signal=0
2217
2218 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2219 rm -f -r conftest* confdefs.h
2220
2221 $as_echo "/* confdefs.h */" > confdefs.h
2222
2223 # Predefined preprocessor variables.
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_NAME "$PACKAGE_NAME"
2227 _ACEOF
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2231 _ACEOF
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2235 _ACEOF
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_STRING "$PACKAGE_STRING"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_URL "$PACKAGE_URL"
2247 _ACEOF
2248
2249
2250 # Let the site file select an alternate cache file if it wants to.
2251 # Prefer an explicitly selected file to automatically selected ones.
2252 ac_site_file1=NONE
2253 ac_site_file2=NONE
2254 if test -n "$CONFIG_SITE"; then
2255 # We do not want a PATH search for config.site.
2256 case $CONFIG_SITE in #((
2257 -*) ac_site_file1=./$CONFIG_SITE;;
2258 */*) ac_site_file1=$CONFIG_SITE;;
2259 *) ac_site_file1=./$CONFIG_SITE;;
2260 esac
2261 elif test "x$prefix" != xNONE; then
2262 ac_site_file1=$prefix/share/config.site
2263 ac_site_file2=$prefix/etc/config.site
2264 else
2265 ac_site_file1=$ac_default_prefix/share/config.site
2266 ac_site_file2=$ac_default_prefix/etc/config.site
2267 fi
2268 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2269 do
2270 test "x$ac_site_file" = xNONE && continue
2271 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2274 sed 's/^/| /' "$ac_site_file" >&5
2275 . "$ac_site_file" \
2276 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 as_fn_error $? "failed to load site script $ac_site_file
2279 See \`config.log' for more details" "$LINENO" 5; }
2280 fi
2281 done
2282
2283 if test -r "$cache_file"; then
2284 # Some versions of bash will fail to source /dev/null (special files
2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288 $as_echo "$as_me: loading cache $cache_file" >&6;}
2289 case $cache_file in
2290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291 *) . "./$cache_file";;
2292 esac
2293 fi
2294 else
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296 $as_echo "$as_me: creating cache $cache_file" >&6;}
2297 >$cache_file
2298 fi
2299
2300 # Check that the precious variables saved in the cache have kept the same
2301 # value.
2302 ac_cache_corrupted=false
2303 for ac_var in $ac_precious_vars; do
2304 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2305 eval ac_new_set=\$ac_env_${ac_var}_set
2306 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2307 eval ac_new_val=\$ac_env_${ac_var}_value
2308 case $ac_old_set,$ac_new_set in
2309 set,)
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2311 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2313 ,set)
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2315 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2316 ac_cache_corrupted=: ;;
2317 ,);;
2318 *)
2319 if test "x$ac_old_val" != "x$ac_new_val"; then
2320 # differences in whitespace do not lead to failure.
2321 ac_old_val_w=`echo x $ac_old_val`
2322 ac_new_val_w=`echo x $ac_new_val`
2323 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2325 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2326 ac_cache_corrupted=:
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2329 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2330 eval $ac_var=\$ac_old_val
2331 fi
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2333 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2335 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2336 fi;;
2337 esac
2338 # Pass precious variables to config.status.
2339 if test "$ac_new_set" = set; then
2340 case $ac_new_val in
2341 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 *) ac_arg=$ac_var=$ac_new_val ;;
2343 esac
2344 case " $ac_configure_args " in
2345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2346 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2347 esac
2348 fi
2349 done
2350 if $ac_cache_corrupted; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2354 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2355 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2356 fi
2357 ## -------------------- ##
2358 ## Main body of script. ##
2359 ## -------------------- ##
2360
2361 ac_ext=c
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366
2367
2368
2369 ac_config_headers="$ac_config_headers config.h"
2370
2371
2372 # Initialize Automake
2373 am__api_version='1.15'
2374
2375 ac_aux_dir=
2376 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2377 if test -f "$ac_dir/install-sh"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/install-sh -c"
2380 break
2381 elif test -f "$ac_dir/install.sh"; then
2382 ac_aux_dir=$ac_dir
2383 ac_install_sh="$ac_aux_dir/install.sh -c"
2384 break
2385 elif test -f "$ac_dir/shtool"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/shtool install -c"
2388 break
2389 fi
2390 done
2391 if test -z "$ac_aux_dir"; then
2392 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393 fi
2394
2395 # These three variables are undocumented and unsupported,
2396 # and are intended to be withdrawn in a future Autoconf release.
2397 # They can cause serious problems if a builder's source tree is in a directory
2398 # whose full name contains unusual characters.
2399 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2402
2403
2404 # Find a good install program. We prefer a C program (faster),
2405 # so one script is as good as another. But avoid the broken or
2406 # incompatible versions:
2407 # SysV /etc/install, /usr/sbin/install
2408 # SunOS /usr/etc/install
2409 # IRIX /sbin/install
2410 # AIX /bin/install
2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # OS/2's system install, which has a completely different semantic
2416 # ./install, which can be erroneously created by make from ./install.sh.
2417 # Reject install programs that cannot install multiple files.
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2419 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2420 if test -z "$INSTALL"; then
2421 if ${ac_cv_path_install+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 # Account for people who put trailing slashes in PATH elements.
2430 case $as_dir/ in #((
2431 ./ | .// | /[cC]/* | \
2432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2433 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2434 /usr/ucb/* ) ;;
2435 *)
2436 # OSF1 and SCO ODT 3.0 have their own names for install.
2437 # Don't use installbsd from OSF since it installs stuff as root
2438 # by default.
2439 for ac_prog in ginstall scoinst install; do
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2442 if test $ac_prog = install &&
2443 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444 # AIX install. It has an incompatible calling convention.
2445 :
2446 elif test $ac_prog = install &&
2447 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448 # program-specific install script used by HP pwplus--don't use.
2449 :
2450 else
2451 rm -rf conftest.one conftest.two conftest.dir
2452 echo one > conftest.one
2453 echo two > conftest.two
2454 mkdir conftest.dir
2455 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2456 test -s conftest.one && test -s conftest.two &&
2457 test -s conftest.dir/conftest.one &&
2458 test -s conftest.dir/conftest.two
2459 then
2460 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2461 break 3
2462 fi
2463 fi
2464 fi
2465 done
2466 done
2467 ;;
2468 esac
2469
2470 done
2471 IFS=$as_save_IFS
2472
2473 rm -rf conftest.one conftest.two conftest.dir
2474
2475 fi
2476 if test "${ac_cv_path_install+set}" = set; then
2477 INSTALL=$ac_cv_path_install
2478 else
2479 # As a last resort, use the slow shell script. Don't cache a
2480 # value for INSTALL within a source directory, because that will
2481 # break other packages using the cache if that directory is
2482 # removed, or if the value is a relative name.
2483 INSTALL=$ac_install_sh
2484 fi
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2487 $as_echo "$INSTALL" >&6; }
2488
2489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2490 # It thinks the first close brace ends the variable substitution.
2491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2492
2493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2494
2495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2496
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2498 $as_echo_n "checking whether build environment is sane... " >&6; }
2499 # Reject unsafe characters in $srcdir or the absolute working directory
2500 # name. Accept space and tab only in the latter.
2501 am_lf='
2502 '
2503 case `pwd` in
2504 *[\\\"\#\$\&\'\`$am_lf]*)
2505 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2506 esac
2507 case $srcdir in
2508 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2509 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2510 esac
2511
2512 # Do 'set' in a subshell so we don't clobber the current shell's
2513 # arguments. Must try -L first in case configure is actually a
2514 # symlink; some systems play weird games with the mod time of symlinks
2515 # (eg FreeBSD returns the mod time of the symlink's containing
2516 # directory).
2517 if (
2518 am_has_slept=no
2519 for am_try in 1 2; do
2520 echo "timestamp, slept: $am_has_slept" > conftest.file
2521 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2522 if test "$*" = "X"; then
2523 # -L didn't work.
2524 set X `ls -t "$srcdir/configure" conftest.file`
2525 fi
2526 if test "$*" != "X $srcdir/configure conftest.file" \
2527 && test "$*" != "X conftest.file $srcdir/configure"; then
2528
2529 # If neither matched, then we have a broken ls. This can happen
2530 # if, for instance, CONFIG_SHELL is bash and it inherits a
2531 # broken ls alias from the environment. This has actually
2532 # happened. Such a system could not be considered "sane".
2533 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2534 alias in your environment" "$LINENO" 5
2535 fi
2536 if test "$2" = conftest.file || test $am_try -eq 2; then
2537 break
2538 fi
2539 # Just in case.
2540 sleep 1
2541 am_has_slept=yes
2542 done
2543 test "$2" = conftest.file
2544 )
2545 then
2546 # Ok.
2547 :
2548 else
2549 as_fn_error $? "newly created file is older than distributed files!
2550 Check your system clock" "$LINENO" 5
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553 $as_echo "yes" >&6; }
2554 # If we didn't sleep, we still need to ensure time stamps of config.status and
2555 # generated files are strictly newer.
2556 am_sleep_pid=
2557 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2558 ( sleep 1 ) &
2559 am_sleep_pid=$!
2560 fi
2561
2562 rm -f conftest.file
2563
2564 test "$program_prefix" != NONE &&
2565 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2566 # Use a double $ so make ignores it.
2567 test "$program_suffix" != NONE &&
2568 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2569 # Double any \ or $.
2570 # By default was `s,x,x', remove it if useless.
2571 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2572 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2573
2574 # Expand $ac_aux_dir to an absolute path.
2575 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2576
2577 if test x"${MISSING+set}" != xset; then
2578 case $am_aux_dir in
2579 *\ * | *\ *)
2580 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2581 *)
2582 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2583 esac
2584 fi
2585 # Use eval to expand $SHELL
2586 if eval "$MISSING --is-lightweight"; then
2587 am_missing_run="$MISSING "
2588 else
2589 am_missing_run=
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2591 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2592 fi
2593
2594 if test x"${install_sh+set}" != xset; then
2595 case $am_aux_dir in
2596 *\ * | *\ *)
2597 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2598 *)
2599 install_sh="\${SHELL} $am_aux_dir/install-sh"
2600 esac
2601 fi
2602
2603 # Installed binaries are usually stripped using 'strip' when the user
2604 # run "make install-strip". However 'strip' might not be the right
2605 # tool to use in cross-compilation environments, therefore Automake
2606 # will honor the 'STRIP' environment variable to overrule this program.
2607 if test "$cross_compiling" != no; then
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}strip; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if ${ac_cv_prog_STRIP+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$STRIP"; then
2617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 STRIP=$ac_cv_prog_STRIP
2637 if test -n "$STRIP"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2639 $as_echo "$STRIP" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645
2646 fi
2647 if test -z "$ac_cv_prog_STRIP"; then
2648 ac_ct_STRIP=$STRIP
2649 # Extract the first word of "strip", so it can be a program name with args.
2650 set dummy strip; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$ac_ct_STRIP"; then
2657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_ac_ct_STRIP="strip"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2677 if test -n "$ac_ct_STRIP"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2679 $as_echo "$ac_ct_STRIP" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685 if test "x$ac_ct_STRIP" = x; then
2686 STRIP=":"
2687 else
2688 case $cross_compiling:$ac_tool_warned in
2689 yes:)
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2692 ac_tool_warned=yes ;;
2693 esac
2694 STRIP=$ac_ct_STRIP
2695 fi
2696 else
2697 STRIP="$ac_cv_prog_STRIP"
2698 fi
2699
2700 fi
2701 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2704 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2705 if test -z "$MKDIR_P"; then
2706 if ${ac_cv_path_mkdir+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_prog in mkdir gmkdir; do
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2717 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2718 'mkdir (GNU coreutils) '* | \
2719 'mkdir (coreutils) '* | \
2720 'mkdir (fileutils) '4.1*)
2721 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2722 break 3;;
2723 esac
2724 done
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730
2731 test -d ./--version && rmdir ./--version
2732 if test "${ac_cv_path_mkdir+set}" = set; then
2733 MKDIR_P="$ac_cv_path_mkdir -p"
2734 else
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for MKDIR_P within a source directory, because that will
2737 # break other packages using the cache if that directory is
2738 # removed, or if the value is a relative name.
2739 MKDIR_P="$ac_install_sh -d"
2740 fi
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2743 $as_echo "$MKDIR_P" >&6; }
2744
2745 for ac_prog in gawk mawk nawk awk
2746 do
2747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2748 set dummy $ac_prog; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if ${ac_cv_prog_AWK+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test -n "$AWK"; then
2755 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_AWK="$ac_prog"
2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 fi
2773 fi
2774 AWK=$ac_cv_prog_AWK
2775 if test -n "$AWK"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2777 $as_echo "$AWK" >&6; }
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783
2784 test -n "$AWK" && break
2785 done
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2788 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2789 set x ${MAKE-make}
2790 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2791 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 cat >conftest.make <<\_ACEOF
2795 SHELL = /bin/sh
2796 all:
2797 @echo '@@@%%%=$(MAKE)=@@@%%%'
2798 _ACEOF
2799 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2800 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2801 *@@@%%%=?*=@@@%%%*)
2802 eval ac_cv_prog_make_${ac_make}_set=yes;;
2803 *)
2804 eval ac_cv_prog_make_${ac_make}_set=no;;
2805 esac
2806 rm -f conftest.make
2807 fi
2808 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2810 $as_echo "yes" >&6; }
2811 SET_MAKE=
2812 else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 SET_MAKE="MAKE=${MAKE-make}"
2816 fi
2817
2818 rm -rf .tst 2>/dev/null
2819 mkdir .tst 2>/dev/null
2820 if test -d .tst; then
2821 am__leading_dot=.
2822 else
2823 am__leading_dot=_
2824 fi
2825 rmdir .tst 2>/dev/null
2826
2827 # Check whether --enable-silent-rules was given.
2828 if test "${enable_silent_rules+set}" = set; then :
2829 enableval=$enable_silent_rules;
2830 fi
2831
2832 case $enable_silent_rules in # (((
2833 yes) AM_DEFAULT_VERBOSITY=0;;
2834 no) AM_DEFAULT_VERBOSITY=1;;
2835 *) AM_DEFAULT_VERBOSITY=1;;
2836 esac
2837 am_make=${MAKE-make}
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2839 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2840 if ${am_cv_make_support_nested_variables+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if $as_echo 'TRUE=$(BAR$(V))
2844 BAR0=false
2845 BAR1=true
2846 V=1
2847 am__doit:
2848 @$(TRUE)
2849 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2850 am_cv_make_support_nested_variables=yes
2851 else
2852 am_cv_make_support_nested_variables=no
2853 fi
2854 fi
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2856 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2857 if test $am_cv_make_support_nested_variables = yes; then
2858 AM_V='$(V)'
2859 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2860 else
2861 AM_V=$AM_DEFAULT_VERBOSITY
2862 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2863 fi
2864 AM_BACKSLASH='\'
2865
2866 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2867 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2868 # is not polluted with repeated "-I."
2869 am__isrc=' -I$(srcdir)'
2870 # test to see if srcdir already configured
2871 if test -f $srcdir/config.status; then
2872 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2873 fi
2874 fi
2875
2876 # test whether we have cygpath
2877 if test -z "$CYGPATH_W"; then
2878 if (cygpath --version) >/dev/null 2>/dev/null; then
2879 CYGPATH_W='cygpath -w'
2880 else
2881 CYGPATH_W=echo
2882 fi
2883 fi
2884
2885
2886 # Define the identity of the package.
2887 PACKAGE='xhost'
2888 VERSION='1.0.7'
2889
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE "$PACKAGE"
2893 _ACEOF
2894
2895
2896 cat >>confdefs.h <<_ACEOF
2897 #define VERSION "$VERSION"
2898 _ACEOF
2899
2900 # Some tools Automake needs.
2901
2902 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2903
2904
2905 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2906
2907
2908 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2909
2910
2911 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2912
2913
2914 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2915
2916 # For better backward compatibility. To be removed once Automake 1.9.x
2917 # dies out for good. For more background, see:
2918 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2919 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2920 mkdir_p='$(MKDIR_P)'
2921
2922 # We need awk for the "check" target (and possibly the TAP driver). The
2923 # system "awk" is bad on some platforms.
2924 # Always define AMTAR for backward compatibility. Yes, it's still used
2925 # in the wild :-( We should find a proper way to deprecate it ...
2926 AMTAR='$${TAR-tar}'
2927
2928
2929 # We'll loop over all known methods to create a tar archive until one works.
2930 _am_tools='gnutar pax cpio none'
2931
2932 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2933
2934
2935
2936
2937
2938
2939 # POSIX will say in a future version that running "rm -f" with no argument
2940 # is OK; and we want to be able to make that assumption in our Makefile
2941 # recipes. So use an aggressive probe to check that the usage we want is
2942 # actually supported "in the wild" to an acceptable degree.
2943 # See automake bug#10828.
2944 # To make any issue more visible, cause the running configure to be aborted
2945 # by default if the 'rm' program in use doesn't match our expectations; the
2946 # user can still override this though.
2947 if rm -f && rm -fr && rm -rf; then : OK; else
2948 cat >&2 <<'END'
2949 Oops!
2950
2951 Your 'rm' program seems unable to run without file operands specified
2952 on the command line, even when the '-f' option is present. This is contrary
2953 to the behaviour of most rm programs out there, and not conforming with
2954 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2955
2956 Please tell bug-automake@gnu.org about your system, including the value
2957 of your $PATH and any error possibly output before this message. This
2958 can help us improve future automake versions.
2959
2960 END
2961 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2962 echo 'Configuration will proceed anyway, since you have set the' >&2
2963 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2964 echo >&2
2965 else
2966 cat >&2 <<'END'
2967 Aborting the configuration process, to ensure you take notice of the issue.
2968
2969 You can download and install GNU coreutils to get an 'rm' implementation
2970 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2971
2972 If you want to complete the configuration process using your problematic
2973 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2974 to "yes", and re-run configure.
2975
2976 END
2977 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2978 fi
2979 fi
2980
2981
2982 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2983 # Must be called before any macros that run the compiler (like
2984 # XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2985 DEPDIR="${am__leading_dot}deps"
2986
2987 ac_config_commands="$ac_config_commands depfiles"
2988
2989
2990 am_make=${MAKE-make}
2991 cat > confinc << 'END'
2992 am__doit:
2993 @echo this is the am__doit target
2994 .PHONY: am__doit
2995 END
2996 # If we don't find an include directive, just comment out the code.
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2999 am__include="#"
3000 am__quote=
3001 _am_result=none
3002 # First try GNU make style include.
3003 echo "include confinc" > confmf
3004 # Ignore all kinds of additional output from 'make'.
3005 case `$am_make -s -f confmf 2> /dev/null` in #(
3006 *the\ am__doit\ target*)
3007 am__include=include
3008 am__quote=
3009 _am_result=GNU
3010 ;;
3011 esac
3012 # Now try BSD make style include.
3013 if test "$am__include" = "#"; then
3014 echo '.include "confinc"' > confmf
3015 case `$am_make -s -f confmf 2> /dev/null` in #(
3016 *the\ am__doit\ target*)
3017 am__include=.include
3018 am__quote="\""
3019 _am_result=BSD
3020 ;;
3021 esac
3022 fi
3023
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3026 $as_echo "$_am_result" >&6; }
3027 rm -f confinc confmf
3028
3029 # Check whether --enable-dependency-tracking was given.
3030 if test "${enable_dependency_tracking+set}" = set; then :
3031 enableval=$enable_dependency_tracking;
3032 fi
3033
3034 if test "x$enable_dependency_tracking" != xno; then
3035 am_depcomp="$ac_aux_dir/depcomp"
3036 AMDEPBACKSLASH='\'
3037 am__nodep='_no'
3038 fi
3039 if test "x$enable_dependency_tracking" != xno; then
3040 AMDEP_TRUE=
3041 AMDEP_FALSE='#'
3042 else
3043 AMDEP_TRUE='#'
3044 AMDEP_FALSE=
3045 fi
3046
3047
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091 fi
3092 if test -z "$ac_cv_prog_CC"; then
3093 ac_ct_CC=$CC
3094 # Extract the first word of "gcc", so it can be a program name with args.
3095 set dummy gcc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$ac_ct_CC"; then
3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_CC="gcc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122 if test -n "$ac_ct_CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124 $as_echo "$ac_ct_CC" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130 if test "x$ac_ct_CC" = x; then
3131 CC=""
3132 else
3133 case $cross_compiling:$ac_tool_warned in
3134 yes:)
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3138 esac
3139 CC=$ac_ct_CC
3140 fi
3141 else
3142 CC="$ac_cv_prog_CC"
3143 fi
3144
3145 if test -z "$CC"; then
3146 if test -n "$ac_tool_prefix"; then
3147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3148 set dummy ${ac_tool_prefix}cc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_CC="${ac_tool_prefix}cc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 fi
3185 fi
3186 if test -z "$CC"; then
3187 # Extract the first word of "cc", so it can be a program name with args.
3188 set dummy cc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197 ac_prog_rejected=no
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206 ac_prog_rejected=yes
3207 continue
3208 fi
3209 ac_cv_prog_CC="cc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 if test $ac_prog_rejected = yes; then
3218 # We found a bogon in the path, so make sure we never use it.
3219 set dummy $ac_cv_prog_CC
3220 shift
3221 if test $# != 0; then
3222 # We chose a different compiler from the bogus one.
3223 # However, it has the same basename, so the bogon will be chosen
3224 # first if we set CC to just the basename; use the full file name.
3225 shift
3226 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3227 fi
3228 fi
3229 fi
3230 fi
3231 CC=$ac_cv_prog_CC
3232 if test -n "$CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234 $as_echo "$CC" >&6; }
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241 fi
3242 if test -z "$CC"; then
3243 if test -n "$ac_tool_prefix"; then
3244 for ac_prog in cl.exe
3245 do
3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_CC+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269 IFS=$as_save_IFS
3270
3271 fi
3272 fi
3273 CC=$ac_cv_prog_CC
3274 if test -n "$CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 $as_echo "$CC" >&6; }
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 fi
3281
3282
3283 test -n "$CC" && break
3284 done
3285 fi
3286 if test -z "$CC"; then
3287 ac_ct_CC=$CC
3288 for ac_prog in cl.exe
3289 do
3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy $ac_prog; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_ac_ct_CC="$ac_prog"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3320 $as_echo "$ac_ct_CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 test -n "$ac_ct_CC" && break
3328 done
3329
3330 if test "x$ac_ct_CC" = x; then
3331 CC=""
3332 else
3333 case $cross_compiling:$ac_tool_warned in
3334 yes:)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339 CC=$ac_ct_CC
3340 fi
3341 fi
3342
3343 fi
3344
3345
3346 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error $? "no acceptable C compiler found in \$PATH
3349 See \`config.log' for more details" "$LINENO" 5; }
3350
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3353 set X $ac_compile
3354 ac_compiler=$2
3355 for ac_option in --version -v -V -qversion; do
3356 { { ac_try="$ac_compiler $ac_option >&5"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3364 ac_status=$?
3365 if test -s conftest.err; then
3366 sed '10a\
3367 ... rest of stderr output deleted ...
3368 10q' conftest.err >conftest.er1
3369 cat conftest.er1 >&5
3370 fi
3371 rm -f conftest.er1 conftest.err
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374 done
3375
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378
3379 int
3380 main ()
3381 {
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 ac_clean_files_save=$ac_clean_files
3388 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3389 # Try to create an executable without -o first, disregard a.out.
3390 # It will help us diagnose broken compilers, and finding out an intuition
3391 # of exeext.
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3393 $as_echo_n "checking whether the C compiler works... " >&6; }
3394 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3395
3396 # The possible output files:
3397 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3398
3399 ac_rmfiles=
3400 for ac_file in $ac_files
3401 do
3402 case $ac_file in
3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3405 esac
3406 done
3407 rm -f $ac_rmfiles
3408
3409 if { { ac_try="$ac_link_default"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_link_default") 2>&5
3417 ac_status=$?
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; then :
3420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3421 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3422 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3423 # so that the user can short-circuit this test for compilers unknown to
3424 # Autoconf.
3425 for ac_file in $ac_files ''
3426 do
3427 test -f "$ac_file" || continue
3428 case $ac_file in
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3430 ;;
3431 [ab].out )
3432 # We found the default executable, but exeext='' is most
3433 # certainly right.
3434 break;;
3435 *.* )
3436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3437 then :; else
3438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439 fi
3440 # We set ac_cv_exeext here because the later test for it is not
3441 # safe: cross compilers may not add the suffix if given an `-o'
3442 # argument, so we may need to know it at that point already.
3443 # Even if this section looks crufty: it has the advantage of
3444 # actually working.
3445 break;;
3446 * )
3447 break;;
3448 esac
3449 done
3450 test "$ac_cv_exeext" = no && ac_cv_exeext=
3451
3452 else
3453 ac_file=''
3454 fi
3455 if test -z "$ac_file"; then :
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error 77 "C compiler cannot create executables
3464 See \`config.log' for more details" "$LINENO" 5; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467 $as_echo "yes" >&6; }
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3470 $as_echo_n "checking for C compiler default output file name... " >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3472 $as_echo "$ac_file" >&6; }
3473 ac_exeext=$ac_cv_exeext
3474
3475 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3476 ac_clean_files=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3478 $as_echo_n "checking for suffix of executables... " >&6; }
3479 if { { ac_try="$ac_link"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_link") 2>&5
3487 ac_status=$?
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }; then :
3490 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3491 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3492 # work properly (i.e., refer to `conftest.exe'), while it won't with
3493 # `rm'.
3494 for ac_file in conftest.exe conftest conftest.*; do
3495 test -f "$ac_file" || continue
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499 break;;
3500 * ) break;;
3501 esac
3502 done
3503 else
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3507 See \`config.log' for more details" "$LINENO" 5; }
3508 fi
3509 rm -f conftest conftest$ac_cv_exeext
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3511 $as_echo "$ac_cv_exeext" >&6; }
3512
3513 rm -f conftest.$ac_ext
3514 EXEEXT=$ac_cv_exeext
3515 ac_exeext=$EXEEXT
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518 #include <stdio.h>
3519 int
3520 main ()
3521 {
3522 FILE *f = fopen ("conftest.out", "w");
3523 return ferror (f) || fclose (f) != 0;
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 ac_clean_files="$ac_clean_files conftest.out"
3530 # Check that the compiler produces executables we can run. If not, either
3531 # the compiler is broken, or we cross compile.
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3533 $as_echo_n "checking whether we are cross compiling... " >&6; }
3534 if test "$cross_compiling" != yes; then
3535 { { ac_try="$ac_link"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3546 if { ac_try='./conftest$ac_cv_exeext'
3547 { { case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_try") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; }; then
3557 cross_compiling=no
3558 else
3559 if test "$cross_compiling" = maybe; then
3560 cross_compiling=yes
3561 else
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot run C compiled programs.
3565 If you meant to cross compile, use \`--host'.
3566 See \`config.log' for more details" "$LINENO" 5; }
3567 fi
3568 fi
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3571 $as_echo "$cross_compiling" >&6; }
3572
3573 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3574 ac_clean_files=$ac_clean_files_save
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3576 $as_echo_n "checking for suffix of object files... " >&6; }
3577 if ${ac_cv_objext+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 int
3584 main ()
3585 {
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 rm -f conftest.o conftest.obj
3592 if { { ac_try="$ac_compile"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_compile") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 for ac_file in conftest.o conftest.obj conftest.*; do
3604 test -f "$ac_file" || continue;
3605 case $ac_file in
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3608 break;;
3609 esac
3610 done
3611 else
3612 $as_echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error $? "cannot compute suffix of object files: cannot compile
3618 See \`config.log' for more details" "$LINENO" 5; }
3619 fi
3620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3623 $as_echo "$ac_cv_objext" >&6; }
3624 OBJEXT=$ac_cv_objext
3625 ac_objext=$OBJEXT
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3627 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3628 if ${ac_cv_c_compiler_gnu+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 int
3635 main ()
3636 {
3637 #ifndef __GNUC__
3638 choke me
3639 #endif
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_compiler_gnu=yes
3647 else
3648 ac_compiler_gnu=no
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3652
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3655 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3656 if test $ac_compiler_gnu = yes; then
3657 GCC=yes
3658 else
3659 GCC=
3660 fi
3661 ac_test_CFLAGS=${CFLAGS+set}
3662 ac_save_CFLAGS=$CFLAGS
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3664 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3665 if ${ac_cv_prog_cc_g+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 ac_save_c_werror_flag=$ac_c_werror_flag
3669 ac_c_werror_flag=yes
3670 ac_cv_prog_cc_g=no
3671 CFLAGS="-g"
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674
3675 int
3676 main ()
3677 {
3678
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_g=yes
3685 else
3686 CFLAGS=""
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689
3690 int
3691 main ()
3692 {
3693
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699
3700 else
3701 ac_c_werror_flag=$ac_save_c_werror_flag
3702 CFLAGS="-g"
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_prog_cc_g=yes
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3725 $as_echo "$ac_cv_prog_cc_g" >&6; }
3726 if test "$ac_test_CFLAGS" = set; then
3727 CFLAGS=$ac_save_CFLAGS
3728 elif test $ac_cv_prog_cc_g = yes; then
3729 if test "$GCC" = yes; then
3730 CFLAGS="-g -O2"
3731 else
3732 CFLAGS="-g"
3733 fi
3734 else
3735 if test "$GCC" = yes; then
3736 CFLAGS="-O2"
3737 else
3738 CFLAGS=
3739 fi
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3742 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743 if ${ac_cv_prog_cc_c89+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 ac_cv_prog_cc_c89=no
3747 ac_save_CC=$CC
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 #include <stdarg.h>
3751 #include <stdio.h>
3752 struct stat;
3753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3754 struct buf { int x; };
3755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756 static char *e (p, i)
3757 char **p;
3758 int i;
3759 {
3760 return p[i];
3761 }
3762 static char *f (char * (*g) (char **, int), char **p, ...)
3763 {
3764 char *s;
3765 va_list v;
3766 va_start (v,p);
3767 s = g (p, va_arg (v,int));
3768 va_end (v);
3769 return s;
3770 }
3771
3772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3773 function prototypes and stuff, but not '\xHH' hex character constants.
3774 These don't provoke an error unfortunately, instead are silently treated
3775 as 'x'. The following induces an error, until -std is added to get
3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3777 array size at least. It's necessary to write '\x00'==0 to get something
3778 that's true only with -std. */
3779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780
3781 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3782 inside strings and character constants. */
3783 #define FOO(x) 'x'
3784 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3785
3786 int test (int i, double x);
3787 struct s1 {int (*f) (int a);};
3788 struct s2 {int (*f) (double a);};
3789 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3790 int argc;
3791 char **argv;
3792 int
3793 main ()
3794 {
3795 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3802 do
3803 CC="$ac_save_CC $ac_arg"
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_cv_prog_cc_c89=$ac_arg
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext
3808 test "x$ac_cv_prog_cc_c89" != "xno" && break
3809 done
3810 rm -f conftest.$ac_ext
3811 CC=$ac_save_CC
3812
3813 fi
3814 # AC_CACHE_VAL
3815 case "x$ac_cv_prog_cc_c89" in
3816 x)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3818 $as_echo "none needed" >&6; } ;;
3819 xno)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3821 $as_echo "unsupported" >&6; } ;;
3822 *)
3823 CC="$CC $ac_cv_prog_cc_c89"
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3825 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3826 esac
3827 if test "x$ac_cv_prog_cc_c89" != xno; then :
3828
3829 fi
3830
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3843 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3844 if ${am_cv_prog_cc_c_o+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849
3850 int
3851 main ()
3852 {
3853
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 # Make sure it works both with $CC and with simple cc.
3859 # Following AC_PROG_CC_C_O, we do the test twice because some
3860 # compilers refuse to overwrite an existing .o file with -o,
3861 # though they will create one.
3862 am_cv_prog_cc_c_o=yes
3863 for am_i in 1 2; do
3864 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3865 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } \
3869 && test -f conftest2.$ac_objext; then
3870 : OK
3871 else
3872 am_cv_prog_cc_c_o=no
3873 break
3874 fi
3875 done
3876 rm -f core conftest*
3877 unset am_i
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3880 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3881 if test "$am_cv_prog_cc_c_o" != yes; then
3882 # Losing compiler, so override with the script.
3883 # FIXME: It is wrong to rewrite CC.
3884 # But if we don't then we get into trouble of one sort or another.
3885 # A longer-term fix would be to have automake use am__CC in this case,
3886 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3887 CC="$am_aux_dir/compile $CC"
3888 fi
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895
3896 depcc="$CC" am_compiler_list=
3897
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3899 $as_echo_n "checking dependency style of $depcc... " >&6; }
3900 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3904 # We make a subdir and do the tests there. Otherwise we can end up
3905 # making bogus files that we don't know about and never remove. For
3906 # instance it was reported that on HP-UX the gcc test will end up
3907 # making a dummy file named 'D' -- because '-MD' means "put the output
3908 # in D".
3909 rm -rf conftest.dir
3910 mkdir conftest.dir
3911 # Copy depcomp to subdir because otherwise we won't find it if we're
3912 # using a relative directory.
3913 cp "$am_depcomp" conftest.dir
3914 cd conftest.dir
3915 # We will build objects and dependencies in a subdirectory because
3916 # it helps to detect inapplicable dependency modes. For instance
3917 # both Tru64's cc and ICC support -MD to output dependencies as a
3918 # side effect of compilation, but ICC will put the dependencies in
3919 # the current directory while Tru64 will put them in the object
3920 # directory.
3921 mkdir sub
3922
3923 am_cv_CC_dependencies_compiler_type=none
3924 if test "$am_compiler_list" = ""; then
3925 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3926 fi
3927 am__universal=false
3928 case " $depcc " in #(
3929 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3930 esac
3931
3932 for depmode in $am_compiler_list; do
3933 # Setup a source with many dependencies, because some compilers
3934 # like to wrap large dependency lists on column 80 (with \), and
3935 # we should not choose a depcomp mode which is confused by this.
3936 #
3937 # We need to recreate these files for each test, as the compiler may
3938 # overwrite some of them when testing with obscure command lines.
3939 # This happens at least with the AIX C compiler.
3940 : > sub/conftest.c
3941 for i in 1 2 3 4 5 6; do
3942 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3943 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3944 # Solaris 10 /bin/sh.
3945 echo '/* dummy */' > sub/conftst$i.h
3946 done
3947 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3948
3949 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3950 # mode. It turns out that the SunPro C++ compiler does not properly
3951 # handle '-M -o', and we need to detect this. Also, some Intel
3952 # versions had trouble with output in subdirs.
3953 am__obj=sub/conftest.${OBJEXT-o}
3954 am__minus_obj="-o $am__obj"
3955 case $depmode in
3956 gcc)
3957 # This depmode causes a compiler race in universal mode.
3958 test "$am__universal" = false || continue
3959 ;;
3960 nosideeffect)
3961 # After this tag, mechanisms are not by side-effect, so they'll
3962 # only be used when explicitly requested.
3963 if test "x$enable_dependency_tracking" = xyes; then
3964 continue
3965 else
3966 break
3967 fi
3968 ;;
3969 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3970 # This compiler won't grok '-c -o', but also, the minuso test has
3971 # not run yet. These depmodes are late enough in the game, and
3972 # so weak that their functioning should not be impacted.
3973 am__obj=conftest.${OBJEXT-o}
3974 am__minus_obj=
3975 ;;
3976 none) break ;;
3977 esac
3978 if depmode=$depmode \
3979 source=sub/conftest.c object=$am__obj \
3980 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3981 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3982 >/dev/null 2>conftest.err &&
3983 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3984 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3985 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3986 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3987 # icc doesn't choke on unknown options, it will just issue warnings
3988 # or remarks (even with -Werror). So we grep stderr for any message
3989 # that says an option was ignored or not supported.
3990 # When given -MP, icc 7.0 and 7.1 complain thusly:
3991 # icc: Command line warning: ignoring option '-M'; no argument required
3992 # The diagnosis changed in icc 8.0:
3993 # icc: Command line remark: option '-MP' not supported
3994 if (grep 'ignoring option' conftest.err ||
3995 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3996 am_cv_CC_dependencies_compiler_type=$depmode
3997 break
3998 fi
3999 fi
4000 done
4001
4002 cd ..
4003 rm -rf conftest.dir
4004 else
4005 am_cv_CC_dependencies_compiler_type=none
4006 fi
4007
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4010 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4011 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4012
4013 if
4014 test "x$enable_dependency_tracking" != xno \
4015 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4016 am__fastdepCC_TRUE=
4017 am__fastdepCC_FALSE='#'
4018 else
4019 am__fastdepCC_TRUE='#'
4020 am__fastdepCC_FALSE=
4021 fi
4022
4023
4024
4025 ac_ext=c
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4031 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4032 # On Suns, sometimes $CPP names a directory.
4033 if test -n "$CPP" && test -d "$CPP"; then
4034 CPP=
4035 fi
4036 if test -z "$CPP"; then
4037 if ${ac_cv_prog_CPP+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 # Double quotes because CPP needs to be expanded
4041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4042 do
4043 ac_preproc_ok=false
4044 for ac_c_preproc_warn_flag in '' yes
4045 do
4046 # Use a header file that comes with gcc, so configuring glibc
4047 # with a fresh cross-compiler works.
4048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4049 # <limits.h> exists even on freestanding compilers.
4050 # On the NeXT, cc -E runs the code through the compiler's parser,
4051 # not just through cpp. "Syntax error" is here to catch this case.
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #ifdef __STDC__
4055 # include <limits.h>
4056 #else
4057 # include <assert.h>
4058 #endif
4059 Syntax error
4060 _ACEOF
4061 if ac_fn_c_try_cpp "$LINENO"; then :
4062
4063 else
4064 # Broken: fails on valid input.
4065 continue
4066 fi
4067 rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069 # OK, works on sane cases. Now check whether nonexistent headers
4070 # can be detected and how.
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073 #include <ac_nonexistent.h>
4074 _ACEOF
4075 if ac_fn_c_try_cpp "$LINENO"; then :
4076 # Broken: success on invalid input.
4077 continue
4078 else
4079 # Passes both tests.
4080 ac_preproc_ok=:
4081 break
4082 fi
4083 rm -f conftest.err conftest.i conftest.$ac_ext
4084
4085 done
4086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4087 rm -f conftest.i conftest.err conftest.$ac_ext
4088 if $ac_preproc_ok; then :
4089 break
4090 fi
4091
4092 done
4093 ac_cv_prog_CPP=$CPP
4094
4095 fi
4096 CPP=$ac_cv_prog_CPP
4097 else
4098 ac_cv_prog_CPP=$CPP
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4101 $as_echo "$CPP" >&6; }
4102 ac_preproc_ok=false
4103 for ac_c_preproc_warn_flag in '' yes
4104 do
4105 # Use a header file that comes with gcc, so configuring glibc
4106 # with a fresh cross-compiler works.
4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 # <limits.h> exists even on freestanding compilers.
4109 # On the NeXT, cc -E runs the code through the compiler's parser,
4110 # not just through cpp. "Syntax error" is here to catch this case.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #ifdef __STDC__
4114 # include <limits.h>
4115 #else
4116 # include <assert.h>
4117 #endif
4118 Syntax error
4119 _ACEOF
4120 if ac_fn_c_try_cpp "$LINENO"; then :
4121
4122 else
4123 # Broken: fails on valid input.
4124 continue
4125 fi
4126 rm -f conftest.err conftest.i conftest.$ac_ext
4127
4128 # OK, works on sane cases. Now check whether nonexistent headers
4129 # can be detected and how.
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #include <ac_nonexistent.h>
4133 _ACEOF
4134 if ac_fn_c_try_cpp "$LINENO"; then :
4135 # Broken: success on invalid input.
4136 continue
4137 else
4138 # Passes both tests.
4139 ac_preproc_ok=:
4140 break
4141 fi
4142 rm -f conftest.err conftest.i conftest.$ac_ext
4143
4144 done
4145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4146 rm -f conftest.i conftest.err conftest.$ac_ext
4147 if $ac_preproc_ok; then :
4148
4149 else
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4153 See \`config.log' for more details" "$LINENO" 5; }
4154 fi
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4164 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4165 if ${ac_cv_path_GREP+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -z "$GREP"; then
4169 ac_path_GREP_found=false
4170 # Loop through the user's path and test for each of PROGNAME-LIST
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4173 do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_prog in grep ggrep; do
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4179 as_fn_executable_p "$ac_path_GREP" || continue
4180 # Check for GNU ac_path_GREP and select it if it is found.
4181 # Check for GNU $ac_path_GREP
4182 case `"$ac_path_GREP" --version 2>&1` in
4183 *GNU*)
4184 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4185 *)
4186 ac_count=0
4187 $as_echo_n 0123456789 >"conftest.in"
4188 while :
4189 do
4190 cat "conftest.in" "conftest.in" >"conftest.tmp"
4191 mv "conftest.tmp" "conftest.in"
4192 cp "conftest.in" "conftest.nl"
4193 $as_echo 'GREP' >> "conftest.nl"
4194 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4196 as_fn_arith $ac_count + 1 && ac_count=$as_val
4197 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4198 # Best one so far, save it but keep looking for a better one
4199 ac_cv_path_GREP="$ac_path_GREP"
4200 ac_path_GREP_max=$ac_count
4201 fi
4202 # 10*(2^10) chars as input seems more than enough
4203 test $ac_count -gt 10 && break
4204 done
4205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206 esac
4207
4208 $ac_path_GREP_found && break 3
4209 done
4210 done
4211 done
4212 IFS=$as_save_IFS
4213 if test -z "$ac_cv_path_GREP"; then
4214 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4215 fi
4216 else
4217 ac_cv_path_GREP=$GREP
4218 fi
4219
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4222 $as_echo "$ac_cv_path_GREP" >&6; }
4223 GREP="$ac_cv_path_GREP"
4224
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4227 $as_echo_n "checking for egrep... " >&6; }
4228 if ${ac_cv_path_EGREP+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4232 then ac_cv_path_EGREP="$GREP -E"
4233 else
4234 if test -z "$EGREP"; then
4235 ac_path_EGREP_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4239 do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in egrep; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4245 as_fn_executable_p "$ac_path_EGREP" || continue
4246 # Check for GNU ac_path_EGREP and select it if it is found.
4247 # Check for GNU $ac_path_EGREP
4248 case `"$ac_path_EGREP" --version 2>&1` in
4249 *GNU*)
4250 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4251 *)
4252 ac_count=0
4253 $as_echo_n 0123456789 >"conftest.in"
4254 while :
4255 do
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'EGREP' >> "conftest.nl"
4260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 as_fn_arith $ac_count + 1 && ac_count=$as_val
4263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_EGREP="$ac_path_EGREP"
4266 ac_path_EGREP_max=$ac_count
4267 fi
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4270 done
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272 esac
4273
4274 $ac_path_EGREP_found && break 3
4275 done
4276 done
4277 done
4278 IFS=$as_save_IFS
4279 if test -z "$ac_cv_path_EGREP"; then
4280 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4281 fi
4282 else
4283 ac_cv_path_EGREP=$EGREP
4284 fi
4285
4286 fi
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4289 $as_echo "$ac_cv_path_EGREP" >&6; }
4290 EGREP="$ac_cv_path_EGREP"
4291
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4294 $as_echo_n "checking for ANSI C header files... " >&6; }
4295 if ${ac_cv_header_stdc+:} false; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <stdlib.h>
4301 #include <stdarg.h>
4302 #include <string.h>
4303 #include <float.h>
4304
4305 int
4306 main ()
4307 {
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_cv_header_stdc=yes
4315 else
4316 ac_cv_header_stdc=no
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319
4320 if test $ac_cv_header_stdc = yes; then
4321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <string.h>
4325
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "memchr" >/dev/null 2>&1; then :
4329
4330 else
4331 ac_cv_header_stdc=no
4332 fi
4333 rm -f conftest*
4334
4335 fi
4336
4337 if test $ac_cv_header_stdc = yes; then
4338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <stdlib.h>
4342
4343 _ACEOF
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "free" >/dev/null 2>&1; then :
4346
4347 else
4348 ac_cv_header_stdc=no
4349 fi
4350 rm -f conftest*
4351
4352 fi
4353
4354 if test $ac_cv_header_stdc = yes; then
4355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4356 if test "$cross_compiling" = yes; then :
4357 :
4358 else
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #include <ctype.h>
4362 #include <stdlib.h>
4363 #if ((' ' & 0x0FF) == 0x020)
4364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4366 #else
4367 # define ISLOWER(c) \
4368 (('a' <= (c) && (c) <= 'i') \
4369 || ('j' <= (c) && (c) <= 'r') \
4370 || ('s' <= (c) && (c) <= 'z'))
4371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4372 #endif
4373
4374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4375 int
4376 main ()
4377 {
4378 int i;
4379 for (i = 0; i < 256; i++)
4380 if (XOR (islower (i), ISLOWER (i))
4381 || toupper (i) != TOUPPER (i))
4382 return 2;
4383 return 0;
4384 }
4385 _ACEOF
4386 if ac_fn_c_try_run "$LINENO"; then :
4387
4388 else
4389 ac_cv_header_stdc=no
4390 fi
4391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4392 conftest.$ac_objext conftest.beam conftest.$ac_ext
4393 fi
4394
4395 fi
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4398 $as_echo "$ac_cv_header_stdc" >&6; }
4399 if test $ac_cv_header_stdc = yes; then
4400
4401 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4402
4403 fi
4404
4405 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4406 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4407 inttypes.h stdint.h unistd.h
4408 do :
4409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4410 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4411 "
4412 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4413 cat >>confdefs.h <<_ACEOF
4414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4415 _ACEOF
4416
4417 fi
4418
4419 done
4420
4421
4422
4423 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4424 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4425 MINIX=yes
4426 else
4427 MINIX=
4428 fi
4429
4430
4431 if test "$MINIX" = yes; then
4432
4433 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4434
4435
4436 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4437
4438
4439 $as_echo "#define _MINIX 1" >>confdefs.h
4440
4441 fi
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4445 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4446 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451
4452 # define __EXTENSIONS__ 1
4453 $ac_includes_default
4454 int
4455 main ()
4456 {
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 ac_cv_safe_to_define___extensions__=yes
4464 else
4465 ac_cv_safe_to_define___extensions__=no
4466 fi
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4470 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4471 test $ac_cv_safe_to_define___extensions__ = yes &&
4472 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4473
4474 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4475
4476 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4477
4478 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4479
4480 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4481
4482
4483
4484 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4497 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4498 if ${ac_cv_prog_cc_c99+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 ac_cv_prog_cc_c99=no
4502 ac_save_CC=$CC
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <stdarg.h>
4506 #include <stdbool.h>
4507 #include <stdlib.h>
4508 #include <wchar.h>
4509 #include <stdio.h>
4510
4511 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4512 #define debug(...) fprintf (stderr, __VA_ARGS__)
4513 #define showlist(...) puts (#__VA_ARGS__)
4514 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4515 static void
4516 test_varargs_macros (void)
4517 {
4518 int x = 1234;
4519 int y = 5678;
4520 debug ("Flag");
4521 debug ("X = %d\n", x);
4522 showlist (The first, second, and third items.);
4523 report (x>y, "x is %d but y is %d", x, y);
4524 }
4525
4526 // Check long long types.
4527 #define BIG64 18446744073709551615ull
4528 #define BIG32 4294967295ul
4529 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4530 #if !BIG_OK
4531 your preprocessor is broken;
4532 #endif
4533 #if BIG_OK
4534 #else
4535 your preprocessor is broken;
4536 #endif
4537 static long long int bignum = -9223372036854775807LL;
4538 static unsigned long long int ubignum = BIG64;
4539
4540 struct incomplete_array
4541 {
4542 int datasize;
4543 double data[];
4544 };
4545
4546 struct named_init {
4547 int number;
4548 const wchar_t *name;
4549 double average;
4550 };
4551
4552 typedef const char *ccp;
4553
4554 static inline int
4555 test_restrict (ccp restrict text)
4556 {
4557 // See if C++-style comments work.
4558 // Iterate through items via the restricted pointer.
4559 // Also check for declarations in for loops.
4560 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4561 continue;
4562 return 0;
4563 }
4564
4565 // Check varargs and va_copy.
4566 static void
4567 test_varargs (const char *format, ...)
4568 {
4569 va_list args;
4570 va_start (args, format);
4571 va_list args_copy;
4572 va_copy (args_copy, args);
4573
4574 const char *str;
4575 int number;
4576 float fnumber;
4577
4578 while (*format)
4579 {
4580 switch (*format++)
4581 {
4582 case 's': // string
4583 str = va_arg (args_copy, const char *);
4584 break;
4585 case 'd': // int
4586 number = va_arg (args_copy, int);
4587 break;
4588 case 'f': // float
4589 fnumber = va_arg (args_copy, double);
4590 break;
4591 default:
4592 break;
4593 }
4594 }
4595 va_end (args_copy);
4596 va_end (args);
4597 }
4598
4599 int
4600 main ()
4601 {
4602
4603 // Check bool.
4604 _Bool success = false;
4605
4606 // Check restrict.
4607 if (test_restrict ("String literal") == 0)
4608 success = true;
4609 char *restrict newvar = "Another string";
4610
4611 // Check varargs.
4612 test_varargs ("s, d' f .", "string", 65, 34.234);
4613 test_varargs_macros ();
4614
4615 // Check flexible array members.
4616 struct incomplete_array *ia =
4617 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4618 ia->datasize = 10;
4619 for (int i = 0; i < ia->datasize; ++i)
4620 ia->data[i] = i * 1.234;
4621
4622 // Check named initializers.
4623 struct named_init ni = {
4624 .number = 34,
4625 .name = L"Test wide string",
4626 .average = 543.34343,
4627 };
4628
4629 ni.number = 58;
4630
4631 int dynamic_array[ni.number];
4632 dynamic_array[ni.number - 1] = 543;
4633
4634 // work around unused variable warnings
4635 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4636 || dynamic_array[ni.number - 1] != 543);
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4643 do
4644 CC="$ac_save_CC $ac_arg"
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_prog_cc_c99=$ac_arg
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext
4649 test "x$ac_cv_prog_cc_c99" != "xno" && break
4650 done
4651 rm -f conftest.$ac_ext
4652 CC=$ac_save_CC
4653
4654 fi
4655 # AC_CACHE_VAL
4656 case "x$ac_cv_prog_cc_c99" in
4657 x)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4659 $as_echo "none needed" >&6; } ;;
4660 xno)
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4662 $as_echo "unsupported" >&6; } ;;
4663 *)
4664 CC="$CC $ac_cv_prog_cc_c99"
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4666 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4667 esac
4668 if test "x$ac_cv_prog_cc_c99" != xno; then :
4669
4670 fi
4671
4672
4673
4674
4675
4676
4677 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4678 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4679 CLANGCC="yes"
4680 else
4681 CLANGCC="no"
4682 fi
4683
4684 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4685 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4686 INTELCC="yes"
4687 else
4688 INTELCC="no"
4689 fi
4690
4691 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4692 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4693 SUNCC="yes"
4694 else
4695 SUNCC="no"
4696 fi
4697
4698
4699
4700
4701 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4704 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 case $PKG_CONFIG in
4711 [\\/]* | ?:[\\/]*)
4712 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4713 ;;
4714 *)
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730 ;;
4731 esac
4732 fi
4733 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4734 if test -n "$PKG_CONFIG"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4736 $as_echo "$PKG_CONFIG" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742
4743 fi
4744 if test -z "$ac_cv_path_PKG_CONFIG"; then
4745 ac_pt_PKG_CONFIG=$PKG_CONFIG
4746 # Extract the first word of "pkg-config", so it can be a program name with args.
4747 set dummy pkg-config; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 case $ac_pt_PKG_CONFIG in
4754 [\\/]* | ?:[\\/]*)
4755 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4756 ;;
4757 *)
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4768 fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773 ;;
4774 esac
4775 fi
4776 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4777 if test -n "$ac_pt_PKG_CONFIG"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4779 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784
4785 if test "x$ac_pt_PKG_CONFIG" = x; then
4786 PKG_CONFIG=""
4787 else
4788 case $cross_compiling:$ac_tool_warned in
4789 yes:)
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4792 ac_tool_warned=yes ;;
4793 esac
4794 PKG_CONFIG=$ac_pt_PKG_CONFIG
4795 fi
4796 else
4797 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4798 fi
4799
4800 fi
4801 if test -n "$PKG_CONFIG"; then
4802 _pkg_min_version=0.9.0
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4804 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4805 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4807 $as_echo "yes" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 PKG_CONFIG=""
4812 fi
4813
4814 fi
4815 # Make sure we can run config.sub.
4816 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4817 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4820 $as_echo_n "checking build system type... " >&6; }
4821 if ${ac_cv_build+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 ac_build_alias=$build_alias
4825 test "x$ac_build_alias" = x &&
4826 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4827 test "x$ac_build_alias" = x &&
4828 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4829 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4830 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4831
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4834 $as_echo "$ac_cv_build" >&6; }
4835 case $ac_cv_build in
4836 *-*-*) ;;
4837 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4838 esac
4839 build=$ac_cv_build
4840 ac_save_IFS=$IFS; IFS='-'
4841 set x $ac_cv_build
4842 shift
4843 build_cpu=$1
4844 build_vendor=$2
4845 shift; shift
4846 # Remember, the first character of IFS is used to create $*,
4847 # except with old shells:
4848 build_os=$*
4849 IFS=$ac_save_IFS
4850 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4854 $as_echo_n "checking host system type... " >&6; }
4855 if ${ac_cv_host+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test "x$host_alias" = x; then
4859 ac_cv_host=$ac_cv_build
4860 else
4861 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4862 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4863 fi
4864
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4867 $as_echo "$ac_cv_host" >&6; }
4868 case $ac_cv_host in
4869 *-*-*) ;;
4870 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4871 esac
4872 host=$ac_cv_host
4873 ac_save_IFS=$IFS; IFS='-'
4874 set x $ac_cv_host
4875 shift
4876 host_cpu=$1
4877 host_vendor=$2
4878 shift; shift
4879 # Remember, the first character of IFS is used to create $*,
4880 # except with old shells:
4881 host_os=$*
4882 IFS=$ac_save_IFS
4883 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4887 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4888 if ${ac_cv_path_SED+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4892 for ac_i in 1 2 3 4 5 6 7; do
4893 ac_script="$ac_script$as_nl$ac_script"
4894 done
4895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4896 { ac_script=; unset ac_script;}
4897 if test -z "$SED"; then
4898 ac_path_SED_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in sed gsed; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4908 as_fn_executable_p "$ac_path_SED" || continue
4909 # Check for GNU ac_path_SED and select it if it is found.
4910 # Check for GNU $ac_path_SED
4911 case `"$ac_path_SED" --version 2>&1` in
4912 *GNU*)
4913 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4914 *)
4915 ac_count=0
4916 $as_echo_n 0123456789 >"conftest.in"
4917 while :
4918 do
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo '' >> "conftest.nl"
4923 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_SED_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_SED="$ac_path_SED"
4929 ac_path_SED_max=$ac_count
4930 fi
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4933 done
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937 $ac_path_SED_found && break 3
4938 done
4939 done
4940 done
4941 IFS=$as_save_IFS
4942 if test -z "$ac_cv_path_SED"; then
4943 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4944 fi
4945 else
4946 ac_cv_path_SED=$SED
4947 fi
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4951 $as_echo "$ac_cv_path_SED" >&6; }
4952 SED="$ac_cv_path_SED"
4953 rm -f conftest.sed
4954
4955
4956
4957
4958
4959
4960 # Check whether --enable-selective-werror was given.
4961 if test "${enable_selective_werror+set}" = set; then :
4962 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4963 else
4964 SELECTIVE_WERROR=yes
4965 fi
4966
4967
4968
4969
4970
4971 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4972 if test "x$SUNCC" = "xyes"; then
4973 BASE_CFLAGS="-v"
4974 else
4975 BASE_CFLAGS=""
4976 fi
4977
4978 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 xorg_testset_save_CFLAGS="$CFLAGS"
4993
4994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 int i;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 xorg_cv_cc_flag_unknown_warning_option=yes
5007 else
5008 xorg_cv_cc_flag_unknown_warning_option=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5015 CFLAGS="$xorg_testset_save_CFLAGS"
5016 fi
5017
5018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021 fi
5022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 int i;
5031 _ACEOF
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033 xorg_cv_cc_flag_unused_command_line_argument=yes
5034 else
5035 xorg_cv_cc_flag_unused_command_line_argument=no
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5042 CFLAGS="$xorg_testset_save_CFLAGS"
5043 fi
5044
5045 found="no"
5046
5047 if test $found = "no" ; then
5048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050 fi
5051
5052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5054 fi
5055
5056 CFLAGS="$CFLAGS -Wall"
5057
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5059 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5060 cacheid=xorg_cv_cc_flag__Wall
5061 if eval \${$cacheid+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 int i;
5067 int
5068 main ()
5069 {
5070
5071 ;
5072 return 0;
5073 }
5074 _ACEOF
5075 if ac_fn_c_try_link "$LINENO"; then :
5076 eval $cacheid=yes
5077 else
5078 eval $cacheid=no
5079 fi
5080 rm -f core conftest.err conftest.$ac_objext \
5081 conftest$ac_exeext conftest.$ac_ext
5082 fi
5083
5084
5085 CFLAGS="$xorg_testset_save_CFLAGS"
5086
5087 eval supported=\$$cacheid
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5089 $as_echo "$supported" >&6; }
5090 if test "$supported" = "yes" ; then
5091 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5092 found="yes"
5093 fi
5094 fi
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 xorg_testset_save_CFLAGS="$CFLAGS"
5111
5112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int i;
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124 xorg_cv_cc_flag_unknown_warning_option=yes
5125 else
5126 xorg_cv_cc_flag_unknown_warning_option=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5133 CFLAGS="$xorg_testset_save_CFLAGS"
5134 fi
5135
5136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139 fi
5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 int i;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 xorg_cv_cc_flag_unused_command_line_argument=yes
5152 else
5153 xorg_cv_cc_flag_unused_command_line_argument=no
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5160 CFLAGS="$xorg_testset_save_CFLAGS"
5161 fi
5162
5163 found="no"
5164
5165 if test $found = "no" ; then
5166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168 fi
5169
5170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5172 fi
5173
5174 CFLAGS="$CFLAGS -Wpointer-arith"
5175
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5177 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5178 cacheid=xorg_cv_cc_flag__Wpointer_arith
5179 if eval \${$cacheid+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 int i;
5185 int
5186 main ()
5187 {
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_link "$LINENO"; then :
5194 eval $cacheid=yes
5195 else
5196 eval $cacheid=no
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext \
5199 conftest$ac_exeext conftest.$ac_ext
5200 fi
5201
5202
5203 CFLAGS="$xorg_testset_save_CFLAGS"
5204
5205 eval supported=\$$cacheid
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5207 $as_echo "$supported" >&6; }
5208 if test "$supported" = "yes" ; then
5209 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5210 found="yes"
5211 fi
5212 fi
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 xorg_testset_save_CFLAGS="$CFLAGS"
5229
5230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 int i;
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242 xorg_cv_cc_flag_unknown_warning_option=yes
5243 else
5244 xorg_cv_cc_flag_unknown_warning_option=no
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5251 CFLAGS="$xorg_testset_save_CFLAGS"
5252 fi
5253
5254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257 fi
5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 int i;
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 xorg_cv_cc_flag_unused_command_line_argument=yes
5270 else
5271 xorg_cv_cc_flag_unused_command_line_argument=no
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5278 CFLAGS="$xorg_testset_save_CFLAGS"
5279 fi
5280
5281 found="no"
5282
5283 if test $found = "no" ; then
5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286 fi
5287
5288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5290 fi
5291
5292 CFLAGS="$CFLAGS -Wmissing-declarations"
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5295 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5296 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5297 if eval \${$cacheid+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 int i;
5303 int
5304 main ()
5305 {
5306
5307 ;
5308 return 0;
5309 }
5310 _ACEOF
5311 if ac_fn_c_try_link "$LINENO"; then :
5312 eval $cacheid=yes
5313 else
5314 eval $cacheid=no
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext \
5317 conftest$ac_exeext conftest.$ac_ext
5318 fi
5319
5320
5321 CFLAGS="$xorg_testset_save_CFLAGS"
5322
5323 eval supported=\$$cacheid
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5325 $as_echo "$supported" >&6; }
5326 if test "$supported" = "yes" ; then
5327 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5328 found="yes"
5329 fi
5330 fi
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 xorg_testset_save_CFLAGS="$CFLAGS"
5347
5348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 int i;
5358 _ACEOF
5359 if ac_fn_c_try_compile "$LINENO"; then :
5360 xorg_cv_cc_flag_unknown_warning_option=yes
5361 else
5362 xorg_cv_cc_flag_unknown_warning_option=no
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5369 CFLAGS="$xorg_testset_save_CFLAGS"
5370 fi
5371
5372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375 fi
5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 int i;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 xorg_cv_cc_flag_unused_command_line_argument=yes
5388 else
5389 xorg_cv_cc_flag_unused_command_line_argument=no
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5396 CFLAGS="$xorg_testset_save_CFLAGS"
5397 fi
5398
5399 found="no"
5400
5401 if test $found = "no" ; then
5402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 fi
5405
5406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408 fi
5409
5410 CFLAGS="$CFLAGS -Wformat=2"
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5413 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5414 cacheid=xorg_cv_cc_flag__Wformat_2
5415 if eval \${$cacheid+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 int i;
5421 int
5422 main ()
5423 {
5424
5425 ;
5426 return 0;
5427 }
5428 _ACEOF
5429 if ac_fn_c_try_link "$LINENO"; then :
5430 eval $cacheid=yes
5431 else
5432 eval $cacheid=no
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext \
5435 conftest$ac_exeext conftest.$ac_ext
5436 fi
5437
5438
5439 CFLAGS="$xorg_testset_save_CFLAGS"
5440
5441 eval supported=\$$cacheid
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5443 $as_echo "$supported" >&6; }
5444 if test "$supported" = "yes" ; then
5445 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5446 found="yes"
5447 fi
5448 fi
5449
5450 if test $found = "no" ; then
5451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5453 fi
5454
5455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457 fi
5458
5459 CFLAGS="$CFLAGS -Wformat"
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5462 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5463 cacheid=xorg_cv_cc_flag__Wformat
5464 if eval \${$cacheid+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 int i;
5470 int
5471 main ()
5472 {
5473
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_link "$LINENO"; then :
5479 eval $cacheid=yes
5480 else
5481 eval $cacheid=no
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485 fi
5486
5487
5488 CFLAGS="$xorg_testset_save_CFLAGS"
5489
5490 eval supported=\$$cacheid
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5492 $as_echo "$supported" >&6; }
5493 if test "$supported" = "yes" ; then
5494 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5495 found="yes"
5496 fi
5497 fi
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515 xorg_testset_save_CFLAGS="$CFLAGS"
5516
5517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5520 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5521 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 int i;
5527 _ACEOF
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 xorg_cv_cc_flag_unknown_warning_option=yes
5530 else
5531 xorg_cv_cc_flag_unknown_warning_option=no
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5536 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5538 CFLAGS="$xorg_testset_save_CFLAGS"
5539 fi
5540
5541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544 fi
5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5547 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5548 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 int i;
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 xorg_cv_cc_flag_unused_command_line_argument=yes
5557 else
5558 xorg_cv_cc_flag_unused_command_line_argument=no
5559 fi
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5563 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5565 CFLAGS="$xorg_testset_save_CFLAGS"
5566 fi
5567
5568 found="no"
5569
5570 if test $found = "no" ; then
5571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573 fi
5574
5575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5577 fi
5578
5579 CFLAGS="$CFLAGS -Wstrict-prototypes"
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5582 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5583 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5584 if eval \${$cacheid+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 int i;
5590 int
5591 main ()
5592 {
5593
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 if ac_fn_c_try_link "$LINENO"; then :
5599 eval $cacheid=yes
5600 else
5601 eval $cacheid=no
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605 fi
5606
5607
5608 CFLAGS="$xorg_testset_save_CFLAGS"
5609
5610 eval supported=\$$cacheid
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5612 $as_echo "$supported" >&6; }
5613 if test "$supported" = "yes" ; then
5614 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5615 found="yes"
5616 fi
5617 fi
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 xorg_testset_save_CFLAGS="$CFLAGS"
5634
5635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5638 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5639 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 int i;
5645 _ACEOF
5646 if ac_fn_c_try_compile "$LINENO"; then :
5647 xorg_cv_cc_flag_unknown_warning_option=yes
5648 else
5649 xorg_cv_cc_flag_unknown_warning_option=no
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5654 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5656 CFLAGS="$xorg_testset_save_CFLAGS"
5657 fi
5658
5659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662 fi
5663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5665 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5666 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 int i;
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 xorg_cv_cc_flag_unused_command_line_argument=yes
5675 else
5676 xorg_cv_cc_flag_unused_command_line_argument=no
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5681 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5683 CFLAGS="$xorg_testset_save_CFLAGS"
5684 fi
5685
5686 found="no"
5687
5688 if test $found = "no" ; then
5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691 fi
5692
5693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5695 fi
5696
5697 CFLAGS="$CFLAGS -Wmissing-prototypes"
5698
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5700 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5701 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5702 if eval \${$cacheid+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 int i;
5708 int
5709 main ()
5710 {
5711
5712 ;
5713 return 0;
5714 }
5715 _ACEOF
5716 if ac_fn_c_try_link "$LINENO"; then :
5717 eval $cacheid=yes
5718 else
5719 eval $cacheid=no
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext
5723 fi
5724
5725
5726 CFLAGS="$xorg_testset_save_CFLAGS"
5727
5728 eval supported=\$$cacheid
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5730 $as_echo "$supported" >&6; }
5731 if test "$supported" = "yes" ; then
5732 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5733 found="yes"
5734 fi
5735 fi
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 xorg_testset_save_CFLAGS="$CFLAGS"
5752
5753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5756 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5757 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 xorg_cv_cc_flag_unknown_warning_option=yes
5766 else
5767 xorg_cv_cc_flag_unknown_warning_option=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5772 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5774 CFLAGS="$xorg_testset_save_CFLAGS"
5775 fi
5776
5777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780 fi
5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5783 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5784 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 int i;
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792 xorg_cv_cc_flag_unused_command_line_argument=yes
5793 else
5794 xorg_cv_cc_flag_unused_command_line_argument=no
5795 fi
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5799 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5801 CFLAGS="$xorg_testset_save_CFLAGS"
5802 fi
5803
5804 found="no"
5805
5806 if test $found = "no" ; then
5807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5809 fi
5810
5811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5813 fi
5814
5815 CFLAGS="$CFLAGS -Wnested-externs"
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5818 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5819 cacheid=xorg_cv_cc_flag__Wnested_externs
5820 if eval \${$cacheid+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 int i;
5826 int
5827 main ()
5828 {
5829
5830 ;
5831 return 0;
5832 }
5833 _ACEOF
5834 if ac_fn_c_try_link "$LINENO"; then :
5835 eval $cacheid=yes
5836 else
5837 eval $cacheid=no
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext \
5840 conftest$ac_exeext conftest.$ac_ext
5841 fi
5842
5843
5844 CFLAGS="$xorg_testset_save_CFLAGS"
5845
5846 eval supported=\$$cacheid
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5848 $as_echo "$supported" >&6; }
5849 if test "$supported" = "yes" ; then
5850 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5851 found="yes"
5852 fi
5853 fi
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869 xorg_testset_save_CFLAGS="$CFLAGS"
5870
5871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5874 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5875 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 int i;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 xorg_cv_cc_flag_unknown_warning_option=yes
5884 else
5885 xorg_cv_cc_flag_unknown_warning_option=no
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5890 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5892 CFLAGS="$xorg_testset_save_CFLAGS"
5893 fi
5894
5895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898 fi
5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5901 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5902 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 int i;
5908 _ACEOF
5909 if ac_fn_c_try_compile "$LINENO"; then :
5910 xorg_cv_cc_flag_unused_command_line_argument=yes
5911 else
5912 xorg_cv_cc_flag_unused_command_line_argument=no
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5917 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5919 CFLAGS="$xorg_testset_save_CFLAGS"
5920 fi
5921
5922 found="no"
5923
5924 if test $found = "no" ; then
5925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5927 fi
5928
5929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5931 fi
5932
5933 CFLAGS="$CFLAGS -Wbad-function-cast"
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5936 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5937 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5938 if eval \${$cacheid+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 int i;
5944 int
5945 main ()
5946 {
5947
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 if ac_fn_c_try_link "$LINENO"; then :
5953 eval $cacheid=yes
5954 else
5955 eval $cacheid=no
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext \
5958 conftest$ac_exeext conftest.$ac_ext
5959 fi
5960
5961
5962 CFLAGS="$xorg_testset_save_CFLAGS"
5963
5964 eval supported=\$$cacheid
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5966 $as_echo "$supported" >&6; }
5967 if test "$supported" = "yes" ; then
5968 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5969 found="yes"
5970 fi
5971 fi
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 xorg_testset_save_CFLAGS="$CFLAGS"
5988
5989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5992 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5993 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 int i;
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001 xorg_cv_cc_flag_unknown_warning_option=yes
6002 else
6003 xorg_cv_cc_flag_unknown_warning_option=no
6004 fi
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6008 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6010 CFLAGS="$xorg_testset_save_CFLAGS"
6011 fi
6012
6013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6016 fi
6017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6019 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6020 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 int i;
6026 _ACEOF
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028 xorg_cv_cc_flag_unused_command_line_argument=yes
6029 else
6030 xorg_cv_cc_flag_unused_command_line_argument=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6035 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6037 CFLAGS="$xorg_testset_save_CFLAGS"
6038 fi
6039
6040 found="no"
6041
6042 if test $found = "no" ; then
6043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6045 fi
6046
6047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6049 fi
6050
6051 CFLAGS="$CFLAGS -Wold-style-definition"
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6054 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6055 cacheid=xorg_cv_cc_flag__Wold_style_definition
6056 if eval \${$cacheid+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 int i;
6062 int
6063 main ()
6064 {
6065
6066 ;
6067 return 0;
6068 }
6069 _ACEOF
6070 if ac_fn_c_try_link "$LINENO"; then :
6071 eval $cacheid=yes
6072 else
6073 eval $cacheid=no
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext \
6076 conftest$ac_exeext conftest.$ac_ext
6077 fi
6078
6079
6080 CFLAGS="$xorg_testset_save_CFLAGS"
6081
6082 eval supported=\$$cacheid
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6084 $as_echo "$supported" >&6; }
6085 if test "$supported" = "yes" ; then
6086 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6087 found="yes"
6088 fi
6089 fi
6090
6091 if test $found = "no" ; then
6092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094 fi
6095
6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6098 fi
6099
6100 CFLAGS="$CFLAGS -fd"
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6103 $as_echo_n "checking if $CC supports -fd... " >&6; }
6104 cacheid=xorg_cv_cc_flag__fd
6105 if eval \${$cacheid+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 int
6112 main ()
6113 {
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"; then :
6120 eval $cacheid=yes
6121 else
6122 eval $cacheid=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126 fi
6127
6128
6129 CFLAGS="$xorg_testset_save_CFLAGS"
6130
6131 eval supported=\$$cacheid
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6133 $as_echo "$supported" >&6; }
6134 if test "$supported" = "yes" ; then
6135 BASE_CFLAGS="$BASE_CFLAGS -fd"
6136 found="yes"
6137 fi
6138 fi
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 xorg_testset_save_CFLAGS="$CFLAGS"
6155
6156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 int i;
6166 _ACEOF
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 xorg_cv_cc_flag_unknown_warning_option=yes
6169 else
6170 xorg_cv_cc_flag_unknown_warning_option=no
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6177 CFLAGS="$xorg_testset_save_CFLAGS"
6178 fi
6179
6180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183 fi
6184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 int i;
6193 _ACEOF
6194 if ac_fn_c_try_compile "$LINENO"; then :
6195 xorg_cv_cc_flag_unused_command_line_argument=yes
6196 else
6197 xorg_cv_cc_flag_unused_command_line_argument=no
6198 fi
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6204 CFLAGS="$xorg_testset_save_CFLAGS"
6205 fi
6206
6207 found="no"
6208
6209 if test $found = "no" ; then
6210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212 fi
6213
6214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216 fi
6217
6218 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6221 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6222 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6223 if eval \${$cacheid+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 int
6230 main ()
6231 {
6232
6233 ;
6234 return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_link "$LINENO"; then :
6238 eval $cacheid=yes
6239 else
6240 eval $cacheid=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext \
6243 conftest$ac_exeext conftest.$ac_ext
6244 fi
6245
6246
6247 CFLAGS="$xorg_testset_save_CFLAGS"
6248
6249 eval supported=\$$cacheid
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6251 $as_echo "$supported" >&6; }
6252 if test "$supported" = "yes" ; then
6253 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6254 found="yes"
6255 fi
6256 fi
6257
6258
6259
6260
6261
6262 # This chunk adds additional warnings that could catch undesired effects.
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276 xorg_testset_save_CFLAGS="$CFLAGS"
6277
6278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 int i;
6288 _ACEOF
6289 if ac_fn_c_try_compile "$LINENO"; then :
6290 xorg_cv_cc_flag_unknown_warning_option=yes
6291 else
6292 xorg_cv_cc_flag_unknown_warning_option=no
6293 fi
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6299 CFLAGS="$xorg_testset_save_CFLAGS"
6300 fi
6301
6302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305 fi
6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 int i;
6315 _ACEOF
6316 if ac_fn_c_try_compile "$LINENO"; then :
6317 xorg_cv_cc_flag_unused_command_line_argument=yes
6318 else
6319 xorg_cv_cc_flag_unused_command_line_argument=no
6320 fi
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6326 CFLAGS="$xorg_testset_save_CFLAGS"
6327 fi
6328
6329 found="no"
6330
6331 if test $found = "no" ; then
6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 fi
6335
6336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338 fi
6339
6340 CFLAGS="$CFLAGS -Wunused"
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6343 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6344 cacheid=xorg_cv_cc_flag__Wunused
6345 if eval \${$cacheid+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 int i;
6351 int
6352 main ()
6353 {
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_link "$LINENO"; then :
6360 eval $cacheid=yes
6361 else
6362 eval $cacheid=no
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366 fi
6367
6368
6369 CFLAGS="$xorg_testset_save_CFLAGS"
6370
6371 eval supported=\$$cacheid
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6373 $as_echo "$supported" >&6; }
6374 if test "$supported" = "yes" ; then
6375 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6376 found="yes"
6377 fi
6378 fi
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394 xorg_testset_save_CFLAGS="$CFLAGS"
6395
6396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 int i;
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 xorg_cv_cc_flag_unknown_warning_option=yes
6409 else
6410 xorg_cv_cc_flag_unknown_warning_option=no
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6417 CFLAGS="$xorg_testset_save_CFLAGS"
6418 fi
6419
6420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423 fi
6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 int i;
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 xorg_cv_cc_flag_unused_command_line_argument=yes
6436 else
6437 xorg_cv_cc_flag_unused_command_line_argument=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6444 CFLAGS="$xorg_testset_save_CFLAGS"
6445 fi
6446
6447 found="no"
6448
6449 if test $found = "no" ; then
6450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452 fi
6453
6454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456 fi
6457
6458 CFLAGS="$CFLAGS -Wuninitialized"
6459
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6461 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6462 cacheid=xorg_cv_cc_flag__Wuninitialized
6463 if eval \${$cacheid+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 int i;
6469 int
6470 main ()
6471 {
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_link "$LINENO"; then :
6478 eval $cacheid=yes
6479 else
6480 eval $cacheid=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6484 fi
6485
6486
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6488
6489 eval supported=\$$cacheid
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6491 $as_echo "$supported" >&6; }
6492 if test "$supported" = "yes" ; then
6493 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6494 found="yes"
6495 fi
6496 fi
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 xorg_testset_save_CFLAGS="$CFLAGS"
6513
6514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6517 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6518 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 int i;
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 xorg_cv_cc_flag_unknown_warning_option=yes
6527 else
6528 xorg_cv_cc_flag_unknown_warning_option=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6533 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6536 fi
6537
6538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6541 fi
6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6544 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6545 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550 int i;
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553 xorg_cv_cc_flag_unused_command_line_argument=yes
6554 else
6555 xorg_cv_cc_flag_unused_command_line_argument=no
6556 fi
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6560 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6562 CFLAGS="$xorg_testset_save_CFLAGS"
6563 fi
6564
6565 found="no"
6566
6567 if test $found = "no" ; then
6568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570 fi
6571
6572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6574 fi
6575
6576 CFLAGS="$CFLAGS -Wshadow"
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6579 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6580 cacheid=xorg_cv_cc_flag__Wshadow
6581 if eval \${$cacheid+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586 int i;
6587 int
6588 main ()
6589 {
6590
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_link "$LINENO"; then :
6596 eval $cacheid=yes
6597 else
6598 eval $cacheid=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6602 fi
6603
6604
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6606
6607 eval supported=\$$cacheid
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6609 $as_echo "$supported" >&6; }
6610 if test "$supported" = "yes" ; then
6611 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6612 found="yes"
6613 fi
6614 fi
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630 xorg_testset_save_CFLAGS="$CFLAGS"
6631
6632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6635 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6636 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 int i;
6642 _ACEOF
6643 if ac_fn_c_try_compile "$LINENO"; then :
6644 xorg_cv_cc_flag_unknown_warning_option=yes
6645 else
6646 xorg_cv_cc_flag_unknown_warning_option=no
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 fi
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6651 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6653 CFLAGS="$xorg_testset_save_CFLAGS"
6654 fi
6655
6656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659 fi
6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6662 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6663 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 int i;
6669 _ACEOF
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671 xorg_cv_cc_flag_unused_command_line_argument=yes
6672 else
6673 xorg_cv_cc_flag_unused_command_line_argument=no
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6678 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6680 CFLAGS="$xorg_testset_save_CFLAGS"
6681 fi
6682
6683 found="no"
6684
6685 if test $found = "no" ; then
6686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688 fi
6689
6690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6692 fi
6693
6694 CFLAGS="$CFLAGS -Wmissing-noreturn"
6695
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6697 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6698 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6699 if eval \${$cacheid+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 int
6706 main ()
6707 {
6708
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"; then :
6714 eval $cacheid=yes
6715 else
6716 eval $cacheid=no
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 fi
6721
6722
6723 CFLAGS="$xorg_testset_save_CFLAGS"
6724
6725 eval supported=\$$cacheid
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6727 $as_echo "$supported" >&6; }
6728 if test "$supported" = "yes" ; then
6729 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6730 found="yes"
6731 fi
6732 fi
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748 xorg_testset_save_CFLAGS="$CFLAGS"
6749
6750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6754 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 int i;
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 xorg_cv_cc_flag_unknown_warning_option=yes
6763 else
6764 xorg_cv_cc_flag_unknown_warning_option=no
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6769 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6771 CFLAGS="$xorg_testset_save_CFLAGS"
6772 fi
6773
6774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777 fi
6778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6780 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6781 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 int i;
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789 xorg_cv_cc_flag_unused_command_line_argument=yes
6790 else
6791 xorg_cv_cc_flag_unused_command_line_argument=no
6792 fi
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 fi
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6796 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6798 CFLAGS="$xorg_testset_save_CFLAGS"
6799 fi
6800
6801 found="no"
6802
6803 if test $found = "no" ; then
6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 fi
6807
6808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6810 fi
6811
6812 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6813
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6815 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6816 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6817 if eval \${$cacheid+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 int i;
6823 int
6824 main ()
6825 {
6826
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832 eval $cacheid=yes
6833 else
6834 eval $cacheid=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838 fi
6839
6840
6841 CFLAGS="$xorg_testset_save_CFLAGS"
6842
6843 eval supported=\$$cacheid
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6845 $as_echo "$supported" >&6; }
6846 if test "$supported" = "yes" ; then
6847 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6848 found="yes"
6849 fi
6850 fi
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866 xorg_testset_save_CFLAGS="$CFLAGS"
6867
6868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6871 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6872 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 int i;
6878 _ACEOF
6879 if ac_fn_c_try_compile "$LINENO"; then :
6880 xorg_cv_cc_flag_unknown_warning_option=yes
6881 else
6882 xorg_cv_cc_flag_unknown_warning_option=no
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 fi
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6887 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6889 CFLAGS="$xorg_testset_save_CFLAGS"
6890 fi
6891
6892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6895 fi
6896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6898 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6899 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 int i;
6905 _ACEOF
6906 if ac_fn_c_try_compile "$LINENO"; then :
6907 xorg_cv_cc_flag_unused_command_line_argument=yes
6908 else
6909 xorg_cv_cc_flag_unused_command_line_argument=no
6910 fi
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 fi
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6914 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6916 CFLAGS="$xorg_testset_save_CFLAGS"
6917 fi
6918
6919 found="no"
6920
6921 if test $found = "no" ; then
6922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924 fi
6925
6926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6928 fi
6929
6930 CFLAGS="$CFLAGS -Wredundant-decls"
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6933 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6934 cacheid=xorg_cv_cc_flag__Wredundant_decls
6935 if eval \${$cacheid+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int i;
6941 int
6942 main ()
6943 {
6944
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 eval $cacheid=yes
6951 else
6952 eval $cacheid=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
6956 fi
6957
6958
6959 CFLAGS="$xorg_testset_save_CFLAGS"
6960
6961 eval supported=\$$cacheid
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6963 $as_echo "$supported" >&6; }
6964 if test "$supported" = "yes" ; then
6965 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6966 found="yes"
6967 fi
6968 fi
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984 xorg_testset_save_CFLAGS="$CFLAGS"
6985
6986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6989 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6990 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 int i;
6996 _ACEOF
6997 if ac_fn_c_try_compile "$LINENO"; then :
6998 xorg_cv_cc_flag_unknown_warning_option=yes
6999 else
7000 xorg_cv_cc_flag_unknown_warning_option=no
7001 fi
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7005 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7007 CFLAGS="$xorg_testset_save_CFLAGS"
7008 fi
7009
7010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7013 fi
7014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7016 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7017 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 int i;
7023 _ACEOF
7024 if ac_fn_c_try_compile "$LINENO"; then :
7025 xorg_cv_cc_flag_unused_command_line_argument=yes
7026 else
7027 xorg_cv_cc_flag_unused_command_line_argument=no
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7032 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7034 CFLAGS="$xorg_testset_save_CFLAGS"
7035 fi
7036
7037 found="no"
7038
7039 if test $found = "no" ; then
7040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7042 fi
7043
7044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7046 fi
7047
7048 CFLAGS="$CFLAGS -Wlogical-op"
7049
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7051 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7052 cacheid=xorg_cv_cc_flag__Wlogical_op
7053 if eval \${$cacheid+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 int i;
7059 int
7060 main ()
7061 {
7062
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"; then :
7068 eval $cacheid=yes
7069 else
7070 eval $cacheid=no
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7074 fi
7075
7076
7077 CFLAGS="$xorg_testset_save_CFLAGS"
7078
7079 eval supported=\$$cacheid
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7081 $as_echo "$supported" >&6; }
7082 if test "$supported" = "yes" ; then
7083 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7084 found="yes"
7085 fi
7086 fi
7087
7088
7089
7090 # These are currently disabled because they are noisy. They will be enabled
7091 # in the future once the codebase is sufficiently modernized to silence
7092 # them. For now, I don't want them to drown out the other warnings.
7093 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7094 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7095 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7096
7097 # Turn some warnings into errors, so we don't accidently get successful builds
7098 # when there are problems that should be fixed.
7099
7100 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114 xorg_testset_save_CFLAGS="$CFLAGS"
7115
7116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7119 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7120 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 int i;
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128 xorg_cv_cc_flag_unknown_warning_option=yes
7129 else
7130 xorg_cv_cc_flag_unknown_warning_option=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7135 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7137 CFLAGS="$xorg_testset_save_CFLAGS"
7138 fi
7139
7140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143 fi
7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7146 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7147 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 int i;
7153 _ACEOF
7154 if ac_fn_c_try_compile "$LINENO"; then :
7155 xorg_cv_cc_flag_unused_command_line_argument=yes
7156 else
7157 xorg_cv_cc_flag_unused_command_line_argument=no
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7162 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7164 CFLAGS="$xorg_testset_save_CFLAGS"
7165 fi
7166
7167 found="no"
7168
7169 if test $found = "no" ; then
7170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7172 fi
7173
7174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7176 fi
7177
7178 CFLAGS="$CFLAGS -Werror=implicit"
7179
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7181 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7182 cacheid=xorg_cv_cc_flag__Werror_implicit
7183 if eval \${$cacheid+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 int i;
7189 int
7190 main ()
7191 {
7192
7193 ;
7194 return 0;
7195 }
7196 _ACEOF
7197 if ac_fn_c_try_link "$LINENO"; then :
7198 eval $cacheid=yes
7199 else
7200 eval $cacheid=no
7201 fi
7202 rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 fi
7205
7206
7207 CFLAGS="$xorg_testset_save_CFLAGS"
7208
7209 eval supported=\$$cacheid
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7211 $as_echo "$supported" >&6; }
7212 if test "$supported" = "yes" ; then
7213 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7214 found="yes"
7215 fi
7216 fi
7217
7218 if test $found = "no" ; then
7219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221 fi
7222
7223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7225 fi
7226
7227 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7230 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7231 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7232 if eval \${$cacheid+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 int i;
7238 int
7239 main ()
7240 {
7241
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_link "$LINENO"; then :
7247 eval $cacheid=yes
7248 else
7249 eval $cacheid=no
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext \
7252 conftest$ac_exeext conftest.$ac_ext
7253 fi
7254
7255
7256 CFLAGS="$xorg_testset_save_CFLAGS"
7257
7258 eval supported=\$$cacheid
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7260 $as_echo "$supported" >&6; }
7261 if test "$supported" = "yes" ; then
7262 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7263 found="yes"
7264 fi
7265 fi
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281 xorg_testset_save_CFLAGS="$CFLAGS"
7282
7283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 int i;
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 xorg_cv_cc_flag_unknown_warning_option=yes
7296 else
7297 xorg_cv_cc_flag_unknown_warning_option=no
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7304 CFLAGS="$xorg_testset_save_CFLAGS"
7305 fi
7306
7307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310 fi
7311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 int i;
7320 _ACEOF
7321 if ac_fn_c_try_compile "$LINENO"; then :
7322 xorg_cv_cc_flag_unused_command_line_argument=yes
7323 else
7324 xorg_cv_cc_flag_unused_command_line_argument=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7331 CFLAGS="$xorg_testset_save_CFLAGS"
7332 fi
7333
7334 found="no"
7335
7336 if test $found = "no" ; then
7337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339 fi
7340
7341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7343 fi
7344
7345 CFLAGS="$CFLAGS -Werror=nonnull"
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7348 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7349 cacheid=xorg_cv_cc_flag__Werror_nonnull
7350 if eval \${$cacheid+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 int i;
7356 int
7357 main ()
7358 {
7359
7360 ;
7361 return 0;
7362 }
7363 _ACEOF
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 eval $cacheid=yes
7366 else
7367 eval $cacheid=no
7368 fi
7369 rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext conftest.$ac_ext
7371 fi
7372
7373
7374 CFLAGS="$xorg_testset_save_CFLAGS"
7375
7376 eval supported=\$$cacheid
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7378 $as_echo "$supported" >&6; }
7379 if test "$supported" = "yes" ; then
7380 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7381 found="yes"
7382 fi
7383 fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 xorg_testset_save_CFLAGS="$CFLAGS"
7400
7401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 int i;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"; then :
7413 xorg_cv_cc_flag_unknown_warning_option=yes
7414 else
7415 xorg_cv_cc_flag_unknown_warning_option=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7423 fi
7424
7425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428 fi
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 int i;
7438 _ACEOF
7439 if ac_fn_c_try_compile "$LINENO"; then :
7440 xorg_cv_cc_flag_unused_command_line_argument=yes
7441 else
7442 xorg_cv_cc_flag_unused_command_line_argument=no
7443 fi
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7449 CFLAGS="$xorg_testset_save_CFLAGS"
7450 fi
7451
7452 found="no"
7453
7454 if test $found = "no" ; then
7455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7457 fi
7458
7459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7461 fi
7462
7463 CFLAGS="$CFLAGS -Werror=init-self"
7464
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7466 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7467 cacheid=xorg_cv_cc_flag__Werror_init_self
7468 if eval \${$cacheid+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 int i;
7474 int
7475 main ()
7476 {
7477
7478 ;
7479 return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483 eval $cacheid=yes
7484 else
7485 eval $cacheid=no
7486 fi
7487 rm -f core conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 fi
7490
7491
7492 CFLAGS="$xorg_testset_save_CFLAGS"
7493
7494 eval supported=\$$cacheid
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7496 $as_echo "$supported" >&6; }
7497 if test "$supported" = "yes" ; then
7498 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7499 found="yes"
7500 fi
7501 fi
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517 xorg_testset_save_CFLAGS="$CFLAGS"
7518
7519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7522 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7523 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 int i;
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531 xorg_cv_cc_flag_unknown_warning_option=yes
7532 else
7533 xorg_cv_cc_flag_unknown_warning_option=no
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7538 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7540 CFLAGS="$xorg_testset_save_CFLAGS"
7541 fi
7542
7543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546 fi
7547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7549 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7550 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 int i;
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 xorg_cv_cc_flag_unused_command_line_argument=yes
7559 else
7560 xorg_cv_cc_flag_unused_command_line_argument=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7565 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7567 CFLAGS="$xorg_testset_save_CFLAGS"
7568 fi
7569
7570 found="no"
7571
7572 if test $found = "no" ; then
7573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575 fi
7576
7577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7579 fi
7580
7581 CFLAGS="$CFLAGS -Werror=main"
7582
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7584 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7585 cacheid=xorg_cv_cc_flag__Werror_main
7586 if eval \${$cacheid+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 int i;
7592 int
7593 main ()
7594 {
7595
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"; then :
7601 eval $cacheid=yes
7602 else
7603 eval $cacheid=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607 fi
7608
7609
7610 CFLAGS="$xorg_testset_save_CFLAGS"
7611
7612 eval supported=\$$cacheid
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7614 $as_echo "$supported" >&6; }
7615 if test "$supported" = "yes" ; then
7616 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7617 found="yes"
7618 fi
7619 fi
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635 xorg_testset_save_CFLAGS="$CFLAGS"
7636
7637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7640 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7641 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 int i;
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 xorg_cv_cc_flag_unknown_warning_option=yes
7650 else
7651 xorg_cv_cc_flag_unknown_warning_option=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7656 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7658 CFLAGS="$xorg_testset_save_CFLAGS"
7659 fi
7660
7661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 fi
7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7667 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7668 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 int i;
7674 _ACEOF
7675 if ac_fn_c_try_compile "$LINENO"; then :
7676 xorg_cv_cc_flag_unused_command_line_argument=yes
7677 else
7678 xorg_cv_cc_flag_unused_command_line_argument=no
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7683 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7685 CFLAGS="$xorg_testset_save_CFLAGS"
7686 fi
7687
7688 found="no"
7689
7690 if test $found = "no" ; then
7691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7693 fi
7694
7695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7697 fi
7698
7699 CFLAGS="$CFLAGS -Werror=missing-braces"
7700
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7702 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7703 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7704 if eval \${$cacheid+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 int i;
7710 int
7711 main ()
7712 {
7713
7714 ;
7715 return 0;
7716 }
7717 _ACEOF
7718 if ac_fn_c_try_link "$LINENO"; then :
7719 eval $cacheid=yes
7720 else
7721 eval $cacheid=no
7722 fi
7723 rm -f core conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
7725 fi
7726
7727
7728 CFLAGS="$xorg_testset_save_CFLAGS"
7729
7730 eval supported=\$$cacheid
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7732 $as_echo "$supported" >&6; }
7733 if test "$supported" = "yes" ; then
7734 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7735 found="yes"
7736 fi
7737 fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 xorg_testset_save_CFLAGS="$CFLAGS"
7754
7755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7758 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7759 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 int i;
7765 _ACEOF
7766 if ac_fn_c_try_compile "$LINENO"; then :
7767 xorg_cv_cc_flag_unknown_warning_option=yes
7768 else
7769 xorg_cv_cc_flag_unknown_warning_option=no
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7774 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7776 CFLAGS="$xorg_testset_save_CFLAGS"
7777 fi
7778
7779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782 fi
7783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7785 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7786 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 int i;
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794 xorg_cv_cc_flag_unused_command_line_argument=yes
7795 else
7796 xorg_cv_cc_flag_unused_command_line_argument=no
7797 fi
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7801 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7803 CFLAGS="$xorg_testset_save_CFLAGS"
7804 fi
7805
7806 found="no"
7807
7808 if test $found = "no" ; then
7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811 fi
7812
7813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7815 fi
7816
7817 CFLAGS="$CFLAGS -Werror=sequence-point"
7818
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7820 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7821 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7822 if eval \${$cacheid+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 int i;
7828 int
7829 main ()
7830 {
7831
7832 ;
7833 return 0;
7834 }
7835 _ACEOF
7836 if ac_fn_c_try_link "$LINENO"; then :
7837 eval $cacheid=yes
7838 else
7839 eval $cacheid=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext \
7842 conftest$ac_exeext conftest.$ac_ext
7843 fi
7844
7845
7846 CFLAGS="$xorg_testset_save_CFLAGS"
7847
7848 eval supported=\$$cacheid
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7850 $as_echo "$supported" >&6; }
7851 if test "$supported" = "yes" ; then
7852 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7853 found="yes"
7854 fi
7855 fi
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 xorg_testset_save_CFLAGS="$CFLAGS"
7872
7873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7876 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7877 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7882 int i;
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885 xorg_cv_cc_flag_unknown_warning_option=yes
7886 else
7887 xorg_cv_cc_flag_unknown_warning_option=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 fi
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7892 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7894 CFLAGS="$xorg_testset_save_CFLAGS"
7895 fi
7896
7897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900 fi
7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7903 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7904 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 int i;
7910 _ACEOF
7911 if ac_fn_c_try_compile "$LINENO"; then :
7912 xorg_cv_cc_flag_unused_command_line_argument=yes
7913 else
7914 xorg_cv_cc_flag_unused_command_line_argument=no
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7919 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7921 CFLAGS="$xorg_testset_save_CFLAGS"
7922 fi
7923
7924 found="no"
7925
7926 if test $found = "no" ; then
7927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929 fi
7930
7931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7933 fi
7934
7935 CFLAGS="$CFLAGS -Werror=return-type"
7936
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7938 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7939 cacheid=xorg_cv_cc_flag__Werror_return_type
7940 if eval \${$cacheid+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 int i;
7946 int
7947 main ()
7948 {
7949
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 eval $cacheid=yes
7956 else
7957 eval $cacheid=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 fi
7962
7963
7964 CFLAGS="$xorg_testset_save_CFLAGS"
7965
7966 eval supported=\$$cacheid
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7968 $as_echo "$supported" >&6; }
7969 if test "$supported" = "yes" ; then
7970 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7971 found="yes"
7972 fi
7973 fi
7974
7975 if test $found = "no" ; then
7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 fi
7979
7980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982 fi
7983
7984 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7985
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7987 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7988 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7989 if eval \${$cacheid+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 int i;
7995 int
7996 main ()
7997 {
7998
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 eval $cacheid=yes
8005 else
8006 eval $cacheid=no
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 fi
8011
8012
8013 CFLAGS="$xorg_testset_save_CFLAGS"
8014
8015 eval supported=\$$cacheid
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8017 $as_echo "$supported" >&6; }
8018 if test "$supported" = "yes" ; then
8019 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8020 found="yes"
8021 fi
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 xorg_testset_save_CFLAGS="$CFLAGS"
8039
8040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8043 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8044 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 int i;
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 xorg_cv_cc_flag_unknown_warning_option=yes
8053 else
8054 xorg_cv_cc_flag_unknown_warning_option=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8062 fi
8063
8064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067 fi
8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 int i;
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 xorg_cv_cc_flag_unused_command_line_argument=yes
8080 else
8081 xorg_cv_cc_flag_unused_command_line_argument=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8086 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8088 CFLAGS="$xorg_testset_save_CFLAGS"
8089 fi
8090
8091 found="no"
8092
8093 if test $found = "no" ; then
8094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096 fi
8097
8098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8100 fi
8101
8102 CFLAGS="$CFLAGS -Werror=trigraphs"
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8105 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8106 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8107 if eval \${$cacheid+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 int
8114 main ()
8115 {
8116
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"; then :
8122 eval $cacheid=yes
8123 else
8124 eval $cacheid=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8128 fi
8129
8130
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133 eval supported=\$$cacheid
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135 $as_echo "$supported" >&6; }
8136 if test "$supported" = "yes" ; then
8137 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8138 found="yes"
8139 fi
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156 xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 int i;
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 xorg_cv_cc_flag_unknown_warning_option=yes
8171 else
8172 xorg_cv_cc_flag_unknown_warning_option=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8177 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8179 CFLAGS="$xorg_testset_save_CFLAGS"
8180 fi
8181
8182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185 fi
8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8188 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8189 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int i;
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 xorg_cv_cc_flag_unused_command_line_argument=yes
8198 else
8199 xorg_cv_cc_flag_unused_command_line_argument=no
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8204 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8206 CFLAGS="$xorg_testset_save_CFLAGS"
8207 fi
8208
8209 found="no"
8210
8211 if test $found = "no" ; then
8212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214 fi
8215
8216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8218 fi
8219
8220 CFLAGS="$CFLAGS -Werror=array-bounds"
8221
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8223 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8224 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8225 if eval \${$cacheid+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 int i;
8231 int
8232 main ()
8233 {
8234
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_link "$LINENO"; then :
8240 eval $cacheid=yes
8241 else
8242 eval $cacheid=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 fi
8247
8248
8249 CFLAGS="$xorg_testset_save_CFLAGS"
8250
8251 eval supported=\$$cacheid
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8253 $as_echo "$supported" >&6; }
8254 if test "$supported" = "yes" ; then
8255 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8256 found="yes"
8257 fi
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 xorg_testset_save_CFLAGS="$CFLAGS"
8275
8276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8279 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8280 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 int i;
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 xorg_cv_cc_flag_unknown_warning_option=yes
8289 else
8290 xorg_cv_cc_flag_unknown_warning_option=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8295 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8297 CFLAGS="$xorg_testset_save_CFLAGS"
8298 fi
8299
8300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303 fi
8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8306 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8307 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312 int i;
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"; then :
8315 xorg_cv_cc_flag_unused_command_line_argument=yes
8316 else
8317 xorg_cv_cc_flag_unused_command_line_argument=no
8318 fi
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8322 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8324 CFLAGS="$xorg_testset_save_CFLAGS"
8325 fi
8326
8327 found="no"
8328
8329 if test $found = "no" ; then
8330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332 fi
8333
8334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8336 fi
8337
8338 CFLAGS="$CFLAGS -Werror=write-strings"
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8341 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8342 cacheid=xorg_cv_cc_flag__Werror_write_strings
8343 if eval \${$cacheid+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 int i;
8349 int
8350 main ()
8351 {
8352
8353 ;
8354 return 0;
8355 }
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"; then :
8358 eval $cacheid=yes
8359 else
8360 eval $cacheid=no
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364 fi
8365
8366
8367 CFLAGS="$xorg_testset_save_CFLAGS"
8368
8369 eval supported=\$$cacheid
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8371 $as_echo "$supported" >&6; }
8372 if test "$supported" = "yes" ; then
8373 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8374 found="yes"
8375 fi
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392 xorg_testset_save_CFLAGS="$CFLAGS"
8393
8394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 int i;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 xorg_cv_cc_flag_unknown_warning_option=yes
8407 else
8408 xorg_cv_cc_flag_unknown_warning_option=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8413 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416 fi
8417
8418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 fi
8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8424 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8425 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 int i;
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433 xorg_cv_cc_flag_unused_command_line_argument=yes
8434 else
8435 xorg_cv_cc_flag_unused_command_line_argument=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8440 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443 fi
8444
8445 found="no"
8446
8447 if test $found = "no" ; then
8448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 fi
8451
8452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454 fi
8455
8456 CFLAGS="$CFLAGS -Werror=address"
8457
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8459 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8460 cacheid=xorg_cv_cc_flag__Werror_address
8461 if eval \${$cacheid+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 int i;
8467 int
8468 main ()
8469 {
8470
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 if ac_fn_c_try_link "$LINENO"; then :
8476 eval $cacheid=yes
8477 else
8478 eval $cacheid=no
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8482 fi
8483
8484
8485 CFLAGS="$xorg_testset_save_CFLAGS"
8486
8487 eval supported=\$$cacheid
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8489 $as_echo "$supported" >&6; }
8490 if test "$supported" = "yes" ; then
8491 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8492 found="yes"
8493 fi
8494 fi
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510 xorg_testset_save_CFLAGS="$CFLAGS"
8511
8512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8516 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 int i;
8522 _ACEOF
8523 if ac_fn_c_try_compile "$LINENO"; then :
8524 xorg_cv_cc_flag_unknown_warning_option=yes
8525 else
8526 xorg_cv_cc_flag_unknown_warning_option=no
8527 fi
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 fi
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8531 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8533 CFLAGS="$xorg_testset_save_CFLAGS"
8534 fi
8535
8536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539 fi
8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8542 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8543 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 int i;
8549 _ACEOF
8550 if ac_fn_c_try_compile "$LINENO"; then :
8551 xorg_cv_cc_flag_unused_command_line_argument=yes
8552 else
8553 xorg_cv_cc_flag_unused_command_line_argument=no
8554 fi
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8558 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8560 CFLAGS="$xorg_testset_save_CFLAGS"
8561 fi
8562
8563 found="no"
8564
8565 if test $found = "no" ; then
8566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568 fi
8569
8570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8572 fi
8573
8574 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8577 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8578 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8579 if eval \${$cacheid+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 int i;
8585 int
8586 main ()
8587 {
8588
8589 ;
8590 return 0;
8591 }
8592 _ACEOF
8593 if ac_fn_c_try_link "$LINENO"; then :
8594 eval $cacheid=yes
8595 else
8596 eval $cacheid=no
8597 fi
8598 rm -f core conftest.err conftest.$ac_objext \
8599 conftest$ac_exeext conftest.$ac_ext
8600 fi
8601
8602
8603 CFLAGS="$xorg_testset_save_CFLAGS"
8604
8605 eval supported=\$$cacheid
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8607 $as_echo "$supported" >&6; }
8608 if test "$supported" = "yes" ; then
8609 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8610 found="yes"
8611 fi
8612 fi
8613
8614 if test $found = "no" ; then
8615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617 fi
8618
8619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8621 fi
8622
8623 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8626 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8627 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8628 if eval \${$cacheid+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 int i;
8634 int
8635 main ()
8636 {
8637
8638 ;
8639 return 0;
8640 }
8641 _ACEOF
8642 if ac_fn_c_try_link "$LINENO"; then :
8643 eval $cacheid=yes
8644 else
8645 eval $cacheid=no
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
8649 fi
8650
8651
8652 CFLAGS="$xorg_testset_save_CFLAGS"
8653
8654 eval supported=\$$cacheid
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8656 $as_echo "$supported" >&6; }
8657 if test "$supported" = "yes" ; then
8658 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8659 found="yes"
8660 fi
8661 fi
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677 xorg_testset_save_CFLAGS="$CFLAGS"
8678
8679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 int i;
8689 _ACEOF
8690 if ac_fn_c_try_compile "$LINENO"; then :
8691 xorg_cv_cc_flag_unknown_warning_option=yes
8692 else
8693 xorg_cv_cc_flag_unknown_warning_option=no
8694 fi
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8700 CFLAGS="$xorg_testset_save_CFLAGS"
8701 fi
8702
8703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8706 fi
8707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 int i;
8716 _ACEOF
8717 if ac_fn_c_try_compile "$LINENO"; then :
8718 xorg_cv_cc_flag_unused_command_line_argument=yes
8719 else
8720 xorg_cv_cc_flag_unused_command_line_argument=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8727 CFLAGS="$xorg_testset_save_CFLAGS"
8728 fi
8729
8730 found="no"
8731
8732 if test $found = "no" ; then
8733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8735 fi
8736
8737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8739 fi
8740
8741 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8744 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8745 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8746 if eval \${$cacheid+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 int i;
8752 int
8753 main ()
8754 {
8755
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 if ac_fn_c_try_link "$LINENO"; then :
8761 eval $cacheid=yes
8762 else
8763 eval $cacheid=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 fi
8768
8769
8770 CFLAGS="$xorg_testset_save_CFLAGS"
8771
8772 eval supported=\$$cacheid
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8774 $as_echo "$supported" >&6; }
8775 if test "$supported" = "yes" ; then
8776 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8777 found="yes"
8778 fi
8779 fi
8780
8781 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8782 else
8783 { $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
8784 $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;}
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 xorg_testset_save_CFLAGS="$CFLAGS"
8799
8800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 int i;
8810 _ACEOF
8811 if ac_fn_c_try_compile "$LINENO"; then :
8812 xorg_cv_cc_flag_unknown_warning_option=yes
8813 else
8814 xorg_cv_cc_flag_unknown_warning_option=no
8815 fi
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8821 CFLAGS="$xorg_testset_save_CFLAGS"
8822 fi
8823
8824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827 fi
8828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 int i;
8837 _ACEOF
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839 xorg_cv_cc_flag_unused_command_line_argument=yes
8840 else
8841 xorg_cv_cc_flag_unused_command_line_argument=no
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8848 CFLAGS="$xorg_testset_save_CFLAGS"
8849 fi
8850
8851 found="no"
8852
8853 if test $found = "no" ; then
8854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856 fi
8857
8858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8860 fi
8861
8862 CFLAGS="$CFLAGS -Wimplicit"
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8865 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8866 cacheid=xorg_cv_cc_flag__Wimplicit
8867 if eval \${$cacheid+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 int i;
8873 int
8874 main ()
8875 {
8876
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_link "$LINENO"; then :
8882 eval $cacheid=yes
8883 else
8884 eval $cacheid=no
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 fi
8889
8890
8891 CFLAGS="$xorg_testset_save_CFLAGS"
8892
8893 eval supported=\$$cacheid
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8895 $as_echo "$supported" >&6; }
8896 if test "$supported" = "yes" ; then
8897 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8898 found="yes"
8899 fi
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916 xorg_testset_save_CFLAGS="$CFLAGS"
8917
8918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 int i;
8928 _ACEOF
8929 if ac_fn_c_try_compile "$LINENO"; then :
8930 xorg_cv_cc_flag_unknown_warning_option=yes
8931 else
8932 xorg_cv_cc_flag_unknown_warning_option=no
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8939 CFLAGS="$xorg_testset_save_CFLAGS"
8940 fi
8941
8942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945 fi
8946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 int i;
8955 _ACEOF
8956 if ac_fn_c_try_compile "$LINENO"; then :
8957 xorg_cv_cc_flag_unused_command_line_argument=yes
8958 else
8959 xorg_cv_cc_flag_unused_command_line_argument=no
8960 fi
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8966 CFLAGS="$xorg_testset_save_CFLAGS"
8967 fi
8968
8969 found="no"
8970
8971 if test $found = "no" ; then
8972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974 fi
8975
8976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8978 fi
8979
8980 CFLAGS="$CFLAGS -Wnonnull"
8981
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8983 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8984 cacheid=xorg_cv_cc_flag__Wnonnull
8985 if eval \${$cacheid+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 int i;
8991 int
8992 main ()
8993 {
8994
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 if ac_fn_c_try_link "$LINENO"; then :
9000 eval $cacheid=yes
9001 else
9002 eval $cacheid=no
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9006 fi
9007
9008
9009 CFLAGS="$xorg_testset_save_CFLAGS"
9010
9011 eval supported=\$$cacheid
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9013 $as_echo "$supported" >&6; }
9014 if test "$supported" = "yes" ; then
9015 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9016 found="yes"
9017 fi
9018 fi
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034 xorg_testset_save_CFLAGS="$CFLAGS"
9035
9036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 int i;
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 xorg_cv_cc_flag_unknown_warning_option=yes
9049 else
9050 xorg_cv_cc_flag_unknown_warning_option=no
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9057 CFLAGS="$xorg_testset_save_CFLAGS"
9058 fi
9059
9060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9063 fi
9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 int i;
9073 _ACEOF
9074 if ac_fn_c_try_compile "$LINENO"; then :
9075 xorg_cv_cc_flag_unused_command_line_argument=yes
9076 else
9077 xorg_cv_cc_flag_unused_command_line_argument=no
9078 fi
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9084 CFLAGS="$xorg_testset_save_CFLAGS"
9085 fi
9086
9087 found="no"
9088
9089 if test $found = "no" ; then
9090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092 fi
9093
9094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9096 fi
9097
9098 CFLAGS="$CFLAGS -Winit-self"
9099
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9101 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9102 cacheid=xorg_cv_cc_flag__Winit_self
9103 if eval \${$cacheid+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 int i;
9109 int
9110 main ()
9111 {
9112
9113 ;
9114 return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118 eval $cacheid=yes
9119 else
9120 eval $cacheid=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 fi
9125
9126
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9128
9129 eval supported=\$$cacheid
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9131 $as_echo "$supported" >&6; }
9132 if test "$supported" = "yes" ; then
9133 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9134 found="yes"
9135 fi
9136 fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152 xorg_testset_save_CFLAGS="$CFLAGS"
9153
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 int i;
9164 _ACEOF
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 xorg_cv_cc_flag_unknown_warning_option=yes
9167 else
9168 xorg_cv_cc_flag_unknown_warning_option=no
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 fi
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9175 CFLAGS="$xorg_testset_save_CFLAGS"
9176 fi
9177
9178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181 fi
9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 int i;
9191 _ACEOF
9192 if ac_fn_c_try_compile "$LINENO"; then :
9193 xorg_cv_cc_flag_unused_command_line_argument=yes
9194 else
9195 xorg_cv_cc_flag_unused_command_line_argument=no
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 fi
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9202 CFLAGS="$xorg_testset_save_CFLAGS"
9203 fi
9204
9205 found="no"
9206
9207 if test $found = "no" ; then
9208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210 fi
9211
9212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9214 fi
9215
9216 CFLAGS="$CFLAGS -Wmain"
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9219 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9220 cacheid=xorg_cv_cc_flag__Wmain
9221 if eval \${$cacheid+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 int
9228 main ()
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"; then :
9236 eval $cacheid=yes
9237 else
9238 eval $cacheid=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 fi
9243
9244
9245 CFLAGS="$xorg_testset_save_CFLAGS"
9246
9247 eval supported=\$$cacheid
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9249 $as_echo "$supported" >&6; }
9250 if test "$supported" = "yes" ; then
9251 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9252 found="yes"
9253 fi
9254 fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270 xorg_testset_save_CFLAGS="$CFLAGS"
9271
9272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 int i;
9282 _ACEOF
9283 if ac_fn_c_try_compile "$LINENO"; then :
9284 xorg_cv_cc_flag_unknown_warning_option=yes
9285 else
9286 xorg_cv_cc_flag_unknown_warning_option=no
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9293 CFLAGS="$xorg_testset_save_CFLAGS"
9294 fi
9295
9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299 fi
9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 int i;
9309 _ACEOF
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 xorg_cv_cc_flag_unused_command_line_argument=yes
9312 else
9313 xorg_cv_cc_flag_unused_command_line_argument=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 fi
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9320 CFLAGS="$xorg_testset_save_CFLAGS"
9321 fi
9322
9323 found="no"
9324
9325 if test $found = "no" ; then
9326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 fi
9329
9330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9332 fi
9333
9334 CFLAGS="$CFLAGS -Wmissing-braces"
9335
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9337 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9338 cacheid=xorg_cv_cc_flag__Wmissing_braces
9339 if eval \${$cacheid+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 int i;
9345 int
9346 main ()
9347 {
9348
9349 ;
9350 return 0;
9351 }
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354 eval $cacheid=yes
9355 else
9356 eval $cacheid=no
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360 fi
9361
9362
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9364
9365 eval supported=\$$cacheid
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9367 $as_echo "$supported" >&6; }
9368 if test "$supported" = "yes" ; then
9369 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9370 found="yes"
9371 fi
9372 fi
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388 xorg_testset_save_CFLAGS="$CFLAGS"
9389
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 int i;
9400 _ACEOF
9401 if ac_fn_c_try_compile "$LINENO"; then :
9402 xorg_cv_cc_flag_unknown_warning_option=yes
9403 else
9404 xorg_cv_cc_flag_unknown_warning_option=no
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9411 CFLAGS="$xorg_testset_save_CFLAGS"
9412 fi
9413
9414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417 fi
9418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 int i;
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 xorg_cv_cc_flag_unused_command_line_argument=yes
9430 else
9431 xorg_cv_cc_flag_unused_command_line_argument=no
9432 fi
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9438 CFLAGS="$xorg_testset_save_CFLAGS"
9439 fi
9440
9441 found="no"
9442
9443 if test $found = "no" ; then
9444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446 fi
9447
9448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9450 fi
9451
9452 CFLAGS="$CFLAGS -Wsequence-point"
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9455 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9456 cacheid=xorg_cv_cc_flag__Wsequence_point
9457 if eval \${$cacheid+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 int i;
9463 int
9464 main ()
9465 {
9466
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"; then :
9472 eval $cacheid=yes
9473 else
9474 eval $cacheid=no
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 fi
9479
9480
9481 CFLAGS="$xorg_testset_save_CFLAGS"
9482
9483 eval supported=\$$cacheid
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9485 $as_echo "$supported" >&6; }
9486 if test "$supported" = "yes" ; then
9487 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9488 found="yes"
9489 fi
9490 fi
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506 xorg_testset_save_CFLAGS="$CFLAGS"
9507
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9511 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9512 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int i;
9518 _ACEOF
9519 if ac_fn_c_try_compile "$LINENO"; then :
9520 xorg_cv_cc_flag_unknown_warning_option=yes
9521 else
9522 xorg_cv_cc_flag_unknown_warning_option=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9527 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9529 CFLAGS="$xorg_testset_save_CFLAGS"
9530 fi
9531
9532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9535 fi
9536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9538 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9539 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 int i;
9545 _ACEOF
9546 if ac_fn_c_try_compile "$LINENO"; then :
9547 xorg_cv_cc_flag_unused_command_line_argument=yes
9548 else
9549 xorg_cv_cc_flag_unused_command_line_argument=no
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552 fi
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9554 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9556 CFLAGS="$xorg_testset_save_CFLAGS"
9557 fi
9558
9559 found="no"
9560
9561 if test $found = "no" ; then
9562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564 fi
9565
9566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9568 fi
9569
9570 CFLAGS="$CFLAGS -Wreturn-type"
9571
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9573 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9574 cacheid=xorg_cv_cc_flag__Wreturn_type
9575 if eval \${$cacheid+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580 int i;
9581 int
9582 main ()
9583 {
9584
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"; then :
9590 eval $cacheid=yes
9591 else
9592 eval $cacheid=no
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 fi
9597
9598
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9600
9601 eval supported=\$$cacheid
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9603 $as_echo "$supported" >&6; }
9604 if test "$supported" = "yes" ; then
9605 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9606 found="yes"
9607 fi
9608 fi
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624 xorg_testset_save_CFLAGS="$CFLAGS"
9625
9626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 int i;
9636 _ACEOF
9637 if ac_fn_c_try_compile "$LINENO"; then :
9638 xorg_cv_cc_flag_unknown_warning_option=yes
9639 else
9640 xorg_cv_cc_flag_unknown_warning_option=no
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9647 CFLAGS="$xorg_testset_save_CFLAGS"
9648 fi
9649
9650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9653 fi
9654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 int i;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665 xorg_cv_cc_flag_unused_command_line_argument=yes
9666 else
9667 xorg_cv_cc_flag_unused_command_line_argument=no
9668 fi
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 fi
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9674 CFLAGS="$xorg_testset_save_CFLAGS"
9675 fi
9676
9677 found="no"
9678
9679 if test $found = "no" ; then
9680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682 fi
9683
9684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686 fi
9687
9688 CFLAGS="$CFLAGS -Wtrigraphs"
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9691 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9692 cacheid=xorg_cv_cc_flag__Wtrigraphs
9693 if eval \${$cacheid+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 int i;
9699 int
9700 main ()
9701 {
9702
9703 ;
9704 return 0;
9705 }
9706 _ACEOF
9707 if ac_fn_c_try_link "$LINENO"; then :
9708 eval $cacheid=yes
9709 else
9710 eval $cacheid=no
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 fi
9715
9716
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9718
9719 eval supported=\$$cacheid
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9721 $as_echo "$supported" >&6; }
9722 if test "$supported" = "yes" ; then
9723 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9724 found="yes"
9725 fi
9726 fi
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 xorg_testset_save_CFLAGS="$CFLAGS"
9743
9744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 int i;
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756 xorg_cv_cc_flag_unknown_warning_option=yes
9757 else
9758 xorg_cv_cc_flag_unknown_warning_option=no
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9765 CFLAGS="$xorg_testset_save_CFLAGS"
9766 fi
9767
9768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771 fi
9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780 int i;
9781 _ACEOF
9782 if ac_fn_c_try_compile "$LINENO"; then :
9783 xorg_cv_cc_flag_unused_command_line_argument=yes
9784 else
9785 xorg_cv_cc_flag_unused_command_line_argument=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 fi
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9792 CFLAGS="$xorg_testset_save_CFLAGS"
9793 fi
9794
9795 found="no"
9796
9797 if test $found = "no" ; then
9798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800 fi
9801
9802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9804 fi
9805
9806 CFLAGS="$CFLAGS -Warray-bounds"
9807
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9809 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9810 cacheid=xorg_cv_cc_flag__Warray_bounds
9811 if eval \${$cacheid+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 int i;
9817 int
9818 main ()
9819 {
9820
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826 eval $cacheid=yes
9827 else
9828 eval $cacheid=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9832 fi
9833
9834
9835 CFLAGS="$xorg_testset_save_CFLAGS"
9836
9837 eval supported=\$$cacheid
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9839 $as_echo "$supported" >&6; }
9840 if test "$supported" = "yes" ; then
9841 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9842 found="yes"
9843 fi
9844 fi
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860 xorg_testset_save_CFLAGS="$CFLAGS"
9861
9862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int i;
9872 _ACEOF
9873 if ac_fn_c_try_compile "$LINENO"; then :
9874 xorg_cv_cc_flag_unknown_warning_option=yes
9875 else
9876 xorg_cv_cc_flag_unknown_warning_option=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 fi
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889 fi
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 int i;
9899 _ACEOF
9900 if ac_fn_c_try_compile "$LINENO"; then :
9901 xorg_cv_cc_flag_unused_command_line_argument=yes
9902 else
9903 xorg_cv_cc_flag_unused_command_line_argument=no
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9906 fi
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9910 CFLAGS="$xorg_testset_save_CFLAGS"
9911 fi
9912
9913 found="no"
9914
9915 if test $found = "no" ; then
9916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918 fi
9919
9920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9922 fi
9923
9924 CFLAGS="$CFLAGS -Wwrite-strings"
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9927 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9928 cacheid=xorg_cv_cc_flag__Wwrite_strings
9929 if eval \${$cacheid+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934 int i;
9935 int
9936 main ()
9937 {
9938
9939 ;
9940 return 0;
9941 }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944 eval $cacheid=yes
9945 else
9946 eval $cacheid=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 fi
9951
9952
9953 CFLAGS="$xorg_testset_save_CFLAGS"
9954
9955 eval supported=\$$cacheid
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9957 $as_echo "$supported" >&6; }
9958 if test "$supported" = "yes" ; then
9959 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9960 found="yes"
9961 fi
9962 fi
9963
9964
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 -Waddress"
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10045 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
10046 cacheid=xorg_cv_cc_flag__Waddress
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 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
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 -Wint-to-pointer-cast"
10161
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10163 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10164 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
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 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10196 found="yes"
10197 fi
10198 fi
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214 xorg_testset_save_CFLAGS="$CFLAGS"
10215
10216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 int i;
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228 xorg_cv_cc_flag_unknown_warning_option=yes
10229 else
10230 xorg_cv_cc_flag_unknown_warning_option=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238 fi
10239
10240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243 fi
10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 int i;
10253 _ACEOF
10254 if ac_fn_c_try_compile "$LINENO"; then :
10255 xorg_cv_cc_flag_unused_command_line_argument=yes
10256 else
10257 xorg_cv_cc_flag_unused_command_line_argument=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10264 CFLAGS="$xorg_testset_save_CFLAGS"
10265 fi
10266
10267 found="no"
10268
10269 if test $found = "no" ; then
10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 fi
10273
10274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10276 fi
10277
10278 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10281 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10282 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10283 if eval \${$cacheid+:} false; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 int i;
10289 int
10290 main ()
10291 {
10292
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 if ac_fn_c_try_link "$LINENO"; then :
10298 eval $cacheid=yes
10299 else
10300 eval $cacheid=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304 fi
10305
10306
10307 CFLAGS="$xorg_testset_save_CFLAGS"
10308
10309 eval supported=\$$cacheid
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10311 $as_echo "$supported" >&6; }
10312 if test "$supported" = "yes" ; then
10313 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10314 found="yes"
10315 fi
10316 fi
10317
10318
10319 fi
10320
10321
10322
10323
10324
10325
10326
10327 CWARNFLAGS="$BASE_CFLAGS"
10328 if test "x$GCC" = xyes ; then
10329 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10330 fi
10331
10332
10333
10334
10335
10336
10337
10338
10339 # Check whether --enable-strict-compilation was given.
10340 if test "${enable_strict_compilation+set}" = set; then :
10341 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10342 else
10343 STRICT_COMPILE=no
10344 fi
10345
10346
10347
10348
10349
10350
10351 STRICT_CFLAGS=""
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365 xorg_testset_save_CFLAGS="$CFLAGS"
10366
10367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 int i;
10377 _ACEOF
10378 if ac_fn_c_try_compile "$LINENO"; then :
10379 xorg_cv_cc_flag_unknown_warning_option=yes
10380 else
10381 xorg_cv_cc_flag_unknown_warning_option=no
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 fi
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10388 CFLAGS="$xorg_testset_save_CFLAGS"
10389 fi
10390
10391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10394 fi
10395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 int i;
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 xorg_cv_cc_flag_unused_command_line_argument=yes
10407 else
10408 xorg_cv_cc_flag_unused_command_line_argument=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 fi
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10415 CFLAGS="$xorg_testset_save_CFLAGS"
10416 fi
10417
10418 found="no"
10419
10420 if test $found = "no" ; then
10421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10423 fi
10424
10425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10427 fi
10428
10429 CFLAGS="$CFLAGS -pedantic"
10430
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10432 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10433 cacheid=xorg_cv_cc_flag__pedantic
10434 if eval \${$cacheid+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439 int i;
10440 int
10441 main ()
10442 {
10443
10444 ;
10445 return 0;
10446 }
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 eval $cacheid=yes
10450 else
10451 eval $cacheid=no
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 fi
10456
10457
10458 CFLAGS="$xorg_testset_save_CFLAGS"
10459
10460 eval supported=\$$cacheid
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10462 $as_echo "$supported" >&6; }
10463 if test "$supported" = "yes" ; then
10464 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10465 found="yes"
10466 fi
10467 fi
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483 xorg_testset_save_CFLAGS="$CFLAGS"
10484
10485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10488 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10489 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 int i;
10495 _ACEOF
10496 if ac_fn_c_try_compile "$LINENO"; then :
10497 xorg_cv_cc_flag_unknown_warning_option=yes
10498 else
10499 xorg_cv_cc_flag_unknown_warning_option=no
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10504 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10506 CFLAGS="$xorg_testset_save_CFLAGS"
10507 fi
10508
10509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10512 fi
10513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10515 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10516 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 int i;
10522 _ACEOF
10523 if ac_fn_c_try_compile "$LINENO"; then :
10524 xorg_cv_cc_flag_unused_command_line_argument=yes
10525 else
10526 xorg_cv_cc_flag_unused_command_line_argument=no
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10531 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10533 CFLAGS="$xorg_testset_save_CFLAGS"
10534 fi
10535
10536 found="no"
10537
10538 if test $found = "no" ; then
10539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10541 fi
10542
10543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10545 fi
10546
10547 CFLAGS="$CFLAGS -Werror"
10548
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10550 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10551 cacheid=xorg_cv_cc_flag__Werror
10552 if eval \${$cacheid+:} false; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 int i;
10558 int
10559 main ()
10560 {
10561
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 eval $cacheid=yes
10568 else
10569 eval $cacheid=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 fi
10574
10575
10576 CFLAGS="$xorg_testset_save_CFLAGS"
10577
10578 eval supported=\$$cacheid
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10580 $as_echo "$supported" >&6; }
10581 if test "$supported" = "yes" ; then
10582 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10583 found="yes"
10584 fi
10585 fi
10586
10587 if test $found = "no" ; then
10588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10590 fi
10591
10592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10594 fi
10595
10596 CFLAGS="$CFLAGS -errwarn"
10597
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10599 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10600 cacheid=xorg_cv_cc_flag__errwarn
10601 if eval \${$cacheid+:} false; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606 int i;
10607 int
10608 main ()
10609 {
10610
10611 ;
10612 return 0;
10613 }
10614 _ACEOF
10615 if ac_fn_c_try_link "$LINENO"; then :
10616 eval $cacheid=yes
10617 else
10618 eval $cacheid=no
10619 fi
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 fi
10623
10624
10625 CFLAGS="$xorg_testset_save_CFLAGS"
10626
10627 eval supported=\$$cacheid
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10629 $as_echo "$supported" >&6; }
10630 if test "$supported" = "yes" ; then
10631 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10632 found="yes"
10633 fi
10634 fi
10635
10636
10637
10638 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10639 # activate it with -Werror, so we add it here explicitly.
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 xorg_testset_save_CFLAGS="$CFLAGS"
10654
10655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10658 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10659 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 int i;
10665 _ACEOF
10666 if ac_fn_c_try_compile "$LINENO"; then :
10667 xorg_cv_cc_flag_unknown_warning_option=yes
10668 else
10669 xorg_cv_cc_flag_unknown_warning_option=no
10670 fi
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 fi
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10674 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10676 CFLAGS="$xorg_testset_save_CFLAGS"
10677 fi
10678
10679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10682 fi
10683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10685 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10686 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 int i;
10692 _ACEOF
10693 if ac_fn_c_try_compile "$LINENO"; then :
10694 xorg_cv_cc_flag_unused_command_line_argument=yes
10695 else
10696 xorg_cv_cc_flag_unused_command_line_argument=no
10697 fi
10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699 fi
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10701 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10703 CFLAGS="$xorg_testset_save_CFLAGS"
10704 fi
10705
10706 found="no"
10707
10708 if test $found = "no" ; then
10709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10711 fi
10712
10713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10715 fi
10716
10717 CFLAGS="$CFLAGS -Werror=attributes"
10718
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10720 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10721 cacheid=xorg_cv_cc_flag__Werror_attributes
10722 if eval \${$cacheid+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10727 int i;
10728 int
10729 main ()
10730 {
10731
10732 ;
10733 return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 eval $cacheid=yes
10738 else
10739 eval $cacheid=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 fi
10744
10745
10746 CFLAGS="$xorg_testset_save_CFLAGS"
10747
10748 eval supported=\$$cacheid
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10750 $as_echo "$supported" >&6; }
10751 if test "$supported" = "yes" ; then
10752 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10753 found="yes"
10754 fi
10755 fi
10756
10757
10758
10759 if test "x$STRICT_COMPILE" = "xyes"; then
10760 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10761 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10762 fi
10763
10764
10765
10766
10767
10768
10769 cat >>confdefs.h <<_ACEOF
10770 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10771 _ACEOF
10772
10773 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10774 if test "x$PVM" = "x"; then
10775 PVM="0"
10776 fi
10777
10778 cat >>confdefs.h <<_ACEOF
10779 #define PACKAGE_VERSION_MINOR $PVM
10780 _ACEOF
10781
10782 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10783 if test "x$PVP" = "x"; then
10784 PVP="0"
10785 fi
10786
10787 cat >>confdefs.h <<_ACEOF
10788 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10789 _ACEOF
10790
10791
10792
10793 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10794 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10795 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10796 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10797
10798
10799
10800
10801 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10802 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10803 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10804 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10805 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10806
10807
10808
10809
10810
10811
10812 if test x$APP_MAN_SUFFIX = x ; then
10813 APP_MAN_SUFFIX=1
10814 fi
10815 if test x$APP_MAN_DIR = x ; then
10816 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10817 fi
10818
10819 if test x$LIB_MAN_SUFFIX = x ; then
10820 LIB_MAN_SUFFIX=3
10821 fi
10822 if test x$LIB_MAN_DIR = x ; then
10823 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10824 fi
10825
10826 if test x$FILE_MAN_SUFFIX = x ; then
10827 case $host_os in
10828 solaris*) FILE_MAN_SUFFIX=4 ;;
10829 *) FILE_MAN_SUFFIX=5 ;;
10830 esac
10831 fi
10832 if test x$FILE_MAN_DIR = x ; then
10833 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10834 fi
10835
10836 if test x$MISC_MAN_SUFFIX = x ; then
10837 case $host_os in
10838 solaris*) MISC_MAN_SUFFIX=5 ;;
10839 *) MISC_MAN_SUFFIX=7 ;;
10840 esac
10841 fi
10842 if test x$MISC_MAN_DIR = x ; then
10843 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10844 fi
10845
10846 if test x$DRIVER_MAN_SUFFIX = x ; then
10847 case $host_os in
10848 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10849 *) DRIVER_MAN_SUFFIX=4 ;;
10850 esac
10851 fi
10852 if test x$DRIVER_MAN_DIR = x ; then
10853 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10854 fi
10855
10856 if test x$ADMIN_MAN_SUFFIX = x ; then
10857 case $host_os in
10858 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10859 *) ADMIN_MAN_SUFFIX=8 ;;
10860 esac
10861 fi
10862 if test x$ADMIN_MAN_DIR = x ; then
10863 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10864 fi
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880 XORG_MAN_PAGE="X Version 11"
10881
10882 MAN_SUBSTS="\
10883 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10884 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10885 -e 's|__xservername__|Xorg|g' \
10886 -e 's|__xconfigfile__|xorg.conf|g' \
10887 -e 's|__projectroot__|\$(prefix)|g' \
10888 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10889 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10890 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10891 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10892 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10893 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10894 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10895
10896
10897
10898 # Check whether --enable-silent-rules was given.
10899 if test "${enable_silent_rules+set}" = set; then :
10900 enableval=$enable_silent_rules;
10901 fi
10902
10903 case $enable_silent_rules in # (((
10904 yes) AM_DEFAULT_VERBOSITY=0;;
10905 no) AM_DEFAULT_VERBOSITY=1;;
10906 *) AM_DEFAULT_VERBOSITY=0;;
10907 esac
10908 am_make=${MAKE-make}
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10910 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10911 if ${am_cv_make_support_nested_variables+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 if $as_echo 'TRUE=$(BAR$(V))
10915 BAR0=false
10916 BAR1=true
10917 V=1
10918 am__doit:
10919 @$(TRUE)
10920 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10921 am_cv_make_support_nested_variables=yes
10922 else
10923 am_cv_make_support_nested_variables=no
10924 fi
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10927 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10928 if test $am_cv_make_support_nested_variables = yes; then
10929 AM_V='$(V)'
10930 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10931 else
10932 AM_V=$AM_DEFAULT_VERBOSITY
10933 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10934 fi
10935 AM_BACKSLASH='\'
10936
10937
10938
10939 # Checks for pkg-config packages
10940 # - Both CFLAGS & LIBS needed:
10941
10942 pkg_failed=no
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHOST" >&5
10944 $as_echo_n "checking for XHOST... " >&6; }
10945
10946 if test -n "$XHOST_CFLAGS"; then
10947 pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS"
10948 elif test -n "$PKG_CONFIG"; then
10949 if test -n "$PKG_CONFIG" && \
10950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
10951 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
10952 ac_status=$?
10953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954 test $ac_status = 0; }; then
10955 pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
10956 else
10957 pkg_failed=yes
10958 fi
10959 else
10960 pkg_failed=untried
10961 fi
10962 if test -n "$XHOST_LIBS"; then
10963 pkg_cv_XHOST_LIBS="$XHOST_LIBS"
10964 elif test -n "$PKG_CONFIG"; then
10965 if test -n "$PKG_CONFIG" && \
10966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
10967 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
10968 ac_status=$?
10969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970 test $ac_status = 0; }; then
10971 pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
10972 else
10973 pkg_failed=yes
10974 fi
10975 else
10976 pkg_failed=untried
10977 fi
10978
10979
10980
10981 if test $pkg_failed = yes; then
10982
10983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10984 _pkg_short_errors_supported=yes
10985 else
10986 _pkg_short_errors_supported=no
10987 fi
10988 if test $_pkg_short_errors_supported = yes; then
10989 XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.22 x11 xmuu" 2>&1`
10990 else
10991 XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.22 x11 xmuu" 2>&1`
10992 fi
10993 # Put the nasty error message in config.log where it belongs
10994 echo "$XHOST_PKG_ERRORS" >&5
10995
10996 as_fn_error $? "Package requirements (xproto >= 7.0.22 x11 xmuu) were not met:
10997
10998 $XHOST_PKG_ERRORS
10999
11000 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11001 installed software in a non-standard prefix.
11002
11003 Alternatively, you may set the environment variables XHOST_CFLAGS
11004 and XHOST_LIBS to avoid the need to call pkg-config.
11005 See the pkg-config man page for more details.
11006 " "$LINENO" 5
11007 elif test $pkg_failed = untried; then
11008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11010 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11011 is in your PATH or set the PKG_CONFIG environment variable to the full
11012 path to pkg-config.
11013
11014 Alternatively, you may set the environment variables XHOST_CFLAGS
11015 and XHOST_LIBS to avoid the need to call pkg-config.
11016 See the pkg-config man page for more details.
11017
11018 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11019 See \`config.log' for more details" "$LINENO" 5; }
11020 else
11021 XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS
11022 XHOST_LIBS=$pkg_cv_XHOST_LIBS
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11024 $as_echo "yes" >&6; }
11025 :
11026 fi
11027 # - Only CFLAGS needed, not libs:
11028
11029 pkg_failed=no
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
11031 $as_echo_n "checking for XAU... " >&6; }
11032
11033 if test -n "$XAU_CFLAGS"; then
11034 pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
11035 elif test -n "$PKG_CONFIG"; then
11036 if test -n "$PKG_CONFIG" && \
11037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
11038 ($PKG_CONFIG --exists --print-errors "xau") 2>&5
11039 ac_status=$?
11040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041 test $ac_status = 0; }; then
11042 pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
11043 else
11044 pkg_failed=yes
11045 fi
11046 else
11047 pkg_failed=untried
11048 fi
11049 if test -n "$XAU_LIBS"; then
11050 pkg_cv_XAU_LIBS="$XAU_LIBS"
11051 elif test -n "$PKG_CONFIG"; then
11052 if test -n "$PKG_CONFIG" && \
11053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
11054 ($PKG_CONFIG --exists --print-errors "xau") 2>&5
11055 ac_status=$?
11056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057 test $ac_status = 0; }; then
11058 pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
11059 else
11060 pkg_failed=yes
11061 fi
11062 else
11063 pkg_failed=untried
11064 fi
11065
11066
11067
11068 if test $pkg_failed = yes; then
11069
11070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11071 _pkg_short_errors_supported=yes
11072 else
11073 _pkg_short_errors_supported=no
11074 fi
11075 if test $_pkg_short_errors_supported = yes; then
11076 XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xau" 2>&1`
11077 else
11078 XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xau" 2>&1`
11079 fi
11080 # Put the nasty error message in config.log where it belongs
11081 echo "$XAU_PKG_ERRORS" >&5
11082
11083 as_fn_error $? "Package requirements (xau) were not met:
11084
11085 $XAU_PKG_ERRORS
11086
11087 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11088 installed software in a non-standard prefix.
11089
11090 Alternatively, you may set the environment variables XAU_CFLAGS
11091 and XAU_LIBS to avoid the need to call pkg-config.
11092 See the pkg-config man page for more details.
11093 " "$LINENO" 5
11094 elif test $pkg_failed = untried; then
11095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11097 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11098 is in your PATH or set the PKG_CONFIG environment variable to the full
11099 path to pkg-config.
11100
11101 Alternatively, you may set the environment variables XAU_CFLAGS
11102 and XAU_LIBS to avoid the need to call pkg-config.
11103 See the pkg-config man page for more details.
11104
11105 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11106 See \`config.log' for more details" "$LINENO" 5; }
11107 else
11108 XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
11109 XAU_LIBS=$pkg_cv_XAU_LIBS
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11111 $as_echo "yes" >&6; }
11112 :
11113 fi
11114
11115 # Transport selection macro from xtrans.m4
11116
11117
11118 case $host_os in
11119 mingw*) unixdef="no" ;;
11120 *) unixdef="yes" ;;
11121 esac
11122 # Check whether --enable-unix-transport was given.
11123 if test "${enable_unix_transport+set}" = set; then :
11124 enableval=$enable_unix_transport; UNIXCONN=$enableval
11125 else
11126 UNIXCONN=$unixdef
11127 fi
11128
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11130 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11131 if test "$UNIXCONN" = "yes"; then
11132
11133 $as_echo "#define UNIXCONN 1" >>confdefs.h
11134
11135 fi
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11137 $as_echo "$UNIXCONN" >&6; }
11138 # Check whether --enable-tcp-transport was given.
11139 if test "${enable_tcp_transport+set}" = set; then :
11140 enableval=$enable_tcp_transport; TCPCONN=$enableval
11141 else
11142 TCPCONN=yes
11143 fi
11144
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11146 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11148 $as_echo "$TCPCONN" >&6; }
11149 if test "$TCPCONN" = "yes"; then
11150
11151 $as_echo "#define TCPCONN 1" >>confdefs.h
11152
11153
11154 # SVR4 hides these in libraries other than libc
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11156 $as_echo_n "checking for library containing socket... " >&6; }
11157 if ${ac_cv_search_socket+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 ac_func_search_save_LIBS=$LIBS
11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11163
11164 /* Override any GCC internal prototype to avoid an error.
11165 Use char because int might match the return type of a GCC
11166 builtin and then its argument prototype would still apply. */
11167 #ifdef __cplusplus
11168 extern "C"
11169 #endif
11170 char socket ();
11171 int
11172 main ()
11173 {
11174 return socket ();
11175 ;
11176 return 0;
11177 }
11178 _ACEOF
11179 for ac_lib in '' socket; do
11180 if test -z "$ac_lib"; then
11181 ac_res="none required"
11182 else
11183 ac_res=-l$ac_lib
11184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11185 fi
11186 if ac_fn_c_try_link "$LINENO"; then :
11187 ac_cv_search_socket=$ac_res
11188 fi
11189 rm -f core conftest.err conftest.$ac_objext \
11190 conftest$ac_exeext
11191 if ${ac_cv_search_socket+:} false; then :
11192 break
11193 fi
11194 done
11195 if ${ac_cv_search_socket+:} false; then :
11196
11197 else
11198 ac_cv_search_socket=no
11199 fi
11200 rm conftest.$ac_ext
11201 LIBS=$ac_func_search_save_LIBS
11202 fi
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11204 $as_echo "$ac_cv_search_socket" >&6; }
11205 ac_res=$ac_cv_search_socket
11206 if test "$ac_res" != no; then :
11207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11208
11209 fi
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11212 $as_echo_n "checking for library containing gethostbyname... " >&6; }
11213 if ${ac_cv_search_gethostbyname+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 ac_func_search_save_LIBS=$LIBS
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11219
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char gethostbyname ();
11227 int
11228 main ()
11229 {
11230 return gethostbyname ();
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 for ac_lib in '' nsl; do
11236 if test -z "$ac_lib"; then
11237 ac_res="none required"
11238 else
11239 ac_res=-l$ac_lib
11240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11241 fi
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 ac_cv_search_gethostbyname=$ac_res
11244 fi
11245 rm -f core conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext
11247 if ${ac_cv_search_gethostbyname+:} false; then :
11248 break
11249 fi
11250 done
11251 if ${ac_cv_search_gethostbyname+:} false; then :
11252
11253 else
11254 ac_cv_search_gethostbyname=no
11255 fi
11256 rm conftest.$ac_ext
11257 LIBS=$ac_func_search_save_LIBS
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11260 $as_echo "$ac_cv_search_gethostbyname" >&6; }
11261 ac_res=$ac_cv_search_gethostbyname
11262 if test "$ac_res" != no; then :
11263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11264
11265 fi
11266
11267 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11269 $as_echo_n "checking for main in -lws2_32... " >&6; }
11270 if ${ac_cv_lib_ws2_32_main+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-lws2_32 $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277
11278
11279 int
11280 main ()
11281 {
11282 return main ();
11283 ;
11284 return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_c_try_link "$LINENO"; then :
11288 ac_cv_lib_ws2_32_main=yes
11289 else
11290 ac_cv_lib_ws2_32_main=no
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 LIBS=$ac_check_lib_save_LIBS
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11297 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11298 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_LIBWS2_32 1
11301 _ACEOF
11302
11303 LIBS="-lws2_32 $LIBS"
11304
11305 fi
11306
11307 fi
11308
11309 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11310 # Check whether --enable-ipv6 was given.
11311 if test "${enable_ipv6+set}" = set; then :
11312 enableval=$enable_ipv6; IPV6CONN=$enableval
11313 else
11314 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11315 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11316 IPV6CONN=yes
11317 else
11318 IPV6CONN=no
11319 fi
11320
11321 fi
11322
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11324 $as_echo_n "checking if IPv6 support should be built... " >&6; }
11325 if test "$IPV6CONN" = "yes"; then
11326
11327 $as_echo "#define IPv6 1" >>confdefs.h
11328
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11331 $as_echo "$IPV6CONN" >&6; }
11332
11333 # 4.3BSD-Reno added a new member to struct sockaddr_in
11334 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11335 #include <sys/types.h>
11336 #include <sys/socket.h>
11337 #include <netinet/in.h>
11338
11339 "
11340 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11341
11342 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11343
11344 fi
11345
11346
11347 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11348 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11349 $ac_includes_default
11350 #include <sys/socket.h>
11351 "
11352 if test "x$ac_cv_type_socklen_t" = xyes; then :
11353
11354 cat >>confdefs.h <<_ACEOF
11355 #define HAVE_SOCKLEN_T 1
11356 _ACEOF
11357
11358
11359 fi
11360
11361
11362 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11363 # _XOPEN_SOURCE to get it (such as on Solaris)
11364 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11365 $ac_includes_default
11366 #include <sys/socket.h>
11367
11368 "
11369 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11370
11371 fi
11372
11373 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11374 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11375 unset ac_cv_member_struct_msghdr_msg_control
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11377 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11378 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11379 #define _XOPEN_SOURCE 600
11380 $ac_includes_default
11381 #include <sys/socket.h>
11382
11383 "
11384 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11385
11386 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
11387
11388
11389 fi
11390
11391 fi
11392 # If that didn't work, fall back to XPG5/UNIX98 with C89
11393 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11394 unset ac_cv_member_struct_msghdr_msg_control
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11396 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11397 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11398 #define _XOPEN_SOURCE 500
11399 $ac_includes_default
11400 #include <sys/socket.h>
11401
11402 "
11403 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11404
11405 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
11406
11407
11408 fi
11409
11410 fi
11411
11412
11413
11414 fi
11415 case $host_os in
11416 solaris*|sco*|sysv4*) localdef="yes" ;;
11417 *) localdef="no" ;;
11418 esac
11419 # Check whether --enable-local-transport was given.
11420 if test "${enable_local_transport+set}" = set; then :
11421 enableval=$enable_local_transport; LOCALCONN=$enableval
11422 else
11423 LOCALCONN=$localdef
11424 fi
11425
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11427 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11429 $as_echo "$LOCALCONN" >&6; }
11430 if test "$LOCALCONN" = "yes"; then
11431
11432 $as_echo "#define LOCALCONN 1" >>confdefs.h
11433
11434 fi
11435
11436
11437
11438 # Secure RPC detection macro from xtrans.m4
11439
11440 # Check whether --enable-secure-rpc was given.
11441 if test "${enable_secure_rpc+set}" = set; then :
11442 enableval=$enable_secure_rpc; SECURE_RPC=$enableval
11443 else
11444 SECURE_RPC="try"
11445 fi
11446
11447
11448 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
11449 FOUND_SECURE_RPC="no"
11450 for ac_func in authdes_seccreate authdes_create
11451 do :
11452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11454 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11455 cat >>confdefs.h <<_ACEOF
11456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11457 _ACEOF
11458 FOUND_SECURE_RPC="yes"
11459 fi
11460 done
11461
11462 if test "x$FOUND_SECURE_RPC" = "xno" ; then
11463 if test "x$SECURE_RPC" = "xyes" ; then
11464 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
11465 fi
11466 SECURE_RPC="no"
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
11469 $as_echo_n "checking for library containing getsecretkey... " >&6; }
11470 if ${ac_cv_search_getsecretkey+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 ac_func_search_save_LIBS=$LIBS
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 char getsecretkey ();
11484 int
11485 main ()
11486 {
11487 return getsecretkey ();
11488 ;
11489 return 0;
11490 }
11491 _ACEOF
11492 for ac_lib in '' rpcsvc; do
11493 if test -z "$ac_lib"; then
11494 ac_res="none required"
11495 else
11496 ac_res=-l$ac_lib
11497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11498 fi
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_search_getsecretkey=$ac_res
11501 fi
11502 rm -f core conftest.err conftest.$ac_objext \
11503 conftest$ac_exeext
11504 if ${ac_cv_search_getsecretkey+:} false; then :
11505 break
11506 fi
11507 done
11508 if ${ac_cv_search_getsecretkey+:} false; then :
11509
11510 else
11511 ac_cv_search_getsecretkey=no
11512 fi
11513 rm conftest.$ac_ext
11514 LIBS=$ac_func_search_save_LIBS
11515 fi
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
11517 $as_echo "$ac_cv_search_getsecretkey" >&6; }
11518 ac_res=$ac_cv_search_getsecretkey
11519 if test "$ac_res" != no; then :
11520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11521
11522 fi
11523
11524 SECURE_RPC="yes"
11525 fi
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
11528 $as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
11529 if test "x$SECURE_RPC" = "xyes" ; then
11530
11531 $as_echo "#define SECURE_RPC 1" >>confdefs.h
11532
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
11535 $as_echo "$SECURE_RPC" >&6; }
11536
11537
11538 # Link with winsock if mingw target
11539 case $host_os in
11540 *mingw*)
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11542 $as_echo_n "checking for main in -lws2_32... " >&6; }
11543 if ${ac_cv_lib_ws2_32_main+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 ac_check_lib_save_LIBS=$LIBS
11547 LIBS="-lws2_32 $LIBS"
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11550
11551
11552 int
11553 main ()
11554 {
11555 return main ();
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_link "$LINENO"; then :
11561 ac_cv_lib_ws2_32_main=yes
11562 else
11563 ac_cv_lib_ws2_32_main=no
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11568 fi
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11570 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11571 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE_LIBWS2_32 1
11574 _ACEOF
11575
11576 LIBS="-lws2_32 $LIBS"
11577
11578 fi
11579
11580 ;;
11581 *)
11582 ;;
11583 esac
11584
11585 ac_config_files="$ac_config_files Makefile man/Makefile"
11586
11587 cat >confcache <<\_ACEOF
11588 # This file is a shell script that caches the results of configure
11589 # tests run on this system so they can be shared between configure
11590 # scripts and configure runs, see configure's option --config-cache.
11591 # It is not useful on other systems. If it contains results you don't
11592 # want to keep, you may remove or edit it.
11593 #
11594 # config.status only pays attention to the cache file if you give it
11595 # the --recheck option to rerun configure.
11596 #
11597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11599 # following values.
11600
11601 _ACEOF
11602
11603 # The following way of writing the cache mishandles newlines in values,
11604 # but we know of no workaround that is simple, portable, and efficient.
11605 # So, we kill variables containing newlines.
11606 # Ultrix sh set writes to stderr and can't be redirected directly,
11607 # and sets the high bit in the cache file unless we assign to the vars.
11608 (
11609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11610 eval ac_val=\$$ac_var
11611 case $ac_val in #(
11612 *${as_nl}*)
11613 case $ac_var in #(
11614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11616 esac
11617 case $ac_var in #(
11618 _ | IFS | as_nl) ;; #(
11619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11620 *) { eval $ac_var=; unset $ac_var;} ;;
11621 esac ;;
11622 esac
11623 done
11624
11625 (set) 2>&1 |
11626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11627 *${as_nl}ac_space=\ *)
11628 # `set' does not quote correctly, so add quotes: double-quote
11629 # substitution turns \\\\ into \\, and sed turns \\ into \.
11630 sed -n \
11631 "s/'/'\\\\''/g;
11632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11633 ;; #(
11634 *)
11635 # `set' quotes correctly as required by POSIX, so do not add quotes.
11636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11637 ;;
11638 esac |
11639 sort
11640 ) |
11641 sed '
11642 /^ac_cv_env_/b end
11643 t clear
11644 :clear
11645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11646 t end
11647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11648 :end' >>confcache
11649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11650 if test -w "$cache_file"; then
11651 if test "x$cache_file" != "x/dev/null"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11653 $as_echo "$as_me: updating cache $cache_file" >&6;}
11654 if test ! -f "$cache_file" || test -h "$cache_file"; then
11655 cat confcache >"$cache_file"
11656 else
11657 case $cache_file in #(
11658 */* | ?:*)
11659 mv -f confcache "$cache_file"$$ &&
11660 mv -f "$cache_file"$$ "$cache_file" ;; #(
11661 *)
11662 mv -f confcache "$cache_file" ;;
11663 esac
11664 fi
11665 fi
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11668 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11669 fi
11670 fi
11671 rm -f confcache
11672
11673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11674 # Let make expand exec_prefix.
11675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11676
11677 DEFS=-DHAVE_CONFIG_H
11678
11679 ac_libobjs=
11680 ac_ltlibobjs=
11681 U=
11682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11683 # 1. Remove the extension, and $U if already installed.
11684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11687 # will be set to the directory where LIBOBJS objects are built.
11688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11690 done
11691 LIBOBJS=$ac_libobjs
11692
11693 LTLIBOBJS=$ac_ltlibobjs
11694
11695
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11697 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11698 if test -n "$am_sleep_pid"; then
11699 # Hide warnings about reused PIDs.
11700 wait $am_sleep_pid 2>/dev/null
11701 fi
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11703 $as_echo "done" >&6; }
11704 if test -n "$EXEEXT"; then
11705 am__EXEEXT_TRUE=
11706 am__EXEEXT_FALSE='#'
11707 else
11708 am__EXEEXT_TRUE='#'
11709 am__EXEEXT_FALSE=
11710 fi
11711
11712 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11713 as_fn_error $? "conditional \"AMDEP\" was never defined.
11714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11715 fi
11716 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11717 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11719 fi
11720
11721 : "${CONFIG_STATUS=./config.status}"
11722 ac_write_fail=0
11723 ac_clean_files_save=$ac_clean_files
11724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11727 as_write_fail=0
11728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11729 #! $SHELL
11730 # Generated by $as_me.
11731 # Run this file to recreate the current configuration.
11732 # Compiler output produced by configure, useful for debugging
11733 # configure, is in config.log if it exists.
11734
11735 debug=false
11736 ac_cs_recheck=false
11737 ac_cs_silent=false
11738
11739 SHELL=\${CONFIG_SHELL-$SHELL}
11740 export SHELL
11741 _ASEOF
11742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11743 ## -------------------- ##
11744 ## M4sh Initialization. ##
11745 ## -------------------- ##
11746
11747 # Be more Bourne compatible
11748 DUALCASE=1; export DUALCASE # for MKS sh
11749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11750 emulate sh
11751 NULLCMD=:
11752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11753 # is contrary to our usage. Disable this feature.
11754 alias -g '${1+"$@"}'='"$@"'
11755 setopt NO_GLOB_SUBST
11756 else
11757 case `(set -o) 2>/dev/null` in #(
11758 *posix*) :
11759 set -o posix ;; #(
11760 *) :
11761 ;;
11762 esac
11763 fi
11764
11765
11766 as_nl='
11767 '
11768 export as_nl
11769 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11770 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11773 # Prefer a ksh shell builtin over an external printf program on Solaris,
11774 # but without wasting forks for bash or zsh.
11775 if test -z "$BASH_VERSION$ZSH_VERSION" \
11776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11777 as_echo='print -r --'
11778 as_echo_n='print -rn --'
11779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11780 as_echo='printf %s\n'
11781 as_echo_n='printf %s'
11782 else
11783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11785 as_echo_n='/usr/ucb/echo -n'
11786 else
11787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11788 as_echo_n_body='eval
11789 arg=$1;
11790 case $arg in #(
11791 *"$as_nl"*)
11792 expr "X$arg" : "X\\(.*\\)$as_nl";
11793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11794 esac;
11795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11796 '
11797 export as_echo_n_body
11798 as_echo_n='sh -c $as_echo_n_body as_echo'
11799 fi
11800 export as_echo_body
11801 as_echo='sh -c $as_echo_body as_echo'
11802 fi
11803
11804 # The user is always right.
11805 if test "${PATH_SEPARATOR+set}" != set; then
11806 PATH_SEPARATOR=:
11807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11809 PATH_SEPARATOR=';'
11810 }
11811 fi
11812
11813
11814 # IFS
11815 # We need space, tab and new line, in precisely that order. Quoting is
11816 # there to prevent editors from complaining about space-tab.
11817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11818 # splitting by setting IFS to empty value.)
11819 IFS=" "" $as_nl"
11820
11821 # Find who we are. Look in the path if we contain no directory separator.
11822 as_myself=
11823 case $0 in #((
11824 *[\\/]* ) as_myself=$0 ;;
11825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11827 do
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11831 done
11832 IFS=$as_save_IFS
11833
11834 ;;
11835 esac
11836 # We did not find ourselves, most probably we were run as `sh COMMAND'
11837 # in which case we are not to be found in the path.
11838 if test "x$as_myself" = x; then
11839 as_myself=$0
11840 fi
11841 if test ! -f "$as_myself"; then
11842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11843 exit 1
11844 fi
11845
11846 # Unset variables that we do not need and which cause bugs (e.g. in
11847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11848 # suppresses any "Segmentation fault" message there. '((' could
11849 # trigger a bug in pdksh 5.2.14.
11850 for as_var in BASH_ENV ENV MAIL MAILPATH
11851 do eval test x\${$as_var+set} = xset \
11852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11853 done
11854 PS1='$ '
11855 PS2='> '
11856 PS4='+ '
11857
11858 # NLS nuisances.
11859 LC_ALL=C
11860 export LC_ALL
11861 LANGUAGE=C
11862 export LANGUAGE
11863
11864 # CDPATH.
11865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11866
11867
11868 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11869 # ----------------------------------------
11870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11872 # script with STATUS, using 1 if that was 0.
11873 as_fn_error ()
11874 {
11875 as_status=$1; test $as_status -eq 0 && as_status=1
11876 if test "$4"; then
11877 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11879 fi
11880 $as_echo "$as_me: error: $2" >&2
11881 as_fn_exit $as_status
11882 } # as_fn_error
11883
11884
11885 # as_fn_set_status STATUS
11886 # -----------------------
11887 # Set $? to STATUS, without forking.
11888 as_fn_set_status ()
11889 {
11890 return $1
11891 } # as_fn_set_status
11892
11893 # as_fn_exit STATUS
11894 # -----------------
11895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11896 as_fn_exit ()
11897 {
11898 set +e
11899 as_fn_set_status $1
11900 exit $1
11901 } # as_fn_exit
11902
11903 # as_fn_unset VAR
11904 # ---------------
11905 # Portably unset VAR.
11906 as_fn_unset ()
11907 {
11908 { eval $1=; unset $1;}
11909 }
11910 as_unset=as_fn_unset
11911 # as_fn_append VAR VALUE
11912 # ----------------------
11913 # Append the text in VALUE to the end of the definition contained in VAR. Take
11914 # advantage of any shell optimizations that allow amortized linear growth over
11915 # repeated appends, instead of the typical quadratic growth present in naive
11916 # implementations.
11917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11918 eval 'as_fn_append ()
11919 {
11920 eval $1+=\$2
11921 }'
11922 else
11923 as_fn_append ()
11924 {
11925 eval $1=\$$1\$2
11926 }
11927 fi # as_fn_append
11928
11929 # as_fn_arith ARG...
11930 # ------------------
11931 # Perform arithmetic evaluation on the ARGs, and store the result in the
11932 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11933 # must be portable across $(()) and expr.
11934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11935 eval 'as_fn_arith ()
11936 {
11937 as_val=$(( $* ))
11938 }'
11939 else
11940 as_fn_arith ()
11941 {
11942 as_val=`expr "$@" || test $? -eq 1`
11943 }
11944 fi # as_fn_arith
11945
11946
11947 if expr a : '\(a\)' >/dev/null 2>&1 &&
11948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11949 as_expr=expr
11950 else
11951 as_expr=false
11952 fi
11953
11954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11955 as_basename=basename
11956 else
11957 as_basename=false
11958 fi
11959
11960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11961 as_dirname=dirname
11962 else
11963 as_dirname=false
11964 fi
11965
11966 as_me=`$as_basename -- "$0" ||
11967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11968 X"$0" : 'X\(//\)$' \| \
11969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11970 $as_echo X/"$0" |
11971 sed '/^.*\/\([^/][^/]*\)\/*$/{
11972 s//\1/
11973 q
11974 }
11975 /^X\/\(\/\/\)$/{
11976 s//\1/
11977 q
11978 }
11979 /^X\/\(\/\).*/{
11980 s//\1/
11981 q
11982 }
11983 s/.*/./; q'`
11984
11985 # Avoid depending upon Character Ranges.
11986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11989 as_cr_digits='0123456789'
11990 as_cr_alnum=$as_cr_Letters$as_cr_digits
11991
11992 ECHO_C= ECHO_N= ECHO_T=
11993 case `echo -n x` in #(((((
11994 -n*)
11995 case `echo 'xy\c'` in
11996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11997 xy) ECHO_C='\c';;
11998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11999 ECHO_T=' ';;
12000 esac;;
12001 *)
12002 ECHO_N='-n';;
12003 esac
12004
12005 rm -f conf$$ conf$$.exe conf$$.file
12006 if test -d conf$$.dir; then
12007 rm -f conf$$.dir/conf$$.file
12008 else
12009 rm -f conf$$.dir
12010 mkdir conf$$.dir 2>/dev/null
12011 fi
12012 if (echo >conf$$.file) 2>/dev/null; then
12013 if ln -s conf$$.file conf$$ 2>/dev/null; then
12014 as_ln_s='ln -s'
12015 # ... but there are two gotchas:
12016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12018 # In both cases, we have to default to `cp -pR'.
12019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12020 as_ln_s='cp -pR'
12021 elif ln conf$$.file conf$$ 2>/dev/null; then
12022 as_ln_s=ln
12023 else
12024 as_ln_s='cp -pR'
12025 fi
12026 else
12027 as_ln_s='cp -pR'
12028 fi
12029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12030 rmdir conf$$.dir 2>/dev/null
12031
12032
12033 # as_fn_mkdir_p
12034 # -------------
12035 # Create "$as_dir" as a directory, including parents if necessary.
12036 as_fn_mkdir_p ()
12037 {
12038
12039 case $as_dir in #(
12040 -*) as_dir=./$as_dir;;
12041 esac
12042 test -d "$as_dir" || eval $as_mkdir_p || {
12043 as_dirs=
12044 while :; do
12045 case $as_dir in #(
12046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12047 *) as_qdir=$as_dir;;
12048 esac
12049 as_dirs="'$as_qdir' $as_dirs"
12050 as_dir=`$as_dirname -- "$as_dir" ||
12051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12052 X"$as_dir" : 'X\(//\)[^/]' \| \
12053 X"$as_dir" : 'X\(//\)$' \| \
12054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12055 $as_echo X"$as_dir" |
12056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12057 s//\1/
12058 q
12059 }
12060 /^X\(\/\/\)[^/].*/{
12061 s//\1/
12062 q
12063 }
12064 /^X\(\/\/\)$/{
12065 s//\1/
12066 q
12067 }
12068 /^X\(\/\).*/{
12069 s//\1/
12070 q
12071 }
12072 s/.*/./; q'`
12073 test -d "$as_dir" && break
12074 done
12075 test -z "$as_dirs" || eval "mkdir $as_dirs"
12076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12077
12078
12079 } # as_fn_mkdir_p
12080 if mkdir -p . 2>/dev/null; then
12081 as_mkdir_p='mkdir -p "$as_dir"'
12082 else
12083 test -d ./-p && rmdir ./-p
12084 as_mkdir_p=false
12085 fi
12086
12087
12088 # as_fn_executable_p FILE
12089 # -----------------------
12090 # Test if FILE is an executable regular file.
12091 as_fn_executable_p ()
12092 {
12093 test -f "$1" && test -x "$1"
12094 } # as_fn_executable_p
12095 as_test_x='test -x'
12096 as_executable_p=as_fn_executable_p
12097
12098 # Sed expression to map a string onto a valid CPP name.
12099 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12100
12101 # Sed expression to map a string onto a valid variable name.
12102 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12103
12104
12105 exec 6>&1
12106 ## ----------------------------------- ##
12107 ## Main body of $CONFIG_STATUS script. ##
12108 ## ----------------------------------- ##
12109 _ASEOF
12110 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12111
12112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12113 # Save the log message, to keep $0 and so on meaningful, and to
12114 # report actual input values of CONFIG_FILES etc. instead of their
12115 # values after options handling.
12116 ac_log="
12117 This file was extended by xhost $as_me 1.0.7, which was
12118 generated by GNU Autoconf 2.69. Invocation command line was
12119
12120 CONFIG_FILES = $CONFIG_FILES
12121 CONFIG_HEADERS = $CONFIG_HEADERS
12122 CONFIG_LINKS = $CONFIG_LINKS
12123 CONFIG_COMMANDS = $CONFIG_COMMANDS
12124 $ $0 $@
12125
12126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12127 "
12128
12129 _ACEOF
12130
12131 case $ac_config_files in *"
12132 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12133 esac
12134
12135 case $ac_config_headers in *"
12136 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12137 esac
12138
12139
12140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12141 # Files that config.status was made for.
12142 config_files="$ac_config_files"
12143 config_headers="$ac_config_headers"
12144 config_commands="$ac_config_commands"
12145
12146 _ACEOF
12147
12148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12149 ac_cs_usage="\
12150 \`$as_me' instantiates files and other configuration actions
12151 from templates according to the current configuration. Unless the files
12152 and actions are specified as TAGs, all are instantiated by default.
12153
12154 Usage: $0 [OPTION]... [TAG]...
12155
12156 -h, --help print this help, then exit
12157 -V, --version print version number and configuration settings, then exit
12158 --config print configuration, then exit
12159 -q, --quiet, --silent
12160 do not print progress messages
12161 -d, --debug don't remove temporary files
12162 --recheck update $as_me by reconfiguring in the same conditions
12163 --file=FILE[:TEMPLATE]
12164 instantiate the configuration file FILE
12165 --header=FILE[:TEMPLATE]
12166 instantiate the configuration header FILE
12167
12168 Configuration files:
12169 $config_files
12170
12171 Configuration headers:
12172 $config_headers
12173
12174 Configuration commands:
12175 $config_commands
12176
12177 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12178
12179 _ACEOF
12180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12181 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12182 ac_cs_version="\\
12183 xhost config.status 1.0.7
12184 configured by $0, generated by GNU Autoconf 2.69,
12185 with options \\"\$ac_cs_config\\"
12186
12187 Copyright (C) 2012 Free Software Foundation, Inc.
12188 This config.status script is free software; the Free Software Foundation
12189 gives unlimited permission to copy, distribute and modify it."
12190
12191 ac_pwd='$ac_pwd'
12192 srcdir='$srcdir'
12193 INSTALL='$INSTALL'
12194 MKDIR_P='$MKDIR_P'
12195 AWK='$AWK'
12196 test -n "\$AWK" || AWK=awk
12197 _ACEOF
12198
12199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12200 # The default lists apply if the user does not specify any file.
12201 ac_need_defaults=:
12202 while test $# != 0
12203 do
12204 case $1 in
12205 --*=?*)
12206 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12207 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12208 ac_shift=:
12209 ;;
12210 --*=)
12211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12212 ac_optarg=
12213 ac_shift=:
12214 ;;
12215 *)
12216 ac_option=$1
12217 ac_optarg=$2
12218 ac_shift=shift
12219 ;;
12220 esac
12221
12222 case $ac_option in
12223 # Handling of the options.
12224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12225 ac_cs_recheck=: ;;
12226 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12227 $as_echo "$ac_cs_version"; exit ;;
12228 --config | --confi | --conf | --con | --co | --c )
12229 $as_echo "$ac_cs_config"; exit ;;
12230 --debug | --debu | --deb | --de | --d | -d )
12231 debug=: ;;
12232 --file | --fil | --fi | --f )
12233 $ac_shift
12234 case $ac_optarg in
12235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12236 '') as_fn_error $? "missing file argument" ;;
12237 esac
12238 as_fn_append CONFIG_FILES " '$ac_optarg'"
12239 ac_need_defaults=false;;
12240 --header | --heade | --head | --hea )
12241 $ac_shift
12242 case $ac_optarg in
12243 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12244 esac
12245 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12246 ac_need_defaults=false;;
12247 --he | --h)
12248 # Conflict between --help and --header
12249 as_fn_error $? "ambiguous option: \`$1'
12250 Try \`$0 --help' for more information.";;
12251 --help | --hel | -h )
12252 $as_echo "$ac_cs_usage"; exit ;;
12253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12254 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12255 ac_cs_silent=: ;;
12256
12257 # This is an error.
12258 -*) as_fn_error $? "unrecognized option: \`$1'
12259 Try \`$0 --help' for more information." ;;
12260
12261 *) as_fn_append ac_config_targets " $1"
12262 ac_need_defaults=false ;;
12263
12264 esac
12265 shift
12266 done
12267
12268 ac_configure_extra_args=
12269
12270 if $ac_cs_silent; then
12271 exec 6>/dev/null
12272 ac_configure_extra_args="$ac_configure_extra_args --silent"
12273 fi
12274
12275 _ACEOF
12276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12277 if \$ac_cs_recheck; then
12278 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12279 shift
12280 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12281 CONFIG_SHELL='$SHELL'
12282 export CONFIG_SHELL
12283 exec "\$@"
12284 fi
12285
12286 _ACEOF
12287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12288 exec 5>>config.log
12289 {
12290 echo
12291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12292 ## Running $as_me. ##
12293 _ASBOX
12294 $as_echo "$ac_log"
12295 } >&5
12296
12297 _ACEOF
12298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12299 #
12300 # INIT-COMMANDS
12301 #
12302 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12303
12304 _ACEOF
12305
12306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12307
12308 # Handling of arguments.
12309 for ac_config_target in $ac_config_targets
12310 do
12311 case $ac_config_target in
12312 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12313 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12314 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12315 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12316
12317 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12318 esac
12319 done
12320
12321
12322 # If the user did not use the arguments to specify the items to instantiate,
12323 # then the envvar interface is used. Set only those that are not.
12324 # We use the long form for the default assignment because of an extremely
12325 # bizarre bug on SunOS 4.1.3.
12326 if $ac_need_defaults; then
12327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12330 fi
12331
12332 # Have a temporary directory for convenience. Make it in the build tree
12333 # simply because there is no reason against having it here, and in addition,
12334 # creating and moving files from /tmp can sometimes cause problems.
12335 # Hook for its removal unless debugging.
12336 # Note that there is a small window in which the directory will not be cleaned:
12337 # after its creation but before its name has been assigned to `$tmp'.
12338 $debug ||
12339 {
12340 tmp= ac_tmp=
12341 trap 'exit_status=$?
12342 : "${ac_tmp:=$tmp}"
12343 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12344 ' 0
12345 trap 'as_fn_exit 1' 1 2 13 15
12346 }
12347 # Create a (secure) tmp directory for tmp files.
12348
12349 {
12350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12351 test -d "$tmp"
12352 } ||
12353 {
12354 tmp=./conf$$-$RANDOM
12355 (umask 077 && mkdir "$tmp")
12356 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12357 ac_tmp=$tmp
12358
12359 # Set up the scripts for CONFIG_FILES section.
12360 # No need to generate them if there are no CONFIG_FILES.
12361 # This happens for instance with `./config.status config.h'.
12362 if test -n "$CONFIG_FILES"; then
12363
12364
12365 ac_cr=`echo X | tr X '\015'`
12366 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12367 # But we know of no other shell where ac_cr would be empty at this
12368 # point, so we can use a bashism as a fallback.
12369 if test "x$ac_cr" = x; then
12370 eval ac_cr=\$\'\\r\'
12371 fi
12372 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12373 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12374 ac_cs_awk_cr='\\r'
12375 else
12376 ac_cs_awk_cr=$ac_cr
12377 fi
12378
12379 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12380 _ACEOF
12381
12382
12383 {
12384 echo "cat >conf$$subs.awk <<_ACEOF" &&
12385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12386 echo "_ACEOF"
12387 } >conf$$subs.sh ||
12388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12389 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12390 ac_delim='%!_!# '
12391 for ac_last_try in false false false false false :; do
12392 . ./conf$$subs.sh ||
12393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12394
12395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12396 if test $ac_delim_n = $ac_delim_num; then
12397 break
12398 elif $ac_last_try; then
12399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12400 else
12401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12402 fi
12403 done
12404 rm -f conf$$subs.sh
12405
12406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12407 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12408 _ACEOF
12409 sed -n '
12410 h
12411 s/^/S["/; s/!.*/"]=/
12412 p
12413 g
12414 s/^[^!]*!//
12415 :repl
12416 t repl
12417 s/'"$ac_delim"'$//
12418 t delim
12419 :nl
12420 h
12421 s/\(.\{148\}\)..*/\1/
12422 t more1
12423 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12424 p
12425 n
12426 b repl
12427 :more1
12428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12429 p
12430 g
12431 s/.\{148\}//
12432 t nl
12433 :delim
12434 h
12435 s/\(.\{148\}\)..*/\1/
12436 t more2
12437 s/["\\]/\\&/g; s/^/"/; s/$/"/
12438 p
12439 b
12440 :more2
12441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12442 p
12443 g
12444 s/.\{148\}//
12445 t delim
12446 ' <conf$$subs.awk | sed '
12447 /^[^""]/{
12448 N
12449 s/\n//
12450 }
12451 ' >>$CONFIG_STATUS || ac_write_fail=1
12452 rm -f conf$$subs.awk
12453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12454 _ACAWK
12455 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12456 for (key in S) S_is_set[key] = 1
12457 FS = ""
12458
12459 }
12460 {
12461 line = $ 0
12462 nfields = split(line, field, "@")
12463 substed = 0
12464 len = length(field[1])
12465 for (i = 2; i < nfields; i++) {
12466 key = field[i]
12467 keylen = length(key)
12468 if (S_is_set[key]) {
12469 value = S[key]
12470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12471 len += length(value) + length(field[++i])
12472 substed = 1
12473 } else
12474 len += 1 + keylen
12475 }
12476
12477 print line
12478 }
12479
12480 _ACAWK
12481 _ACEOF
12482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12485 else
12486 cat
12487 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12488 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12489 _ACEOF
12490
12491 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12492 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12493 # trailing colons and then remove the whole line if VPATH becomes empty
12494 # (actually we leave an empty line to preserve line numbers).
12495 if test "x$srcdir" = x.; then
12496 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12497 h
12498 s///
12499 s/^/:/
12500 s/[ ]*$/:/
12501 s/:\$(srcdir):/:/g
12502 s/:\${srcdir}:/:/g
12503 s/:@srcdir@:/:/g
12504 s/^:*//
12505 s/:*$//
12506 x
12507 s/\(=[ ]*\).*/\1/
12508 G
12509 s/\n//
12510 s/^[^=]*=[ ]*$//
12511 }'
12512 fi
12513
12514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12515 fi # test -n "$CONFIG_FILES"
12516
12517 # Set up the scripts for CONFIG_HEADERS section.
12518 # No need to generate them if there are no CONFIG_HEADERS.
12519 # This happens for instance with `./config.status Makefile'.
12520 if test -n "$CONFIG_HEADERS"; then
12521 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12522 BEGIN {
12523 _ACEOF
12524
12525 # Transform confdefs.h into an awk script `defines.awk', embedded as
12526 # here-document in config.status, that substitutes the proper values into
12527 # config.h.in to produce config.h.
12528
12529 # Create a delimiter string that does not exist in confdefs.h, to ease
12530 # handling of long lines.
12531 ac_delim='%!_!# '
12532 for ac_last_try in false false :; do
12533 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12534 if test -z "$ac_tt"; then
12535 break
12536 elif $ac_last_try; then
12537 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12538 else
12539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12540 fi
12541 done
12542
12543 # For the awk script, D is an array of macro values keyed by name,
12544 # likewise P contains macro parameters if any. Preserve backslash
12545 # newline sequences.
12546
12547 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12548 sed -n '
12549 s/.\{148\}/&'"$ac_delim"'/g
12550 t rset
12551 :rset
12552 s/^[ ]*#[ ]*define[ ][ ]*/ /
12553 t def
12554 d
12555 :def
12556 s/\\$//
12557 t bsnl
12558 s/["\\]/\\&/g
12559 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12560 D["\1"]=" \3"/p
12561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12562 d
12563 :bsnl
12564 s/["\\]/\\&/g
12565 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12566 D["\1"]=" \3\\\\\\n"\\/p
12567 t cont
12568 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12569 t cont
12570 d
12571 :cont
12572 n
12573 s/.\{148\}/&'"$ac_delim"'/g
12574 t clear
12575 :clear
12576 s/\\$//
12577 t bsnlc
12578 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12579 d
12580 :bsnlc
12581 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12582 b cont
12583 ' <confdefs.h | sed '
12584 s/'"$ac_delim"'/"\\\
12585 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12586
12587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12588 for (key in D) D_is_set[key] = 1
12589 FS = ""
12590 }
12591 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12592 line = \$ 0
12593 split(line, arg, " ")
12594 if (arg[1] == "#") {
12595 defundef = arg[2]
12596 mac1 = arg[3]
12597 } else {
12598 defundef = substr(arg[1], 2)
12599 mac1 = arg[2]
12600 }
12601 split(mac1, mac2, "(") #)
12602 macro = mac2[1]
12603 prefix = substr(line, 1, index(line, defundef) - 1)
12604 if (D_is_set[macro]) {
12605 # Preserve the white space surrounding the "#".
12606 print prefix "define", macro P[macro] D[macro]
12607 next
12608 } else {
12609 # Replace #undef with comments. This is necessary, for example,
12610 # in the case of _POSIX_SOURCE, which is predefined and required
12611 # on some systems where configure will not decide to define it.
12612 if (defundef == "undef") {
12613 print "/*", prefix defundef, macro, "*/"
12614 next
12615 }
12616 }
12617 }
12618 { print }
12619 _ACAWK
12620 _ACEOF
12621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12622 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12623 fi # test -n "$CONFIG_HEADERS"
12624
12625
12626 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12627 shift
12628 for ac_tag
12629 do
12630 case $ac_tag in
12631 :[FHLC]) ac_mode=$ac_tag; continue;;
12632 esac
12633 case $ac_mode$ac_tag in
12634 :[FHL]*:*);;
12635 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12636 :[FH]-) ac_tag=-:-;;
12637 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12638 esac
12639 ac_save_IFS=$IFS
12640 IFS=:
12641 set x $ac_tag
12642 IFS=$ac_save_IFS
12643 shift
12644 ac_file=$1
12645 shift
12646
12647 case $ac_mode in
12648 :L) ac_source=$1;;
12649 :[FH])
12650 ac_file_inputs=
12651 for ac_f
12652 do
12653 case $ac_f in
12654 -) ac_f="$ac_tmp/stdin";;
12655 *) # Look for the file first in the build tree, then in the source tree
12656 # (if the path is not absolute). The absolute path cannot be DOS-style,
12657 # because $ac_f cannot contain `:'.
12658 test -f "$ac_f" ||
12659 case $ac_f in
12660 [\\/$]*) false;;
12661 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12662 esac ||
12663 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12664 esac
12665 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12666 as_fn_append ac_file_inputs " '$ac_f'"
12667 done
12668
12669 # Let's still pretend it is `configure' which instantiates (i.e., don't
12670 # use $as_me), people would be surprised to read:
12671 # /* config.h. Generated by config.status. */
12672 configure_input='Generated from '`
12673 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12674 `' by configure.'
12675 if test x"$ac_file" != x-; then
12676 configure_input="$ac_file. $configure_input"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12678 $as_echo "$as_me: creating $ac_file" >&6;}
12679 fi
12680 # Neutralize special characters interpreted by sed in replacement strings.
12681 case $configure_input in #(
12682 *\&* | *\|* | *\\* )
12683 ac_sed_conf_input=`$as_echo "$configure_input" |
12684 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12685 *) ac_sed_conf_input=$configure_input;;
12686 esac
12687
12688 case $ac_tag in
12689 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12691 esac
12692 ;;
12693 esac
12694
12695 ac_dir=`$as_dirname -- "$ac_file" ||
12696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12697 X"$ac_file" : 'X\(//\)[^/]' \| \
12698 X"$ac_file" : 'X\(//\)$' \| \
12699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12700 $as_echo X"$ac_file" |
12701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12702 s//\1/
12703 q
12704 }
12705 /^X\(\/\/\)[^/].*/{
12706 s//\1/
12707 q
12708 }
12709 /^X\(\/\/\)$/{
12710 s//\1/
12711 q
12712 }
12713 /^X\(\/\).*/{
12714 s//\1/
12715 q
12716 }
12717 s/.*/./; q'`
12718 as_dir="$ac_dir"; as_fn_mkdir_p
12719 ac_builddir=.
12720
12721 case "$ac_dir" in
12722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12723 *)
12724 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12725 # A ".." for each directory in $ac_dir_suffix.
12726 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12727 case $ac_top_builddir_sub in
12728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12730 esac ;;
12731 esac
12732 ac_abs_top_builddir=$ac_pwd
12733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12734 # for backward compatibility:
12735 ac_top_builddir=$ac_top_build_prefix
12736
12737 case $srcdir in
12738 .) # We are building in place.
12739 ac_srcdir=.
12740 ac_top_srcdir=$ac_top_builddir_sub
12741 ac_abs_top_srcdir=$ac_pwd ;;
12742 [\\/]* | ?:[\\/]* ) # Absolute name.
12743 ac_srcdir=$srcdir$ac_dir_suffix;
12744 ac_top_srcdir=$srcdir
12745 ac_abs_top_srcdir=$srcdir ;;
12746 *) # Relative name.
12747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12748 ac_top_srcdir=$ac_top_build_prefix$srcdir
12749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12750 esac
12751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12752
12753
12754 case $ac_mode in
12755 :F)
12756 #
12757 # CONFIG_FILE
12758 #
12759
12760 case $INSTALL in
12761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12762 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12763 esac
12764 ac_MKDIR_P=$MKDIR_P
12765 case $MKDIR_P in
12766 [\\/$]* | ?:[\\/]* ) ;;
12767 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12768 esac
12769 _ACEOF
12770
12771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12772 # If the template does not know about datarootdir, expand it.
12773 # FIXME: This hack should be removed a few years after 2.60.
12774 ac_datarootdir_hack=; ac_datarootdir_seen=
12775 ac_sed_dataroot='
12776 /datarootdir/ {
12777 p
12778 q
12779 }
12780 /@datadir@/p
12781 /@docdir@/p
12782 /@infodir@/p
12783 /@localedir@/p
12784 /@mandir@/p'
12785 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12786 *datarootdir*) ac_datarootdir_seen=yes;;
12787 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12789 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12790 _ACEOF
12791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12792 ac_datarootdir_hack='
12793 s&@datadir@&$datadir&g
12794 s&@docdir@&$docdir&g
12795 s&@infodir@&$infodir&g
12796 s&@localedir@&$localedir&g
12797 s&@mandir@&$mandir&g
12798 s&\\\${datarootdir}&$datarootdir&g' ;;
12799 esac
12800 _ACEOF
12801
12802 # Neutralize VPATH when `$srcdir' = `.'.
12803 # Shell code in configure.ac might set extrasub.
12804 # FIXME: do we really want to maintain this feature?
12805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12806 ac_sed_extra="$ac_vpsub
12807 $extrasub
12808 _ACEOF
12809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12810 :t
12811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12812 s|@configure_input@|$ac_sed_conf_input|;t t
12813 s&@top_builddir@&$ac_top_builddir_sub&;t t
12814 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12815 s&@srcdir@&$ac_srcdir&;t t
12816 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12817 s&@top_srcdir@&$ac_top_srcdir&;t t
12818 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12819 s&@builddir@&$ac_builddir&;t t
12820 s&@abs_builddir@&$ac_abs_builddir&;t t
12821 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12822 s&@INSTALL@&$ac_INSTALL&;t t
12823 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12824 $ac_datarootdir_hack
12825 "
12826 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12827 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12828
12829 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12830 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12831 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12832 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12834 which seems to be undefined. Please make sure it is defined" >&5
12835 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12836 which seems to be undefined. Please make sure it is defined" >&2;}
12837
12838 rm -f "$ac_tmp/stdin"
12839 case $ac_file in
12840 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12841 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12842 esac \
12843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12844 ;;
12845 :H)
12846 #
12847 # CONFIG_HEADER
12848 #
12849 if test x"$ac_file" != x-; then
12850 {
12851 $as_echo "/* $configure_input */" \
12852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12853 } >"$ac_tmp/config.h" \
12854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12855 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12857 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12858 else
12859 rm -f "$ac_file"
12860 mv "$ac_tmp/config.h" "$ac_file" \
12861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12862 fi
12863 else
12864 $as_echo "/* $configure_input */" \
12865 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12866 || as_fn_error $? "could not create -" "$LINENO" 5
12867 fi
12868 # Compute "$ac_file"'s index in $config_headers.
12869 _am_arg="$ac_file"
12870 _am_stamp_count=1
12871 for _am_header in $config_headers :; do
12872 case $_am_header in
12873 $_am_arg | $_am_arg:* )
12874 break ;;
12875 * )
12876 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12877 esac
12878 done
12879 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12880 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881 X"$_am_arg" : 'X\(//\)[^/]' \| \
12882 X"$_am_arg" : 'X\(//\)$' \| \
12883 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12884 $as_echo X"$_am_arg" |
12885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12886 s//\1/
12887 q
12888 }
12889 /^X\(\/\/\)[^/].*/{
12890 s//\1/
12891 q
12892 }
12893 /^X\(\/\/\)$/{
12894 s//\1/
12895 q
12896 }
12897 /^X\(\/\).*/{
12898 s//\1/
12899 q
12900 }
12901 s/.*/./; q'`/stamp-h$_am_stamp_count
12902 ;;
12903
12904 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12905 $as_echo "$as_me: executing $ac_file commands" >&6;}
12906 ;;
12907 esac
12908
12909
12910 case $ac_file$ac_mode in
12911 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12912 # Older Autoconf quotes --file arguments for eval, but not when files
12913 # are listed without --file. Let's play safe and only enable the eval
12914 # if we detect the quoting.
12915 case $CONFIG_FILES in
12916 *\'*) eval set x "$CONFIG_FILES" ;;
12917 *) set x $CONFIG_FILES ;;
12918 esac
12919 shift
12920 for mf
12921 do
12922 # Strip MF so we end up with the name of the file.
12923 mf=`echo "$mf" | sed -e 's/:.*$//'`
12924 # Check whether this is an Automake generated Makefile or not.
12925 # We used to match only the files named 'Makefile.in', but
12926 # some people rename them; so instead we look at the file content.
12927 # Grep'ing the first line is not enough: some people post-process
12928 # each Makefile.in and add a new line on top of each file to say so.
12929 # Grep'ing the whole file is not good either: AIX grep has a line
12930 # limit of 2048, but all sed's we know have understand at least 4000.
12931 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12932 dirpart=`$as_dirname -- "$mf" ||
12933 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12934 X"$mf" : 'X\(//\)[^/]' \| \
12935 X"$mf" : 'X\(//\)$' \| \
12936 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12937 $as_echo X"$mf" |
12938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12939 s//\1/
12940 q
12941 }
12942 /^X\(\/\/\)[^/].*/{
12943 s//\1/
12944 q
12945 }
12946 /^X\(\/\/\)$/{
12947 s//\1/
12948 q
12949 }
12950 /^X\(\/\).*/{
12951 s//\1/
12952 q
12953 }
12954 s/.*/./; q'`
12955 else
12956 continue
12957 fi
12958 # Extract the definition of DEPDIR, am__include, and am__quote
12959 # from the Makefile without running 'make'.
12960 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12961 test -z "$DEPDIR" && continue
12962 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12963 test -z "$am__include" && continue
12964 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12965 # Find all dependency output files, they are included files with
12966 # $(DEPDIR) in their names. We invoke sed twice because it is the
12967 # simplest approach to changing $(DEPDIR) to its actual value in the
12968 # expansion.
12969 for file in `sed -n "
12970 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12971 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12972 # Make sure the directory exists.
12973 test -f "$dirpart/$file" && continue
12974 fdir=`$as_dirname -- "$file" ||
12975 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12976 X"$file" : 'X\(//\)[^/]' \| \
12977 X"$file" : 'X\(//\)$' \| \
12978 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12979 $as_echo X"$file" |
12980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12981 s//\1/
12982 q
12983 }
12984 /^X\(\/\/\)[^/].*/{
12985 s//\1/
12986 q
12987 }
12988 /^X\(\/\/\)$/{
12989 s//\1/
12990 q
12991 }
12992 /^X\(\/\).*/{
12993 s//\1/
12994 q
12995 }
12996 s/.*/./; q'`
12997 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12998 # echo "creating $dirpart/$file"
12999 echo '# dummy' > "$dirpart/$file"
13000 done
13001 done
13002 }
13003 ;;
13004
13005 esac
13006 done # for ac_tag
13007
13008
13009 as_fn_exit 0
13010 _ACEOF
13011 ac_clean_files=$ac_clean_files_save
13012
13013 test $ac_write_fail = 0 ||
13014 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13015
13016
13017 # configure is writing to config.log, and then calls config.status.
13018 # config.status does its own redirection, appending to config.log.
13019 # Unfortunately, on DOS this fails, as config.log is still kept open
13020 # by configure, so config.status won't be able to write to it; its
13021 # output is simply discarded. So we exec the FD to /dev/null,
13022 # effectively closing config.log, so it can be properly (re)opened and
13023 # appended to by config.status. When coming back to configure, we
13024 # need to make the FD available again.
13025 if test "$no_create" != yes; then
13026 ac_cs_success=:
13027 ac_config_status_args=
13028 test "$silent" = yes &&
13029 ac_config_status_args="$ac_config_status_args --quiet"
13030 exec 5>/dev/null
13031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13032 exec 5>>config.log
13033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13034 # would make configure fail if this is the last instruction.
13035 $ac_cs_success || as_fn_exit 1
13036 fi
13037 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13039 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13040 fi
13041
13042