configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xauth 1.1.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>.
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://gitlab.freedesktop.org/xorg/app/xauth/issues
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='xauth'
583 PACKAGE_TARNAME='xauth'
584 PACKAGE_VERSION='1.1.1'
585 PACKAGE_STRING='xauth 1.1.1'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/issues'
587 PACKAGE_URL=''
588
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 LINT_FALSE
630 LINT_TRUE
631 LINT_FLAGS
632 LINT
633 XAUTH_LIBS
634 XAUTH_CFLAGS
635 MAN_SUBSTS
636 XORG_MAN_PAGE
637 ADMIN_MAN_DIR
638 DRIVER_MAN_DIR
639 MISC_MAN_DIR
640 FILE_MAN_DIR
641 LIB_MAN_DIR
642 APP_MAN_DIR
643 ADMIN_MAN_SUFFIX
644 DRIVER_MAN_SUFFIX
645 MISC_MAN_SUFFIX
646 FILE_MAN_SUFFIX
647 LIB_MAN_SUFFIX
648 APP_MAN_SUFFIX
649 SED
650 host_os
651 host_vendor
652 host_cpu
653 host
654 build_os
655 build_vendor
656 build_cpu
657 build
658 INSTALL_CMD
659 PKG_CONFIG_LIBDIR
660 PKG_CONFIG_PATH
661 PKG_CONFIG
662 CHANGELOG_CMD
663 STRICT_CFLAGS
664 CWARNFLAGS
665 BASE_CFLAGS
666 EGREP
667 GREP
668 CPP
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 AM_BACKSLASH
686 AM_DEFAULT_VERBOSITY
687 AM_DEFAULT_V
688 AM_V
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 target_alias
713 host_alias
714 build_alias
715 LIBS
716 ECHO_T
717 ECHO_N
718 ECHO_C
719 DEFS
720 mandir
721 localedir
722 libdir
723 psdir
724 pdfdir
725 dvidir
726 htmldir
727 infodir
728 docdir
729 oldincludedir
730 includedir
731 localstatedir
732 sharedstatedir
733 sysconfdir
734 datadir
735 datarootdir
736 libexecdir
737 sbindir
738 bindir
739 program_transform_name
740 prefix
741 exec_prefix
742 PACKAGE_URL
743 PACKAGE_BUGREPORT
744 PACKAGE_STRING
745 PACKAGE_VERSION
746 PACKAGE_TARNAME
747 PACKAGE_NAME
748 PATH_SEPARATOR
749 SHELL
750 am__quote'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_silent_rules
755 enable_dependency_tracking
756 enable_selective_werror
757 enable_strict_compilation
758 enable_unix_transport
759 enable_tcp_transport
760 enable_ipv6
761 enable_local_transport
762 with_lint
763 '
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
767 CC
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
772 CPP
773 PKG_CONFIG
774 PKG_CONFIG_PATH
775 PKG_CONFIG_LIBDIR
776 XAUTH_CFLAGS
777 XAUTH_LIBS
778 LINT
779 LINT_FLAGS'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1208 do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures xauth 1.1.1 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/xauth]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of xauth 1.1.1:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-silent-rules less verbose build output (undo: "make V=1")
1399 --disable-silent-rules verbose build output (undo: "make V=0")
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --disable-selective-werror
1405 Turn off selective compiler errors. (default:
1406 enabled)
1407 --enable-strict-compilation
1408 Enable all warnings from compiler and make them
1409 errors (default: disabled)
1410 --enable-unix-transport Enable UNIX domain socket transport
1411 --enable-tcp-transport Enable TCP socket transport
1412 --enable-ipv6 Enable IPv6 support
1413 --enable-local-transport
1414 Enable os-specific local transport
1415
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-lint Use a lint-style source code checker (default:
1420 disabled)
1421
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1430 CPP C preprocessor
1431 PKG_CONFIG path to pkg-config utility
1432 PKG_CONFIG_PATH
1433 directories to add to pkg-config's search path
1434 PKG_CONFIG_LIBDIR
1435 path overriding pkg-config's built-in search path
1436 XAUTH_CFLAGS
1437 C compiler flags for XAUTH, overriding pkg-config
1438 XAUTH_LIBS linker flags for XAUTH, overriding pkg-config
1439 LINT Path to a lint-style command
1440 LINT_FLAGS Flags for the lint-style command
1441
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1444
1445 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>.
1446 _ACEOF
1447 ac_status=$?
1448 fi
1449
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1457
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *)
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1473
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1503 fi
1504
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 xauth configure 1.1.1
1509 generated by GNU Autoconf 2.69
1510
1511 Copyright (C) 2012 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1516 fi
1517
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1521
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1526 {
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554 fi
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_compile
1559
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_cpp
1596
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1601 # accordingly.
1602 ac_fn_c_check_header_mongrel ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if eval \${$3+:} false; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1610 fi
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 else
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 $4
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1625 else
1626 ac_header_compiler=no
1627 fi
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1631
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1641 else
1642 ac_header_preproc=no
1643 fi
1644 rm -f conftest.err conftest.i conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1647
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 yes:no: )
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655 ;;
1656 no:yes:* )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ( $as_echo "## ------------------------------------------------------------------- ##
1668 ## Report this to https://gitlab.freedesktop.org/xorg/app/xauth/issues ##
1669 ## ------------------------------------------------------------------- ##"
1670 ) | sed "s/^/$as_me: WARNING: /" >&2
1671 ;;
1672 esac
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1677 else
1678 eval "$3=\$ac_header_compiler"
1679 fi
1680 eval ac_res=\$$3
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_mongrel
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 $4
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 eval "$3=yes"
1749 else
1750 eval "$3=no"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759 } # ac_fn_c_check_header_compile
1760
1761 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1762 # ---------------------------------------------
1763 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1764 # accordingly.
1765 ac_fn_c_check_decl ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 as_decl_name=`echo $2|sed 's/ *(.*//'`
1769 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1771 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 int
1779 main ()
1780 {
1781 #ifndef $as_decl_name
1782 #ifdef __cplusplus
1783 (void) $as_decl_use;
1784 #else
1785 (void) $as_decl_name;
1786 #endif
1787 #endif
1788
1789 ;
1790 return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_decl
1806
1807 # ac_fn_c_try_link LINENO
1808 # -----------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_link ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext conftest$ac_exeext
1814 if { { ac_try="$ac_link"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest$ac_exeext && {
1833 test "$cross_compiling" = yes ||
1834 test -x conftest$ac_exeext
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_c_try_link
1852
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 #define $2 innocuous_$2
1869
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below.
1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 <limits.h> exists even on freestanding compilers. */
1874
1875 #ifdef __STDC__
1876 # include <limits.h>
1877 #else
1878 # include <assert.h>
1879 #endif
1880
1881 #undef $2
1882
1883 /* Override any GCC internal prototype to avoid an error.
1884 Use char because int might match the return type of a GCC
1885 builtin and then its argument prototype would still apply. */
1886 #ifdef __cplusplus
1887 extern "C"
1888 #endif
1889 char $2 ();
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined __stub_$2 || defined __stub___$2
1894 choke me
1895 #endif
1896
1897 int
1898 main ()
1899 {
1900 return $2 ();
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_link "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext \
1911 conftest$ac_exeext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918 } # ac_fn_c_check_func
1919
1920 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1921 # ----------------------------------------------------
1922 # Tries to find if the field MEMBER exists in type AGGR, after including
1923 # INCLUDES, setting cache variable VAR accordingly.
1924 ac_fn_c_check_member ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1928 $as_echo_n "checking for $2.$3... " >&6; }
1929 if eval \${$4+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $5
1935 int
1936 main ()
1937 {
1938 static $2 ac_aggr;
1939 if (ac_aggr.$3)
1940 return 0;
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 eval "$4=yes"
1947 else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $5
1951 int
1952 main ()
1953 {
1954 static $2 ac_aggr;
1955 if (sizeof ac_aggr.$3)
1956 return 0;
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 eval "$4=yes"
1963 else
1964 eval "$4=no"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$4
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_member
1976
1977 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1978 # -------------------------------------------
1979 # Tests whether TYPE exists after having included INCLUDES, setting cache
1980 # variable VAR accordingly.
1981 ac_fn_c_check_type ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 eval "$3=no"
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $4
1993 int
1994 main ()
1995 {
1996 if (sizeof ($2))
1997 return 0;
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 $4
2006 int
2007 main ()
2008 {
2009 if (sizeof (($2)))
2010 return 0;
2011 ;
2012 return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016
2017 else
2018 eval "$3=yes"
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 fi
2024 eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029 } # ac_fn_c_check_type
2030 cat >config.log <<_ACEOF
2031 This file contains any messages produced by compilers while
2032 running configure, to aid debugging if configure makes a mistake.
2033
2034 It was created by xauth $as_me 1.1.1, which was
2035 generated by GNU Autoconf 2.69. Invocation command line was
2036
2037 $ $0 $@
2038
2039 _ACEOF
2040 exec 5>>config.log
2041 {
2042 cat <<_ASUNAME
2043 ## --------- ##
2044 ## Platform. ##
2045 ## --------- ##
2046
2047 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2048 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2049 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2050 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2051 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052
2053 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2054 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2055
2056 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2057 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2058 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2059 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2060 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2061 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2062 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2063
2064 _ASUNAME
2065
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 $as_echo "PATH: $as_dir"
2072 done
2073 IFS=$as_save_IFS
2074
2075 } >&5
2076
2077 cat >&5 <<_ACEOF
2078
2079
2080 ## ----------- ##
2081 ## Core tests. ##
2082 ## ----------- ##
2083
2084 _ACEOF
2085
2086
2087 # Keep a trace of the command line.
2088 # Strip out --no-create and --no-recursion so they do not pile up.
2089 # Strip out --silent because we don't want to record it for future runs.
2090 # Also quote any args containing shell meta-characters.
2091 # Make two passes to allow for proper duplicate-argument suppression.
2092 ac_configure_args=
2093 ac_configure_args0=
2094 ac_configure_args1=
2095 ac_must_keep_next=false
2096 for ac_pass in 1 2
2097 do
2098 for ac_arg
2099 do
2100 case $ac_arg in
2101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2103 | -silent | --silent | --silen | --sile | --sil)
2104 continue ;;
2105 *\'*)
2106 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 esac
2108 case $ac_pass in
2109 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110 2)
2111 as_fn_append ac_configure_args1 " '$ac_arg'"
2112 if test $ac_must_keep_next = true; then
2113 ac_must_keep_next=false # Got value, back to normal.
2114 else
2115 case $ac_arg in
2116 *=* | --config-cache | -C | -disable-* | --disable-* \
2117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2119 | -with-* | --with-* | -without-* | --without-* | --x)
2120 case "$ac_configure_args0 " in
2121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122 esac
2123 ;;
2124 -* ) ac_must_keep_next=true ;;
2125 esac
2126 fi
2127 as_fn_append ac_configure_args " '$ac_arg'"
2128 ;;
2129 esac
2130 done
2131 done
2132 { ac_configure_args0=; unset ac_configure_args0;}
2133 { ac_configure_args1=; unset ac_configure_args1;}
2134
2135 # When interrupted or exit'd, cleanup temporary files, and complete
2136 # config.log. We remove comments because anyway the quotes in there
2137 # would cause problems or look ugly.
2138 # WARNING: Use '\'' to represent an apostrophe within the trap.
2139 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2140 trap 'exit_status=$?
2141 # Save into config.log some information that might help in debugging.
2142 {
2143 echo
2144
2145 $as_echo "## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##"
2148 echo
2149 # The following way of writing the cache mishandles newlines in values,
2150 (
2151 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152 eval ac_val=\$$ac_var
2153 case $ac_val in #(
2154 *${as_nl}*)
2155 case $ac_var in #(
2156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158 esac
2159 case $ac_var in #(
2160 _ | IFS | as_nl) ;; #(
2161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162 *) { eval $ac_var=; unset $ac_var;} ;;
2163 esac ;;
2164 esac
2165 done
2166 (set) 2>&1 |
2167 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168 *${as_nl}ac_space=\ *)
2169 sed -n \
2170 "s/'\''/'\''\\\\'\'''\''/g;
2171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172 ;; #(
2173 *)
2174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175 ;;
2176 esac |
2177 sort
2178 )
2179 echo
2180
2181 $as_echo "## ----------------- ##
2182 ## Output variables. ##
2183 ## ----------------- ##"
2184 echo
2185 for ac_var in $ac_subst_vars
2186 do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 esac
2191 $as_echo "$ac_var='\''$ac_val'\''"
2192 done | sort
2193 echo
2194
2195 if test -n "$ac_subst_files"; then
2196 $as_echo "## ------------------- ##
2197 ## File substitutions. ##
2198 ## ------------------- ##"
2199 echo
2200 for ac_var in $ac_subst_files
2201 do
2202 eval ac_val=\$$ac_var
2203 case $ac_val in
2204 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 esac
2206 $as_echo "$ac_var='\''$ac_val'\''"
2207 done | sort
2208 echo
2209 fi
2210
2211 if test -s confdefs.h; then
2212 $as_echo "## ----------- ##
2213 ## confdefs.h. ##
2214 ## ----------- ##"
2215 echo
2216 cat confdefs.h
2217 echo
2218 fi
2219 test "$ac_signal" != 0 &&
2220 $as_echo "$as_me: caught signal $ac_signal"
2221 $as_echo "$as_me: exit $exit_status"
2222 } >&5
2223 rm -f core *.core core.conftest.* &&
2224 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225 exit $exit_status
2226 ' 0
2227 for ac_signal in 1 2 13 15; do
2228 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2229 done
2230 ac_signal=0
2231
2232 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2233 rm -f -r conftest* confdefs.h
2234
2235 $as_echo "/* confdefs.h */" > confdefs.h
2236
2237 # Predefined preprocessor variables.
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_NAME "$PACKAGE_NAME"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_STRING "$PACKAGE_STRING"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_URL "$PACKAGE_URL"
2261 _ACEOF
2262
2263
2264 # Let the site file select an alternate cache file if it wants to.
2265 # Prefer an explicitly selected file to automatically selected ones.
2266 ac_site_file1=NONE
2267 ac_site_file2=NONE
2268 if test -n "$CONFIG_SITE"; then
2269 # We do not want a PATH search for config.site.
2270 case $CONFIG_SITE in #((
2271 -*) ac_site_file1=./$CONFIG_SITE;;
2272 */*) ac_site_file1=$CONFIG_SITE;;
2273 *) ac_site_file1=./$CONFIG_SITE;;
2274 esac
2275 elif test "x$prefix" != xNONE; then
2276 ac_site_file1=$prefix/share/config.site
2277 ac_site_file2=$prefix/etc/config.site
2278 else
2279 ac_site_file1=$ac_default_prefix/share/config.site
2280 ac_site_file2=$ac_default_prefix/etc/config.site
2281 fi
2282 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283 do
2284 test "x$ac_site_file" = xNONE && continue
2285 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2287 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288 sed 's/^/| /' "$ac_site_file" >&5
2289 . "$ac_site_file" \
2290 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 as_fn_error $? "failed to load site script $ac_site_file
2293 See \`config.log' for more details" "$LINENO" 5; }
2294 fi
2295 done
2296
2297 if test -r "$cache_file"; then
2298 # Some versions of bash will fail to source /dev/null (special files
2299 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2300 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2302 $as_echo "$as_me: loading cache $cache_file" >&6;}
2303 case $cache_file in
2304 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305 *) . "./$cache_file";;
2306 esac
2307 fi
2308 else
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2310 $as_echo "$as_me: creating cache $cache_file" >&6;}
2311 >$cache_file
2312 fi
2313
2314 # Check that the precious variables saved in the cache have kept the same
2315 # value.
2316 ac_cache_corrupted=false
2317 for ac_var in $ac_precious_vars; do
2318 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319 eval ac_new_set=\$ac_env_${ac_var}_set
2320 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321 eval ac_new_val=\$ac_env_${ac_var}_value
2322 case $ac_old_set,$ac_new_set in
2323 set,)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,set)
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2329 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330 ac_cache_corrupted=: ;;
2331 ,);;
2332 *)
2333 if test "x$ac_old_val" != "x$ac_new_val"; then
2334 # differences in whitespace do not lead to failure.
2335 ac_old_val_w=`echo x $ac_old_val`
2336 ac_new_val_w=`echo x $ac_new_val`
2337 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340 ac_cache_corrupted=:
2341 else
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2343 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344 eval $ac_var=\$ac_old_val
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2347 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2349 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2350 fi;;
2351 esac
2352 # Pass precious variables to config.status.
2353 if test "$ac_new_set" = set; then
2354 case $ac_new_val in
2355 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2356 *) ac_arg=$ac_var=$ac_new_val ;;
2357 esac
2358 case " $ac_configure_args " in
2359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2360 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361 esac
2362 fi
2363 done
2364 if $ac_cache_corrupted; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370 fi
2371 ## -------------------- ##
2372 ## Main body of script. ##
2373 ## -------------------- ##
2374
2375 ac_ext=c
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380
2381
2382 am__api_version='1.16'
2383
2384 ac_aux_dir=
2385 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2386 if test -f "$ac_dir/install-sh"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/install-sh -c"
2389 break
2390 elif test -f "$ac_dir/install.sh"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/install.sh -c"
2393 break
2394 elif test -f "$ac_dir/shtool"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/shtool install -c"
2397 break
2398 fi
2399 done
2400 if test -z "$ac_aux_dir"; then
2401 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2402 fi
2403
2404 # These three variables are undocumented and unsupported,
2405 # and are intended to be withdrawn in a future Autoconf release.
2406 # They can cause serious problems if a builder's source tree is in a directory
2407 # whose full name contains unusual characters.
2408 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2409 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2410 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2411
2412
2413 # Find a good install program. We prefer a C program (faster),
2414 # so one script is as good as another. But avoid the broken or
2415 # incompatible versions:
2416 # SysV /etc/install, /usr/sbin/install
2417 # SunOS /usr/etc/install
2418 # IRIX /sbin/install
2419 # AIX /bin/install
2420 # AmigaOS /C/install, which installs bootblocks on floppy discs
2421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424 # OS/2's system install, which has a completely different semantic
2425 # ./install, which can be erroneously created by make from ./install.sh.
2426 # Reject install programs that cannot install multiple files.
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2429 if test -z "$INSTALL"; then
2430 if ${ac_cv_path_install+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 # Account for people who put trailing slashes in PATH elements.
2439 case $as_dir/ in #((
2440 ./ | .// | /[cC]/* | \
2441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2443 /usr/ucb/* ) ;;
2444 *)
2445 # OSF1 and SCO ODT 3.0 have their own names for install.
2446 # Don't use installbsd from OSF since it installs stuff as root
2447 # by default.
2448 for ac_prog in ginstall scoinst install; do
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2451 if test $ac_prog = install &&
2452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # AIX install. It has an incompatible calling convention.
2454 :
2455 elif test $ac_prog = install &&
2456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # program-specific install script used by HP pwplus--don't use.
2458 :
2459 else
2460 rm -rf conftest.one conftest.two conftest.dir
2461 echo one > conftest.one
2462 echo two > conftest.two
2463 mkdir conftest.dir
2464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465 test -s conftest.one && test -s conftest.two &&
2466 test -s conftest.dir/conftest.one &&
2467 test -s conftest.dir/conftest.two
2468 then
2469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2470 break 3
2471 fi
2472 fi
2473 fi
2474 done
2475 done
2476 ;;
2477 esac
2478
2479 done
2480 IFS=$as_save_IFS
2481
2482 rm -rf conftest.one conftest.two conftest.dir
2483
2484 fi
2485 if test "${ac_cv_path_install+set}" = set; then
2486 INSTALL=$ac_cv_path_install
2487 else
2488 # As a last resort, use the slow shell script. Don't cache a
2489 # value for INSTALL within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the value is a relative name.
2492 INSTALL=$ac_install_sh
2493 fi
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496 $as_echo "$INSTALL" >&6; }
2497
2498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499 # It thinks the first close brace ends the variable substitution.
2500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507 $as_echo_n "checking whether build environment is sane... " >&6; }
2508 # Reject unsafe characters in $srcdir or the absolute working directory
2509 # name. Accept space and tab only in the latter.
2510 am_lf='
2511 '
2512 case `pwd` in
2513 *[\\\"\#\$\&\'\`$am_lf]*)
2514 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2515 esac
2516 case $srcdir in
2517 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2518 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2519 esac
2520
2521 # Do 'set' in a subshell so we don't clobber the current shell's
2522 # arguments. Must try -L first in case configure is actually a
2523 # symlink; some systems play weird games with the mod time of symlinks
2524 # (eg FreeBSD returns the mod time of the symlink's containing
2525 # directory).
2526 if (
2527 am_has_slept=no
2528 for am_try in 1 2; do
2529 echo "timestamp, slept: $am_has_slept" > conftest.file
2530 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531 if test "$*" = "X"; then
2532 # -L didn't work.
2533 set X `ls -t "$srcdir/configure" conftest.file`
2534 fi
2535 if test "$*" != "X $srcdir/configure conftest.file" \
2536 && test "$*" != "X conftest.file $srcdir/configure"; then
2537
2538 # If neither matched, then we have a broken ls. This can happen
2539 # if, for instance, CONFIG_SHELL is bash and it inherits a
2540 # broken ls alias from the environment. This has actually
2541 # happened. Such a system could not be considered "sane".
2542 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2544 fi
2545 if test "$2" = conftest.file || test $am_try -eq 2; then
2546 break
2547 fi
2548 # Just in case.
2549 sleep 1
2550 am_has_slept=yes
2551 done
2552 test "$2" = conftest.file
2553 )
2554 then
2555 # Ok.
2556 :
2557 else
2558 as_fn_error $? "newly created file is older than distributed files!
2559 Check your system clock" "$LINENO" 5
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562 $as_echo "yes" >&6; }
2563 # If we didn't sleep, we still need to ensure time stamps of config.status and
2564 # generated files are strictly newer.
2565 am_sleep_pid=
2566 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2567 ( sleep 1 ) &
2568 am_sleep_pid=$!
2569 fi
2570
2571 rm -f conftest.file
2572
2573 test "$program_prefix" != NONE &&
2574 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2575 # Use a double $ so make ignores it.
2576 test "$program_suffix" != NONE &&
2577 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2578 # Double any \ or $.
2579 # By default was `s,x,x', remove it if useless.
2580 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2581 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2582
2583 # Expand $ac_aux_dir to an absolute path.
2584 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2585
2586 if test x"${MISSING+set}" != xset; then
2587 MISSING="\${SHELL} '$am_aux_dir/missing'"
2588 fi
2589 # Use eval to expand $SHELL
2590 if eval "$MISSING --is-lightweight"; then
2591 am_missing_run="$MISSING "
2592 else
2593 am_missing_run=
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2595 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2596 fi
2597
2598 if test x"${install_sh+set}" != xset; then
2599 case $am_aux_dir in
2600 *\ * | *\ *)
2601 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2602 *)
2603 install_sh="\${SHELL} $am_aux_dir/install-sh"
2604 esac
2605 fi
2606
2607 # Installed binaries are usually stripped using 'strip' when the user
2608 # run "make install-strip". However 'strip' might not be the right
2609 # tool to use in cross-compilation environments, therefore Automake
2610 # will honor the 'STRIP' environment variable to overrule this program.
2611 if test "$cross_compiling" != no; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_STRIP+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$STRIP"; then
2621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 STRIP=$ac_cv_prog_STRIP
2641 if test -n "$STRIP"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2643 $as_echo "$STRIP" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649
2650 fi
2651 if test -z "$ac_cv_prog_STRIP"; then
2652 ac_ct_STRIP=$STRIP
2653 # Extract the first word of "strip", so it can be a program name with args.
2654 set dummy strip; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$ac_ct_STRIP"; then
2661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_ac_ct_STRIP="strip"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2681 if test -n "$ac_ct_STRIP"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2683 $as_echo "$ac_ct_STRIP" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689 if test "x$ac_ct_STRIP" = x; then
2690 STRIP=":"
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693 yes:)
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696 ac_tool_warned=yes ;;
2697 esac
2698 STRIP=$ac_ct_STRIP
2699 fi
2700 else
2701 STRIP="$ac_cv_prog_STRIP"
2702 fi
2703
2704 fi
2705 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2708 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2709 if test -z "$MKDIR_P"; then
2710 if ${ac_cv_path_mkdir+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_prog in mkdir gmkdir; do
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2721 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2722 'mkdir (GNU coreutils) '* | \
2723 'mkdir (coreutils) '* | \
2724 'mkdir (fileutils) '4.1*)
2725 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2726 break 3;;
2727 esac
2728 done
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi
2734
2735 test -d ./--version && rmdir ./--version
2736 if test "${ac_cv_path_mkdir+set}" = set; then
2737 MKDIR_P="$ac_cv_path_mkdir -p"
2738 else
2739 # As a last resort, use the slow shell script. Don't cache a
2740 # value for MKDIR_P within a source directory, because that will
2741 # break other packages using the cache if that directory is
2742 # removed, or if the value is a relative name.
2743 MKDIR_P="$ac_install_sh -d"
2744 fi
2745 fi
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2747 $as_echo "$MKDIR_P" >&6; }
2748
2749 for ac_prog in gawk mawk nawk awk
2750 do
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_AWK+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$AWK"; then
2759 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_AWK="$ac_prog"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 AWK=$ac_cv_prog_AWK
2779 if test -n "$AWK"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2781 $as_echo "$AWK" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787
2788 test -n "$AWK" && break
2789 done
2790
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2792 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2793 set x ${MAKE-make}
2794 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2795 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 cat >conftest.make <<\_ACEOF
2799 SHELL = /bin/sh
2800 all:
2801 @echo '@@@%%%=$(MAKE)=@@@%%%'
2802 _ACEOF
2803 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2804 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2805 *@@@%%%=?*=@@@%%%*)
2806 eval ac_cv_prog_make_${ac_make}_set=yes;;
2807 *)
2808 eval ac_cv_prog_make_${ac_make}_set=no;;
2809 esac
2810 rm -f conftest.make
2811 fi
2812 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 $as_echo "yes" >&6; }
2815 SET_MAKE=
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 SET_MAKE="MAKE=${MAKE-make}"
2820 fi
2821
2822 rm -rf .tst 2>/dev/null
2823 mkdir .tst 2>/dev/null
2824 if test -d .tst; then
2825 am__leading_dot=.
2826 else
2827 am__leading_dot=_
2828 fi
2829 rmdir .tst 2>/dev/null
2830
2831 # Check whether --enable-silent-rules was given.
2832 if test "${enable_silent_rules+set}" = set; then :
2833 enableval=$enable_silent_rules;
2834 fi
2835
2836 case $enable_silent_rules in # (((
2837 yes) AM_DEFAULT_VERBOSITY=0;;
2838 no) AM_DEFAULT_VERBOSITY=1;;
2839 *) AM_DEFAULT_VERBOSITY=1;;
2840 esac
2841 am_make=${MAKE-make}
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2843 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2844 if ${am_cv_make_support_nested_variables+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if $as_echo 'TRUE=$(BAR$(V))
2848 BAR0=false
2849 BAR1=true
2850 V=1
2851 am__doit:
2852 @$(TRUE)
2853 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2854 am_cv_make_support_nested_variables=yes
2855 else
2856 am_cv_make_support_nested_variables=no
2857 fi
2858 fi
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2860 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2861 if test $am_cv_make_support_nested_variables = yes; then
2862 AM_V='$(V)'
2863 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2864 else
2865 AM_V=$AM_DEFAULT_VERBOSITY
2866 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2867 fi
2868 AM_BACKSLASH='\'
2869
2870 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872 # is not polluted with repeated "-I."
2873 am__isrc=' -I$(srcdir)'
2874 # test to see if srcdir already configured
2875 if test -f $srcdir/config.status; then
2876 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2877 fi
2878 fi
2879
2880 # test whether we have cygpath
2881 if test -z "$CYGPATH_W"; then
2882 if (cygpath --version) >/dev/null 2>/dev/null; then
2883 CYGPATH_W='cygpath -w'
2884 else
2885 CYGPATH_W=echo
2886 fi
2887 fi
2888
2889
2890 # Define the identity of the package.
2891 PACKAGE='xauth'
2892 VERSION='1.1.1'
2893
2894
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE "$PACKAGE"
2897 _ACEOF
2898
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define VERSION "$VERSION"
2902 _ACEOF
2903
2904 # Some tools Automake needs.
2905
2906 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2907
2908
2909 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2910
2911
2912 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2913
2914
2915 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2916
2917
2918 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2919
2920 # For better backward compatibility. To be removed once Automake 1.9.x
2921 # dies out for good. For more background, see:
2922 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2923 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2924 mkdir_p='$(MKDIR_P)'
2925
2926 # We need awk for the "check" target (and possibly the TAP driver). The
2927 # system "awk" is bad on some platforms.
2928 # Always define AMTAR for backward compatibility. Yes, it's still used
2929 # in the wild :-( We should find a proper way to deprecate it ...
2930 AMTAR='$${TAR-tar}'
2931
2932
2933 # We'll loop over all known methods to create a tar archive until one works.
2934 _am_tools='gnutar pax cpio none'
2935
2936 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2937
2938
2939
2940
2941
2942
2943 # POSIX will say in a future version that running "rm -f" with no argument
2944 # is OK; and we want to be able to make that assumption in our Makefile
2945 # recipes. So use an aggressive probe to check that the usage we want is
2946 # actually supported "in the wild" to an acceptable degree.
2947 # See automake bug#10828.
2948 # To make any issue more visible, cause the running configure to be aborted
2949 # by default if the 'rm' program in use doesn't match our expectations; the
2950 # user can still override this though.
2951 if rm -f && rm -fr && rm -rf; then : OK; else
2952 cat >&2 <<'END'
2953 Oops!
2954
2955 Your 'rm' program seems unable to run without file operands specified
2956 on the command line, even when the '-f' option is present. This is contrary
2957 to the behaviour of most rm programs out there, and not conforming with
2958 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2959
2960 Please tell bug-automake@gnu.org about your system, including the value
2961 of your $PATH and any error possibly output before this message. This
2962 can help us improve future automake versions.
2963
2964 END
2965 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2966 echo 'Configuration will proceed anyway, since you have set the' >&2
2967 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2968 echo >&2
2969 else
2970 cat >&2 <<'END'
2971 Aborting the configuration process, to ensure you take notice of the issue.
2972
2973 You can download and install GNU coreutils to get an 'rm' implementation
2974 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2975
2976 If you want to complete the configuration process using your problematic
2977 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2978 to "yes", and re-run configure.
2979
2980 END
2981 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2982 fi
2983 fi
2984
2985
2986 ac_config_headers="$ac_config_headers config.h"
2987
2988
2989 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2990 # Must be called before any macros that run the compiler (like
2991 # AC_PROG_LIBTOOL) to avoid autoconf errors.
2992 DEPDIR="${am__leading_dot}deps"
2993
2994 ac_config_commands="$ac_config_commands depfiles"
2995
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2997 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2998 cat > confinc.mk << 'END'
2999 am__doit:
3000 @echo this is the am__doit target >confinc.out
3001 .PHONY: am__doit
3002 END
3003 am__include="#"
3004 am__quote=
3005 # BSD make does it like this.
3006 echo '.include "confinc.mk" # ignored' > confmf.BSD
3007 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3008 echo 'include confinc.mk # ignored' > confmf.GNU
3009 _am_result=no
3010 for s in GNU BSD; do
3011 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3012 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }
3016 case $?:`cat confinc.out 2>/dev/null` in #(
3017 '0:this is the am__doit target') :
3018 case $s in #(
3019 BSD) :
3020 am__include='.include' am__quote='"' ;; #(
3021 *) :
3022 am__include='include' am__quote='' ;;
3023 esac ;; #(
3024 *) :
3025 ;;
3026 esac
3027 if test "$am__include" != "#"; then
3028 _am_result="yes ($s style)"
3029 break
3030 fi
3031 done
3032 rm -f confinc.* confmf.*
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3034 $as_echo "${_am_result}" >&6; }
3035
3036 # Check whether --enable-dependency-tracking was given.
3037 if test "${enable_dependency_tracking+set}" = set; then :
3038 enableval=$enable_dependency_tracking;
3039 fi
3040
3041 if test "x$enable_dependency_tracking" != xno; then
3042 am_depcomp="$ac_aux_dir/depcomp"
3043 AMDEPBACKSLASH='\'
3044 am__nodep='_no'
3045 fi
3046 if test "x$enable_dependency_tracking" != xno; then
3047 AMDEP_TRUE=
3048 AMDEP_FALSE='#'
3049 else
3050 AMDEP_TRUE='#'
3051 AMDEP_FALSE=
3052 fi
3053
3054
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 if test -z "$ac_cv_prog_CC"; then
3100 ac_ct_CC=$CC
3101 # Extract the first word of "gcc", so it can be a program name with args.
3102 set dummy gcc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_CC="gcc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3131 $as_echo "$ac_ct_CC" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137 if test "x$ac_ct_CC" = x; then
3138 CC=""
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 CC=$ac_ct_CC
3147 fi
3148 else
3149 CC="$ac_cv_prog_CC"
3150 fi
3151
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_CC="${ac_tool_prefix}cc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 fi
3193 if test -z "$CC"; then
3194 # Extract the first word of "cc", so it can be a program name with args.
3195 set dummy cc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 ac_prog_rejected=no
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3213 ac_prog_rejected=yes
3214 continue
3215 fi
3216 ac_cv_prog_CC="cc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 if test $ac_prog_rejected = yes; then
3225 # We found a bogon in the path, so make sure we never use it.
3226 set dummy $ac_cv_prog_CC
3227 shift
3228 if test $# != 0; then
3229 # We chose a different compiler from the bogus one.
3230 # However, it has the same basename, so the bogon will be chosen
3231 # first if we set CC to just the basename; use the full file name.
3232 shift
3233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3234 fi
3235 fi
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 fi
3249 if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
3251 for ac_prog in cl.exe
3252 do
3253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 test -n "$CC" && break
3291 done
3292 fi
3293 if test -z "$CC"; then
3294 ac_ct_CC=$CC
3295 for ac_prog in cl.exe
3296 do
3297 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy $ac_prog; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_ac_ct_CC="$ac_prog"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 test -n "$ac_ct_CC" && break
3335 done
3336
3337 if test "x$ac_ct_CC" = x; then
3338 CC=""
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341 yes:)
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344 ac_tool_warned=yes ;;
3345 esac
3346 CC=$ac_ct_CC
3347 fi
3348 fi
3349
3350 fi
3351
3352
3353 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "no acceptable C compiler found in \$PATH
3356 See \`config.log' for more details" "$LINENO" 5; }
3357
3358 # Provide some information about the compiler.
3359 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3360 set X $ac_compile
3361 ac_compiler=$2
3362 for ac_option in --version -v -V -qversion; do
3363 { { ac_try="$ac_compiler $ac_option >&5"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3371 ac_status=$?
3372 if test -s conftest.err; then
3373 sed '10a\
3374 ... rest of stderr output deleted ...
3375 10q' conftest.err >conftest.er1
3376 cat conftest.er1 >&5
3377 fi
3378 rm -f conftest.er1 conftest.err
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }
3381 done
3382
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 ac_clean_files_save=$ac_clean_files
3395 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3396 # Try to create an executable without -o first, disregard a.out.
3397 # It will help us diagnose broken compilers, and finding out an intuition
3398 # of exeext.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3400 $as_echo_n "checking whether the C compiler works... " >&6; }
3401 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3402
3403 # The possible output files:
3404 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3405
3406 ac_rmfiles=
3407 for ac_file in $ac_files
3408 do
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3412 esac
3413 done
3414 rm -f $ac_rmfiles
3415
3416 if { { ac_try="$ac_link_default"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_link_default") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }; then :
3427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3429 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3430 # so that the user can short-circuit this test for compilers unknown to
3431 # Autoconf.
3432 for ac_file in $ac_files ''
3433 do
3434 test -f "$ac_file" || continue
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3437 ;;
3438 [ab].out )
3439 # We found the default executable, but exeext='' is most
3440 # certainly right.
3441 break;;
3442 *.* )
3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3444 then :; else
3445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 fi
3447 # We set ac_cv_exeext here because the later test for it is not
3448 # safe: cross compilers may not add the suffix if given an `-o'
3449 # argument, so we may need to know it at that point already.
3450 # Even if this section looks crufty: it has the advantage of
3451 # actually working.
3452 break;;
3453 * )
3454 break;;
3455 esac
3456 done
3457 test "$ac_cv_exeext" = no && ac_cv_exeext=
3458
3459 else
3460 ac_file=''
3461 fi
3462 if test -z "$ac_file"; then :
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error 77 "C compiler cannot create executables
3471 See \`config.log' for more details" "$LINENO" 5; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3474 $as_echo "yes" >&6; }
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3477 $as_echo_n "checking for C compiler default output file name... " >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3479 $as_echo "$ac_file" >&6; }
3480 ac_exeext=$ac_cv_exeext
3481
3482 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3483 ac_clean_files=$ac_clean_files_save
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3485 $as_echo_n "checking for suffix of executables... " >&6; }
3486 if { { ac_try="$ac_link"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_link") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }; then :
3497 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3498 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3499 # work properly (i.e., refer to `conftest.exe'), while it won't with
3500 # `rm'.
3501 for ac_file in conftest.exe conftest conftest.*; do
3502 test -f "$ac_file" || continue
3503 case $ac_file in
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3506 break;;
3507 * ) break;;
3508 esac
3509 done
3510 else
3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3514 See \`config.log' for more details" "$LINENO" 5; }
3515 fi
3516 rm -f conftest conftest$ac_cv_exeext
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3518 $as_echo "$ac_cv_exeext" >&6; }
3519
3520 rm -f conftest.$ac_ext
3521 EXEEXT=$ac_cv_exeext
3522 ac_exeext=$EXEEXT
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 #include <stdio.h>
3526 int
3527 main ()
3528 {
3529 FILE *f = fopen ("conftest.out", "w");
3530 return ferror (f) || fclose (f) != 0;
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 ac_clean_files="$ac_clean_files conftest.out"
3537 # Check that the compiler produces executables we can run. If not, either
3538 # the compiler is broken, or we cross compile.
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3540 $as_echo_n "checking whether we are cross compiling... " >&6; }
3541 if test "$cross_compiling" != yes; then
3542 { { ac_try="$ac_link"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_link") 2>&5
3550 ac_status=$?
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553 if { ac_try='./conftest$ac_cv_exeext'
3554 { { case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_try") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; }; then
3564 cross_compiling=no
3565 else
3566 if test "$cross_compiling" = maybe; then
3567 cross_compiling=yes
3568 else
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $? "cannot run C compiled programs.
3572 If you meant to cross compile, use \`--host'.
3573 See \`config.log' for more details" "$LINENO" 5; }
3574 fi
3575 fi
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3578 $as_echo "$cross_compiling" >&6; }
3579
3580 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3581 ac_clean_files=$ac_clean_files_save
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3583 $as_echo_n "checking for suffix of object files... " >&6; }
3584 if ${ac_cv_objext+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.o conftest.obj
3599 if { { ac_try="$ac_compile"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_compile") 2>&5
3607 ac_status=$?
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }; then :
3610 for ac_file in conftest.o conftest.obj conftest.*; do
3611 test -f "$ac_file" || continue;
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3615 break;;
3616 esac
3617 done
3618 else
3619 $as_echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot compute suffix of object files: cannot compile
3625 See \`config.log' for more details" "$LINENO" 5; }
3626 fi
3627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3630 $as_echo "$ac_cv_objext" >&6; }
3631 OBJEXT=$ac_cv_objext
3632 ac_objext=$OBJEXT
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3634 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3635 if ${ac_cv_c_compiler_gnu+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640
3641 int
3642 main ()
3643 {
3644 #ifndef __GNUC__
3645 choke me
3646 #endif
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_compiler_gnu=yes
3654 else
3655 ac_compiler_gnu=no
3656 fi
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3662 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3663 if test $ac_compiler_gnu = yes; then
3664 GCC=yes
3665 else
3666 GCC=
3667 fi
3668 ac_test_CFLAGS=${CFLAGS+set}
3669 ac_save_CFLAGS=$CFLAGS
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3671 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3672 if ${ac_cv_prog_cc_g+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 ac_save_c_werror_flag=$ac_c_werror_flag
3676 ac_c_werror_flag=yes
3677 ac_cv_prog_cc_g=no
3678 CFLAGS="-g"
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_cv_prog_cc_g=yes
3692 else
3693 CFLAGS=""
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696
3697 int
3698 main ()
3699 {
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706
3707 else
3708 ac_c_werror_flag=$ac_save_c_werror_flag
3709 CFLAGS="-g"
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712
3713 int
3714 main ()
3715 {
3716
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_g=yes
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 fi
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734 CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736 if test "$GCC" = yes; then
3737 CFLAGS="-g -O2"
3738 else
3739 CFLAGS="-g"
3740 fi
3741 else
3742 if test "$GCC" = yes; then
3743 CFLAGS="-O2"
3744 else
3745 CFLAGS=
3746 fi
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if ${ac_cv_prog_cc_c89+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 ac_cv_prog_cc_c89=no
3754 ac_save_CC=$CC
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 struct stat;
3760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3761 struct buf { int x; };
3762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3763 static char *e (p, i)
3764 char **p;
3765 int i;
3766 {
3767 return p[i];
3768 }
3769 static char *f (char * (*g) (char **, int), char **p, ...)
3770 {
3771 char *s;
3772 va_list v;
3773 va_start (v,p);
3774 s = g (p, va_arg (v,int));
3775 va_end (v);
3776 return s;
3777 }
3778
3779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3780 function prototypes and stuff, but not '\xHH' hex character constants.
3781 These don't provoke an error unfortunately, instead are silently treated
3782 as 'x'. The following induces an error, until -std is added to get
3783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3784 array size at least. It's necessary to write '\x00'==0 to get something
3785 that's true only with -std. */
3786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787
3788 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3789 inside strings and character constants. */
3790 #define FOO(x) 'x'
3791 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792
3793 int test (int i, double x);
3794 struct s1 {int (*f) (int a);};
3795 struct s2 {int (*f) (double a);};
3796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3797 int argc;
3798 char **argv;
3799 int
3800 main ()
3801 {
3802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3808 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809 do
3810 CC="$ac_save_CC $ac_arg"
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812 ac_cv_prog_cc_c89=$ac_arg
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext
3815 test "x$ac_cv_prog_cc_c89" != "xno" && break
3816 done
3817 rm -f conftest.$ac_ext
3818 CC=$ac_save_CC
3819
3820 fi
3821 # AC_CACHE_VAL
3822 case "x$ac_cv_prog_cc_c89" in
3823 x)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3825 $as_echo "none needed" >&6; } ;;
3826 xno)
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3828 $as_echo "unsupported" >&6; } ;;
3829 *)
3830 CC="$CC $ac_cv_prog_cc_c89"
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3832 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3833 esac
3834 if test "x$ac_cv_prog_cc_c89" != xno; then :
3835
3836 fi
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3850 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3851 if ${am_cv_prog_cc_c_o+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856
3857 int
3858 main ()
3859 {
3860
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 # Make sure it works both with $CC and with simple cc.
3866 # Following AC_PROG_CC_C_O, we do the test twice because some
3867 # compilers refuse to overwrite an existing .o file with -o,
3868 # though they will create one.
3869 am_cv_prog_cc_c_o=yes
3870 for am_i in 1 2; do
3871 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3872 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } \
3876 && test -f conftest2.$ac_objext; then
3877 : OK
3878 else
3879 am_cv_prog_cc_c_o=no
3880 break
3881 fi
3882 done
3883 rm -f core conftest*
3884 unset am_i
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3887 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3888 if test "$am_cv_prog_cc_c_o" != yes; then
3889 # Losing compiler, so override with the script.
3890 # FIXME: It is wrong to rewrite CC.
3891 # But if we don't then we get into trouble of one sort or another.
3892 # A longer-term fix would be to have automake use am__CC in this case,
3893 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3894 CC="$am_aux_dir/compile $CC"
3895 fi
3896 ac_ext=c
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902
3903 depcc="$CC" am_compiler_list=
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3906 $as_echo_n "checking dependency style of $depcc... " >&6; }
3907 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3911 # We make a subdir and do the tests there. Otherwise we can end up
3912 # making bogus files that we don't know about and never remove. For
3913 # instance it was reported that on HP-UX the gcc test will end up
3914 # making a dummy file named 'D' -- because '-MD' means "put the output
3915 # in D".
3916 rm -rf conftest.dir
3917 mkdir conftest.dir
3918 # Copy depcomp to subdir because otherwise we won't find it if we're
3919 # using a relative directory.
3920 cp "$am_depcomp" conftest.dir
3921 cd conftest.dir
3922 # We will build objects and dependencies in a subdirectory because
3923 # it helps to detect inapplicable dependency modes. For instance
3924 # both Tru64's cc and ICC support -MD to output dependencies as a
3925 # side effect of compilation, but ICC will put the dependencies in
3926 # the current directory while Tru64 will put them in the object
3927 # directory.
3928 mkdir sub
3929
3930 am_cv_CC_dependencies_compiler_type=none
3931 if test "$am_compiler_list" = ""; then
3932 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3933 fi
3934 am__universal=false
3935 case " $depcc " in #(
3936 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3937 esac
3938
3939 for depmode in $am_compiler_list; do
3940 # Setup a source with many dependencies, because some compilers
3941 # like to wrap large dependency lists on column 80 (with \), and
3942 # we should not choose a depcomp mode which is confused by this.
3943 #
3944 # We need to recreate these files for each test, as the compiler may
3945 # overwrite some of them when testing with obscure command lines.
3946 # This happens at least with the AIX C compiler.
3947 : > sub/conftest.c
3948 for i in 1 2 3 4 5 6; do
3949 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3950 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3951 # Solaris 10 /bin/sh.
3952 echo '/* dummy */' > sub/conftst$i.h
3953 done
3954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3955
3956 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3957 # mode. It turns out that the SunPro C++ compiler does not properly
3958 # handle '-M -o', and we need to detect this. Also, some Intel
3959 # versions had trouble with output in subdirs.
3960 am__obj=sub/conftest.${OBJEXT-o}
3961 am__minus_obj="-o $am__obj"
3962 case $depmode in
3963 gcc)
3964 # This depmode causes a compiler race in universal mode.
3965 test "$am__universal" = false || continue
3966 ;;
3967 nosideeffect)
3968 # After this tag, mechanisms are not by side-effect, so they'll
3969 # only be used when explicitly requested.
3970 if test "x$enable_dependency_tracking" = xyes; then
3971 continue
3972 else
3973 break
3974 fi
3975 ;;
3976 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3977 # This compiler won't grok '-c -o', but also, the minuso test has
3978 # not run yet. These depmodes are late enough in the game, and
3979 # so weak that their functioning should not be impacted.
3980 am__obj=conftest.${OBJEXT-o}
3981 am__minus_obj=
3982 ;;
3983 none) break ;;
3984 esac
3985 if depmode=$depmode \
3986 source=sub/conftest.c object=$am__obj \
3987 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3988 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3989 >/dev/null 2>conftest.err &&
3990 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994 # icc doesn't choke on unknown options, it will just issue warnings
3995 # or remarks (even with -Werror). So we grep stderr for any message
3996 # that says an option was ignored or not supported.
3997 # When given -MP, icc 7.0 and 7.1 complain thusly:
3998 # icc: Command line warning: ignoring option '-M'; no argument required
3999 # The diagnosis changed in icc 8.0:
4000 # icc: Command line remark: option '-MP' not supported
4001 if (grep 'ignoring option' conftest.err ||
4002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003 am_cv_CC_dependencies_compiler_type=$depmode
4004 break
4005 fi
4006 fi
4007 done
4008
4009 cd ..
4010 rm -rf conftest.dir
4011 else
4012 am_cv_CC_dependencies_compiler_type=none
4013 fi
4014
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4017 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4018 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4019
4020 if
4021 test "x$enable_dependency_tracking" != xno \
4022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4023 am__fastdepCC_TRUE=
4024 am__fastdepCC_FALSE='#'
4025 else
4026 am__fastdepCC_TRUE='#'
4027 am__fastdepCC_FALSE=
4028 fi
4029
4030
4031
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4039 # On Suns, sometimes $CPP names a directory.
4040 if test -n "$CPP" && test -d "$CPP"; then
4041 CPP=
4042 fi
4043 if test -z "$CPP"; then
4044 if ${ac_cv_prog_CPP+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 # Double quotes because CPP needs to be expanded
4048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4049 do
4050 ac_preproc_ok=false
4051 for ac_c_preproc_warn_flag in '' yes
4052 do
4053 # Use a header file that comes with gcc, so configuring glibc
4054 # with a fresh cross-compiler works.
4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056 # <limits.h> exists even on freestanding compilers.
4057 # On the NeXT, cc -E runs the code through the compiler's parser,
4058 # not just through cpp. "Syntax error" is here to catch this case.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4069
4070 else
4071 # Broken: fails on valid input.
4072 continue
4073 fi
4074 rm -f conftest.err conftest.i conftest.$ac_ext
4075
4076 # OK, works on sane cases. Now check whether nonexistent headers
4077 # can be detected and how.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <ac_nonexistent.h>
4081 _ACEOF
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4083 # Broken: success on invalid input.
4084 continue
4085 else
4086 # Passes both tests.
4087 ac_preproc_ok=:
4088 break
4089 fi
4090 rm -f conftest.err conftest.i conftest.$ac_ext
4091
4092 done
4093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4094 rm -f conftest.i conftest.err conftest.$ac_ext
4095 if $ac_preproc_ok; then :
4096 break
4097 fi
4098
4099 done
4100 ac_cv_prog_CPP=$CPP
4101
4102 fi
4103 CPP=$ac_cv_prog_CPP
4104 else
4105 ac_cv_prog_CPP=$CPP
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4108 $as_echo "$CPP" >&6; }
4109 ac_preproc_ok=false
4110 for ac_c_preproc_warn_flag in '' yes
4111 do
4112 # Use a header file that comes with gcc, so configuring glibc
4113 # with a fresh cross-compiler works.
4114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4115 # <limits.h> exists even on freestanding compilers.
4116 # On the NeXT, cc -E runs the code through the compiler's parser,
4117 # not just through cpp. "Syntax error" is here to catch this case.
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #ifdef __STDC__
4121 # include <limits.h>
4122 #else
4123 # include <assert.h>
4124 #endif
4125 Syntax error
4126 _ACEOF
4127 if ac_fn_c_try_cpp "$LINENO"; then :
4128
4129 else
4130 # Broken: fails on valid input.
4131 continue
4132 fi
4133 rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135 # OK, works on sane cases. Now check whether nonexistent headers
4136 # can be detected and how.
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4140 _ACEOF
4141 if ac_fn_c_try_cpp "$LINENO"; then :
4142 # Broken: success on invalid input.
4143 continue
4144 else
4145 # Passes both tests.
4146 ac_preproc_ok=:
4147 break
4148 fi
4149 rm -f conftest.err conftest.i conftest.$ac_ext
4150
4151 done
4152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153 rm -f conftest.i conftest.err conftest.$ac_ext
4154 if $ac_preproc_ok; then :
4155
4156 else
4157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4160 See \`config.log' for more details" "$LINENO" 5; }
4161 fi
4162
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4171 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4172 if ${ac_cv_path_GREP+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -z "$GREP"; then
4176 ac_path_GREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in grep ggrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4186 as_fn_executable_p "$ac_path_GREP" || continue
4187 # Check for GNU ac_path_GREP and select it if it is found.
4188 # Check for GNU $ac_path_GREP
4189 case `"$ac_path_GREP" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo 'GREP' >> "conftest.nl"
4201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_GREP="$ac_path_GREP"
4207 ac_path_GREP_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_GREP_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_GREP"; then
4221 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_GREP=$GREP
4225 fi
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4229 $as_echo "$ac_cv_path_GREP" >&6; }
4230 GREP="$ac_cv_path_GREP"
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4234 $as_echo_n "checking for egrep... " >&6; }
4235 if ${ac_cv_path_EGREP+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4239 then ac_cv_path_EGREP="$GREP -E"
4240 else
4241 if test -z "$EGREP"; then
4242 ac_path_EGREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in egrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252 as_fn_executable_p "$ac_path_EGREP" || continue
4253 # Check for GNU ac_path_EGREP and select it if it is found.
4254 # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4258 *)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo 'EGREP' >> "conftest.nl"
4267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_EGREP="$ac_path_EGREP"
4273 ac_path_EGREP_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4280
4281 $ac_path_EGREP_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_EGREP"; then
4287 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4288 fi
4289 else
4290 ac_cv_path_EGREP=$EGREP
4291 fi
4292
4293 fi
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4296 $as_echo "$ac_cv_path_EGREP" >&6; }
4297 EGREP="$ac_cv_path_EGREP"
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4301 $as_echo_n "checking for ANSI C header files... " >&6; }
4302 if ${ac_cv_header_stdc+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <stdlib.h>
4308 #include <stdarg.h>
4309 #include <string.h>
4310 #include <float.h>
4311
4312 int
4313 main ()
4314 {
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_cv_header_stdc=yes
4322 else
4323 ac_cv_header_stdc=no
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326
4327 if test $ac_cv_header_stdc = yes; then
4328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331 #include <string.h>
4332
4333 _ACEOF
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335 $EGREP "memchr" >/dev/null 2>&1; then :
4336
4337 else
4338 ac_cv_header_stdc=no
4339 fi
4340 rm -f conftest*
4341
4342 fi
4343
4344 if test $ac_cv_header_stdc = yes; then
4345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #include <stdlib.h>
4349
4350 _ACEOF
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352 $EGREP "free" >/dev/null 2>&1; then :
4353
4354 else
4355 ac_cv_header_stdc=no
4356 fi
4357 rm -f conftest*
4358
4359 fi
4360
4361 if test $ac_cv_header_stdc = yes; then
4362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4363 if test "$cross_compiling" = yes; then :
4364 :
4365 else
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 #include <ctype.h>
4369 #include <stdlib.h>
4370 #if ((' ' & 0x0FF) == 0x020)
4371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373 #else
4374 # define ISLOWER(c) \
4375 (('a' <= (c) && (c) <= 'i') \
4376 || ('j' <= (c) && (c) <= 'r') \
4377 || ('s' <= (c) && (c) <= 'z'))
4378 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4379 #endif
4380
4381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4382 int
4383 main ()
4384 {
4385 int i;
4386 for (i = 0; i < 256; i++)
4387 if (XOR (islower (i), ISLOWER (i))
4388 || toupper (i) != TOUPPER (i))
4389 return 2;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_run "$LINENO"; then :
4394
4395 else
4396 ac_cv_header_stdc=no
4397 fi
4398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4399 conftest.$ac_objext conftest.beam conftest.$ac_ext
4400 fi
4401
4402 fi
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4405 $as_echo "$ac_cv_header_stdc" >&6; }
4406 if test $ac_cv_header_stdc = yes; then
4407
4408 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4409
4410 fi
4411
4412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4414 inttypes.h stdint.h unistd.h
4415 do :
4416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4418 "
4419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4420 cat >>confdefs.h <<_ACEOF
4421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422 _ACEOF
4423
4424 fi
4425
4426 done
4427
4428
4429
4430 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4431 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4432 MINIX=yes
4433 else
4434 MINIX=
4435 fi
4436
4437
4438 if test "$MINIX" = yes; then
4439
4440 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4441
4442
4443 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4444
4445
4446 $as_echo "#define _MINIX 1" >>confdefs.h
4447
4448 fi
4449
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4452 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4453 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458
4459 # define __EXTENSIONS__ 1
4460 $ac_includes_default
4461 int
4462 main ()
4463 {
4464
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_safe_to_define___extensions__=yes
4471 else
4472 ac_cv_safe_to_define___extensions__=no
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4477 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4478 test $ac_cv_safe_to_define___extensions__ = yes &&
4479 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4480
4481 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4482
4483 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4484
4485 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4486
4487 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4488
4489
4490
4491 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4504 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4505 if ${ac_cv_prog_cc_c99+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 ac_cv_prog_cc_c99=no
4509 ac_save_CC=$CC
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 #include <stdarg.h>
4513 #include <stdbool.h>
4514 #include <stdlib.h>
4515 #include <wchar.h>
4516 #include <stdio.h>
4517
4518 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4519 #define debug(...) fprintf (stderr, __VA_ARGS__)
4520 #define showlist(...) puts (#__VA_ARGS__)
4521 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4522 static void
4523 test_varargs_macros (void)
4524 {
4525 int x = 1234;
4526 int y = 5678;
4527 debug ("Flag");
4528 debug ("X = %d\n", x);
4529 showlist (The first, second, and third items.);
4530 report (x>y, "x is %d but y is %d", x, y);
4531 }
4532
4533 // Check long long types.
4534 #define BIG64 18446744073709551615ull
4535 #define BIG32 4294967295ul
4536 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4537 #if !BIG_OK
4538 your preprocessor is broken;
4539 #endif
4540 #if BIG_OK
4541 #else
4542 your preprocessor is broken;
4543 #endif
4544 static long long int bignum = -9223372036854775807LL;
4545 static unsigned long long int ubignum = BIG64;
4546
4547 struct incomplete_array
4548 {
4549 int datasize;
4550 double data[];
4551 };
4552
4553 struct named_init {
4554 int number;
4555 const wchar_t *name;
4556 double average;
4557 };
4558
4559 typedef const char *ccp;
4560
4561 static inline int
4562 test_restrict (ccp restrict text)
4563 {
4564 // See if C++-style comments work.
4565 // Iterate through items via the restricted pointer.
4566 // Also check for declarations in for loops.
4567 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4568 continue;
4569 return 0;
4570 }
4571
4572 // Check varargs and va_copy.
4573 static void
4574 test_varargs (const char *format, ...)
4575 {
4576 va_list args;
4577 va_start (args, format);
4578 va_list args_copy;
4579 va_copy (args_copy, args);
4580
4581 const char *str;
4582 int number;
4583 float fnumber;
4584
4585 while (*format)
4586 {
4587 switch (*format++)
4588 {
4589 case 's': // string
4590 str = va_arg (args_copy, const char *);
4591 break;
4592 case 'd': // int
4593 number = va_arg (args_copy, int);
4594 break;
4595 case 'f': // float
4596 fnumber = va_arg (args_copy, double);
4597 break;
4598 default:
4599 break;
4600 }
4601 }
4602 va_end (args_copy);
4603 va_end (args);
4604 }
4605
4606 int
4607 main ()
4608 {
4609
4610 // Check bool.
4611 _Bool success = false;
4612
4613 // Check restrict.
4614 if (test_restrict ("String literal") == 0)
4615 success = true;
4616 char *restrict newvar = "Another string";
4617
4618 // Check varargs.
4619 test_varargs ("s, d' f .", "string", 65, 34.234);
4620 test_varargs_macros ();
4621
4622 // Check flexible array members.
4623 struct incomplete_array *ia =
4624 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4625 ia->datasize = 10;
4626 for (int i = 0; i < ia->datasize; ++i)
4627 ia->data[i] = i * 1.234;
4628
4629 // Check named initializers.
4630 struct named_init ni = {
4631 .number = 34,
4632 .name = L"Test wide string",
4633 .average = 543.34343,
4634 };
4635
4636 ni.number = 58;
4637
4638 int dynamic_array[ni.number];
4639 dynamic_array[ni.number - 1] = 543;
4640
4641 // work around unused variable warnings
4642 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4643 || dynamic_array[ni.number - 1] != 543);
4644
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4650 do
4651 CC="$ac_save_CC $ac_arg"
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_c99=$ac_arg
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext
4656 test "x$ac_cv_prog_cc_c99" != "xno" && break
4657 done
4658 rm -f conftest.$ac_ext
4659 CC=$ac_save_CC
4660
4661 fi
4662 # AC_CACHE_VAL
4663 case "x$ac_cv_prog_cc_c99" in
4664 x)
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666 $as_echo "none needed" >&6; } ;;
4667 xno)
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669 $as_echo "unsupported" >&6; } ;;
4670 *)
4671 CC="$CC $ac_cv_prog_cc_c99"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4673 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4674 esac
4675 if test "x$ac_cv_prog_cc_c99" != xno; then :
4676
4677 fi
4678
4679
4680
4681
4682
4683
4684 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4685 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4686 CLANGCC="yes"
4687 else
4688 CLANGCC="no"
4689 fi
4690
4691 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4692 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4693 INTELCC="yes"
4694 else
4695 INTELCC="no"
4696 fi
4697
4698 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4699 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4700 SUNCC="yes"
4701 else
4702 SUNCC="no"
4703 fi
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4714 if test -n "$ac_tool_prefix"; then
4715 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4716 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 case $PKG_CONFIG in
4723 [\\/]* | ?:[\\/]*)
4724 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4725 ;;
4726 *)
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4737 fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742 ;;
4743 esac
4744 fi
4745 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4746 if test -n "$PKG_CONFIG"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4748 $as_echo "$PKG_CONFIG" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755 fi
4756 if test -z "$ac_cv_path_PKG_CONFIG"; then
4757 ac_pt_PKG_CONFIG=$PKG_CONFIG
4758 # Extract the first word of "pkg-config", so it can be a program name with args.
4759 set dummy pkg-config; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 case $ac_pt_PKG_CONFIG in
4766 [\\/]* | ?:[\\/]*)
4767 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4768 ;;
4769 *)
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 ;;
4786 esac
4787 fi
4788 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4789 if test -n "$ac_pt_PKG_CONFIG"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4791 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796
4797 if test "x$ac_pt_PKG_CONFIG" = x; then
4798 PKG_CONFIG=""
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801 yes:)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804 ac_tool_warned=yes ;;
4805 esac
4806 PKG_CONFIG=$ac_pt_PKG_CONFIG
4807 fi
4808 else
4809 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4810 fi
4811
4812 fi
4813 if test -n "$PKG_CONFIG"; then
4814 _pkg_min_version=0.9.0
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4816 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4817 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819 $as_echo "yes" >&6; }
4820 else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 PKG_CONFIG=""
4824 fi
4825 fi
4826 # Make sure we can run config.sub.
4827 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4828 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4831 $as_echo_n "checking build system type... " >&6; }
4832 if ${ac_cv_build+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 ac_build_alias=$build_alias
4836 test "x$ac_build_alias" = x &&
4837 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4838 test "x$ac_build_alias" = x &&
4839 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4840 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4841 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4842
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4845 $as_echo "$ac_cv_build" >&6; }
4846 case $ac_cv_build in
4847 *-*-*) ;;
4848 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4849 esac
4850 build=$ac_cv_build
4851 ac_save_IFS=$IFS; IFS='-'
4852 set x $ac_cv_build
4853 shift
4854 build_cpu=$1
4855 build_vendor=$2
4856 shift; shift
4857 # Remember, the first character of IFS is used to create $*,
4858 # except with old shells:
4859 build_os=$*
4860 IFS=$ac_save_IFS
4861 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4862
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4865 $as_echo_n "checking host system type... " >&6; }
4866 if ${ac_cv_host+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test "x$host_alias" = x; then
4870 ac_cv_host=$ac_cv_build
4871 else
4872 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4874 fi
4875
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4878 $as_echo "$ac_cv_host" >&6; }
4879 case $ac_cv_host in
4880 *-*-*) ;;
4881 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4882 esac
4883 host=$ac_cv_host
4884 ac_save_IFS=$IFS; IFS='-'
4885 set x $ac_cv_host
4886 shift
4887 host_cpu=$1
4888 host_vendor=$2
4889 shift; shift
4890 # Remember, the first character of IFS is used to create $*,
4891 # except with old shells:
4892 host_os=$*
4893 IFS=$ac_save_IFS
4894 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4895
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4898 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4899 if ${ac_cv_path_SED+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4903 for ac_i in 1 2 3 4 5 6 7; do
4904 ac_script="$ac_script$as_nl$ac_script"
4905 done
4906 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4907 { ac_script=; unset ac_script;}
4908 if test -z "$SED"; then
4909 ac_path_SED_found=false
4910 # Loop through the user's path and test for each of PROGNAME-LIST
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_prog in sed gsed; do
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4919 as_fn_executable_p "$ac_path_SED" || continue
4920 # Check for GNU ac_path_SED and select it if it is found.
4921 # Check for GNU $ac_path_SED
4922 case `"$ac_path_SED" --version 2>&1` in
4923 *GNU*)
4924 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4925 *)
4926 ac_count=0
4927 $as_echo_n 0123456789 >"conftest.in"
4928 while :
4929 do
4930 cat "conftest.in" "conftest.in" >"conftest.tmp"
4931 mv "conftest.tmp" "conftest.in"
4932 cp "conftest.in" "conftest.nl"
4933 $as_echo '' >> "conftest.nl"
4934 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936 as_fn_arith $ac_count + 1 && ac_count=$as_val
4937 if test $ac_count -gt ${ac_path_SED_max-0}; then
4938 # Best one so far, save it but keep looking for a better one
4939 ac_cv_path_SED="$ac_path_SED"
4940 ac_path_SED_max=$ac_count
4941 fi
4942 # 10*(2^10) chars as input seems more than enough
4943 test $ac_count -gt 10 && break
4944 done
4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4946 esac
4947
4948 $ac_path_SED_found && break 3
4949 done
4950 done
4951 done
4952 IFS=$as_save_IFS
4953 if test -z "$ac_cv_path_SED"; then
4954 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4955 fi
4956 else
4957 ac_cv_path_SED=$SED
4958 fi
4959
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4962 $as_echo "$ac_cv_path_SED" >&6; }
4963 SED="$ac_cv_path_SED"
4964 rm -f conftest.sed
4965
4966
4967
4968
4969
4970
4971 # Check whether --enable-selective-werror was given.
4972 if test "${enable_selective_werror+set}" = set; then :
4973 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4974 else
4975 SELECTIVE_WERROR=yes
4976 fi
4977
4978
4979
4980
4981
4982 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4983 if test "x$SUNCC" = "xyes"; then
4984 BASE_CFLAGS="-v"
4985 else
4986 BASE_CFLAGS=""
4987 fi
4988
4989 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 xorg_testset_save_CFLAGS="$CFLAGS"
5004
5005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 int i;
5015 _ACEOF
5016 if ac_fn_c_try_compile "$LINENO"; then :
5017 xorg_cv_cc_flag_unknown_warning_option=yes
5018 else
5019 xorg_cv_cc_flag_unknown_warning_option=no
5020 fi
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5026 CFLAGS="$xorg_testset_save_CFLAGS"
5027 fi
5028
5029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032 fi
5033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 int i;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 xorg_cv_cc_flag_unused_command_line_argument=yes
5045 else
5046 xorg_cv_cc_flag_unused_command_line_argument=no
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5053 CFLAGS="$xorg_testset_save_CFLAGS"
5054 fi
5055
5056 found="no"
5057
5058 if test $found = "no" ; then
5059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061 fi
5062
5063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065 fi
5066
5067 CFLAGS="$CFLAGS -Wall"
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5070 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5071 cacheid=xorg_cv_cc_flag__Wall
5072 if eval \${$cacheid+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 int i;
5078 int
5079 main ()
5080 {
5081
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 if ac_fn_c_try_link "$LINENO"; then :
5087 eval $cacheid=yes
5088 else
5089 eval $cacheid=no
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext \
5092 conftest$ac_exeext conftest.$ac_ext
5093 fi
5094
5095
5096 CFLAGS="$xorg_testset_save_CFLAGS"
5097
5098 eval supported=\$$cacheid
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5100 $as_echo "$supported" >&6; }
5101 if test "$supported" = "yes" ; then
5102 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5103 found="yes"
5104 fi
5105 fi
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121 xorg_testset_save_CFLAGS="$CFLAGS"
5122
5123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5126 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5127 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 int i;
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 xorg_cv_cc_flag_unknown_warning_option=yes
5136 else
5137 xorg_cv_cc_flag_unknown_warning_option=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5142 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5144 CFLAGS="$xorg_testset_save_CFLAGS"
5145 fi
5146
5147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150 fi
5151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5153 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5154 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 xorg_cv_cc_flag_unused_command_line_argument=yes
5163 else
5164 xorg_cv_cc_flag_unused_command_line_argument=no
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5169 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5171 CFLAGS="$xorg_testset_save_CFLAGS"
5172 fi
5173
5174 found="no"
5175
5176 if test $found = "no" ; then
5177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179 fi
5180
5181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183 fi
5184
5185 CFLAGS="$CFLAGS -Wpointer-arith"
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5188 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5189 cacheid=xorg_cv_cc_flag__Wpointer_arith
5190 if eval \${$cacheid+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 int i;
5196 int
5197 main ()
5198 {
5199
5200 ;
5201 return 0;
5202 }
5203 _ACEOF
5204 if ac_fn_c_try_link "$LINENO"; then :
5205 eval $cacheid=yes
5206 else
5207 eval $cacheid=no
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
5211 fi
5212
5213
5214 CFLAGS="$xorg_testset_save_CFLAGS"
5215
5216 eval supported=\$$cacheid
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5218 $as_echo "$supported" >&6; }
5219 if test "$supported" = "yes" ; then
5220 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5221 found="yes"
5222 fi
5223 fi
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 xorg_testset_save_CFLAGS="$CFLAGS"
5240
5241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 int i;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 xorg_cv_cc_flag_unknown_warning_option=yes
5254 else
5255 xorg_cv_cc_flag_unknown_warning_option=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5262 CFLAGS="$xorg_testset_save_CFLAGS"
5263 fi
5264
5265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268 fi
5269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 int i;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 xorg_cv_cc_flag_unused_command_line_argument=yes
5281 else
5282 xorg_cv_cc_flag_unused_command_line_argument=no
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5289 CFLAGS="$xorg_testset_save_CFLAGS"
5290 fi
5291
5292 found="no"
5293
5294 if test $found = "no" ; then
5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297 fi
5298
5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301 fi
5302
5303 CFLAGS="$CFLAGS -Wmissing-declarations"
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5306 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5307 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5308 if eval \${$cacheid+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 int i;
5314 int
5315 main ()
5316 {
5317
5318 ;
5319 return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_c_try_link "$LINENO"; then :
5323 eval $cacheid=yes
5324 else
5325 eval $cacheid=no
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext \
5328 conftest$ac_exeext conftest.$ac_ext
5329 fi
5330
5331
5332 CFLAGS="$xorg_testset_save_CFLAGS"
5333
5334 eval supported=\$$cacheid
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5336 $as_echo "$supported" >&6; }
5337 if test "$supported" = "yes" ; then
5338 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5339 found="yes"
5340 fi
5341 fi
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 xorg_testset_save_CFLAGS="$CFLAGS"
5358
5359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 int i;
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 xorg_cv_cc_flag_unknown_warning_option=yes
5372 else
5373 xorg_cv_cc_flag_unknown_warning_option=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5380 CFLAGS="$xorg_testset_save_CFLAGS"
5381 fi
5382
5383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386 fi
5387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 int i;
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398 xorg_cv_cc_flag_unused_command_line_argument=yes
5399 else
5400 xorg_cv_cc_flag_unused_command_line_argument=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5407 CFLAGS="$xorg_testset_save_CFLAGS"
5408 fi
5409
5410 found="no"
5411
5412 if test $found = "no" ; then
5413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415 fi
5416
5417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5419 fi
5420
5421 CFLAGS="$CFLAGS -Wformat=2"
5422
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5424 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5425 cacheid=xorg_cv_cc_flag__Wformat_2
5426 if eval \${$cacheid+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 int i;
5432 int
5433 main ()
5434 {
5435
5436 ;
5437 return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_link "$LINENO"; then :
5441 eval $cacheid=yes
5442 else
5443 eval $cacheid=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext \
5446 conftest$ac_exeext conftest.$ac_ext
5447 fi
5448
5449
5450 CFLAGS="$xorg_testset_save_CFLAGS"
5451
5452 eval supported=\$$cacheid
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5454 $as_echo "$supported" >&6; }
5455 if test "$supported" = "yes" ; then
5456 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5457 found="yes"
5458 fi
5459 fi
5460
5461 if test $found = "no" ; then
5462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464 fi
5465
5466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468 fi
5469
5470 CFLAGS="$CFLAGS -Wformat"
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5473 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5474 cacheid=xorg_cv_cc_flag__Wformat
5475 if eval \${$cacheid+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 int i;
5481 int
5482 main ()
5483 {
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 if ac_fn_c_try_link "$LINENO"; then :
5490 eval $cacheid=yes
5491 else
5492 eval $cacheid=no
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext \
5495 conftest$ac_exeext conftest.$ac_ext
5496 fi
5497
5498
5499 CFLAGS="$xorg_testset_save_CFLAGS"
5500
5501 eval supported=\$$cacheid
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5503 $as_echo "$supported" >&6; }
5504 if test "$supported" = "yes" ; then
5505 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5506 found="yes"
5507 fi
5508 fi
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 xorg_testset_save_CFLAGS="$CFLAGS"
5527
5528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5531 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5532 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 int i;
5538 _ACEOF
5539 if ac_fn_c_try_compile "$LINENO"; then :
5540 xorg_cv_cc_flag_unknown_warning_option=yes
5541 else
5542 xorg_cv_cc_flag_unknown_warning_option=no
5543 fi
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5547 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5549 CFLAGS="$xorg_testset_save_CFLAGS"
5550 fi
5551
5552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555 fi
5556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5558 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5559 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 int i;
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 xorg_cv_cc_flag_unused_command_line_argument=yes
5568 else
5569 xorg_cv_cc_flag_unused_command_line_argument=no
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5574 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5576 CFLAGS="$xorg_testset_save_CFLAGS"
5577 fi
5578
5579 found="no"
5580
5581 if test $found = "no" ; then
5582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584 fi
5585
5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588 fi
5589
5590 CFLAGS="$CFLAGS -Wstrict-prototypes"
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5593 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5594 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5595 if eval \${$cacheid+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 int i;
5601 int
5602 main ()
5603 {
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_link "$LINENO"; then :
5610 eval $cacheid=yes
5611 else
5612 eval $cacheid=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext \
5615 conftest$ac_exeext conftest.$ac_ext
5616 fi
5617
5618
5619 CFLAGS="$xorg_testset_save_CFLAGS"
5620
5621 eval supported=\$$cacheid
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5623 $as_echo "$supported" >&6; }
5624 if test "$supported" = "yes" ; then
5625 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5626 found="yes"
5627 fi
5628 fi
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 xorg_testset_save_CFLAGS="$CFLAGS"
5645
5646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 int i;
5656 _ACEOF
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658 xorg_cv_cc_flag_unknown_warning_option=yes
5659 else
5660 xorg_cv_cc_flag_unknown_warning_option=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5667 CFLAGS="$xorg_testset_save_CFLAGS"
5668 fi
5669
5670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 fi
5674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 int i;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 xorg_cv_cc_flag_unused_command_line_argument=yes
5686 else
5687 xorg_cv_cc_flag_unused_command_line_argument=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5694 CFLAGS="$xorg_testset_save_CFLAGS"
5695 fi
5696
5697 found="no"
5698
5699 if test $found = "no" ; then
5700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702 fi
5703
5704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706 fi
5707
5708 CFLAGS="$CFLAGS -Wmissing-prototypes"
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5711 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5712 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5713 if eval \${$cacheid+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 int i;
5719 int
5720 main ()
5721 {
5722
5723 ;
5724 return 0;
5725 }
5726 _ACEOF
5727 if ac_fn_c_try_link "$LINENO"; then :
5728 eval $cacheid=yes
5729 else
5730 eval $cacheid=no
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734 fi
5735
5736
5737 CFLAGS="$xorg_testset_save_CFLAGS"
5738
5739 eval supported=\$$cacheid
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5741 $as_echo "$supported" >&6; }
5742 if test "$supported" = "yes" ; then
5743 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5744 found="yes"
5745 fi
5746 fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 xorg_testset_save_CFLAGS="$CFLAGS"
5763
5764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5767 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5768 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 int i;
5774 _ACEOF
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776 xorg_cv_cc_flag_unknown_warning_option=yes
5777 else
5778 xorg_cv_cc_flag_unknown_warning_option=no
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5783 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5785 CFLAGS="$xorg_testset_save_CFLAGS"
5786 fi
5787
5788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791 fi
5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5794 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5795 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 int i;
5801 _ACEOF
5802 if ac_fn_c_try_compile "$LINENO"; then :
5803 xorg_cv_cc_flag_unused_command_line_argument=yes
5804 else
5805 xorg_cv_cc_flag_unused_command_line_argument=no
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5810 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5812 CFLAGS="$xorg_testset_save_CFLAGS"
5813 fi
5814
5815 found="no"
5816
5817 if test $found = "no" ; then
5818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820 fi
5821
5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824 fi
5825
5826 CFLAGS="$CFLAGS -Wnested-externs"
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5829 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5830 cacheid=xorg_cv_cc_flag__Wnested_externs
5831 if eval \${$cacheid+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 int i;
5837 int
5838 main ()
5839 {
5840
5841 ;
5842 return 0;
5843 }
5844 _ACEOF
5845 if ac_fn_c_try_link "$LINENO"; then :
5846 eval $cacheid=yes
5847 else
5848 eval $cacheid=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5852 fi
5853
5854
5855 CFLAGS="$xorg_testset_save_CFLAGS"
5856
5857 eval supported=\$$cacheid
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5859 $as_echo "$supported" >&6; }
5860 if test "$supported" = "yes" ; then
5861 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5862 found="yes"
5863 fi
5864 fi
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 xorg_testset_save_CFLAGS="$CFLAGS"
5881
5882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5885 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5886 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 int i;
5892 _ACEOF
5893 if ac_fn_c_try_compile "$LINENO"; then :
5894 xorg_cv_cc_flag_unknown_warning_option=yes
5895 else
5896 xorg_cv_cc_flag_unknown_warning_option=no
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5901 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5903 CFLAGS="$xorg_testset_save_CFLAGS"
5904 fi
5905
5906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909 fi
5910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5912 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5913 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 int i;
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"; then :
5921 xorg_cv_cc_flag_unused_command_line_argument=yes
5922 else
5923 xorg_cv_cc_flag_unused_command_line_argument=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5928 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931 fi
5932
5933 found="no"
5934
5935 if test $found = "no" ; then
5936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938 fi
5939
5940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5942 fi
5943
5944 CFLAGS="$CFLAGS -Wbad-function-cast"
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5947 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5948 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5949 if eval \${$cacheid+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 int i;
5955 int
5956 main ()
5957 {
5958
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_link "$LINENO"; then :
5964 eval $cacheid=yes
5965 else
5966 eval $cacheid=no
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext \
5969 conftest$ac_exeext conftest.$ac_ext
5970 fi
5971
5972
5973 CFLAGS="$xorg_testset_save_CFLAGS"
5974
5975 eval supported=\$$cacheid
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5977 $as_echo "$supported" >&6; }
5978 if test "$supported" = "yes" ; then
5979 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5980 found="yes"
5981 fi
5982 fi
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998 xorg_testset_save_CFLAGS="$CFLAGS"
5999
6000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6003 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6004 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 int i;
6010 _ACEOF
6011 if ac_fn_c_try_compile "$LINENO"; then :
6012 xorg_cv_cc_flag_unknown_warning_option=yes
6013 else
6014 xorg_cv_cc_flag_unknown_warning_option=no
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6019 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6021 CFLAGS="$xorg_testset_save_CFLAGS"
6022 fi
6023
6024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6027 fi
6028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6031 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 int i;
6037 _ACEOF
6038 if ac_fn_c_try_compile "$LINENO"; then :
6039 xorg_cv_cc_flag_unused_command_line_argument=yes
6040 else
6041 xorg_cv_cc_flag_unused_command_line_argument=no
6042 fi
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 fi
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6046 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6048 CFLAGS="$xorg_testset_save_CFLAGS"
6049 fi
6050
6051 found="no"
6052
6053 if test $found = "no" ; then
6054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056 fi
6057
6058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6060 fi
6061
6062 CFLAGS="$CFLAGS -Wold-style-definition"
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6065 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6066 cacheid=xorg_cv_cc_flag__Wold_style_definition
6067 if eval \${$cacheid+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 int i;
6073 int
6074 main ()
6075 {
6076
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 if ac_fn_c_try_link "$LINENO"; then :
6082 eval $cacheid=yes
6083 else
6084 eval $cacheid=no
6085 fi
6086 rm -f core conftest.err conftest.$ac_objext \
6087 conftest$ac_exeext conftest.$ac_ext
6088 fi
6089
6090
6091 CFLAGS="$xorg_testset_save_CFLAGS"
6092
6093 eval supported=\$$cacheid
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6095 $as_echo "$supported" >&6; }
6096 if test "$supported" = "yes" ; then
6097 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6098 found="yes"
6099 fi
6100 fi
6101
6102 if test $found = "no" ; then
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 fi
6106
6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109 fi
6110
6111 CFLAGS="$CFLAGS -fd"
6112
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6114 $as_echo_n "checking if $CC supports -fd... " >&6; }
6115 cacheid=xorg_cv_cc_flag__fd
6116 if eval \${$cacheid+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6121 int i;
6122 int
6123 main ()
6124 {
6125
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 if ac_fn_c_try_link "$LINENO"; then :
6131 eval $cacheid=yes
6132 else
6133 eval $cacheid=no
6134 fi
6135 rm -f core conftest.err conftest.$ac_objext \
6136 conftest$ac_exeext conftest.$ac_ext
6137 fi
6138
6139
6140 CFLAGS="$xorg_testset_save_CFLAGS"
6141
6142 eval supported=\$$cacheid
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6144 $as_echo "$supported" >&6; }
6145 if test "$supported" = "yes" ; then
6146 BASE_CFLAGS="$BASE_CFLAGS -fd"
6147 found="yes"
6148 fi
6149 fi
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165 xorg_testset_save_CFLAGS="$CFLAGS"
6166
6167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176 int i;
6177 _ACEOF
6178 if ac_fn_c_try_compile "$LINENO"; then :
6179 xorg_cv_cc_flag_unknown_warning_option=yes
6180 else
6181 xorg_cv_cc_flag_unknown_warning_option=no
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 fi
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6188 CFLAGS="$xorg_testset_save_CFLAGS"
6189 fi
6190
6191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194 fi
6195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 int i;
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206 xorg_cv_cc_flag_unused_command_line_argument=yes
6207 else
6208 xorg_cv_cc_flag_unused_command_line_argument=no
6209 fi
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 fi
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6215 CFLAGS="$xorg_testset_save_CFLAGS"
6216 fi
6217
6218 found="no"
6219
6220 if test $found = "no" ; then
6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223 fi
6224
6225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227 fi
6228
6229 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6230
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6232 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6233 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6234 if eval \${$cacheid+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 int i;
6240 int
6241 main ()
6242 {
6243
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 if ac_fn_c_try_link "$LINENO"; then :
6249 eval $cacheid=yes
6250 else
6251 eval $cacheid=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6255 fi
6256
6257
6258 CFLAGS="$xorg_testset_save_CFLAGS"
6259
6260 eval supported=\$$cacheid
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6262 $as_echo "$supported" >&6; }
6263 if test "$supported" = "yes" ; then
6264 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6265 found="yes"
6266 fi
6267 fi
6268
6269
6270
6271
6272
6273 # This chunk adds additional warnings that could catch undesired effects.
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 xorg_testset_save_CFLAGS="$CFLAGS"
6288
6289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 int i;
6299 _ACEOF
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301 xorg_cv_cc_flag_unknown_warning_option=yes
6302 else
6303 xorg_cv_cc_flag_unknown_warning_option=no
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6310 CFLAGS="$xorg_testset_save_CFLAGS"
6311 fi
6312
6313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316 fi
6317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 int i;
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328 xorg_cv_cc_flag_unused_command_line_argument=yes
6329 else
6330 xorg_cv_cc_flag_unused_command_line_argument=no
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6337 CFLAGS="$xorg_testset_save_CFLAGS"
6338 fi
6339
6340 found="no"
6341
6342 if test $found = "no" ; then
6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345 fi
6346
6347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349 fi
6350
6351 CFLAGS="$CFLAGS -Wunused"
6352
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6354 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6355 cacheid=xorg_cv_cc_flag__Wunused
6356 if eval \${$cacheid+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 int i;
6362 int
6363 main ()
6364 {
6365
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_link "$LINENO"; then :
6371 eval $cacheid=yes
6372 else
6373 eval $cacheid=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377 fi
6378
6379
6380 CFLAGS="$xorg_testset_save_CFLAGS"
6381
6382 eval supported=\$$cacheid
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6384 $as_echo "$supported" >&6; }
6385 if test "$supported" = "yes" ; then
6386 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6387 found="yes"
6388 fi
6389 fi
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405 xorg_testset_save_CFLAGS="$CFLAGS"
6406
6407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 int i;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 xorg_cv_cc_flag_unknown_warning_option=yes
6420 else
6421 xorg_cv_cc_flag_unknown_warning_option=no
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6428 CFLAGS="$xorg_testset_save_CFLAGS"
6429 fi
6430
6431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 fi
6435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 xorg_cv_cc_flag_unused_command_line_argument=yes
6447 else
6448 xorg_cv_cc_flag_unused_command_line_argument=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6455 CFLAGS="$xorg_testset_save_CFLAGS"
6456 fi
6457
6458 found="no"
6459
6460 if test $found = "no" ; then
6461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6463 fi
6464
6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467 fi
6468
6469 CFLAGS="$CFLAGS -Wuninitialized"
6470
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6472 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6473 cacheid=xorg_cv_cc_flag__Wuninitialized
6474 if eval \${$cacheid+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 int i;
6480 int
6481 main ()
6482 {
6483
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_link "$LINENO"; then :
6489 eval $cacheid=yes
6490 else
6491 eval $cacheid=no
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 fi
6496
6497
6498 CFLAGS="$xorg_testset_save_CFLAGS"
6499
6500 eval supported=\$$cacheid
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6502 $as_echo "$supported" >&6; }
6503 if test "$supported" = "yes" ; then
6504 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6505 found="yes"
6506 fi
6507 fi
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 xorg_testset_save_CFLAGS="$CFLAGS"
6524
6525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 int i;
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 xorg_cv_cc_flag_unknown_warning_option=yes
6538 else
6539 xorg_cv_cc_flag_unknown_warning_option=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6546 CFLAGS="$xorg_testset_save_CFLAGS"
6547 fi
6548
6549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6552 fi
6553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 int i;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 xorg_cv_cc_flag_unused_command_line_argument=yes
6565 else
6566 xorg_cv_cc_flag_unused_command_line_argument=no
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6573 CFLAGS="$xorg_testset_save_CFLAGS"
6574 fi
6575
6576 found="no"
6577
6578 if test $found = "no" ; then
6579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581 fi
6582
6583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 fi
6586
6587 CFLAGS="$CFLAGS -Wshadow"
6588
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6590 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6591 cacheid=xorg_cv_cc_flag__Wshadow
6592 if eval \${$cacheid+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 int i;
6598 int
6599 main ()
6600 {
6601
6602 ;
6603 return 0;
6604 }
6605 _ACEOF
6606 if ac_fn_c_try_link "$LINENO"; then :
6607 eval $cacheid=yes
6608 else
6609 eval $cacheid=no
6610 fi
6611 rm -f core conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 fi
6614
6615
6616 CFLAGS="$xorg_testset_save_CFLAGS"
6617
6618 eval supported=\$$cacheid
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6620 $as_echo "$supported" >&6; }
6621 if test "$supported" = "yes" ; then
6622 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6623 found="yes"
6624 fi
6625 fi
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641 xorg_testset_save_CFLAGS="$CFLAGS"
6642
6643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6652 int i;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 xorg_cv_cc_flag_unknown_warning_option=yes
6656 else
6657 xorg_cv_cc_flag_unknown_warning_option=no
6658 fi
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6664 CFLAGS="$xorg_testset_save_CFLAGS"
6665 fi
6666
6667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670 fi
6671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int i;
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 xorg_cv_cc_flag_unused_command_line_argument=yes
6683 else
6684 xorg_cv_cc_flag_unused_command_line_argument=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 found="no"
6695
6696 if test $found = "no" ; then
6697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699 fi
6700
6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703 fi
6704
6705 CFLAGS="$CFLAGS -Wmissing-noreturn"
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6708 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6709 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6710 if eval \${$cacheid+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 int i;
6716 int
6717 main ()
6718 {
6719
6720 ;
6721 return 0;
6722 }
6723 _ACEOF
6724 if ac_fn_c_try_link "$LINENO"; then :
6725 eval $cacheid=yes
6726 else
6727 eval $cacheid=no
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731 fi
6732
6733
6734 CFLAGS="$xorg_testset_save_CFLAGS"
6735
6736 eval supported=\$$cacheid
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6738 $as_echo "$supported" >&6; }
6739 if test "$supported" = "yes" ; then
6740 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6741 found="yes"
6742 fi
6743 fi
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759 xorg_testset_save_CFLAGS="$CFLAGS"
6760
6761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6764 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6765 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 int i;
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773 xorg_cv_cc_flag_unknown_warning_option=yes
6774 else
6775 xorg_cv_cc_flag_unknown_warning_option=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6780 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6782 CFLAGS="$xorg_testset_save_CFLAGS"
6783 fi
6784
6785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6788 fi
6789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6791 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6792 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 int i;
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 xorg_cv_cc_flag_unused_command_line_argument=yes
6801 else
6802 xorg_cv_cc_flag_unused_command_line_argument=no
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6807 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6809 CFLAGS="$xorg_testset_save_CFLAGS"
6810 fi
6811
6812 found="no"
6813
6814 if test $found = "no" ; then
6815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6817 fi
6818
6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6821 fi
6822
6823 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6824
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6826 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6827 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6828 if eval \${$cacheid+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 int i;
6834 int
6835 main ()
6836 {
6837
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_c_try_link "$LINENO"; then :
6843 eval $cacheid=yes
6844 else
6845 eval $cacheid=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
6849 fi
6850
6851
6852 CFLAGS="$xorg_testset_save_CFLAGS"
6853
6854 eval supported=\$$cacheid
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6856 $as_echo "$supported" >&6; }
6857 if test "$supported" = "yes" ; then
6858 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6859 found="yes"
6860 fi
6861 fi
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 xorg_testset_save_CFLAGS="$CFLAGS"
6878
6879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 int i;
6889 _ACEOF
6890 if ac_fn_c_try_compile "$LINENO"; then :
6891 xorg_cv_cc_flag_unknown_warning_option=yes
6892 else
6893 xorg_cv_cc_flag_unknown_warning_option=no
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 fi
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6900 CFLAGS="$xorg_testset_save_CFLAGS"
6901 fi
6902
6903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6906 fi
6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 int i;
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918 xorg_cv_cc_flag_unused_command_line_argument=yes
6919 else
6920 xorg_cv_cc_flag_unused_command_line_argument=no
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6927 CFLAGS="$xorg_testset_save_CFLAGS"
6928 fi
6929
6930 found="no"
6931
6932 if test $found = "no" ; then
6933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935 fi
6936
6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939 fi
6940
6941 CFLAGS="$CFLAGS -Wredundant-decls"
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6944 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6945 cacheid=xorg_cv_cc_flag__Wredundant_decls
6946 if eval \${$cacheid+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 int i;
6952 int
6953 main ()
6954 {
6955
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"; then :
6961 eval $cacheid=yes
6962 else
6963 eval $cacheid=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 fi
6968
6969
6970 CFLAGS="$xorg_testset_save_CFLAGS"
6971
6972 eval supported=\$$cacheid
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6974 $as_echo "$supported" >&6; }
6975 if test "$supported" = "yes" ; then
6976 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6977 found="yes"
6978 fi
6979 fi
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 int i;
7007 _ACEOF
7008 if ac_fn_c_try_compile "$LINENO"; then :
7009 xorg_cv_cc_flag_unknown_warning_option=yes
7010 else
7011 xorg_cv_cc_flag_unknown_warning_option=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7016 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7018 CFLAGS="$xorg_testset_save_CFLAGS"
7019 fi
7020
7021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024 fi
7025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7027 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7028 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 int i;
7034 _ACEOF
7035 if ac_fn_c_try_compile "$LINENO"; then :
7036 xorg_cv_cc_flag_unused_command_line_argument=yes
7037 else
7038 xorg_cv_cc_flag_unused_command_line_argument=no
7039 fi
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7043 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7045 CFLAGS="$xorg_testset_save_CFLAGS"
7046 fi
7047
7048 found="no"
7049
7050 if test $found = "no" ; then
7051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053 fi
7054
7055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7057 fi
7058
7059 CFLAGS="$CFLAGS -Wlogical-op"
7060
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7062 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7063 cacheid=xorg_cv_cc_flag__Wlogical_op
7064 if eval \${$cacheid+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069 int i;
7070 int
7071 main ()
7072 {
7073
7074 ;
7075 return 0;
7076 }
7077 _ACEOF
7078 if ac_fn_c_try_link "$LINENO"; then :
7079 eval $cacheid=yes
7080 else
7081 eval $cacheid=no
7082 fi
7083 rm -f core conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7085 fi
7086
7087
7088 CFLAGS="$xorg_testset_save_CFLAGS"
7089
7090 eval supported=\$$cacheid
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7092 $as_echo "$supported" >&6; }
7093 if test "$supported" = "yes" ; then
7094 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7095 found="yes"
7096 fi
7097 fi
7098
7099
7100
7101 # These are currently disabled because they are noisy. They will be enabled
7102 # in the future once the codebase is sufficiently modernized to silence
7103 # them. For now, I don't want them to drown out the other warnings.
7104 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7105 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7106 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7107
7108 # Turn some warnings into errors, so we don't accidently get successful builds
7109 # when there are problems that should be fixed.
7110
7111 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125 xorg_testset_save_CFLAGS="$CFLAGS"
7126
7127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 int i;
7137 _ACEOF
7138 if ac_fn_c_try_compile "$LINENO"; then :
7139 xorg_cv_cc_flag_unknown_warning_option=yes
7140 else
7141 xorg_cv_cc_flag_unknown_warning_option=no
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7148 CFLAGS="$xorg_testset_save_CFLAGS"
7149 fi
7150
7151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154 fi
7155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 int i;
7164 _ACEOF
7165 if ac_fn_c_try_compile "$LINENO"; then :
7166 xorg_cv_cc_flag_unused_command_line_argument=yes
7167 else
7168 xorg_cv_cc_flag_unused_command_line_argument=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 fi
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176 fi
7177
7178 found="no"
7179
7180 if test $found = "no" ; then
7181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183 fi
7184
7185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7187 fi
7188
7189 CFLAGS="$CFLAGS -Werror=implicit"
7190
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7192 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7193 cacheid=xorg_cv_cc_flag__Werror_implicit
7194 if eval \${$cacheid+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 int i;
7200 int
7201 main ()
7202 {
7203
7204 ;
7205 return 0;
7206 }
7207 _ACEOF
7208 if ac_fn_c_try_link "$LINENO"; then :
7209 eval $cacheid=yes
7210 else
7211 eval $cacheid=no
7212 fi
7213 rm -f core conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
7215 fi
7216
7217
7218 CFLAGS="$xorg_testset_save_CFLAGS"
7219
7220 eval supported=\$$cacheid
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7222 $as_echo "$supported" >&6; }
7223 if test "$supported" = "yes" ; then
7224 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7225 found="yes"
7226 fi
7227 fi
7228
7229 if test $found = "no" ; then
7230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232 fi
7233
7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236 fi
7237
7238 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7239
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7241 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7242 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7243 if eval \${$cacheid+:} false; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 int i;
7249 int
7250 main ()
7251 {
7252
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_c_try_link "$LINENO"; then :
7258 eval $cacheid=yes
7259 else
7260 eval $cacheid=no
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
7264 fi
7265
7266
7267 CFLAGS="$xorg_testset_save_CFLAGS"
7268
7269 eval supported=\$$cacheid
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7271 $as_echo "$supported" >&6; }
7272 if test "$supported" = "yes" ; then
7273 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7274 found="yes"
7275 fi
7276 fi
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292 xorg_testset_save_CFLAGS="$CFLAGS"
7293
7294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 int i;
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"; then :
7306 xorg_cv_cc_flag_unknown_warning_option=yes
7307 else
7308 xorg_cv_cc_flag_unknown_warning_option=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316 fi
7317
7318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7321 fi
7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 xorg_cv_cc_flag_unused_command_line_argument=yes
7334 else
7335 xorg_cv_cc_flag_unused_command_line_argument=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7342 CFLAGS="$xorg_testset_save_CFLAGS"
7343 fi
7344
7345 found="no"
7346
7347 if test $found = "no" ; then
7348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350 fi
7351
7352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354 fi
7355
7356 CFLAGS="$CFLAGS -Werror=nonnull"
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7359 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7360 cacheid=xorg_cv_cc_flag__Werror_nonnull
7361 if eval \${$cacheid+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 int i;
7367 int
7368 main ()
7369 {
7370
7371 ;
7372 return 0;
7373 }
7374 _ACEOF
7375 if ac_fn_c_try_link "$LINENO"; then :
7376 eval $cacheid=yes
7377 else
7378 eval $cacheid=no
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7382 fi
7383
7384
7385 CFLAGS="$xorg_testset_save_CFLAGS"
7386
7387 eval supported=\$$cacheid
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7389 $as_echo "$supported" >&6; }
7390 if test "$supported" = "yes" ; then
7391 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7392 found="yes"
7393 fi
7394 fi
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410 xorg_testset_save_CFLAGS="$CFLAGS"
7411
7412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 int i;
7422 _ACEOF
7423 if ac_fn_c_try_compile "$LINENO"; then :
7424 xorg_cv_cc_flag_unknown_warning_option=yes
7425 else
7426 xorg_cv_cc_flag_unknown_warning_option=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434 fi
7435
7436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439 fi
7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 int i;
7449 _ACEOF
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451 xorg_cv_cc_flag_unused_command_line_argument=yes
7452 else
7453 xorg_cv_cc_flag_unused_command_line_argument=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7460 CFLAGS="$xorg_testset_save_CFLAGS"
7461 fi
7462
7463 found="no"
7464
7465 if test $found = "no" ; then
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 fi
7469
7470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472 fi
7473
7474 CFLAGS="$CFLAGS -Werror=init-self"
7475
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7477 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7478 cacheid=xorg_cv_cc_flag__Werror_init_self
7479 if eval \${$cacheid+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 int i;
7485 int
7486 main ()
7487 {
7488
7489 ;
7490 return 0;
7491 }
7492 _ACEOF
7493 if ac_fn_c_try_link "$LINENO"; then :
7494 eval $cacheid=yes
7495 else
7496 eval $cacheid=no
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext \
7499 conftest$ac_exeext conftest.$ac_ext
7500 fi
7501
7502
7503 CFLAGS="$xorg_testset_save_CFLAGS"
7504
7505 eval supported=\$$cacheid
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7507 $as_echo "$supported" >&6; }
7508 if test "$supported" = "yes" ; then
7509 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7510 found="yes"
7511 fi
7512 fi
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 xorg_testset_save_CFLAGS="$CFLAGS"
7529
7530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7533 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7534 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 int i;
7540 _ACEOF
7541 if ac_fn_c_try_compile "$LINENO"; then :
7542 xorg_cv_cc_flag_unknown_warning_option=yes
7543 else
7544 xorg_cv_cc_flag_unknown_warning_option=no
7545 fi
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7549 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7551 CFLAGS="$xorg_testset_save_CFLAGS"
7552 fi
7553
7554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557 fi
7558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7560 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7561 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 int i;
7567 _ACEOF
7568 if ac_fn_c_try_compile "$LINENO"; then :
7569 xorg_cv_cc_flag_unused_command_line_argument=yes
7570 else
7571 xorg_cv_cc_flag_unused_command_line_argument=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7576 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579 fi
7580
7581 found="no"
7582
7583 if test $found = "no" ; then
7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586 fi
7587
7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590 fi
7591
7592 CFLAGS="$CFLAGS -Werror=main"
7593
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7595 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7596 cacheid=xorg_cv_cc_flag__Werror_main
7597 if eval \${$cacheid+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 int i;
7603 int
7604 main ()
7605 {
7606
7607 ;
7608 return 0;
7609 }
7610 _ACEOF
7611 if ac_fn_c_try_link "$LINENO"; then :
7612 eval $cacheid=yes
7613 else
7614 eval $cacheid=no
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618 fi
7619
7620
7621 CFLAGS="$xorg_testset_save_CFLAGS"
7622
7623 eval supported=\$$cacheid
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7625 $as_echo "$supported" >&6; }
7626 if test "$supported" = "yes" ; then
7627 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7628 found="yes"
7629 fi
7630 fi
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646 xorg_testset_save_CFLAGS="$CFLAGS"
7647
7648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7651 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7652 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 int i;
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"; then :
7660 xorg_cv_cc_flag_unknown_warning_option=yes
7661 else
7662 xorg_cv_cc_flag_unknown_warning_option=no
7663 fi
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7667 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7669 CFLAGS="$xorg_testset_save_CFLAGS"
7670 fi
7671
7672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675 fi
7676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7679 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 int i;
7685 _ACEOF
7686 if ac_fn_c_try_compile "$LINENO"; then :
7687 xorg_cv_cc_flag_unused_command_line_argument=yes
7688 else
7689 xorg_cv_cc_flag_unused_command_line_argument=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7694 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697 fi
7698
7699 found="no"
7700
7701 if test $found = "no" ; then
7702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704 fi
7705
7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708 fi
7709
7710 CFLAGS="$CFLAGS -Werror=missing-braces"
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7713 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7714 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7715 if eval \${$cacheid+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 int i;
7721 int
7722 main ()
7723 {
7724
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_link "$LINENO"; then :
7730 eval $cacheid=yes
7731 else
7732 eval $cacheid=no
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 fi
7737
7738
7739 CFLAGS="$xorg_testset_save_CFLAGS"
7740
7741 eval supported=\$$cacheid
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7743 $as_echo "$supported" >&6; }
7744 if test "$supported" = "yes" ; then
7745 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7746 found="yes"
7747 fi
7748 fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 xorg_testset_save_CFLAGS="$CFLAGS"
7765
7766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 int i;
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778 xorg_cv_cc_flag_unknown_warning_option=yes
7779 else
7780 xorg_cv_cc_flag_unknown_warning_option=no
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7787 CFLAGS="$xorg_testset_save_CFLAGS"
7788 fi
7789
7790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793 fi
7794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 int i;
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"; then :
7805 xorg_cv_cc_flag_unused_command_line_argument=yes
7806 else
7807 xorg_cv_cc_flag_unused_command_line_argument=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7814 CFLAGS="$xorg_testset_save_CFLAGS"
7815 fi
7816
7817 found="no"
7818
7819 if test $found = "no" ; then
7820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822 fi
7823
7824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7826 fi
7827
7828 CFLAGS="$CFLAGS -Werror=sequence-point"
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7831 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7832 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7833 if eval \${$cacheid+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 int i;
7839 int
7840 main ()
7841 {
7842
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 if ac_fn_c_try_link "$LINENO"; then :
7848 eval $cacheid=yes
7849 else
7850 eval $cacheid=no
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 fi
7855
7856
7857 CFLAGS="$xorg_testset_save_CFLAGS"
7858
7859 eval supported=\$$cacheid
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7861 $as_echo "$supported" >&6; }
7862 if test "$supported" = "yes" ; then
7863 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7864 found="yes"
7865 fi
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882 xorg_testset_save_CFLAGS="$CFLAGS"
7883
7884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 int i;
7894 _ACEOF
7895 if ac_fn_c_try_compile "$LINENO"; then :
7896 xorg_cv_cc_flag_unknown_warning_option=yes
7897 else
7898 xorg_cv_cc_flag_unknown_warning_option=no
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 fi
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7905 CFLAGS="$xorg_testset_save_CFLAGS"
7906 fi
7907
7908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911 fi
7912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 int i;
7921 _ACEOF
7922 if ac_fn_c_try_compile "$LINENO"; then :
7923 xorg_cv_cc_flag_unused_command_line_argument=yes
7924 else
7925 xorg_cv_cc_flag_unused_command_line_argument=no
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7932 CFLAGS="$xorg_testset_save_CFLAGS"
7933 fi
7934
7935 found="no"
7936
7937 if test $found = "no" ; then
7938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940 fi
7941
7942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7944 fi
7945
7946 CFLAGS="$CFLAGS -Werror=return-type"
7947
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7949 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7950 cacheid=xorg_cv_cc_flag__Werror_return_type
7951 if eval \${$cacheid+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7956 int i;
7957 int
7958 main ()
7959 {
7960
7961 ;
7962 return 0;
7963 }
7964 _ACEOF
7965 if ac_fn_c_try_link "$LINENO"; then :
7966 eval $cacheid=yes
7967 else
7968 eval $cacheid=no
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 fi
7973
7974
7975 CFLAGS="$xorg_testset_save_CFLAGS"
7976
7977 eval supported=\$$cacheid
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7979 $as_echo "$supported" >&6; }
7980 if test "$supported" = "yes" ; then
7981 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7982 found="yes"
7983 fi
7984 fi
7985
7986 if test $found = "no" ; then
7987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989 fi
7990
7991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993 fi
7994
7995 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7996
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7998 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7999 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8000 if eval \${$cacheid+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 int i;
8006 int
8007 main ()
8008 {
8009
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_link "$LINENO"; then :
8015 eval $cacheid=yes
8016 else
8017 eval $cacheid=no
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext conftest.$ac_ext
8021 fi
8022
8023
8024 CFLAGS="$xorg_testset_save_CFLAGS"
8025
8026 eval supported=\$$cacheid
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8028 $as_echo "$supported" >&6; }
8029 if test "$supported" = "yes" ; then
8030 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8031 found="yes"
8032 fi
8033 fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 xorg_testset_save_CFLAGS="$CFLAGS"
8050
8051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060 int i;
8061 _ACEOF
8062 if ac_fn_c_try_compile "$LINENO"; then :
8063 xorg_cv_cc_flag_unknown_warning_option=yes
8064 else
8065 xorg_cv_cc_flag_unknown_warning_option=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8072 CFLAGS="$xorg_testset_save_CFLAGS"
8073 fi
8074
8075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078 fi
8079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 int i;
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 xorg_cv_cc_flag_unused_command_line_argument=yes
8091 else
8092 xorg_cv_cc_flag_unused_command_line_argument=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8100 fi
8101
8102 found="no"
8103
8104 if test $found = "no" ; then
8105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107 fi
8108
8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111 fi
8112
8113 CFLAGS="$CFLAGS -Werror=trigraphs"
8114
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8116 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8117 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8118 if eval \${$cacheid+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8123 int i;
8124 int
8125 main ()
8126 {
8127
8128 ;
8129 return 0;
8130 }
8131 _ACEOF
8132 if ac_fn_c_try_link "$LINENO"; then :
8133 eval $cacheid=yes
8134 else
8135 eval $cacheid=no
8136 fi
8137 rm -f core conftest.err conftest.$ac_objext \
8138 conftest$ac_exeext conftest.$ac_ext
8139 fi
8140
8141
8142 CFLAGS="$xorg_testset_save_CFLAGS"
8143
8144 eval supported=\$$cacheid
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8146 $as_echo "$supported" >&6; }
8147 if test "$supported" = "yes" ; then
8148 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8149 found="yes"
8150 fi
8151 fi
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167 xorg_testset_save_CFLAGS="$CFLAGS"
8168
8169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178 int i;
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 xorg_cv_cc_flag_unknown_warning_option=yes
8182 else
8183 xorg_cv_cc_flag_unknown_warning_option=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8190 CFLAGS="$xorg_testset_save_CFLAGS"
8191 fi
8192
8193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 fi
8197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 int i;
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208 xorg_cv_cc_flag_unused_command_line_argument=yes
8209 else
8210 xorg_cv_cc_flag_unused_command_line_argument=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 found="no"
8221
8222 if test $found = "no" ; then
8223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225 fi
8226
8227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229 fi
8230
8231 CFLAGS="$CFLAGS -Werror=array-bounds"
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8234 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8235 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8236 if eval \${$cacheid+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241 int i;
8242 int
8243 main ()
8244 {
8245
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_link "$LINENO"; then :
8251 eval $cacheid=yes
8252 else
8253 eval $cacheid=no
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8257 fi
8258
8259
8260 CFLAGS="$xorg_testset_save_CFLAGS"
8261
8262 eval supported=\$$cacheid
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8264 $as_echo "$supported" >&6; }
8265 if test "$supported" = "yes" ; then
8266 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8267 found="yes"
8268 fi
8269 fi
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285 xorg_testset_save_CFLAGS="$CFLAGS"
8286
8287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 int i;
8297 _ACEOF
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299 xorg_cv_cc_flag_unknown_warning_option=yes
8300 else
8301 xorg_cv_cc_flag_unknown_warning_option=no
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 fi
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8308 CFLAGS="$xorg_testset_save_CFLAGS"
8309 fi
8310
8311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 fi
8315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int i;
8324 _ACEOF
8325 if ac_fn_c_try_compile "$LINENO"; then :
8326 xorg_cv_cc_flag_unused_command_line_argument=yes
8327 else
8328 xorg_cv_cc_flag_unused_command_line_argument=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8335 CFLAGS="$xorg_testset_save_CFLAGS"
8336 fi
8337
8338 found="no"
8339
8340 if test $found = "no" ; then
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 fi
8344
8345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8347 fi
8348
8349 CFLAGS="$CFLAGS -Werror=write-strings"
8350
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8352 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8353 cacheid=xorg_cv_cc_flag__Werror_write_strings
8354 if eval \${$cacheid+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 int i;
8360 int
8361 main ()
8362 {
8363
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369 eval $cacheid=yes
8370 else
8371 eval $cacheid=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 fi
8376
8377
8378 CFLAGS="$xorg_testset_save_CFLAGS"
8379
8380 eval supported=\$$cacheid
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8382 $as_echo "$supported" >&6; }
8383 if test "$supported" = "yes" ; then
8384 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8385 found="yes"
8386 fi
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 xorg_testset_save_CFLAGS="$CFLAGS"
8404
8405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8408 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8409 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 int i;
8415 _ACEOF
8416 if ac_fn_c_try_compile "$LINENO"; then :
8417 xorg_cv_cc_flag_unknown_warning_option=yes
8418 else
8419 xorg_cv_cc_flag_unknown_warning_option=no
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8424 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8426 CFLAGS="$xorg_testset_save_CFLAGS"
8427 fi
8428
8429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432 fi
8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8435 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8436 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 int i;
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"; then :
8444 xorg_cv_cc_flag_unused_command_line_argument=yes
8445 else
8446 xorg_cv_cc_flag_unused_command_line_argument=no
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8451 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8453 CFLAGS="$xorg_testset_save_CFLAGS"
8454 fi
8455
8456 found="no"
8457
8458 if test $found = "no" ; then
8459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461 fi
8462
8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8465 fi
8466
8467 CFLAGS="$CFLAGS -Werror=address"
8468
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8470 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8471 cacheid=xorg_cv_cc_flag__Werror_address
8472 if eval \${$cacheid+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 int i;
8478 int
8479 main ()
8480 {
8481
8482 ;
8483 return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_link "$LINENO"; then :
8487 eval $cacheid=yes
8488 else
8489 eval $cacheid=no
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8493 fi
8494
8495
8496 CFLAGS="$xorg_testset_save_CFLAGS"
8497
8498 eval supported=\$$cacheid
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8500 $as_echo "$supported" >&6; }
8501 if test "$supported" = "yes" ; then
8502 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8503 found="yes"
8504 fi
8505 fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521 xorg_testset_save_CFLAGS="$CFLAGS"
8522
8523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8526 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8527 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 int i;
8533 _ACEOF
8534 if ac_fn_c_try_compile "$LINENO"; then :
8535 xorg_cv_cc_flag_unknown_warning_option=yes
8536 else
8537 xorg_cv_cc_flag_unknown_warning_option=no
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 fi
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8542 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8544 CFLAGS="$xorg_testset_save_CFLAGS"
8545 fi
8546
8547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550 fi
8551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8553 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8554 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 int i;
8560 _ACEOF
8561 if ac_fn_c_try_compile "$LINENO"; then :
8562 xorg_cv_cc_flag_unused_command_line_argument=yes
8563 else
8564 xorg_cv_cc_flag_unused_command_line_argument=no
8565 fi
8566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567 fi
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8569 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8571 CFLAGS="$xorg_testset_save_CFLAGS"
8572 fi
8573
8574 found="no"
8575
8576 if test $found = "no" ; then
8577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579 fi
8580
8581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8583 fi
8584
8585 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8586
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8588 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8589 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8590 if eval \${$cacheid+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 int i;
8596 int
8597 main ()
8598 {
8599
8600 ;
8601 return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_c_try_link "$LINENO"; then :
8605 eval $cacheid=yes
8606 else
8607 eval $cacheid=no
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 fi
8612
8613
8614 CFLAGS="$xorg_testset_save_CFLAGS"
8615
8616 eval supported=\$$cacheid
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8618 $as_echo "$supported" >&6; }
8619 if test "$supported" = "yes" ; then
8620 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8621 found="yes"
8622 fi
8623 fi
8624
8625 if test $found = "no" ; then
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 fi
8629
8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632 fi
8633
8634 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8635
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8637 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8638 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8639 if eval \${$cacheid+:} false; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8644 int i;
8645 int
8646 main ()
8647 {
8648
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_link "$LINENO"; then :
8654 eval $cacheid=yes
8655 else
8656 eval $cacheid=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8660 fi
8661
8662
8663 CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665 eval supported=\$$cacheid
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667 $as_echo "$supported" >&6; }
8668 if test "$supported" = "yes" ; then
8669 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8670 found="yes"
8671 fi
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 int i;
8700 _ACEOF
8701 if ac_fn_c_try_compile "$LINENO"; then :
8702 xorg_cv_cc_flag_unknown_warning_option=yes
8703 else
8704 xorg_cv_cc_flag_unknown_warning_option=no
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8711 CFLAGS="$xorg_testset_save_CFLAGS"
8712 fi
8713
8714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717 fi
8718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 int i;
8727 _ACEOF
8728 if ac_fn_c_try_compile "$LINENO"; then :
8729 xorg_cv_cc_flag_unused_command_line_argument=yes
8730 else
8731 xorg_cv_cc_flag_unused_command_line_argument=no
8732 fi
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8738 CFLAGS="$xorg_testset_save_CFLAGS"
8739 fi
8740
8741 found="no"
8742
8743 if test $found = "no" ; then
8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746 fi
8747
8748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8750 fi
8751
8752 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8755 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8756 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8757 if eval \${$cacheid+:} false; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762 int i;
8763 int
8764 main ()
8765 {
8766
8767 ;
8768 return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 eval $cacheid=yes
8773 else
8774 eval $cacheid=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 fi
8779
8780
8781 CFLAGS="$xorg_testset_save_CFLAGS"
8782
8783 eval supported=\$$cacheid
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8785 $as_echo "$supported" >&6; }
8786 if test "$supported" = "yes" ; then
8787 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8788 found="yes"
8789 fi
8790 fi
8791
8792 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8793 else
8794 { $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
8795 $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;}
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809 xorg_testset_save_CFLAGS="$CFLAGS"
8810
8811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 int i;
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823 xorg_cv_cc_flag_unknown_warning_option=yes
8824 else
8825 xorg_cv_cc_flag_unknown_warning_option=no
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8832 CFLAGS="$xorg_testset_save_CFLAGS"
8833 fi
8834
8835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838 fi
8839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850 xorg_cv_cc_flag_unused_command_line_argument=yes
8851 else
8852 xorg_cv_cc_flag_unused_command_line_argument=no
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8859 CFLAGS="$xorg_testset_save_CFLAGS"
8860 fi
8861
8862 found="no"
8863
8864 if test $found = "no" ; then
8865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867 fi
8868
8869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871 fi
8872
8873 CFLAGS="$CFLAGS -Wimplicit"
8874
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8876 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8877 cacheid=xorg_cv_cc_flag__Wimplicit
8878 if eval \${$cacheid+:} false; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 int i;
8884 int
8885 main ()
8886 {
8887
8888 ;
8889 return 0;
8890 }
8891 _ACEOF
8892 if ac_fn_c_try_link "$LINENO"; then :
8893 eval $cacheid=yes
8894 else
8895 eval $cacheid=no
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8899 fi
8900
8901
8902 CFLAGS="$xorg_testset_save_CFLAGS"
8903
8904 eval supported=\$$cacheid
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8906 $as_echo "$supported" >&6; }
8907 if test "$supported" = "yes" ; then
8908 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8909 found="yes"
8910 fi
8911 fi
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927 xorg_testset_save_CFLAGS="$CFLAGS"
8928
8929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 int i;
8939 _ACEOF
8940 if ac_fn_c_try_compile "$LINENO"; then :
8941 xorg_cv_cc_flag_unknown_warning_option=yes
8942 else
8943 xorg_cv_cc_flag_unknown_warning_option=no
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8950 CFLAGS="$xorg_testset_save_CFLAGS"
8951 fi
8952
8953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956 fi
8957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 int i;
8966 _ACEOF
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968 xorg_cv_cc_flag_unused_command_line_argument=yes
8969 else
8970 xorg_cv_cc_flag_unused_command_line_argument=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8977 CFLAGS="$xorg_testset_save_CFLAGS"
8978 fi
8979
8980 found="no"
8981
8982 if test $found = "no" ; then
8983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985 fi
8986
8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989 fi
8990
8991 CFLAGS="$CFLAGS -Wnonnull"
8992
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8994 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8995 cacheid=xorg_cv_cc_flag__Wnonnull
8996 if eval \${$cacheid+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 int i;
9002 int
9003 main ()
9004 {
9005
9006 ;
9007 return 0;
9008 }
9009 _ACEOF
9010 if ac_fn_c_try_link "$LINENO"; then :
9011 eval $cacheid=yes
9012 else
9013 eval $cacheid=no
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext \
9016 conftest$ac_exeext conftest.$ac_ext
9017 fi
9018
9019
9020 CFLAGS="$xorg_testset_save_CFLAGS"
9021
9022 eval supported=\$$cacheid
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9024 $as_echo "$supported" >&6; }
9025 if test "$supported" = "yes" ; then
9026 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9027 found="yes"
9028 fi
9029 fi
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045 xorg_testset_save_CFLAGS="$CFLAGS"
9046
9047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 int i;
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059 xorg_cv_cc_flag_unknown_warning_option=yes
9060 else
9061 xorg_cv_cc_flag_unknown_warning_option=no
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9068 CFLAGS="$xorg_testset_save_CFLAGS"
9069 fi
9070
9071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9074 fi
9075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 int i;
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086 xorg_cv_cc_flag_unused_command_line_argument=yes
9087 else
9088 xorg_cv_cc_flag_unused_command_line_argument=no
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9095 CFLAGS="$xorg_testset_save_CFLAGS"
9096 fi
9097
9098 found="no"
9099
9100 if test $found = "no" ; then
9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 fi
9104
9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107 fi
9108
9109 CFLAGS="$CFLAGS -Winit-self"
9110
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9112 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9113 cacheid=xorg_cv_cc_flag__Winit_self
9114 if eval \${$cacheid+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 int i;
9120 int
9121 main ()
9122 {
9123
9124 ;
9125 return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_link "$LINENO"; then :
9129 eval $cacheid=yes
9130 else
9131 eval $cacheid=no
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 fi
9136
9137
9138 CFLAGS="$xorg_testset_save_CFLAGS"
9139
9140 eval supported=\$$cacheid
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9142 $as_echo "$supported" >&6; }
9143 if test "$supported" = "yes" ; then
9144 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9145 found="yes"
9146 fi
9147 fi
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163 xorg_testset_save_CFLAGS="$CFLAGS"
9164
9165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 int i;
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177 xorg_cv_cc_flag_unknown_warning_option=yes
9178 else
9179 xorg_cv_cc_flag_unknown_warning_option=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187 fi
9188
9189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9192 fi
9193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 int i;
9202 _ACEOF
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204 xorg_cv_cc_flag_unused_command_line_argument=yes
9205 else
9206 xorg_cv_cc_flag_unused_command_line_argument=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9214 fi
9215
9216 found="no"
9217
9218 if test $found = "no" ; then
9219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221 fi
9222
9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225 fi
9226
9227 CFLAGS="$CFLAGS -Wmain"
9228
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9230 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9231 cacheid=xorg_cv_cc_flag__Wmain
9232 if eval \${$cacheid+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 int i;
9238 int
9239 main ()
9240 {
9241
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"; then :
9247 eval $cacheid=yes
9248 else
9249 eval $cacheid=no
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 fi
9254
9255
9256 CFLAGS="$xorg_testset_save_CFLAGS"
9257
9258 eval supported=\$$cacheid
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9260 $as_echo "$supported" >&6; }
9261 if test "$supported" = "yes" ; then
9262 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9263 found="yes"
9264 fi
9265 fi
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281 xorg_testset_save_CFLAGS="$CFLAGS"
9282
9283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292 int i;
9293 _ACEOF
9294 if ac_fn_c_try_compile "$LINENO"; then :
9295 xorg_cv_cc_flag_unknown_warning_option=yes
9296 else
9297 xorg_cv_cc_flag_unknown_warning_option=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9304 CFLAGS="$xorg_testset_save_CFLAGS"
9305 fi
9306
9307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9310 fi
9311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 int i;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 xorg_cv_cc_flag_unused_command_line_argument=yes
9323 else
9324 xorg_cv_cc_flag_unused_command_line_argument=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9331 CFLAGS="$xorg_testset_save_CFLAGS"
9332 fi
9333
9334 found="no"
9335
9336 if test $found = "no" ; then
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 fi
9340
9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343 fi
9344
9345 CFLAGS="$CFLAGS -Wmissing-braces"
9346
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9348 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9349 cacheid=xorg_cv_cc_flag__Wmissing_braces
9350 if eval \${$cacheid+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 int i;
9356 int
9357 main ()
9358 {
9359
9360 ;
9361 return 0;
9362 }
9363 _ACEOF
9364 if ac_fn_c_try_link "$LINENO"; then :
9365 eval $cacheid=yes
9366 else
9367 eval $cacheid=no
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 fi
9372
9373
9374 CFLAGS="$xorg_testset_save_CFLAGS"
9375
9376 eval supported=\$$cacheid
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9378 $as_echo "$supported" >&6; }
9379 if test "$supported" = "yes" ; then
9380 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9381 found="yes"
9382 fi
9383 fi
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399 xorg_testset_save_CFLAGS="$CFLAGS"
9400
9401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 int i;
9411 _ACEOF
9412 if ac_fn_c_try_compile "$LINENO"; then :
9413 xorg_cv_cc_flag_unknown_warning_option=yes
9414 else
9415 xorg_cv_cc_flag_unknown_warning_option=no
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9422 CFLAGS="$xorg_testset_save_CFLAGS"
9423 fi
9424
9425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428 fi
9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 int i;
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 xorg_cv_cc_flag_unused_command_line_argument=yes
9441 else
9442 xorg_cv_cc_flag_unused_command_line_argument=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9449 CFLAGS="$xorg_testset_save_CFLAGS"
9450 fi
9451
9452 found="no"
9453
9454 if test $found = "no" ; then
9455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457 fi
9458
9459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461 fi
9462
9463 CFLAGS="$CFLAGS -Wsequence-point"
9464
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9466 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9467 cacheid=xorg_cv_cc_flag__Wsequence_point
9468 if eval \${$cacheid+:} false; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473 int i;
9474 int
9475 main ()
9476 {
9477
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"; then :
9483 eval $cacheid=yes
9484 else
9485 eval $cacheid=no
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 fi
9490
9491
9492 CFLAGS="$xorg_testset_save_CFLAGS"
9493
9494 eval supported=\$$cacheid
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9496 $as_echo "$supported" >&6; }
9497 if test "$supported" = "yes" ; then
9498 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9499 found="yes"
9500 fi
9501 fi
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517 xorg_testset_save_CFLAGS="$CFLAGS"
9518
9519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9522 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9523 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 int i;
9529 _ACEOF
9530 if ac_fn_c_try_compile "$LINENO"; then :
9531 xorg_cv_cc_flag_unknown_warning_option=yes
9532 else
9533 xorg_cv_cc_flag_unknown_warning_option=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9538 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541 fi
9542
9543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9546 fi
9547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9549 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9550 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 int i;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558 xorg_cv_cc_flag_unused_command_line_argument=yes
9559 else
9560 xorg_cv_cc_flag_unused_command_line_argument=no
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9565 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9567 CFLAGS="$xorg_testset_save_CFLAGS"
9568 fi
9569
9570 found="no"
9571
9572 if test $found = "no" ; then
9573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575 fi
9576
9577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579 fi
9580
9581 CFLAGS="$CFLAGS -Wreturn-type"
9582
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9584 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9585 cacheid=xorg_cv_cc_flag__Wreturn_type
9586 if eval \${$cacheid+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 int i;
9592 int
9593 main ()
9594 {
9595
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601 eval $cacheid=yes
9602 else
9603 eval $cacheid=no
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 fi
9608
9609
9610 CFLAGS="$xorg_testset_save_CFLAGS"
9611
9612 eval supported=\$$cacheid
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9614 $as_echo "$supported" >&6; }
9615 if test "$supported" = "yes" ; then
9616 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9617 found="yes"
9618 fi
9619 fi
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635 xorg_testset_save_CFLAGS="$CFLAGS"
9636
9637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9640 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9641 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646 int i;
9647 _ACEOF
9648 if ac_fn_c_try_compile "$LINENO"; then :
9649 xorg_cv_cc_flag_unknown_warning_option=yes
9650 else
9651 xorg_cv_cc_flag_unknown_warning_option=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 fi
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9656 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9658 CFLAGS="$xorg_testset_save_CFLAGS"
9659 fi
9660
9661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9664 fi
9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9667 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9668 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 int i;
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 xorg_cv_cc_flag_unused_command_line_argument=yes
9677 else
9678 xorg_cv_cc_flag_unused_command_line_argument=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9683 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9686 fi
9687
9688 found="no"
9689
9690 if test $found = "no" ; then
9691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693 fi
9694
9695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697 fi
9698
9699 CFLAGS="$CFLAGS -Wtrigraphs"
9700
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9702 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9703 cacheid=xorg_cv_cc_flag__Wtrigraphs
9704 if eval \${$cacheid+:} false; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 int i;
9710 int
9711 main ()
9712 {
9713
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 if ac_fn_c_try_link "$LINENO"; then :
9719 eval $cacheid=yes
9720 else
9721 eval $cacheid=no
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9725 fi
9726
9727
9728 CFLAGS="$xorg_testset_save_CFLAGS"
9729
9730 eval supported=\$$cacheid
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9732 $as_echo "$supported" >&6; }
9733 if test "$supported" = "yes" ; then
9734 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9735 found="yes"
9736 fi
9737 fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753 xorg_testset_save_CFLAGS="$CFLAGS"
9754
9755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9758 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9759 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 int i;
9765 _ACEOF
9766 if ac_fn_c_try_compile "$LINENO"; then :
9767 xorg_cv_cc_flag_unknown_warning_option=yes
9768 else
9769 xorg_cv_cc_flag_unknown_warning_option=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9774 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777 fi
9778
9779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9782 fi
9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9785 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9786 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 int i;
9792 _ACEOF
9793 if ac_fn_c_try_compile "$LINENO"; then :
9794 xorg_cv_cc_flag_unused_command_line_argument=yes
9795 else
9796 xorg_cv_cc_flag_unused_command_line_argument=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9801 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9803 CFLAGS="$xorg_testset_save_CFLAGS"
9804 fi
9805
9806 found="no"
9807
9808 if test $found = "no" ; then
9809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811 fi
9812
9813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815 fi
9816
9817 CFLAGS="$CFLAGS -Warray-bounds"
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9820 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9821 cacheid=xorg_cv_cc_flag__Warray_bounds
9822 if eval \${$cacheid+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 int i;
9828 int
9829 main ()
9830 {
9831
9832 ;
9833 return 0;
9834 }
9835 _ACEOF
9836 if ac_fn_c_try_link "$LINENO"; then :
9837 eval $cacheid=yes
9838 else
9839 eval $cacheid=no
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
9843 fi
9844
9845
9846 CFLAGS="$xorg_testset_save_CFLAGS"
9847
9848 eval supported=\$$cacheid
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9850 $as_echo "$supported" >&6; }
9851 if test "$supported" = "yes" ; then
9852 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9853 found="yes"
9854 fi
9855 fi
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871 xorg_testset_save_CFLAGS="$CFLAGS"
9872
9873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9876 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9877 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 int i;
9883 _ACEOF
9884 if ac_fn_c_try_compile "$LINENO"; then :
9885 xorg_cv_cc_flag_unknown_warning_option=yes
9886 else
9887 xorg_cv_cc_flag_unknown_warning_option=no
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9892 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9894 CFLAGS="$xorg_testset_save_CFLAGS"
9895 fi
9896
9897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900 fi
9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9903 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9904 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 int i;
9910 _ACEOF
9911 if ac_fn_c_try_compile "$LINENO"; then :
9912 xorg_cv_cc_flag_unused_command_line_argument=yes
9913 else
9914 xorg_cv_cc_flag_unused_command_line_argument=no
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 fi
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9919 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9921 CFLAGS="$xorg_testset_save_CFLAGS"
9922 fi
9923
9924 found="no"
9925
9926 if test $found = "no" ; then
9927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929 fi
9930
9931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9933 fi
9934
9935 CFLAGS="$CFLAGS -Wwrite-strings"
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9938 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9939 cacheid=xorg_cv_cc_flag__Wwrite_strings
9940 if eval \${$cacheid+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 int i;
9946 int
9947 main ()
9948 {
9949
9950 ;
9951 return 0;
9952 }
9953 _ACEOF
9954 if ac_fn_c_try_link "$LINENO"; then :
9955 eval $cacheid=yes
9956 else
9957 eval $cacheid=no
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9961 fi
9962
9963
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965
9966 eval supported=\$$cacheid
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9968 $as_echo "$supported" >&6; }
9969 if test "$supported" = "yes" ; then
9970 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9971 found="yes"
9972 fi
9973 fi
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989 xorg_testset_save_CFLAGS="$CFLAGS"
9990
9991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9994 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9995 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10000 int i;
10001 _ACEOF
10002 if ac_fn_c_try_compile "$LINENO"; then :
10003 xorg_cv_cc_flag_unknown_warning_option=yes
10004 else
10005 xorg_cv_cc_flag_unknown_warning_option=no
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10008 fi
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10010 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10012 CFLAGS="$xorg_testset_save_CFLAGS"
10013 fi
10014
10015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018 fi
10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10021 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10022 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 int i;
10028 _ACEOF
10029 if ac_fn_c_try_compile "$LINENO"; then :
10030 xorg_cv_cc_flag_unused_command_line_argument=yes
10031 else
10032 xorg_cv_cc_flag_unused_command_line_argument=no
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035 fi
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10037 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10039 CFLAGS="$xorg_testset_save_CFLAGS"
10040 fi
10041
10042 found="no"
10043
10044 if test $found = "no" ; then
10045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10047 fi
10048
10049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10051 fi
10052
10053 CFLAGS="$CFLAGS -Waddress"
10054
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10056 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
10057 cacheid=xorg_cv_cc_flag__Waddress
10058 if eval \${$cacheid+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 int i;
10064 int
10065 main ()
10066 {
10067
10068 ;
10069 return 0;
10070 }
10071 _ACEOF
10072 if ac_fn_c_try_link "$LINENO"; then :
10073 eval $cacheid=yes
10074 else
10075 eval $cacheid=no
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 fi
10080
10081
10082 CFLAGS="$xorg_testset_save_CFLAGS"
10083
10084 eval supported=\$$cacheid
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10086 $as_echo "$supported" >&6; }
10087 if test "$supported" = "yes" ; then
10088 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10089 found="yes"
10090 fi
10091 fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 xorg_testset_save_CFLAGS="$CFLAGS"
10108
10109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10112 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10113 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 _ACEOF
10120 if ac_fn_c_try_compile "$LINENO"; then :
10121 xorg_cv_cc_flag_unknown_warning_option=yes
10122 else
10123 xorg_cv_cc_flag_unknown_warning_option=no
10124 fi
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10128 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10130 CFLAGS="$xorg_testset_save_CFLAGS"
10131 fi
10132
10133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136 fi
10137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10139 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10140 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 int i;
10146 _ACEOF
10147 if ac_fn_c_try_compile "$LINENO"; then :
10148 xorg_cv_cc_flag_unused_command_line_argument=yes
10149 else
10150 xorg_cv_cc_flag_unused_command_line_argument=no
10151 fi
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 fi
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10155 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10157 CFLAGS="$xorg_testset_save_CFLAGS"
10158 fi
10159
10160 found="no"
10161
10162 if test $found = "no" ; then
10163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165 fi
10166
10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10169 fi
10170
10171 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10172
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10174 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10175 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10176 if eval \${$cacheid+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int i;
10182 int
10183 main ()
10184 {
10185
10186 ;
10187 return 0;
10188 }
10189 _ACEOF
10190 if ac_fn_c_try_link "$LINENO"; then :
10191 eval $cacheid=yes
10192 else
10193 eval $cacheid=no
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 fi
10198
10199
10200 CFLAGS="$xorg_testset_save_CFLAGS"
10201
10202 eval supported=\$$cacheid
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10204 $as_echo "$supported" >&6; }
10205 if test "$supported" = "yes" ; then
10206 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10207 found="yes"
10208 fi
10209 fi
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225 xorg_testset_save_CFLAGS="$CFLAGS"
10226
10227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10230 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10231 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 int i;
10237 _ACEOF
10238 if ac_fn_c_try_compile "$LINENO"; then :
10239 xorg_cv_cc_flag_unknown_warning_option=yes
10240 else
10241 xorg_cv_cc_flag_unknown_warning_option=no
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244 fi
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10246 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10248 CFLAGS="$xorg_testset_save_CFLAGS"
10249 fi
10250
10251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254 fi
10255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10257 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10258 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 int i;
10264 _ACEOF
10265 if ac_fn_c_try_compile "$LINENO"; then :
10266 xorg_cv_cc_flag_unused_command_line_argument=yes
10267 else
10268 xorg_cv_cc_flag_unused_command_line_argument=no
10269 fi
10270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271 fi
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10273 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10275 CFLAGS="$xorg_testset_save_CFLAGS"
10276 fi
10277
10278 found="no"
10279
10280 if test $found = "no" ; then
10281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283 fi
10284
10285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10287 fi
10288
10289 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10290
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10292 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10293 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10294 if eval \${$cacheid+:} false; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 int i;
10300 int
10301 main ()
10302 {
10303
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 eval $cacheid=yes
10310 else
10311 eval $cacheid=no
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 fi
10316
10317
10318 CFLAGS="$xorg_testset_save_CFLAGS"
10319
10320 eval supported=\$$cacheid
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10322 $as_echo "$supported" >&6; }
10323 if test "$supported" = "yes" ; then
10324 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10325 found="yes"
10326 fi
10327 fi
10328
10329
10330 fi
10331
10332
10333
10334
10335
10336
10337
10338 CWARNFLAGS="$BASE_CFLAGS"
10339 if test "x$GCC" = xyes ; then
10340 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10341 fi
10342
10343
10344
10345
10346
10347
10348
10349
10350 # Check whether --enable-strict-compilation was given.
10351 if test "${enable_strict_compilation+set}" = set; then :
10352 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10353 else
10354 STRICT_COMPILE=no
10355 fi
10356
10357
10358
10359
10360
10361
10362 STRICT_CFLAGS=""
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376 xorg_testset_save_CFLAGS="$CFLAGS"
10377
10378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10381 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10382 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 int i;
10388 _ACEOF
10389 if ac_fn_c_try_compile "$LINENO"; then :
10390 xorg_cv_cc_flag_unknown_warning_option=yes
10391 else
10392 xorg_cv_cc_flag_unknown_warning_option=no
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10397 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10399 CFLAGS="$xorg_testset_save_CFLAGS"
10400 fi
10401
10402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10405 fi
10406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10408 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10409 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 int i;
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"; then :
10417 xorg_cv_cc_flag_unused_command_line_argument=yes
10418 else
10419 xorg_cv_cc_flag_unused_command_line_argument=no
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 fi
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10424 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10426 CFLAGS="$xorg_testset_save_CFLAGS"
10427 fi
10428
10429 found="no"
10430
10431 if test $found = "no" ; then
10432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10434 fi
10435
10436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438 fi
10439
10440 CFLAGS="$CFLAGS -pedantic"
10441
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10443 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10444 cacheid=xorg_cv_cc_flag__pedantic
10445 if eval \${$cacheid+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 int i;
10451 int
10452 main ()
10453 {
10454
10455 ;
10456 return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 eval $cacheid=yes
10461 else
10462 eval $cacheid=no
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 fi
10467
10468
10469 CFLAGS="$xorg_testset_save_CFLAGS"
10470
10471 eval supported=\$$cacheid
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10473 $as_echo "$supported" >&6; }
10474 if test "$supported" = "yes" ; then
10475 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10476 found="yes"
10477 fi
10478 fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494 xorg_testset_save_CFLAGS="$CFLAGS"
10495
10496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10499 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10500 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505 int i;
10506 _ACEOF
10507 if ac_fn_c_try_compile "$LINENO"; then :
10508 xorg_cv_cc_flag_unknown_warning_option=yes
10509 else
10510 xorg_cv_cc_flag_unknown_warning_option=no
10511 fi
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 fi
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10515 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10517 CFLAGS="$xorg_testset_save_CFLAGS"
10518 fi
10519
10520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10523 fi
10524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10526 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10527 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532 int i;
10533 _ACEOF
10534 if ac_fn_c_try_compile "$LINENO"; then :
10535 xorg_cv_cc_flag_unused_command_line_argument=yes
10536 else
10537 xorg_cv_cc_flag_unused_command_line_argument=no
10538 fi
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10542 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10544 CFLAGS="$xorg_testset_save_CFLAGS"
10545 fi
10546
10547 found="no"
10548
10549 if test $found = "no" ; then
10550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10552 fi
10553
10554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10556 fi
10557
10558 CFLAGS="$CFLAGS -Werror"
10559
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10561 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10562 cacheid=xorg_cv_cc_flag__Werror
10563 if eval \${$cacheid+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 int i;
10569 int
10570 main ()
10571 {
10572
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 eval $cacheid=yes
10579 else
10580 eval $cacheid=no
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 fi
10585
10586
10587 CFLAGS="$xorg_testset_save_CFLAGS"
10588
10589 eval supported=\$$cacheid
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10591 $as_echo "$supported" >&6; }
10592 if test "$supported" = "yes" ; then
10593 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10594 found="yes"
10595 fi
10596 fi
10597
10598 if test $found = "no" ; then
10599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10601 fi
10602
10603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10605 fi
10606
10607 CFLAGS="$CFLAGS -errwarn"
10608
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10610 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10611 cacheid=xorg_cv_cc_flag__errwarn
10612 if eval \${$cacheid+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617 int i;
10618 int
10619 main ()
10620 {
10621
10622 ;
10623 return 0;
10624 }
10625 _ACEOF
10626 if ac_fn_c_try_link "$LINENO"; then :
10627 eval $cacheid=yes
10628 else
10629 eval $cacheid=no
10630 fi
10631 rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10633 fi
10634
10635
10636 CFLAGS="$xorg_testset_save_CFLAGS"
10637
10638 eval supported=\$$cacheid
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10640 $as_echo "$supported" >&6; }
10641 if test "$supported" = "yes" ; then
10642 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10643 found="yes"
10644 fi
10645 fi
10646
10647
10648
10649 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10650 # activate it with -Werror, so we add it here explicitly.
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664 xorg_testset_save_CFLAGS="$CFLAGS"
10665
10666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10675 int i;
10676 _ACEOF
10677 if ac_fn_c_try_compile "$LINENO"; then :
10678 xorg_cv_cc_flag_unknown_warning_option=yes
10679 else
10680 xorg_cv_cc_flag_unknown_warning_option=no
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 fi
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10687 CFLAGS="$xorg_testset_save_CFLAGS"
10688 fi
10689
10690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10693 fi
10694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 int i;
10703 _ACEOF
10704 if ac_fn_c_try_compile "$LINENO"; then :
10705 xorg_cv_cc_flag_unused_command_line_argument=yes
10706 else
10707 xorg_cv_cc_flag_unused_command_line_argument=no
10708 fi
10709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710 fi
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10714 CFLAGS="$xorg_testset_save_CFLAGS"
10715 fi
10716
10717 found="no"
10718
10719 if test $found = "no" ; then
10720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10722 fi
10723
10724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10726 fi
10727
10728 CFLAGS="$CFLAGS -Werror=attributes"
10729
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10731 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10732 cacheid=xorg_cv_cc_flag__Werror_attributes
10733 if eval \${$cacheid+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735 else
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 int i;
10739 int
10740 main ()
10741 {
10742
10743 ;
10744 return 0;
10745 }
10746 _ACEOF
10747 if ac_fn_c_try_link "$LINENO"; then :
10748 eval $cacheid=yes
10749 else
10750 eval $cacheid=no
10751 fi
10752 rm -f core conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10754 fi
10755
10756
10757 CFLAGS="$xorg_testset_save_CFLAGS"
10758
10759 eval supported=\$$cacheid
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10761 $as_echo "$supported" >&6; }
10762 if test "$supported" = "yes" ; then
10763 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10764 found="yes"
10765 fi
10766 fi
10767
10768
10769
10770 if test "x$STRICT_COMPILE" = "xyes"; then
10771 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10772 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10773 fi
10774
10775
10776
10777
10778
10779
10780 cat >>confdefs.h <<_ACEOF
10781 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10782 _ACEOF
10783
10784 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10785 if test "x$PVM" = "x"; then
10786 PVM="0"
10787 fi
10788
10789 cat >>confdefs.h <<_ACEOF
10790 #define PACKAGE_VERSION_MINOR $PVM
10791 _ACEOF
10792
10793 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10794 if test "x$PVP" = "x"; then
10795 PVP="0"
10796 fi
10797
10798 cat >>confdefs.h <<_ACEOF
10799 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10800 _ACEOF
10801
10802
10803
10804 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10805 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10806 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10807 touch \$(top_srcdir)/ChangeLog; \
10808 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10809
10810
10811
10812
10813 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10814 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10815 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10816 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10817 touch \$(top_srcdir)/INSTALL; \
10818 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10819
10820
10821
10822
10823
10824
10825 case $host_os in
10826 solaris*)
10827 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10828 # check for a man page file found in later versions that use
10829 # traditional section numbers instead
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10831 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10832 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 test "$cross_compiling" = yes &&
10836 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10837 if test -r "/usr/share/man/man7/attributes.7"; then
10838 ac_cv_file__usr_share_man_man7_attributes_7=yes
10839 else
10840 ac_cv_file__usr_share_man_man7_attributes_7=no
10841 fi
10842 fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10844 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10845 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10846 SYSV_MAN_SECTIONS=false
10847 else
10848 SYSV_MAN_SECTIONS=true
10849 fi
10850
10851 ;;
10852 *) SYSV_MAN_SECTIONS=false ;;
10853 esac
10854
10855 if test x$APP_MAN_SUFFIX = x ; then
10856 APP_MAN_SUFFIX=1
10857 fi
10858 if test x$APP_MAN_DIR = x ; then
10859 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10860 fi
10861
10862 if test x$LIB_MAN_SUFFIX = x ; then
10863 LIB_MAN_SUFFIX=3
10864 fi
10865 if test x$LIB_MAN_DIR = x ; then
10866 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10867 fi
10868
10869 if test x$FILE_MAN_SUFFIX = x ; then
10870 case $SYSV_MAN_SECTIONS in
10871 true) FILE_MAN_SUFFIX=4 ;;
10872 *) FILE_MAN_SUFFIX=5 ;;
10873 esac
10874 fi
10875 if test x$FILE_MAN_DIR = x ; then
10876 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10877 fi
10878
10879 if test x$MISC_MAN_SUFFIX = x ; then
10880 case $SYSV_MAN_SECTIONS in
10881 true) MISC_MAN_SUFFIX=5 ;;
10882 *) MISC_MAN_SUFFIX=7 ;;
10883 esac
10884 fi
10885 if test x$MISC_MAN_DIR = x ; then
10886 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10887 fi
10888
10889 if test x$DRIVER_MAN_SUFFIX = x ; then
10890 case $SYSV_MAN_SECTIONS in
10891 true) DRIVER_MAN_SUFFIX=7 ;;
10892 *) DRIVER_MAN_SUFFIX=4 ;;
10893 esac
10894 fi
10895 if test x$DRIVER_MAN_DIR = x ; then
10896 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10897 fi
10898
10899 if test x$ADMIN_MAN_SUFFIX = x ; then
10900 case $SYSV_MAN_SECTIONS in
10901 true) ADMIN_MAN_SUFFIX=1m ;;
10902 *) ADMIN_MAN_SUFFIX=8 ;;
10903 esac
10904 fi
10905 if test x$ADMIN_MAN_DIR = x ; then
10906 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10907 fi
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923 XORG_MAN_PAGE="X Version 11"
10924
10925 MAN_SUBSTS="\
10926 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10927 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10928 -e 's|__xservername__|Xorg|g' \
10929 -e 's|__xconfigfile__|xorg.conf|g' \
10930 -e 's|__projectroot__|\$(prefix)|g' \
10931 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10932 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10933 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10934 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10935 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10936 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10937 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10938
10939
10940
10941 # Check whether --enable-silent-rules was given.
10942 if test "${enable_silent_rules+set}" = set; then :
10943 enableval=$enable_silent_rules;
10944 fi
10945
10946 case $enable_silent_rules in # (((
10947 yes) AM_DEFAULT_VERBOSITY=0;;
10948 no) AM_DEFAULT_VERBOSITY=1;;
10949 *) AM_DEFAULT_VERBOSITY=0;;
10950 esac
10951 am_make=${MAKE-make}
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10953 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10954 if ${am_cv_make_support_nested_variables+:} false; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 if $as_echo 'TRUE=$(BAR$(V))
10958 BAR0=false
10959 BAR1=true
10960 V=1
10961 am__doit:
10962 @$(TRUE)
10963 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10964 am_cv_make_support_nested_variables=yes
10965 else
10966 am_cv_make_support_nested_variables=no
10967 fi
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10970 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10971 if test $am_cv_make_support_nested_variables = yes; then
10972 AM_V='$(V)'
10973 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10974 else
10975 AM_V=$AM_DEFAULT_VERBOSITY
10976 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10977 fi
10978 AM_BACKSLASH='\'
10979
10980
10981
10982 for ac_header in net/errno.h
10983 do :
10984 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
10985 if test "x$ac_cv_header_net_errno_h" = xyes; then :
10986 cat >>confdefs.h <<_ACEOF
10987 #define HAVE_NET_ERRNO_H 1
10988 _ACEOF
10989
10990 fi
10991
10992 done
10993
10994
10995 for ac_func in reallocarray strlcpy
10996 do :
10997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11000 cat >>confdefs.h <<_ACEOF
11001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11002 _ACEOF
11003
11004 fi
11005 done
11006
11007
11008 # Checks for pkg-config packages
11009
11010 pkg_failed=no
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
11012 $as_echo_n "checking for XAUTH... " >&6; }
11013
11014 if test -n "$XAUTH_CFLAGS"; then
11015 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
11016 elif test -n "$PKG_CONFIG"; then
11017 if test -n "$PKG_CONFIG" && \
11018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11019 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11020 ac_status=$?
11021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11022 test $ac_status = 0; }; then
11023 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11024 test "x$?" != "x0" && pkg_failed=yes
11025 else
11026 pkg_failed=yes
11027 fi
11028 else
11029 pkg_failed=untried
11030 fi
11031 if test -n "$XAUTH_LIBS"; then
11032 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
11033 elif test -n "$PKG_CONFIG"; then
11034 if test -n "$PKG_CONFIG" && \
11035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11036 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11037 ac_status=$?
11038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039 test $ac_status = 0; }; then
11040 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11041 test "x$?" != "x0" && pkg_failed=yes
11042 else
11043 pkg_failed=yes
11044 fi
11045 else
11046 pkg_failed=untried
11047 fi
11048
11049
11050
11051 if test $pkg_failed = yes; then
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054
11055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11056 _pkg_short_errors_supported=yes
11057 else
11058 _pkg_short_errors_supported=no
11059 fi
11060 if test $_pkg_short_errors_supported = yes; then
11061 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11062 else
11063 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11064 fi
11065 # Put the nasty error message in config.log where it belongs
11066 echo "$XAUTH_PKG_ERRORS" >&5
11067
11068 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
11069
11070 $XAUTH_PKG_ERRORS
11071
11072 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11073 installed software in a non-standard prefix.
11074
11075 Alternatively, you may set the environment variables XAUTH_CFLAGS
11076 and XAUTH_LIBS to avoid the need to call pkg-config.
11077 See the pkg-config man page for more details." "$LINENO" 5
11078 elif test $pkg_failed = untried; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11083 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11084 is in your PATH or set the PKG_CONFIG environment variable to the full
11085 path to pkg-config.
11086
11087 Alternatively, you may set the environment variables XAUTH_CFLAGS
11088 and XAUTH_LIBS to avoid the need to call pkg-config.
11089 See the pkg-config man page for more details.
11090
11091 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11092 See \`config.log' for more details" "$LINENO" 5; }
11093 else
11094 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
11095 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11097 $as_echo "yes" >&6; }
11098
11099 fi
11100
11101 # Transport selection macro from xtrans.m4
11102 # Needed to set *CONN defines for gethost.c & parsedpy.c
11103
11104
11105 case $host_os in
11106 mingw*) unixdef="no" ;;
11107 *) unixdef="yes" ;;
11108 esac
11109 # Check whether --enable-unix-transport was given.
11110 if test "${enable_unix_transport+set}" = set; then :
11111 enableval=$enable_unix_transport; UNIXCONN=$enableval
11112 else
11113 UNIXCONN=$unixdef
11114 fi
11115
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11117 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11118 if test "$UNIXCONN" = "yes"; then
11119
11120 $as_echo "#define UNIXCONN 1" >>confdefs.h
11121
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11124 $as_echo "$UNIXCONN" >&6; }
11125 # Check whether --enable-tcp-transport was given.
11126 if test "${enable_tcp_transport+set}" = set; then :
11127 enableval=$enable_tcp_transport; TCPCONN=$enableval
11128 else
11129 TCPCONN=yes
11130 fi
11131
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11133 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11135 $as_echo "$TCPCONN" >&6; }
11136 if test "$TCPCONN" = "yes"; then
11137
11138 $as_echo "#define TCPCONN 1" >>confdefs.h
11139
11140
11141 # SVR4 hides these in libraries other than libc
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11143 $as_echo_n "checking for library containing socket... " >&6; }
11144 if ${ac_cv_search_socket+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_func_search_save_LIBS=$LIBS
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char socket ();
11158 int
11159 main ()
11160 {
11161 return socket ();
11162 ;
11163 return 0;
11164 }
11165 _ACEOF
11166 for ac_lib in '' socket; do
11167 if test -z "$ac_lib"; then
11168 ac_res="none required"
11169 else
11170 ac_res=-l$ac_lib
11171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11172 fi
11173 if ac_fn_c_try_link "$LINENO"; then :
11174 ac_cv_search_socket=$ac_res
11175 fi
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext
11178 if ${ac_cv_search_socket+:} false; then :
11179 break
11180 fi
11181 done
11182 if ${ac_cv_search_socket+:} false; then :
11183
11184 else
11185 ac_cv_search_socket=no
11186 fi
11187 rm conftest.$ac_ext
11188 LIBS=$ac_func_search_save_LIBS
11189 fi
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11191 $as_echo "$ac_cv_search_socket" >&6; }
11192 ac_res=$ac_cv_search_socket
11193 if test "$ac_res" != no; then :
11194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11195
11196 fi
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11199 $as_echo_n "checking for library containing gethostbyname... " >&6; }
11200 if ${ac_cv_search_gethostbyname+:} false; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 ac_func_search_save_LIBS=$LIBS
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char gethostbyname ();
11214 int
11215 main ()
11216 {
11217 return gethostbyname ();
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 for ac_lib in '' nsl; do
11223 if test -z "$ac_lib"; then
11224 ac_res="none required"
11225 else
11226 ac_res=-l$ac_lib
11227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11228 fi
11229 if ac_fn_c_try_link "$LINENO"; then :
11230 ac_cv_search_gethostbyname=$ac_res
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext
11234 if ${ac_cv_search_gethostbyname+:} false; then :
11235 break
11236 fi
11237 done
11238 if ${ac_cv_search_gethostbyname+:} false; then :
11239
11240 else
11241 ac_cv_search_gethostbyname=no
11242 fi
11243 rm conftest.$ac_ext
11244 LIBS=$ac_func_search_save_LIBS
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11247 $as_echo "$ac_cv_search_gethostbyname" >&6; }
11248 ac_res=$ac_cv_search_gethostbyname
11249 if test "$ac_res" != no; then :
11250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11251
11252 fi
11253
11254 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11256 $as_echo_n "checking for main in -lws2_32... " >&6; }
11257 if ${ac_cv_lib_ws2_32_main+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 ac_check_lib_save_LIBS=$LIBS
11261 LIBS="-lws2_32 $LIBS"
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11264
11265
11266 int
11267 main ()
11268 {
11269 return main ();
11270 ;
11271 return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_ws2_32_main=yes
11276 else
11277 ac_cv_lib_ws2_32_main=no
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11282 fi
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11284 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11285 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11286 cat >>confdefs.h <<_ACEOF
11287 #define HAVE_LIBWS2_32 1
11288 _ACEOF
11289
11290 LIBS="-lws2_32 $LIBS"
11291
11292 fi
11293
11294 fi
11295
11296 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11297 # Check whether --enable-ipv6 was given.
11298 if test "${enable_ipv6+set}" = set; then :
11299 enableval=$enable_ipv6; IPV6CONN=$enableval
11300 else
11301 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11302 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11303 IPV6CONN=yes
11304 else
11305 IPV6CONN=no
11306 fi
11307
11308 fi
11309
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11311 $as_echo_n "checking if IPv6 support should be built... " >&6; }
11312 if test "$IPV6CONN" = "yes"; then
11313
11314 $as_echo "#define IPv6 1" >>confdefs.h
11315
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11318 $as_echo "$IPV6CONN" >&6; }
11319
11320 # 4.3BSD-Reno added a new member to struct sockaddr_in
11321 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11322 #include <sys/types.h>
11323 #include <sys/socket.h>
11324 #include <netinet/in.h>
11325
11326 "
11327 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11328
11329 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11330
11331 fi
11332
11333
11334 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11335 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11336 $ac_includes_default
11337 #include <sys/socket.h>
11338 "
11339 if test "x$ac_cv_type_socklen_t" = xyes; then :
11340
11341 cat >>confdefs.h <<_ACEOF
11342 #define HAVE_SOCKLEN_T 1
11343 _ACEOF
11344
11345
11346 fi
11347
11348
11349 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11350 # _XOPEN_SOURCE to get it (such as on Solaris)
11351 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11352 $ac_includes_default
11353 #include <sys/socket.h>
11354
11355 "
11356 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11357
11358 fi
11359
11360 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11361 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11362 unset ac_cv_member_struct_msghdr_msg_control
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11364 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11365 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11366 #define _XOPEN_SOURCE 600
11367 $ac_includes_default
11368 #include <sys/socket.h>
11369
11370 "
11371 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11372
11373 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
11374
11375
11376 fi
11377
11378 fi
11379 # If that didn't work, fall back to XPG5/UNIX98 with C89
11380 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11381 unset ac_cv_member_struct_msghdr_msg_control
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11383 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11384 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11385 #define _XOPEN_SOURCE 500
11386 $ac_includes_default
11387 #include <sys/socket.h>
11388
11389 "
11390 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11391
11392 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
11393
11394
11395 fi
11396
11397 fi
11398
11399
11400
11401 fi
11402 case $host_os in
11403 solaris*|sco*|sysv4*) localdef="yes" ;;
11404 *) localdef="no" ;;
11405 esac
11406 # Check whether --enable-local-transport was given.
11407 if test "${enable_local_transport+set}" = set; then :
11408 enableval=$enable_local_transport; LOCALCONN=$enableval
11409 else
11410 LOCALCONN=$localdef
11411 fi
11412
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11414 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11416 $as_echo "$LOCALCONN" >&6; }
11417 if test "$LOCALCONN" = "yes"; then
11418
11419 $as_echo "#define LOCALCONN 1" >>confdefs.h
11420
11421 fi
11422
11423 # Other functions Xtrans may need
11424 for ac_func in strcasecmp strlcpy
11425 do :
11426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11428 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11429 cat >>confdefs.h <<_ACEOF
11430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11431 _ACEOF
11432
11433 fi
11434 done
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444 # Check whether --with-lint was given.
11445 if test "${with_lint+set}" = set; then :
11446 withval=$with_lint; use_lint=$withval
11447 else
11448 use_lint=no
11449 fi
11450
11451
11452 # Obtain platform specific info like program name and options
11453 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11454 case $host_os in
11455 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11456 lint_name=splint
11457 lint_options="-badflag"
11458 ;;
11459 *freebsd* | *netbsd*)
11460 lint_name=lint
11461 lint_options="-u -b"
11462 ;;
11463 *solaris*)
11464 lint_name=lint
11465 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11466 ;;
11467 esac
11468
11469 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11470 if test "x$use_lint" = x"yes" ; then
11471 # Extract the first word of "$lint_name", so it can be a program name with args.
11472 set dummy $lint_name; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if ${ac_cv_path_LINT+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 case $LINT in
11479 [\\/]* | ?:[\\/]*)
11480 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11481 ;;
11482 *)
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11485 do
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11490 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 break 2
11493 fi
11494 done
11495 done
11496 IFS=$as_save_IFS
11497
11498 ;;
11499 esac
11500 fi
11501 LINT=$ac_cv_path_LINT
11502 if test -n "$LINT"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11504 $as_echo "$LINT" >&6; }
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507 $as_echo "no" >&6; }
11508 fi
11509
11510
11511 if test "x$LINT" = "x"; then
11512 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11513 fi
11514 elif test "x$use_lint" = x"no" ; then
11515 if test "x$LINT" != "x"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11517 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11518 fi
11519 else
11520 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11521 fi
11522
11523 # User supplied flags override default flags
11524 if test "x$LINT_FLAGS" != "x"; then
11525 lint_options=$LINT_FLAGS
11526 fi
11527
11528 LINT_FLAGS=$lint_options
11529
11530 if test "x$LINT" != x; then
11531 LINT_TRUE=
11532 LINT_FALSE='#'
11533 else
11534 LINT_TRUE='#'
11535 LINT_FALSE=
11536 fi
11537
11538
11539
11540
11541 ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
11542
11543 cat >confcache <<\_ACEOF
11544 # This file is a shell script that caches the results of configure
11545 # tests run on this system so they can be shared between configure
11546 # scripts and configure runs, see configure's option --config-cache.
11547 # It is not useful on other systems. If it contains results you don't
11548 # want to keep, you may remove or edit it.
11549 #
11550 # config.status only pays attention to the cache file if you give it
11551 # the --recheck option to rerun configure.
11552 #
11553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11555 # following values.
11556
11557 _ACEOF
11558
11559 # The following way of writing the cache mishandles newlines in values,
11560 # but we know of no workaround that is simple, portable, and efficient.
11561 # So, we kill variables containing newlines.
11562 # Ultrix sh set writes to stderr and can't be redirected directly,
11563 # and sets the high bit in the cache file unless we assign to the vars.
11564 (
11565 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11566 eval ac_val=\$$ac_var
11567 case $ac_val in #(
11568 *${as_nl}*)
11569 case $ac_var in #(
11570 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11571 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11572 esac
11573 case $ac_var in #(
11574 _ | IFS | as_nl) ;; #(
11575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11576 *) { eval $ac_var=; unset $ac_var;} ;;
11577 esac ;;
11578 esac
11579 done
11580
11581 (set) 2>&1 |
11582 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11583 *${as_nl}ac_space=\ *)
11584 # `set' does not quote correctly, so add quotes: double-quote
11585 # substitution turns \\\\ into \\, and sed turns \\ into \.
11586 sed -n \
11587 "s/'/'\\\\''/g;
11588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11589 ;; #(
11590 *)
11591 # `set' quotes correctly as required by POSIX, so do not add quotes.
11592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11593 ;;
11594 esac |
11595 sort
11596 ) |
11597 sed '
11598 /^ac_cv_env_/b end
11599 t clear
11600 :clear
11601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11602 t end
11603 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11604 :end' >>confcache
11605 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11606 if test -w "$cache_file"; then
11607 if test "x$cache_file" != "x/dev/null"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11609 $as_echo "$as_me: updating cache $cache_file" >&6;}
11610 if test ! -f "$cache_file" || test -h "$cache_file"; then
11611 cat confcache >"$cache_file"
11612 else
11613 case $cache_file in #(
11614 */* | ?:*)
11615 mv -f confcache "$cache_file"$$ &&
11616 mv -f "$cache_file"$$ "$cache_file" ;; #(
11617 *)
11618 mv -f confcache "$cache_file" ;;
11619 esac
11620 fi
11621 fi
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11624 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11625 fi
11626 fi
11627 rm -f confcache
11628
11629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11630 # Let make expand exec_prefix.
11631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11632
11633 DEFS=-DHAVE_CONFIG_H
11634
11635 ac_libobjs=
11636 ac_ltlibobjs=
11637 U=
11638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11639 # 1. Remove the extension, and $U if already installed.
11640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11641 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11643 # will be set to the directory where LIBOBJS objects are built.
11644 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11645 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11646 done
11647 LIBOBJS=$ac_libobjs
11648
11649 LTLIBOBJS=$ac_ltlibobjs
11650
11651
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11653 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11654 if test -n "$am_sleep_pid"; then
11655 # Hide warnings about reused PIDs.
11656 wait $am_sleep_pid 2>/dev/null
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11659 $as_echo "done" >&6; }
11660 if test -n "$EXEEXT"; then
11661 am__EXEEXT_TRUE=
11662 am__EXEEXT_FALSE='#'
11663 else
11664 am__EXEEXT_TRUE='#'
11665 am__EXEEXT_FALSE=
11666 fi
11667
11668 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11669 as_fn_error $? "conditional \"AMDEP\" was never defined.
11670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11671 fi
11672 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11673 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11675 fi
11676 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11677 as_fn_error $? "conditional \"LINT\" was never defined.
11678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11679 fi
11680
11681 : "${CONFIG_STATUS=./config.status}"
11682 ac_write_fail=0
11683 ac_clean_files_save=$ac_clean_files
11684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11686 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11687 as_write_fail=0
11688 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11689 #! $SHELL
11690 # Generated by $as_me.
11691 # Run this file to recreate the current configuration.
11692 # Compiler output produced by configure, useful for debugging
11693 # configure, is in config.log if it exists.
11694
11695 debug=false
11696 ac_cs_recheck=false
11697 ac_cs_silent=false
11698
11699 SHELL=\${CONFIG_SHELL-$SHELL}
11700 export SHELL
11701 _ASEOF
11702 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11703 ## -------------------- ##
11704 ## M4sh Initialization. ##
11705 ## -------------------- ##
11706
11707 # Be more Bourne compatible
11708 DUALCASE=1; export DUALCASE # for MKS sh
11709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11710 emulate sh
11711 NULLCMD=:
11712 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11713 # is contrary to our usage. Disable this feature.
11714 alias -g '${1+"$@"}'='"$@"'
11715 setopt NO_GLOB_SUBST
11716 else
11717 case `(set -o) 2>/dev/null` in #(
11718 *posix*) :
11719 set -o posix ;; #(
11720 *) :
11721 ;;
11722 esac
11723 fi
11724
11725
11726 as_nl='
11727 '
11728 export as_nl
11729 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11730 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11733 # Prefer a ksh shell builtin over an external printf program on Solaris,
11734 # but without wasting forks for bash or zsh.
11735 if test -z "$BASH_VERSION$ZSH_VERSION" \
11736 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11737 as_echo='print -r --'
11738 as_echo_n='print -rn --'
11739 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11740 as_echo='printf %s\n'
11741 as_echo_n='printf %s'
11742 else
11743 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11744 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11745 as_echo_n='/usr/ucb/echo -n'
11746 else
11747 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11748 as_echo_n_body='eval
11749 arg=$1;
11750 case $arg in #(
11751 *"$as_nl"*)
11752 expr "X$arg" : "X\\(.*\\)$as_nl";
11753 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11754 esac;
11755 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11756 '
11757 export as_echo_n_body
11758 as_echo_n='sh -c $as_echo_n_body as_echo'
11759 fi
11760 export as_echo_body
11761 as_echo='sh -c $as_echo_body as_echo'
11762 fi
11763
11764 # The user is always right.
11765 if test "${PATH_SEPARATOR+set}" != set; then
11766 PATH_SEPARATOR=:
11767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11768 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11769 PATH_SEPARATOR=';'
11770 }
11771 fi
11772
11773
11774 # IFS
11775 # We need space, tab and new line, in precisely that order. Quoting is
11776 # there to prevent editors from complaining about space-tab.
11777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11778 # splitting by setting IFS to empty value.)
11779 IFS=" "" $as_nl"
11780
11781 # Find who we are. Look in the path if we contain no directory separator.
11782 as_myself=
11783 case $0 in #((
11784 *[\\/]* ) as_myself=$0 ;;
11785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11787 do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11791 done
11792 IFS=$as_save_IFS
11793
11794 ;;
11795 esac
11796 # We did not find ourselves, most probably we were run as `sh COMMAND'
11797 # in which case we are not to be found in the path.
11798 if test "x$as_myself" = x; then
11799 as_myself=$0
11800 fi
11801 if test ! -f "$as_myself"; then
11802 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11803 exit 1
11804 fi
11805
11806 # Unset variables that we do not need and which cause bugs (e.g. in
11807 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11808 # suppresses any "Segmentation fault" message there. '((' could
11809 # trigger a bug in pdksh 5.2.14.
11810 for as_var in BASH_ENV ENV MAIL MAILPATH
11811 do eval test x\${$as_var+set} = xset \
11812 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11813 done
11814 PS1='$ '
11815 PS2='> '
11816 PS4='+ '
11817
11818 # NLS nuisances.
11819 LC_ALL=C
11820 export LC_ALL
11821 LANGUAGE=C
11822 export LANGUAGE
11823
11824 # CDPATH.
11825 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11826
11827
11828 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11829 # ----------------------------------------
11830 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11831 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11832 # script with STATUS, using 1 if that was 0.
11833 as_fn_error ()
11834 {
11835 as_status=$1; test $as_status -eq 0 && as_status=1
11836 if test "$4"; then
11837 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11838 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11839 fi
11840 $as_echo "$as_me: error: $2" >&2
11841 as_fn_exit $as_status
11842 } # as_fn_error
11843
11844
11845 # as_fn_set_status STATUS
11846 # -----------------------
11847 # Set $? to STATUS, without forking.
11848 as_fn_set_status ()
11849 {
11850 return $1
11851 } # as_fn_set_status
11852
11853 # as_fn_exit STATUS
11854 # -----------------
11855 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11856 as_fn_exit ()
11857 {
11858 set +e
11859 as_fn_set_status $1
11860 exit $1
11861 } # as_fn_exit
11862
11863 # as_fn_unset VAR
11864 # ---------------
11865 # Portably unset VAR.
11866 as_fn_unset ()
11867 {
11868 { eval $1=; unset $1;}
11869 }
11870 as_unset=as_fn_unset
11871 # as_fn_append VAR VALUE
11872 # ----------------------
11873 # Append the text in VALUE to the end of the definition contained in VAR. Take
11874 # advantage of any shell optimizations that allow amortized linear growth over
11875 # repeated appends, instead of the typical quadratic growth present in naive
11876 # implementations.
11877 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11878 eval 'as_fn_append ()
11879 {
11880 eval $1+=\$2
11881 }'
11882 else
11883 as_fn_append ()
11884 {
11885 eval $1=\$$1\$2
11886 }
11887 fi # as_fn_append
11888
11889 # as_fn_arith ARG...
11890 # ------------------
11891 # Perform arithmetic evaluation on the ARGs, and store the result in the
11892 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11893 # must be portable across $(()) and expr.
11894 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11895 eval 'as_fn_arith ()
11896 {
11897 as_val=$(( $* ))
11898 }'
11899 else
11900 as_fn_arith ()
11901 {
11902 as_val=`expr "$@" || test $? -eq 1`
11903 }
11904 fi # as_fn_arith
11905
11906
11907 if expr a : '\(a\)' >/dev/null 2>&1 &&
11908 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11909 as_expr=expr
11910 else
11911 as_expr=false
11912 fi
11913
11914 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11915 as_basename=basename
11916 else
11917 as_basename=false
11918 fi
11919
11920 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11921 as_dirname=dirname
11922 else
11923 as_dirname=false
11924 fi
11925
11926 as_me=`$as_basename -- "$0" ||
11927 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11928 X"$0" : 'X\(//\)$' \| \
11929 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11930 $as_echo X/"$0" |
11931 sed '/^.*\/\([^/][^/]*\)\/*$/{
11932 s//\1/
11933 q
11934 }
11935 /^X\/\(\/\/\)$/{
11936 s//\1/
11937 q
11938 }
11939 /^X\/\(\/\).*/{
11940 s//\1/
11941 q
11942 }
11943 s/.*/./; q'`
11944
11945 # Avoid depending upon Character Ranges.
11946 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11947 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11948 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11949 as_cr_digits='0123456789'
11950 as_cr_alnum=$as_cr_Letters$as_cr_digits
11951
11952 ECHO_C= ECHO_N= ECHO_T=
11953 case `echo -n x` in #(((((
11954 -n*)
11955 case `echo 'xy\c'` in
11956 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11957 xy) ECHO_C='\c';;
11958 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11959 ECHO_T=' ';;
11960 esac;;
11961 *)
11962 ECHO_N='-n';;
11963 esac
11964
11965 rm -f conf$$ conf$$.exe conf$$.file
11966 if test -d conf$$.dir; then
11967 rm -f conf$$.dir/conf$$.file
11968 else
11969 rm -f conf$$.dir
11970 mkdir conf$$.dir 2>/dev/null
11971 fi
11972 if (echo >conf$$.file) 2>/dev/null; then
11973 if ln -s conf$$.file conf$$ 2>/dev/null; then
11974 as_ln_s='ln -s'
11975 # ... but there are two gotchas:
11976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11978 # In both cases, we have to default to `cp -pR'.
11979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11980 as_ln_s='cp -pR'
11981 elif ln conf$$.file conf$$ 2>/dev/null; then
11982 as_ln_s=ln
11983 else
11984 as_ln_s='cp -pR'
11985 fi
11986 else
11987 as_ln_s='cp -pR'
11988 fi
11989 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11990 rmdir conf$$.dir 2>/dev/null
11991
11992
11993 # as_fn_mkdir_p
11994 # -------------
11995 # Create "$as_dir" as a directory, including parents if necessary.
11996 as_fn_mkdir_p ()
11997 {
11998
11999 case $as_dir in #(
12000 -*) as_dir=./$as_dir;;
12001 esac
12002 test -d "$as_dir" || eval $as_mkdir_p || {
12003 as_dirs=
12004 while :; do
12005 case $as_dir in #(
12006 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12007 *) as_qdir=$as_dir;;
12008 esac
12009 as_dirs="'$as_qdir' $as_dirs"
12010 as_dir=`$as_dirname -- "$as_dir" ||
12011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12012 X"$as_dir" : 'X\(//\)[^/]' \| \
12013 X"$as_dir" : 'X\(//\)$' \| \
12014 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12015 $as_echo X"$as_dir" |
12016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12017 s//\1/
12018 q
12019 }
12020 /^X\(\/\/\)[^/].*/{
12021 s//\1/
12022 q
12023 }
12024 /^X\(\/\/\)$/{
12025 s//\1/
12026 q
12027 }
12028 /^X\(\/\).*/{
12029 s//\1/
12030 q
12031 }
12032 s/.*/./; q'`
12033 test -d "$as_dir" && break
12034 done
12035 test -z "$as_dirs" || eval "mkdir $as_dirs"
12036 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12037
12038
12039 } # as_fn_mkdir_p
12040 if mkdir -p . 2>/dev/null; then
12041 as_mkdir_p='mkdir -p "$as_dir"'
12042 else
12043 test -d ./-p && rmdir ./-p
12044 as_mkdir_p=false
12045 fi
12046
12047
12048 # as_fn_executable_p FILE
12049 # -----------------------
12050 # Test if FILE is an executable regular file.
12051 as_fn_executable_p ()
12052 {
12053 test -f "$1" && test -x "$1"
12054 } # as_fn_executable_p
12055 as_test_x='test -x'
12056 as_executable_p=as_fn_executable_p
12057
12058 # Sed expression to map a string onto a valid CPP name.
12059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12060
12061 # Sed expression to map a string onto a valid variable name.
12062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12063
12064
12065 exec 6>&1
12066 ## ----------------------------------- ##
12067 ## Main body of $CONFIG_STATUS script. ##
12068 ## ----------------------------------- ##
12069 _ASEOF
12070 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12071
12072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12073 # Save the log message, to keep $0 and so on meaningful, and to
12074 # report actual input values of CONFIG_FILES etc. instead of their
12075 # values after options handling.
12076 ac_log="
12077 This file was extended by xauth $as_me 1.1.1, which was
12078 generated by GNU Autoconf 2.69. Invocation command line was
12079
12080 CONFIG_FILES = $CONFIG_FILES
12081 CONFIG_HEADERS = $CONFIG_HEADERS
12082 CONFIG_LINKS = $CONFIG_LINKS
12083 CONFIG_COMMANDS = $CONFIG_COMMANDS
12084 $ $0 $@
12085
12086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12087 "
12088
12089 _ACEOF
12090
12091 case $ac_config_files in *"
12092 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12093 esac
12094
12095 case $ac_config_headers in *"
12096 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12097 esac
12098
12099
12100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101 # Files that config.status was made for.
12102 config_files="$ac_config_files"
12103 config_headers="$ac_config_headers"
12104 config_commands="$ac_config_commands"
12105
12106 _ACEOF
12107
12108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12109 ac_cs_usage="\
12110 \`$as_me' instantiates files and other configuration actions
12111 from templates according to the current configuration. Unless the files
12112 and actions are specified as TAGs, all are instantiated by default.
12113
12114 Usage: $0 [OPTION]... [TAG]...
12115
12116 -h, --help print this help, then exit
12117 -V, --version print version number and configuration settings, then exit
12118 --config print configuration, then exit
12119 -q, --quiet, --silent
12120 do not print progress messages
12121 -d, --debug don't remove temporary files
12122 --recheck update $as_me by reconfiguring in the same conditions
12123 --file=FILE[:TEMPLATE]
12124 instantiate the configuration file FILE
12125 --header=FILE[:TEMPLATE]
12126 instantiate the configuration header FILE
12127
12128 Configuration files:
12129 $config_files
12130
12131 Configuration headers:
12132 $config_headers
12133
12134 Configuration commands:
12135 $config_commands
12136
12137 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>."
12138
12139 _ACEOF
12140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12141 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12142 ac_cs_version="\\
12143 xauth config.status 1.1.1
12144 configured by $0, generated by GNU Autoconf 2.69,
12145 with options \\"\$ac_cs_config\\"
12146
12147 Copyright (C) 2012 Free Software Foundation, Inc.
12148 This config.status script is free software; the Free Software Foundation
12149 gives unlimited permission to copy, distribute and modify it."
12150
12151 ac_pwd='$ac_pwd'
12152 srcdir='$srcdir'
12153 INSTALL='$INSTALL'
12154 MKDIR_P='$MKDIR_P'
12155 AWK='$AWK'
12156 test -n "\$AWK" || AWK=awk
12157 _ACEOF
12158
12159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12160 # The default lists apply if the user does not specify any file.
12161 ac_need_defaults=:
12162 while test $# != 0
12163 do
12164 case $1 in
12165 --*=?*)
12166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12168 ac_shift=:
12169 ;;
12170 --*=)
12171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12172 ac_optarg=
12173 ac_shift=:
12174 ;;
12175 *)
12176 ac_option=$1
12177 ac_optarg=$2
12178 ac_shift=shift
12179 ;;
12180 esac
12181
12182 case $ac_option in
12183 # Handling of the options.
12184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12185 ac_cs_recheck=: ;;
12186 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12187 $as_echo "$ac_cs_version"; exit ;;
12188 --config | --confi | --conf | --con | --co | --c )
12189 $as_echo "$ac_cs_config"; exit ;;
12190 --debug | --debu | --deb | --de | --d | -d )
12191 debug=: ;;
12192 --file | --fil | --fi | --f )
12193 $ac_shift
12194 case $ac_optarg in
12195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12196 '') as_fn_error $? "missing file argument" ;;
12197 esac
12198 as_fn_append CONFIG_FILES " '$ac_optarg'"
12199 ac_need_defaults=false;;
12200 --header | --heade | --head | --hea )
12201 $ac_shift
12202 case $ac_optarg in
12203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12204 esac
12205 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12206 ac_need_defaults=false;;
12207 --he | --h)
12208 # Conflict between --help and --header
12209 as_fn_error $? "ambiguous option: \`$1'
12210 Try \`$0 --help' for more information.";;
12211 --help | --hel | -h )
12212 $as_echo "$ac_cs_usage"; exit ;;
12213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12215 ac_cs_silent=: ;;
12216
12217 # This is an error.
12218 -*) as_fn_error $? "unrecognized option: \`$1'
12219 Try \`$0 --help' for more information." ;;
12220
12221 *) as_fn_append ac_config_targets " $1"
12222 ac_need_defaults=false ;;
12223
12224 esac
12225 shift
12226 done
12227
12228 ac_configure_extra_args=
12229
12230 if $ac_cs_silent; then
12231 exec 6>/dev/null
12232 ac_configure_extra_args="$ac_configure_extra_args --silent"
12233 fi
12234
12235 _ACEOF
12236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12237 if \$ac_cs_recheck; then
12238 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12239 shift
12240 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12241 CONFIG_SHELL='$SHELL'
12242 export CONFIG_SHELL
12243 exec "\$@"
12244 fi
12245
12246 _ACEOF
12247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12248 exec 5>>config.log
12249 {
12250 echo
12251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12252 ## Running $as_me. ##
12253 _ASBOX
12254 $as_echo "$ac_log"
12255 } >&5
12256
12257 _ACEOF
12258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12259 #
12260 # INIT-COMMANDS
12261 #
12262 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12263
12264 _ACEOF
12265
12266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12267
12268 # Handling of arguments.
12269 for ac_config_target in $ac_config_targets
12270 do
12271 case $ac_config_target in
12272 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12273 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12274 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12275 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12276 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12277
12278 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12279 esac
12280 done
12281
12282
12283 # If the user did not use the arguments to specify the items to instantiate,
12284 # then the envvar interface is used. Set only those that are not.
12285 # We use the long form for the default assignment because of an extremely
12286 # bizarre bug on SunOS 4.1.3.
12287 if $ac_need_defaults; then
12288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12290 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12291 fi
12292
12293 # Have a temporary directory for convenience. Make it in the build tree
12294 # simply because there is no reason against having it here, and in addition,
12295 # creating and moving files from /tmp can sometimes cause problems.
12296 # Hook for its removal unless debugging.
12297 # Note that there is a small window in which the directory will not be cleaned:
12298 # after its creation but before its name has been assigned to `$tmp'.
12299 $debug ||
12300 {
12301 tmp= ac_tmp=
12302 trap 'exit_status=$?
12303 : "${ac_tmp:=$tmp}"
12304 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12305 ' 0
12306 trap 'as_fn_exit 1' 1 2 13 15
12307 }
12308 # Create a (secure) tmp directory for tmp files.
12309
12310 {
12311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12312 test -d "$tmp"
12313 } ||
12314 {
12315 tmp=./conf$$-$RANDOM
12316 (umask 077 && mkdir "$tmp")
12317 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12318 ac_tmp=$tmp
12319
12320 # Set up the scripts for CONFIG_FILES section.
12321 # No need to generate them if there are no CONFIG_FILES.
12322 # This happens for instance with `./config.status config.h'.
12323 if test -n "$CONFIG_FILES"; then
12324
12325
12326 ac_cr=`echo X | tr X '\015'`
12327 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12328 # But we know of no other shell where ac_cr would be empty at this
12329 # point, so we can use a bashism as a fallback.
12330 if test "x$ac_cr" = x; then
12331 eval ac_cr=\$\'\\r\'
12332 fi
12333 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12334 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12335 ac_cs_awk_cr='\\r'
12336 else
12337 ac_cs_awk_cr=$ac_cr
12338 fi
12339
12340 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12341 _ACEOF
12342
12343
12344 {
12345 echo "cat >conf$$subs.awk <<_ACEOF" &&
12346 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12347 echo "_ACEOF"
12348 } >conf$$subs.sh ||
12349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12350 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12351 ac_delim='%!_!# '
12352 for ac_last_try in false false false false false :; do
12353 . ./conf$$subs.sh ||
12354 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12355
12356 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12357 if test $ac_delim_n = $ac_delim_num; then
12358 break
12359 elif $ac_last_try; then
12360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12361 else
12362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12363 fi
12364 done
12365 rm -f conf$$subs.sh
12366
12367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12368 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12369 _ACEOF
12370 sed -n '
12371 h
12372 s/^/S["/; s/!.*/"]=/
12373 p
12374 g
12375 s/^[^!]*!//
12376 :repl
12377 t repl
12378 s/'"$ac_delim"'$//
12379 t delim
12380 :nl
12381 h
12382 s/\(.\{148\}\)..*/\1/
12383 t more1
12384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12385 p
12386 n
12387 b repl
12388 :more1
12389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12390 p
12391 g
12392 s/.\{148\}//
12393 t nl
12394 :delim
12395 h
12396 s/\(.\{148\}\)..*/\1/
12397 t more2
12398 s/["\\]/\\&/g; s/^/"/; s/$/"/
12399 p
12400 b
12401 :more2
12402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12403 p
12404 g
12405 s/.\{148\}//
12406 t delim
12407 ' <conf$$subs.awk | sed '
12408 /^[^""]/{
12409 N
12410 s/\n//
12411 }
12412 ' >>$CONFIG_STATUS || ac_write_fail=1
12413 rm -f conf$$subs.awk
12414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12415 _ACAWK
12416 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12417 for (key in S) S_is_set[key] = 1
12418 FS = ""
12419
12420 }
12421 {
12422 line = $ 0
12423 nfields = split(line, field, "@")
12424 substed = 0
12425 len = length(field[1])
12426 for (i = 2; i < nfields; i++) {
12427 key = field[i]
12428 keylen = length(key)
12429 if (S_is_set[key]) {
12430 value = S[key]
12431 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12432 len += length(value) + length(field[++i])
12433 substed = 1
12434 } else
12435 len += 1 + keylen
12436 }
12437
12438 print line
12439 }
12440
12441 _ACAWK
12442 _ACEOF
12443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12445 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12446 else
12447 cat
12448 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12449 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12450 _ACEOF
12451
12452 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12453 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12454 # trailing colons and then remove the whole line if VPATH becomes empty
12455 # (actually we leave an empty line to preserve line numbers).
12456 if test "x$srcdir" = x.; then
12457 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12458 h
12459 s///
12460 s/^/:/
12461 s/[ ]*$/:/
12462 s/:\$(srcdir):/:/g
12463 s/:\${srcdir}:/:/g
12464 s/:@srcdir@:/:/g
12465 s/^:*//
12466 s/:*$//
12467 x
12468 s/\(=[ ]*\).*/\1/
12469 G
12470 s/\n//
12471 s/^[^=]*=[ ]*$//
12472 }'
12473 fi
12474
12475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12476 fi # test -n "$CONFIG_FILES"
12477
12478 # Set up the scripts for CONFIG_HEADERS section.
12479 # No need to generate them if there are no CONFIG_HEADERS.
12480 # This happens for instance with `./config.status Makefile'.
12481 if test -n "$CONFIG_HEADERS"; then
12482 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12483 BEGIN {
12484 _ACEOF
12485
12486 # Transform confdefs.h into an awk script `defines.awk', embedded as
12487 # here-document in config.status, that substitutes the proper values into
12488 # config.h.in to produce config.h.
12489
12490 # Create a delimiter string that does not exist in confdefs.h, to ease
12491 # handling of long lines.
12492 ac_delim='%!_!# '
12493 for ac_last_try in false false :; do
12494 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12495 if test -z "$ac_tt"; then
12496 break
12497 elif $ac_last_try; then
12498 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12499 else
12500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12501 fi
12502 done
12503
12504 # For the awk script, D is an array of macro values keyed by name,
12505 # likewise P contains macro parameters if any. Preserve backslash
12506 # newline sequences.
12507
12508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12509 sed -n '
12510 s/.\{148\}/&'"$ac_delim"'/g
12511 t rset
12512 :rset
12513 s/^[ ]*#[ ]*define[ ][ ]*/ /
12514 t def
12515 d
12516 :def
12517 s/\\$//
12518 t bsnl
12519 s/["\\]/\\&/g
12520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12521 D["\1"]=" \3"/p
12522 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12523 d
12524 :bsnl
12525 s/["\\]/\\&/g
12526 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12527 D["\1"]=" \3\\\\\\n"\\/p
12528 t cont
12529 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12530 t cont
12531 d
12532 :cont
12533 n
12534 s/.\{148\}/&'"$ac_delim"'/g
12535 t clear
12536 :clear
12537 s/\\$//
12538 t bsnlc
12539 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12540 d
12541 :bsnlc
12542 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12543 b cont
12544 ' <confdefs.h | sed '
12545 s/'"$ac_delim"'/"\\\
12546 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12547
12548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12549 for (key in D) D_is_set[key] = 1
12550 FS = ""
12551 }
12552 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12553 line = \$ 0
12554 split(line, arg, " ")
12555 if (arg[1] == "#") {
12556 defundef = arg[2]
12557 mac1 = arg[3]
12558 } else {
12559 defundef = substr(arg[1], 2)
12560 mac1 = arg[2]
12561 }
12562 split(mac1, mac2, "(") #)
12563 macro = mac2[1]
12564 prefix = substr(line, 1, index(line, defundef) - 1)
12565 if (D_is_set[macro]) {
12566 # Preserve the white space surrounding the "#".
12567 print prefix "define", macro P[macro] D[macro]
12568 next
12569 } else {
12570 # Replace #undef with comments. This is necessary, for example,
12571 # in the case of _POSIX_SOURCE, which is predefined and required
12572 # on some systems where configure will not decide to define it.
12573 if (defundef == "undef") {
12574 print "/*", prefix defundef, macro, "*/"
12575 next
12576 }
12577 }
12578 }
12579 { print }
12580 _ACAWK
12581 _ACEOF
12582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12583 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12584 fi # test -n "$CONFIG_HEADERS"
12585
12586
12587 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12588 shift
12589 for ac_tag
12590 do
12591 case $ac_tag in
12592 :[FHLC]) ac_mode=$ac_tag; continue;;
12593 esac
12594 case $ac_mode$ac_tag in
12595 :[FHL]*:*);;
12596 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12597 :[FH]-) ac_tag=-:-;;
12598 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12599 esac
12600 ac_save_IFS=$IFS
12601 IFS=:
12602 set x $ac_tag
12603 IFS=$ac_save_IFS
12604 shift
12605 ac_file=$1
12606 shift
12607
12608 case $ac_mode in
12609 :L) ac_source=$1;;
12610 :[FH])
12611 ac_file_inputs=
12612 for ac_f
12613 do
12614 case $ac_f in
12615 -) ac_f="$ac_tmp/stdin";;
12616 *) # Look for the file first in the build tree, then in the source tree
12617 # (if the path is not absolute). The absolute path cannot be DOS-style,
12618 # because $ac_f cannot contain `:'.
12619 test -f "$ac_f" ||
12620 case $ac_f in
12621 [\\/$]*) false;;
12622 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12623 esac ||
12624 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12625 esac
12626 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12627 as_fn_append ac_file_inputs " '$ac_f'"
12628 done
12629
12630 # Let's still pretend it is `configure' which instantiates (i.e., don't
12631 # use $as_me), people would be surprised to read:
12632 # /* config.h. Generated by config.status. */
12633 configure_input='Generated from '`
12634 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12635 `' by configure.'
12636 if test x"$ac_file" != x-; then
12637 configure_input="$ac_file. $configure_input"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12639 $as_echo "$as_me: creating $ac_file" >&6;}
12640 fi
12641 # Neutralize special characters interpreted by sed in replacement strings.
12642 case $configure_input in #(
12643 *\&* | *\|* | *\\* )
12644 ac_sed_conf_input=`$as_echo "$configure_input" |
12645 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12646 *) ac_sed_conf_input=$configure_input;;
12647 esac
12648
12649 case $ac_tag in
12650 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12652 esac
12653 ;;
12654 esac
12655
12656 ac_dir=`$as_dirname -- "$ac_file" ||
12657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12658 X"$ac_file" : 'X\(//\)[^/]' \| \
12659 X"$ac_file" : 'X\(//\)$' \| \
12660 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12661 $as_echo X"$ac_file" |
12662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12663 s//\1/
12664 q
12665 }
12666 /^X\(\/\/\)[^/].*/{
12667 s//\1/
12668 q
12669 }
12670 /^X\(\/\/\)$/{
12671 s//\1/
12672 q
12673 }
12674 /^X\(\/\).*/{
12675 s//\1/
12676 q
12677 }
12678 s/.*/./; q'`
12679 as_dir="$ac_dir"; as_fn_mkdir_p
12680 ac_builddir=.
12681
12682 case "$ac_dir" in
12683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12684 *)
12685 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12686 # A ".." for each directory in $ac_dir_suffix.
12687 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12688 case $ac_top_builddir_sub in
12689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12691 esac ;;
12692 esac
12693 ac_abs_top_builddir=$ac_pwd
12694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12695 # for backward compatibility:
12696 ac_top_builddir=$ac_top_build_prefix
12697
12698 case $srcdir in
12699 .) # We are building in place.
12700 ac_srcdir=.
12701 ac_top_srcdir=$ac_top_builddir_sub
12702 ac_abs_top_srcdir=$ac_pwd ;;
12703 [\\/]* | ?:[\\/]* ) # Absolute name.
12704 ac_srcdir=$srcdir$ac_dir_suffix;
12705 ac_top_srcdir=$srcdir
12706 ac_abs_top_srcdir=$srcdir ;;
12707 *) # Relative name.
12708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12709 ac_top_srcdir=$ac_top_build_prefix$srcdir
12710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12711 esac
12712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12713
12714
12715 case $ac_mode in
12716 :F)
12717 #
12718 # CONFIG_FILE
12719 #
12720
12721 case $INSTALL in
12722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12723 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12724 esac
12725 ac_MKDIR_P=$MKDIR_P
12726 case $MKDIR_P in
12727 [\\/$]* | ?:[\\/]* ) ;;
12728 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12729 esac
12730 _ACEOF
12731
12732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12733 # If the template does not know about datarootdir, expand it.
12734 # FIXME: This hack should be removed a few years after 2.60.
12735 ac_datarootdir_hack=; ac_datarootdir_seen=
12736 ac_sed_dataroot='
12737 /datarootdir/ {
12738 p
12739 q
12740 }
12741 /@datadir@/p
12742 /@docdir@/p
12743 /@infodir@/p
12744 /@localedir@/p
12745 /@mandir@/p'
12746 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12747 *datarootdir*) ac_datarootdir_seen=yes;;
12748 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12750 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12751 _ACEOF
12752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12753 ac_datarootdir_hack='
12754 s&@datadir@&$datadir&g
12755 s&@docdir@&$docdir&g
12756 s&@infodir@&$infodir&g
12757 s&@localedir@&$localedir&g
12758 s&@mandir@&$mandir&g
12759 s&\\\${datarootdir}&$datarootdir&g' ;;
12760 esac
12761 _ACEOF
12762
12763 # Neutralize VPATH when `$srcdir' = `.'.
12764 # Shell code in configure.ac might set extrasub.
12765 # FIXME: do we really want to maintain this feature?
12766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12767 ac_sed_extra="$ac_vpsub
12768 $extrasub
12769 _ACEOF
12770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12771 :t
12772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12773 s|@configure_input@|$ac_sed_conf_input|;t t
12774 s&@top_builddir@&$ac_top_builddir_sub&;t t
12775 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12776 s&@srcdir@&$ac_srcdir&;t t
12777 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12778 s&@top_srcdir@&$ac_top_srcdir&;t t
12779 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12780 s&@builddir@&$ac_builddir&;t t
12781 s&@abs_builddir@&$ac_abs_builddir&;t t
12782 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12783 s&@INSTALL@&$ac_INSTALL&;t t
12784 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12785 $ac_datarootdir_hack
12786 "
12787 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12788 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12789
12790 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12791 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12792 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12793 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12795 which seems to be undefined. Please make sure it is defined" >&5
12796 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12797 which seems to be undefined. Please make sure it is defined" >&2;}
12798
12799 rm -f "$ac_tmp/stdin"
12800 case $ac_file in
12801 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12802 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12803 esac \
12804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12805 ;;
12806 :H)
12807 #
12808 # CONFIG_HEADER
12809 #
12810 if test x"$ac_file" != x-; then
12811 {
12812 $as_echo "/* $configure_input */" \
12813 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12814 } >"$ac_tmp/config.h" \
12815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12816 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12818 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12819 else
12820 rm -f "$ac_file"
12821 mv "$ac_tmp/config.h" "$ac_file" \
12822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12823 fi
12824 else
12825 $as_echo "/* $configure_input */" \
12826 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12827 || as_fn_error $? "could not create -" "$LINENO" 5
12828 fi
12829 # Compute "$ac_file"'s index in $config_headers.
12830 _am_arg="$ac_file"
12831 _am_stamp_count=1
12832 for _am_header in $config_headers :; do
12833 case $_am_header in
12834 $_am_arg | $_am_arg:* )
12835 break ;;
12836 * )
12837 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12838 esac
12839 done
12840 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12841 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12842 X"$_am_arg" : 'X\(//\)[^/]' \| \
12843 X"$_am_arg" : 'X\(//\)$' \| \
12844 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12845 $as_echo X"$_am_arg" |
12846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12847 s//\1/
12848 q
12849 }
12850 /^X\(\/\/\)[^/].*/{
12851 s//\1/
12852 q
12853 }
12854 /^X\(\/\/\)$/{
12855 s//\1/
12856 q
12857 }
12858 /^X\(\/\).*/{
12859 s//\1/
12860 q
12861 }
12862 s/.*/./; q'`/stamp-h$_am_stamp_count
12863 ;;
12864
12865 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12866 $as_echo "$as_me: executing $ac_file commands" >&6;}
12867 ;;
12868 esac
12869
12870
12871 case $ac_file$ac_mode in
12872 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12873 # Older Autoconf quotes --file arguments for eval, but not when files
12874 # are listed without --file. Let's play safe and only enable the eval
12875 # if we detect the quoting.
12876 # TODO: see whether this extra hack can be removed once we start
12877 # requiring Autoconf 2.70 or later.
12878 case $CONFIG_FILES in #(
12879 *\'*) :
12880 eval set x "$CONFIG_FILES" ;; #(
12881 *) :
12882 set x $CONFIG_FILES ;; #(
12883 *) :
12884 ;;
12885 esac
12886 shift
12887 # Used to flag and report bootstrapping failures.
12888 am_rc=0
12889 for am_mf
12890 do
12891 # Strip MF so we end up with the name of the file.
12892 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12893 # Check whether this is an Automake generated Makefile which includes
12894 # dependency-tracking related rules and includes.
12895 # Grep'ing the whole file directly is not great: AIX grep has a line
12896 # limit of 2048, but all sed's we know have understand at least 4000.
12897 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12898 || continue
12899 am_dirpart=`$as_dirname -- "$am_mf" ||
12900 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12901 X"$am_mf" : 'X\(//\)[^/]' \| \
12902 X"$am_mf" : 'X\(//\)$' \| \
12903 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12904 $as_echo X"$am_mf" |
12905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12906 s//\1/
12907 q
12908 }
12909 /^X\(\/\/\)[^/].*/{
12910 s//\1/
12911 q
12912 }
12913 /^X\(\/\/\)$/{
12914 s//\1/
12915 q
12916 }
12917 /^X\(\/\).*/{
12918 s//\1/
12919 q
12920 }
12921 s/.*/./; q'`
12922 am_filepart=`$as_basename -- "$am_mf" ||
12923 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12924 X"$am_mf" : 'X\(//\)$' \| \
12925 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12926 $as_echo X/"$am_mf" |
12927 sed '/^.*\/\([^/][^/]*\)\/*$/{
12928 s//\1/
12929 q
12930 }
12931 /^X\/\(\/\/\)$/{
12932 s//\1/
12933 q
12934 }
12935 /^X\/\(\/\).*/{
12936 s//\1/
12937 q
12938 }
12939 s/.*/./; q'`
12940 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12941 && sed -e '/# am--include-marker/d' "$am_filepart" \
12942 | $MAKE -f - am--depfiles" >&5
12943 (cd "$am_dirpart" \
12944 && sed -e '/# am--include-marker/d' "$am_filepart" \
12945 | $MAKE -f - am--depfiles) >&5 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } || am_rc=$?
12949 done
12950 if test $am_rc -ne 0; then
12951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12953 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12954 for automatic dependency tracking. If GNU make was not used, consider
12955 re-running the configure script with MAKE=\"gmake\" (or whatever is
12956 necessary). You can also try re-running configure with the
12957 '--disable-dependency-tracking' option to at least be able to build
12958 the package (albeit without support for automatic dependency tracking).
12959 See \`config.log' for more details" "$LINENO" 5; }
12960 fi
12961 { am_dirpart=; unset am_dirpart;}
12962 { am_filepart=; unset am_filepart;}
12963 { am_mf=; unset am_mf;}
12964 { am_rc=; unset am_rc;}
12965 rm -f conftest-deps.mk
12966 }
12967 ;;
12968
12969 esac
12970 done # for ac_tag
12971
12972
12973 as_fn_exit 0
12974 _ACEOF
12975 ac_clean_files=$ac_clean_files_save
12976
12977 test $ac_write_fail = 0 ||
12978 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12979
12980
12981 # configure is writing to config.log, and then calls config.status.
12982 # config.status does its own redirection, appending to config.log.
12983 # Unfortunately, on DOS this fails, as config.log is still kept open
12984 # by configure, so config.status won't be able to write to it; its
12985 # output is simply discarded. So we exec the FD to /dev/null,
12986 # effectively closing config.log, so it can be properly (re)opened and
12987 # appended to by config.status. When coming back to configure, we
12988 # need to make the FD available again.
12989 if test "$no_create" != yes; then
12990 ac_cs_success=:
12991 ac_config_status_args=
12992 test "$silent" = yes &&
12993 ac_config_status_args="$ac_config_status_args --quiet"
12994 exec 5>/dev/null
12995 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12996 exec 5>>config.log
12997 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12998 # would make configure fail if this is the last instruction.
12999 $ac_cs_success || as_fn_exit 1
13000 fi
13001 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13003 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13004 fi
13005
13006