configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xauth 1.0.10.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xauth'
583 PACKAGE_TARNAME='xauth'
584 PACKAGE_VERSION='1.0.10'
585 PACKAGE_STRING='xauth 1.0.10'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
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.0.10 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.0.10:";;
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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.0.10
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
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.0.10, 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.15'
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 case $am_aux_dir in
2588 *\ * | *\ *)
2589 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2590 *)
2591 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2592 esac
2593 fi
2594 # Use eval to expand $SHELL
2595 if eval "$MISSING --is-lightweight"; then
2596 am_missing_run="$MISSING "
2597 else
2598 am_missing_run=
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2600 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2601 fi
2602
2603 if test x"${install_sh+set}" != xset; then
2604 case $am_aux_dir in
2605 *\ * | *\ *)
2606 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2607 *)
2608 install_sh="\${SHELL} $am_aux_dir/install-sh"
2609 esac
2610 fi
2611
2612 # Installed binaries are usually stripped using 'strip' when the user
2613 # run "make install-strip". However 'strip' might not be the right
2614 # tool to use in cross-compilation environments, therefore Automake
2615 # will honor the 'STRIP' environment variable to overrule this program.
2616 if test "$cross_compiling" != no; then
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}strip; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_STRIP+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test -n "$STRIP"; then
2626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 STRIP=$ac_cv_prog_STRIP
2646 if test -n "$STRIP"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2648 $as_echo "$STRIP" >&6; }
2649 else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655 fi
2656 if test -z "$ac_cv_prog_STRIP"; then
2657 ac_ct_STRIP=$STRIP
2658 # Extract the first word of "strip", so it can be a program name with args.
2659 set dummy strip; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test -n "$ac_ct_STRIP"; then
2666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_STRIP="strip"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2686 if test -n "$ac_ct_STRIP"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2688 $as_echo "$ac_ct_STRIP" >&6; }
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 fi
2693
2694 if test "x$ac_ct_STRIP" = x; then
2695 STRIP=":"
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698 yes:)
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701 ac_tool_warned=yes ;;
2702 esac
2703 STRIP=$ac_ct_STRIP
2704 fi
2705 else
2706 STRIP="$ac_cv_prog_STRIP"
2707 fi
2708
2709 fi
2710 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2711
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2713 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2714 if test -z "$MKDIR_P"; then
2715 if ${ac_cv_path_mkdir+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_prog in mkdir gmkdir; do
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2726 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2727 'mkdir (GNU coreutils) '* | \
2728 'mkdir (coreutils) '* | \
2729 'mkdir (fileutils) '4.1*)
2730 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2731 break 3;;
2732 esac
2733 done
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739
2740 test -d ./--version && rmdir ./--version
2741 if test "${ac_cv_path_mkdir+set}" = set; then
2742 MKDIR_P="$ac_cv_path_mkdir -p"
2743 else
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for MKDIR_P within a source directory, because that will
2746 # break other packages using the cache if that directory is
2747 # removed, or if the value is a relative name.
2748 MKDIR_P="$ac_install_sh -d"
2749 fi
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2752 $as_echo "$MKDIR_P" >&6; }
2753
2754 for ac_prog in gawk mawk nawk awk
2755 do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_AWK+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$AWK"; then
2764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_AWK="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 AWK=$ac_cv_prog_AWK
2784 if test -n "$AWK"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786 $as_echo "$AWK" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 test -n "$AWK" && break
2794 done
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2797 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798 set x ${MAKE-make}
2799 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2800 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 cat >conftest.make <<\_ACEOF
2804 SHELL = /bin/sh
2805 all:
2806 @echo '@@@%%%=$(MAKE)=@@@%%%'
2807 _ACEOF
2808 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2809 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810 *@@@%%%=?*=@@@%%%*)
2811 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 *)
2813 eval ac_cv_prog_make_${ac_make}_set=no;;
2814 esac
2815 rm -f conftest.make
2816 fi
2817 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819 $as_echo "yes" >&6; }
2820 SET_MAKE=
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 SET_MAKE="MAKE=${MAKE-make}"
2825 fi
2826
2827 rm -rf .tst 2>/dev/null
2828 mkdir .tst 2>/dev/null
2829 if test -d .tst; then
2830 am__leading_dot=.
2831 else
2832 am__leading_dot=_
2833 fi
2834 rmdir .tst 2>/dev/null
2835
2836 # Check whether --enable-silent-rules was given.
2837 if test "${enable_silent_rules+set}" = set; then :
2838 enableval=$enable_silent_rules;
2839 fi
2840
2841 case $enable_silent_rules in # (((
2842 yes) AM_DEFAULT_VERBOSITY=0;;
2843 no) AM_DEFAULT_VERBOSITY=1;;
2844 *) AM_DEFAULT_VERBOSITY=1;;
2845 esac
2846 am_make=${MAKE-make}
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2848 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2849 if ${am_cv_make_support_nested_variables+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if $as_echo 'TRUE=$(BAR$(V))
2853 BAR0=false
2854 BAR1=true
2855 V=1
2856 am__doit:
2857 @$(TRUE)
2858 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2859 am_cv_make_support_nested_variables=yes
2860 else
2861 am_cv_make_support_nested_variables=no
2862 fi
2863 fi
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2865 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2866 if test $am_cv_make_support_nested_variables = yes; then
2867 AM_V='$(V)'
2868 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2869 else
2870 AM_V=$AM_DEFAULT_VERBOSITY
2871 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2872 fi
2873 AM_BACKSLASH='\'
2874
2875 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2876 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2877 # is not polluted with repeated "-I."
2878 am__isrc=' -I$(srcdir)'
2879 # test to see if srcdir already configured
2880 if test -f $srcdir/config.status; then
2881 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2882 fi
2883 fi
2884
2885 # test whether we have cygpath
2886 if test -z "$CYGPATH_W"; then
2887 if (cygpath --version) >/dev/null 2>/dev/null; then
2888 CYGPATH_W='cygpath -w'
2889 else
2890 CYGPATH_W=echo
2891 fi
2892 fi
2893
2894
2895 # Define the identity of the package.
2896 PACKAGE='xauth'
2897 VERSION='1.0.10'
2898
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE "$PACKAGE"
2902 _ACEOF
2903
2904
2905 cat >>confdefs.h <<_ACEOF
2906 #define VERSION "$VERSION"
2907 _ACEOF
2908
2909 # Some tools Automake needs.
2910
2911 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2912
2913
2914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2915
2916
2917 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2918
2919
2920 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2921
2922
2923 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2924
2925 # For better backward compatibility. To be removed once Automake 1.9.x
2926 # dies out for good. For more background, see:
2927 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2928 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2929 mkdir_p='$(MKDIR_P)'
2930
2931 # We need awk for the "check" target (and possibly the TAP driver). The
2932 # system "awk" is bad on some platforms.
2933 # Always define AMTAR for backward compatibility. Yes, it's still used
2934 # in the wild :-( We should find a proper way to deprecate it ...
2935 AMTAR='$${TAR-tar}'
2936
2937
2938 # We'll loop over all known methods to create a tar archive until one works.
2939 _am_tools='gnutar pax cpio none'
2940
2941 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2942
2943
2944
2945
2946
2947
2948 # POSIX will say in a future version that running "rm -f" with no argument
2949 # is OK; and we want to be able to make that assumption in our Makefile
2950 # recipes. So use an aggressive probe to check that the usage we want is
2951 # actually supported "in the wild" to an acceptable degree.
2952 # See automake bug#10828.
2953 # To make any issue more visible, cause the running configure to be aborted
2954 # by default if the 'rm' program in use doesn't match our expectations; the
2955 # user can still override this though.
2956 if rm -f && rm -fr && rm -rf; then : OK; else
2957 cat >&2 <<'END'
2958 Oops!
2959
2960 Your 'rm' program seems unable to run without file operands specified
2961 on the command line, even when the '-f' option is present. This is contrary
2962 to the behaviour of most rm programs out there, and not conforming with
2963 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2964
2965 Please tell bug-automake@gnu.org about your system, including the value
2966 of your $PATH and any error possibly output before this message. This
2967 can help us improve future automake versions.
2968
2969 END
2970 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2971 echo 'Configuration will proceed anyway, since you have set the' >&2
2972 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2973 echo >&2
2974 else
2975 cat >&2 <<'END'
2976 Aborting the configuration process, to ensure you take notice of the issue.
2977
2978 You can download and install GNU coreutils to get an 'rm' implementation
2979 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2980
2981 If you want to complete the configuration process using your problematic
2982 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2983 to "yes", and re-run configure.
2984
2985 END
2986 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2987 fi
2988 fi
2989
2990
2991 ac_config_headers="$ac_config_headers config.h"
2992
2993
2994 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2995 # Must be called before any macros that run the compiler (like
2996 # AC_PROG_LIBTOOL) to avoid autoconf errors.
2997 DEPDIR="${am__leading_dot}deps"
2998
2999 ac_config_commands="$ac_config_commands depfiles"
3000
3001
3002 am_make=${MAKE-make}
3003 cat > confinc << 'END'
3004 am__doit:
3005 @echo this is the am__doit target
3006 .PHONY: am__doit
3007 END
3008 # If we don't find an include directive, just comment out the code.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3010 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3011 am__include="#"
3012 am__quote=
3013 _am_result=none
3014 # First try GNU make style include.
3015 echo "include confinc" > confmf
3016 # Ignore all kinds of additional output from 'make'.
3017 case `$am_make -s -f confmf 2> /dev/null` in #(
3018 *the\ am__doit\ target*)
3019 am__include=include
3020 am__quote=
3021 _am_result=GNU
3022 ;;
3023 esac
3024 # Now try BSD make style include.
3025 if test "$am__include" = "#"; then
3026 echo '.include "confinc"' > confmf
3027 case `$am_make -s -f confmf 2> /dev/null` in #(
3028 *the\ am__doit\ target*)
3029 am__include=.include
3030 am__quote="\""
3031 _am_result=BSD
3032 ;;
3033 esac
3034 fi
3035
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3038 $as_echo "$_am_result" >&6; }
3039 rm -f confinc confmf
3040
3041 # Check whether --enable-dependency-tracking was given.
3042 if test "${enable_dependency_tracking+set}" = set; then :
3043 enableval=$enable_dependency_tracking;
3044 fi
3045
3046 if test "x$enable_dependency_tracking" != xno; then
3047 am_depcomp="$ac_aux_dir/depcomp"
3048 AMDEPBACKSLASH='\'
3049 am__nodep='_no'
3050 fi
3051 if test "x$enable_dependency_tracking" != xno; then
3052 AMDEP_TRUE=
3053 AMDEP_FALSE='#'
3054 else
3055 AMDEP_TRUE='#'
3056 AMDEP_FALSE=
3057 fi
3058
3059
3060 ac_ext=c
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087 done
3088 done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103 fi
3104 if test -z "$ac_cv_prog_CC"; then
3105 ac_ct_CC=$CC
3106 # Extract the first word of "gcc", so it can be a program name with args.
3107 set dummy gcc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$ac_ct_CC"; then
3114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_ac_ct_CC="gcc"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3136 $as_echo "$ac_ct_CC" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142 if test "x$ac_ct_CC" = x; then
3143 CC=""
3144 else
3145 case $cross_compiling:$ac_tool_warned in
3146 yes:)
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3149 ac_tool_warned=yes ;;
3150 esac
3151 CC=$ac_ct_CC
3152 fi
3153 else
3154 CC="$ac_cv_prog_CC"
3155 fi
3156
3157 if test -z "$CC"; then
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}cc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_CC="${ac_tool_prefix}cc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 fi
3198 if test -z "$CC"; then
3199 # Extract the first word of "cc", so it can be a program name with args.
3200 set dummy cc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3208 else
3209 ac_prog_rejected=no
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3218 ac_prog_rejected=yes
3219 continue
3220 fi
3221 ac_cv_prog_CC="cc"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227 IFS=$as_save_IFS
3228
3229 if test $ac_prog_rejected = yes; then
3230 # We found a bogon in the path, so make sure we never use it.
3231 set dummy $ac_cv_prog_CC
3232 shift
3233 if test $# != 0; then
3234 # We chose a different compiler from the bogus one.
3235 # However, it has the same basename, so the bogon will be chosen
3236 # first if we set CC to just the basename; use the full file name.
3237 shift
3238 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3239 fi
3240 fi
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253 fi
3254 if test -z "$CC"; then
3255 if test -n "$ac_tool_prefix"; then
3256 for ac_prog in cl.exe
3257 do
3258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_CC+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC="$CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294
3295 test -n "$CC" && break
3296 done
3297 fi
3298 if test -z "$CC"; then
3299 ac_ct_CC=$CC
3300 for ac_prog in cl.exe
3301 do
3302 # Extract the first word of "$ac_prog", so it can be a program name with args.
3303 set dummy $ac_prog; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if test -n "$ac_ct_CC"; then
3310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_ac_ct_CC="$ac_prog"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 fi
3328 fi
3329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3330 if test -n "$ac_ct_CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3332 $as_echo "$ac_ct_CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339 test -n "$ac_ct_CC" && break
3340 done
3341
3342 if test "x$ac_ct_CC" = x; then
3343 CC=""
3344 else
3345 case $cross_compiling:$ac_tool_warned in
3346 yes:)
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3350 esac
3351 CC=$ac_ct_CC
3352 fi
3353 fi
3354
3355 fi
3356
3357
3358 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "no acceptable C compiler found in \$PATH
3361 See \`config.log' for more details" "$LINENO" 5; }
3362
3363 # Provide some information about the compiler.
3364 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3365 set X $ac_compile
3366 ac_compiler=$2
3367 for ac_option in --version -v -V -qversion; do
3368 { { ac_try="$ac_compiler $ac_option >&5"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3376 ac_status=$?
3377 if test -s conftest.err; then
3378 sed '10a\
3379 ... rest of stderr output deleted ...
3380 10q' conftest.err >conftest.er1
3381 cat conftest.er1 >&5
3382 fi
3383 rm -f conftest.er1 conftest.err
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }
3386 done
3387
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390
3391 int
3392 main ()
3393 {
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 ac_clean_files_save=$ac_clean_files
3400 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3401 # Try to create an executable without -o first, disregard a.out.
3402 # It will help us diagnose broken compilers, and finding out an intuition
3403 # of exeext.
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3405 $as_echo_n "checking whether the C compiler works... " >&6; }
3406 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3407
3408 # The possible output files:
3409 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3410
3411 ac_rmfiles=
3412 for ac_file in $ac_files
3413 do
3414 case $ac_file in
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3417 esac
3418 done
3419 rm -f $ac_rmfiles
3420
3421 if { { ac_try="$ac_link_default"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link_default") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3434 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3435 # so that the user can short-circuit this test for compilers unknown to
3436 # Autoconf.
3437 for ac_file in $ac_files ''
3438 do
3439 test -f "$ac_file" || continue
3440 case $ac_file in
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3442 ;;
3443 [ab].out )
3444 # We found the default executable, but exeext='' is most
3445 # certainly right.
3446 break;;
3447 *.* )
3448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3449 then :; else
3450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 fi
3452 # We set ac_cv_exeext here because the later test for it is not
3453 # safe: cross compilers may not add the suffix if given an `-o'
3454 # argument, so we may need to know it at that point already.
3455 # Even if this section looks crufty: it has the advantage of
3456 # actually working.
3457 break;;
3458 * )
3459 break;;
3460 esac
3461 done
3462 test "$ac_cv_exeext" = no && ac_cv_exeext=
3463
3464 else
3465 ac_file=''
3466 fi
3467 if test -z "$ac_file"; then :
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error 77 "C compiler cannot create executables
3476 See \`config.log' for more details" "$LINENO" 5; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3482 $as_echo_n "checking for C compiler default output file name... " >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3484 $as_echo "$ac_file" >&6; }
3485 ac_exeext=$ac_cv_exeext
3486
3487 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3488 ac_clean_files=$ac_clean_files_save
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3490 $as_echo_n "checking for suffix of executables... " >&6; }
3491 if { { ac_try="$ac_link"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_link") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }; then :
3502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3504 # work properly (i.e., refer to `conftest.exe'), while it won't with
3505 # `rm'.
3506 for ac_file in conftest.exe conftest conftest.*; do
3507 test -f "$ac_file" || continue
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3511 break;;
3512 * ) break;;
3513 esac
3514 done
3515 else
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3519 See \`config.log' for more details" "$LINENO" 5; }
3520 fi
3521 rm -f conftest conftest$ac_cv_exeext
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3523 $as_echo "$ac_cv_exeext" >&6; }
3524
3525 rm -f conftest.$ac_ext
3526 EXEEXT=$ac_cv_exeext
3527 ac_exeext=$EXEEXT
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 #include <stdio.h>
3531 int
3532 main ()
3533 {
3534 FILE *f = fopen ("conftest.out", "w");
3535 return ferror (f) || fclose (f) != 0;
3536
3537 ;
3538 return 0;
3539 }
3540 _ACEOF
3541 ac_clean_files="$ac_clean_files conftest.out"
3542 # Check that the compiler produces executables we can run. If not, either
3543 # the compiler is broken, or we cross compile.
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3545 $as_echo_n "checking whether we are cross compiling... " >&6; }
3546 if test "$cross_compiling" != yes; then
3547 { { ac_try="$ac_link"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_link") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3558 if { ac_try='./conftest$ac_cv_exeext'
3559 { { case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_try") 2>&5
3566 ac_status=$?
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; }; then
3569 cross_compiling=no
3570 else
3571 if test "$cross_compiling" = maybe; then
3572 cross_compiling=yes
3573 else
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "cannot run C compiled programs.
3577 If you meant to cross compile, use \`--host'.
3578 See \`config.log' for more details" "$LINENO" 5; }
3579 fi
3580 fi
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3583 $as_echo "$cross_compiling" >&6; }
3584
3585 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3586 ac_clean_files=$ac_clean_files_save
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3588 $as_echo_n "checking for suffix of object files... " >&6; }
3589 if ${ac_cv_objext+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594
3595 int
3596 main ()
3597 {
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.o conftest.obj
3604 if { { ac_try="$ac_compile"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_compile") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; then :
3615 for ac_file in conftest.o conftest.obj conftest.*; do
3616 test -f "$ac_file" || continue;
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3619 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3620 break;;
3621 esac
3622 done
3623 else
3624 $as_echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "cannot compute suffix of object files: cannot compile
3630 See \`config.log' for more details" "$LINENO" 5; }
3631 fi
3632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3635 $as_echo "$ac_cv_objext" >&6; }
3636 OBJEXT=$ac_cv_objext
3637 ac_objext=$OBJEXT
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3639 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3640 if ${ac_cv_c_compiler_gnu+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645
3646 int
3647 main ()
3648 {
3649 #ifndef __GNUC__
3650 choke me
3651 #endif
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 if ac_fn_c_try_compile "$LINENO"; then :
3658 ac_compiler_gnu=yes
3659 else
3660 ac_compiler_gnu=no
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3664
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3667 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3668 if test $ac_compiler_gnu = yes; then
3669 GCC=yes
3670 else
3671 GCC=
3672 fi
3673 ac_test_CFLAGS=${CFLAGS+set}
3674 ac_save_CFLAGS=$CFLAGS
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3676 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3677 if ${ac_cv_prog_cc_g+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 ac_save_c_werror_flag=$ac_c_werror_flag
3681 ac_c_werror_flag=yes
3682 ac_cv_prog_cc_g=no
3683 CFLAGS="-g"
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main ()
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_g=yes
3697 else
3698 CFLAGS=""
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711
3712 else
3713 ac_c_werror_flag=$ac_save_c_werror_flag
3714 CFLAGS="-g"
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717
3718 int
3719 main ()
3720 {
3721
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727 ac_cv_prog_cc_g=yes
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3737 $as_echo "$ac_cv_prog_cc_g" >&6; }
3738 if test "$ac_test_CFLAGS" = set; then
3739 CFLAGS=$ac_save_CFLAGS
3740 elif test $ac_cv_prog_cc_g = yes; then
3741 if test "$GCC" = yes; then
3742 CFLAGS="-g -O2"
3743 else
3744 CFLAGS="-g"
3745 fi
3746 else
3747 if test "$GCC" = yes; then
3748 CFLAGS="-O2"
3749 else
3750 CFLAGS=
3751 fi
3752 fi
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3754 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3755 if ${ac_cv_prog_cc_c89+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 ac_cv_prog_cc_c89=no
3759 ac_save_CC=$CC
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #include <stdarg.h>
3763 #include <stdio.h>
3764 struct stat;
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3769 char **p;
3770 int i;
3771 {
3772 return p[i];
3773 }
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3775 {
3776 char *s;
3777 va_list v;
3778 va_start (v,p);
3779 s = g (p, va_arg (v,int));
3780 va_end (v);
3781 return s;
3782 }
3783
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3785 function prototypes and stuff, but not '\xHH' hex character constants.
3786 These don't provoke an error unfortunately, instead are silently treated
3787 as 'x'. The following induces an error, until -std is added to get
3788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3789 array size at least. It's necessary to write '\x00'==0 to get something
3790 that's true only with -std. */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3792
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794 inside strings and character constants. */
3795 #define FOO(x) 'x'
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3797
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3802 int argc;
3803 char **argv;
3804 int
3805 main ()
3806 {
3807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3814 do
3815 CC="$ac_save_CC $ac_arg"
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_cv_prog_cc_c89=$ac_arg
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext
3820 test "x$ac_cv_prog_cc_c89" != "xno" && break
3821 done
3822 rm -f conftest.$ac_ext
3823 CC=$ac_save_CC
3824
3825 fi
3826 # AC_CACHE_VAL
3827 case "x$ac_cv_prog_cc_c89" in
3828 x)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3830 $as_echo "none needed" >&6; } ;;
3831 xno)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3833 $as_echo "unsupported" >&6; } ;;
3834 *)
3835 CC="$CC $ac_cv_prog_cc_c89"
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3837 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3838 esac
3839 if test "x$ac_cv_prog_cc_c89" != xno; then :
3840
3841 fi
3842
3843 ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849 ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3855 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3856 if ${am_cv_prog_cc_c_o+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861
3862 int
3863 main ()
3864 {
3865
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 # Make sure it works both with $CC and with simple cc.
3871 # Following AC_PROG_CC_C_O, we do the test twice because some
3872 # compilers refuse to overwrite an existing .o file with -o,
3873 # though they will create one.
3874 am_cv_prog_cc_c_o=yes
3875 for am_i in 1 2; do
3876 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3877 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } \
3881 && test -f conftest2.$ac_objext; then
3882 : OK
3883 else
3884 am_cv_prog_cc_c_o=no
3885 break
3886 fi
3887 done
3888 rm -f core conftest*
3889 unset am_i
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3892 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3893 if test "$am_cv_prog_cc_c_o" != yes; then
3894 # Losing compiler, so override with the script.
3895 # FIXME: It is wrong to rewrite CC.
3896 # But if we don't then we get into trouble of one sort or another.
3897 # A longer-term fix would be to have automake use am__CC in this case,
3898 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3899 CC="$am_aux_dir/compile $CC"
3900 fi
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907
3908 depcc="$CC" am_compiler_list=
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3911 $as_echo_n "checking dependency style of $depcc... " >&6; }
3912 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3916 # We make a subdir and do the tests there. Otherwise we can end up
3917 # making bogus files that we don't know about and never remove. For
3918 # instance it was reported that on HP-UX the gcc test will end up
3919 # making a dummy file named 'D' -- because '-MD' means "put the output
3920 # in D".
3921 rm -rf conftest.dir
3922 mkdir conftest.dir
3923 # Copy depcomp to subdir because otherwise we won't find it if we're
3924 # using a relative directory.
3925 cp "$am_depcomp" conftest.dir
3926 cd conftest.dir
3927 # We will build objects and dependencies in a subdirectory because
3928 # it helps to detect inapplicable dependency modes. For instance
3929 # both Tru64's cc and ICC support -MD to output dependencies as a
3930 # side effect of compilation, but ICC will put the dependencies in
3931 # the current directory while Tru64 will put them in the object
3932 # directory.
3933 mkdir sub
3934
3935 am_cv_CC_dependencies_compiler_type=none
3936 if test "$am_compiler_list" = ""; then
3937 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3938 fi
3939 am__universal=false
3940 case " $depcc " in #(
3941 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3942 esac
3943
3944 for depmode in $am_compiler_list; do
3945 # Setup a source with many dependencies, because some compilers
3946 # like to wrap large dependency lists on column 80 (with \), and
3947 # we should not choose a depcomp mode which is confused by this.
3948 #
3949 # We need to recreate these files for each test, as the compiler may
3950 # overwrite some of them when testing with obscure command lines.
3951 # This happens at least with the AIX C compiler.
3952 : > sub/conftest.c
3953 for i in 1 2 3 4 5 6; do
3954 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3955 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3956 # Solaris 10 /bin/sh.
3957 echo '/* dummy */' > sub/conftst$i.h
3958 done
3959 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3960
3961 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3962 # mode. It turns out that the SunPro C++ compiler does not properly
3963 # handle '-M -o', and we need to detect this. Also, some Intel
3964 # versions had trouble with output in subdirs.
3965 am__obj=sub/conftest.${OBJEXT-o}
3966 am__minus_obj="-o $am__obj"
3967 case $depmode in
3968 gcc)
3969 # This depmode causes a compiler race in universal mode.
3970 test "$am__universal" = false || continue
3971 ;;
3972 nosideeffect)
3973 # After this tag, mechanisms are not by side-effect, so they'll
3974 # only be used when explicitly requested.
3975 if test "x$enable_dependency_tracking" = xyes; then
3976 continue
3977 else
3978 break
3979 fi
3980 ;;
3981 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3982 # This compiler won't grok '-c -o', but also, the minuso test has
3983 # not run yet. These depmodes are late enough in the game, and
3984 # so weak that their functioning should not be impacted.
3985 am__obj=conftest.${OBJEXT-o}
3986 am__minus_obj=
3987 ;;
3988 none) break ;;
3989 esac
3990 if depmode=$depmode \
3991 source=sub/conftest.c object=$am__obj \
3992 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3993 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3994 >/dev/null 2>conftest.err &&
3995 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3996 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3997 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3998 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3999 # icc doesn't choke on unknown options, it will just issue warnings
4000 # or remarks (even with -Werror). So we grep stderr for any message
4001 # that says an option was ignored or not supported.
4002 # When given -MP, icc 7.0 and 7.1 complain thusly:
4003 # icc: Command line warning: ignoring option '-M'; no argument required
4004 # The diagnosis changed in icc 8.0:
4005 # icc: Command line remark: option '-MP' not supported
4006 if (grep 'ignoring option' conftest.err ||
4007 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4008 am_cv_CC_dependencies_compiler_type=$depmode
4009 break
4010 fi
4011 fi
4012 done
4013
4014 cd ..
4015 rm -rf conftest.dir
4016 else
4017 am_cv_CC_dependencies_compiler_type=none
4018 fi
4019
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4022 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4023 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4024
4025 if
4026 test "x$enable_dependency_tracking" != xno \
4027 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4028 am__fastdepCC_TRUE=
4029 am__fastdepCC_FALSE='#'
4030 else
4031 am__fastdepCC_TRUE='#'
4032 am__fastdepCC_FALSE=
4033 fi
4034
4035
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4043 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4044 # On Suns, sometimes $CPP names a directory.
4045 if test -n "$CPP" && test -d "$CPP"; then
4046 CPP=
4047 fi
4048 if test -z "$CPP"; then
4049 if ${ac_cv_prog_CPP+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 # Double quotes because CPP needs to be expanded
4053 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4054 do
4055 ac_preproc_ok=false
4056 for ac_c_preproc_warn_flag in '' yes
4057 do
4058 # Use a header file that comes with gcc, so configuring glibc
4059 # with a fresh cross-compiler works.
4060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 # <limits.h> exists even on freestanding compilers.
4062 # On the NeXT, cc -E runs the code through the compiler's parser,
4063 # not just through cpp. "Syntax error" is here to catch this case.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if ac_fn_c_try_cpp "$LINENO"; then :
4074
4075 else
4076 # Broken: fails on valid input.
4077 continue
4078 fi
4079 rm -f conftest.err conftest.i conftest.$ac_ext
4080
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <ac_nonexistent.h>
4086 _ACEOF
4087 if ac_fn_c_try_cpp "$LINENO"; then :
4088 # Broken: success on invalid input.
4089 continue
4090 else
4091 # Passes both tests.
4092 ac_preproc_ok=:
4093 break
4094 fi
4095 rm -f conftest.err conftest.i conftest.$ac_ext
4096
4097 done
4098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4099 rm -f conftest.i conftest.err conftest.$ac_ext
4100 if $ac_preproc_ok; then :
4101 break
4102 fi
4103
4104 done
4105 ac_cv_prog_CPP=$CPP
4106
4107 fi
4108 CPP=$ac_cv_prog_CPP
4109 else
4110 ac_cv_prog_CPP=$CPP
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4113 $as_echo "$CPP" >&6; }
4114 ac_preproc_ok=false
4115 for ac_c_preproc_warn_flag in '' yes
4116 do
4117 # Use a header file that comes with gcc, so configuring glibc
4118 # with a fresh cross-compiler works.
4119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120 # <limits.h> exists even on freestanding compilers.
4121 # On the NeXT, cc -E runs the code through the compiler's parser,
4122 # not just through cpp. "Syntax error" is here to catch this case.
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #ifdef __STDC__
4126 # include <limits.h>
4127 #else
4128 # include <assert.h>
4129 #endif
4130 Syntax error
4131 _ACEOF
4132 if ac_fn_c_try_cpp "$LINENO"; then :
4133
4134 else
4135 # Broken: fails on valid input.
4136 continue
4137 fi
4138 rm -f conftest.err conftest.i conftest.$ac_ext
4139
4140 # OK, works on sane cases. Now check whether nonexistent headers
4141 # can be detected and how.
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144 #include <ac_nonexistent.h>
4145 _ACEOF
4146 if ac_fn_c_try_cpp "$LINENO"; then :
4147 # Broken: success on invalid input.
4148 continue
4149 else
4150 # Passes both tests.
4151 ac_preproc_ok=:
4152 break
4153 fi
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4155
4156 done
4157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4158 rm -f conftest.i conftest.err conftest.$ac_ext
4159 if $ac_preproc_ok; then :
4160
4161 else
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4165 See \`config.log' for more details" "$LINENO" 5; }
4166 fi
4167
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4176 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4177 if ${ac_cv_path_GREP+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -z "$GREP"; then
4181 ac_path_GREP_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in grep ggrep; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4191 as_fn_executable_p "$ac_path_GREP" || continue
4192 # Check for GNU ac_path_GREP and select it if it is found.
4193 # Check for GNU $ac_path_GREP
4194 case `"$ac_path_GREP" --version 2>&1` in
4195 *GNU*)
4196 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4197 *)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo 'GREP' >> "conftest.nl"
4206 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_GREP="$ac_path_GREP"
4212 ac_path_GREP_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220 $ac_path_GREP_found && break 3
4221 done
4222 done
4223 done
4224 IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_GREP"; then
4226 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227 fi
4228 else
4229 ac_cv_path_GREP=$GREP
4230 fi
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4234 $as_echo "$ac_cv_path_GREP" >&6; }
4235 GREP="$ac_cv_path_GREP"
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4239 $as_echo_n "checking for egrep... " >&6; }
4240 if ${ac_cv_path_EGREP+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4244 then ac_cv_path_EGREP="$GREP -E"
4245 else
4246 if test -z "$EGREP"; then
4247 ac_path_EGREP_found=false
4248 # Loop through the user's path and test for each of PROGNAME-LIST
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_prog in egrep; do
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4257 as_fn_executable_p "$ac_path_EGREP" || continue
4258 # Check for GNU ac_path_EGREP and select it if it is found.
4259 # Check for GNU $ac_path_EGREP
4260 case `"$ac_path_EGREP" --version 2>&1` in
4261 *GNU*)
4262 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4263 *)
4264 ac_count=0
4265 $as_echo_n 0123456789 >"conftest.in"
4266 while :
4267 do
4268 cat "conftest.in" "conftest.in" >"conftest.tmp"
4269 mv "conftest.tmp" "conftest.in"
4270 cp "conftest.in" "conftest.nl"
4271 $as_echo 'EGREP' >> "conftest.nl"
4272 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274 as_fn_arith $ac_count + 1 && ac_count=$as_val
4275 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4276 # Best one so far, save it but keep looking for a better one
4277 ac_cv_path_EGREP="$ac_path_EGREP"
4278 ac_path_EGREP_max=$ac_count
4279 fi
4280 # 10*(2^10) chars as input seems more than enough
4281 test $ac_count -gt 10 && break
4282 done
4283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 esac
4285
4286 $ac_path_EGREP_found && break 3
4287 done
4288 done
4289 done
4290 IFS=$as_save_IFS
4291 if test -z "$ac_cv_path_EGREP"; then
4292 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293 fi
4294 else
4295 ac_cv_path_EGREP=$EGREP
4296 fi
4297
4298 fi
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4301 $as_echo "$ac_cv_path_EGREP" >&6; }
4302 EGREP="$ac_cv_path_EGREP"
4303
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4306 $as_echo_n "checking for ANSI C header files... " >&6; }
4307 if ${ac_cv_header_stdc+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <stdlib.h>
4313 #include <stdarg.h>
4314 #include <string.h>
4315 #include <float.h>
4316
4317 int
4318 main ()
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_header_stdc=yes
4327 else
4328 ac_cv_header_stdc=no
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331
4332 if test $ac_cv_header_stdc = yes; then
4333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 #include <string.h>
4337
4338 _ACEOF
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340 $EGREP "memchr" >/dev/null 2>&1; then :
4341
4342 else
4343 ac_cv_header_stdc=no
4344 fi
4345 rm -f conftest*
4346
4347 fi
4348
4349 if test $ac_cv_header_stdc = yes; then
4350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #include <stdlib.h>
4354
4355 _ACEOF
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357 $EGREP "free" >/dev/null 2>&1; then :
4358
4359 else
4360 ac_cv_header_stdc=no
4361 fi
4362 rm -f conftest*
4363
4364 fi
4365
4366 if test $ac_cv_header_stdc = yes; then
4367 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4368 if test "$cross_compiling" = yes; then :
4369 :
4370 else
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <ctype.h>
4374 #include <stdlib.h>
4375 #if ((' ' & 0x0FF) == 0x020)
4376 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4377 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4378 #else
4379 # define ISLOWER(c) \
4380 (('a' <= (c) && (c) <= 'i') \
4381 || ('j' <= (c) && (c) <= 'r') \
4382 || ('s' <= (c) && (c) <= 'z'))
4383 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4384 #endif
4385
4386 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4387 int
4388 main ()
4389 {
4390 int i;
4391 for (i = 0; i < 256; i++)
4392 if (XOR (islower (i), ISLOWER (i))
4393 || toupper (i) != TOUPPER (i))
4394 return 2;
4395 return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_c_try_run "$LINENO"; then :
4399
4400 else
4401 ac_cv_header_stdc=no
4402 fi
4403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4404 conftest.$ac_objext conftest.beam conftest.$ac_ext
4405 fi
4406
4407 fi
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4410 $as_echo "$ac_cv_header_stdc" >&6; }
4411 if test $ac_cv_header_stdc = yes; then
4412
4413 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4414
4415 fi
4416
4417 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4418 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4419 inttypes.h stdint.h unistd.h
4420 do :
4421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4422 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4423 "
4424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4425 cat >>confdefs.h <<_ACEOF
4426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4427 _ACEOF
4428
4429 fi
4430
4431 done
4432
4433
4434
4435 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4436 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4437 MINIX=yes
4438 else
4439 MINIX=
4440 fi
4441
4442
4443 if test "$MINIX" = yes; then
4444
4445 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4446
4447
4448 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4449
4450
4451 $as_echo "#define _MINIX 1" >>confdefs.h
4452
4453 fi
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4457 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4458 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463
4464 # define __EXTENSIONS__ 1
4465 $ac_includes_default
4466 int
4467 main ()
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 ac_cv_safe_to_define___extensions__=yes
4476 else
4477 ac_cv_safe_to_define___extensions__=no
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4482 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4483 test $ac_cv_safe_to_define___extensions__ = yes &&
4484 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4485
4486 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4487
4488 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4489
4490 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4491
4492 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4493
4494
4495
4496 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4509 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4510 if ${ac_cv_prog_cc_c99+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 ac_cv_prog_cc_c99=no
4514 ac_save_CC=$CC
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #include <stdarg.h>
4518 #include <stdbool.h>
4519 #include <stdlib.h>
4520 #include <wchar.h>
4521 #include <stdio.h>
4522
4523 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4524 #define debug(...) fprintf (stderr, __VA_ARGS__)
4525 #define showlist(...) puts (#__VA_ARGS__)
4526 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4527 static void
4528 test_varargs_macros (void)
4529 {
4530 int x = 1234;
4531 int y = 5678;
4532 debug ("Flag");
4533 debug ("X = %d\n", x);
4534 showlist (The first, second, and third items.);
4535 report (x>y, "x is %d but y is %d", x, y);
4536 }
4537
4538 // Check long long types.
4539 #define BIG64 18446744073709551615ull
4540 #define BIG32 4294967295ul
4541 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4542 #if !BIG_OK
4543 your preprocessor is broken;
4544 #endif
4545 #if BIG_OK
4546 #else
4547 your preprocessor is broken;
4548 #endif
4549 static long long int bignum = -9223372036854775807LL;
4550 static unsigned long long int ubignum = BIG64;
4551
4552 struct incomplete_array
4553 {
4554 int datasize;
4555 double data[];
4556 };
4557
4558 struct named_init {
4559 int number;
4560 const wchar_t *name;
4561 double average;
4562 };
4563
4564 typedef const char *ccp;
4565
4566 static inline int
4567 test_restrict (ccp restrict text)
4568 {
4569 // See if C++-style comments work.
4570 // Iterate through items via the restricted pointer.
4571 // Also check for declarations in for loops.
4572 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4573 continue;
4574 return 0;
4575 }
4576
4577 // Check varargs and va_copy.
4578 static void
4579 test_varargs (const char *format, ...)
4580 {
4581 va_list args;
4582 va_start (args, format);
4583 va_list args_copy;
4584 va_copy (args_copy, args);
4585
4586 const char *str;
4587 int number;
4588 float fnumber;
4589
4590 while (*format)
4591 {
4592 switch (*format++)
4593 {
4594 case 's': // string
4595 str = va_arg (args_copy, const char *);
4596 break;
4597 case 'd': // int
4598 number = va_arg (args_copy, int);
4599 break;
4600 case 'f': // float
4601 fnumber = va_arg (args_copy, double);
4602 break;
4603 default:
4604 break;
4605 }
4606 }
4607 va_end (args_copy);
4608 va_end (args);
4609 }
4610
4611 int
4612 main ()
4613 {
4614
4615 // Check bool.
4616 _Bool success = false;
4617
4618 // Check restrict.
4619 if (test_restrict ("String literal") == 0)
4620 success = true;
4621 char *restrict newvar = "Another string";
4622
4623 // Check varargs.
4624 test_varargs ("s, d' f .", "string", 65, 34.234);
4625 test_varargs_macros ();
4626
4627 // Check flexible array members.
4628 struct incomplete_array *ia =
4629 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4630 ia->datasize = 10;
4631 for (int i = 0; i < ia->datasize; ++i)
4632 ia->data[i] = i * 1.234;
4633
4634 // Check named initializers.
4635 struct named_init ni = {
4636 .number = 34,
4637 .name = L"Test wide string",
4638 .average = 543.34343,
4639 };
4640
4641 ni.number = 58;
4642
4643 int dynamic_array[ni.number];
4644 dynamic_array[ni.number - 1] = 543;
4645
4646 // work around unused variable warnings
4647 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4648 || dynamic_array[ni.number - 1] != 543);
4649
4650 ;
4651 return 0;
4652 }
4653 _ACEOF
4654 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4655 do
4656 CC="$ac_save_CC $ac_arg"
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_cv_prog_cc_c99=$ac_arg
4659 fi
4660 rm -f core conftest.err conftest.$ac_objext
4661 test "x$ac_cv_prog_cc_c99" != "xno" && break
4662 done
4663 rm -f conftest.$ac_ext
4664 CC=$ac_save_CC
4665
4666 fi
4667 # AC_CACHE_VAL
4668 case "x$ac_cv_prog_cc_c99" in
4669 x)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4671 $as_echo "none needed" >&6; } ;;
4672 xno)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4674 $as_echo "unsupported" >&6; } ;;
4675 *)
4676 CC="$CC $ac_cv_prog_cc_c99"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4678 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4679 esac
4680 if test "x$ac_cv_prog_cc_c99" != xno; then :
4681
4682 fi
4683
4684
4685
4686
4687
4688
4689 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4690 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4691 CLANGCC="yes"
4692 else
4693 CLANGCC="no"
4694 fi
4695
4696 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4697 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4698 INTELCC="yes"
4699 else
4700 INTELCC="no"
4701 fi
4702
4703 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4704 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4705 SUNCC="yes"
4706 else
4707 SUNCC="no"
4708 fi
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 case $PKG_CONFIG in
4728 [\\/]* | ?:[\\/]*)
4729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4730 ;;
4731 *)
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4742 fi
4743 done
4744 done
4745 IFS=$as_save_IFS
4746
4747 ;;
4748 esac
4749 fi
4750 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4751 if test -n "$PKG_CONFIG"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4753 $as_echo "$PKG_CONFIG" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 fi
4758
4759
4760 fi
4761 if test -z "$ac_cv_path_PKG_CONFIG"; then
4762 ac_pt_PKG_CONFIG=$PKG_CONFIG
4763 # Extract the first word of "pkg-config", so it can be a program name with args.
4764 set dummy pkg-config; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 case $ac_pt_PKG_CONFIG in
4771 [\\/]* | ?:[\\/]*)
4772 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4773 ;;
4774 *)
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4782 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790 ;;
4791 esac
4792 fi
4793 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4794 if test -n "$ac_pt_PKG_CONFIG"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4796 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4797 else
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4800 fi
4801
4802 if test "x$ac_pt_PKG_CONFIG" = x; then
4803 PKG_CONFIG=""
4804 else
4805 case $cross_compiling:$ac_tool_warned in
4806 yes:)
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4809 ac_tool_warned=yes ;;
4810 esac
4811 PKG_CONFIG=$ac_pt_PKG_CONFIG
4812 fi
4813 else
4814 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4815 fi
4816
4817 fi
4818 if test -n "$PKG_CONFIG"; then
4819 _pkg_min_version=0.9.0
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4821 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4822 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4824 $as_echo "yes" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 PKG_CONFIG=""
4829 fi
4830 fi
4831 # Make sure we can run config.sub.
4832 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4833 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4836 $as_echo_n "checking build system type... " >&6; }
4837 if ${ac_cv_build+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 ac_build_alias=$build_alias
4841 test "x$ac_build_alias" = x &&
4842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4843 test "x$ac_build_alias" = x &&
4844 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4845 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4847
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4850 $as_echo "$ac_cv_build" >&6; }
4851 case $ac_cv_build in
4852 *-*-*) ;;
4853 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4854 esac
4855 build=$ac_cv_build
4856 ac_save_IFS=$IFS; IFS='-'
4857 set x $ac_cv_build
4858 shift
4859 build_cpu=$1
4860 build_vendor=$2
4861 shift; shift
4862 # Remember, the first character of IFS is used to create $*,
4863 # except with old shells:
4864 build_os=$*
4865 IFS=$ac_save_IFS
4866 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4867
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4870 $as_echo_n "checking host system type... " >&6; }
4871 if ${ac_cv_host+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test "x$host_alias" = x; then
4875 ac_cv_host=$ac_cv_build
4876 else
4877 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4878 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4879 fi
4880
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4883 $as_echo "$ac_cv_host" >&6; }
4884 case $ac_cv_host in
4885 *-*-*) ;;
4886 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4887 esac
4888 host=$ac_cv_host
4889 ac_save_IFS=$IFS; IFS='-'
4890 set x $ac_cv_host
4891 shift
4892 host_cpu=$1
4893 host_vendor=$2
4894 shift; shift
4895 # Remember, the first character of IFS is used to create $*,
4896 # except with old shells:
4897 host_os=$*
4898 IFS=$ac_save_IFS
4899 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4903 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4904 if ${ac_cv_path_SED+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4908 for ac_i in 1 2 3 4 5 6 7; do
4909 ac_script="$ac_script$as_nl$ac_script"
4910 done
4911 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4912 { ac_script=; unset ac_script;}
4913 if test -z "$SED"; then
4914 ac_path_SED_found=false
4915 # Loop through the user's path and test for each of PROGNAME-LIST
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_prog in sed gsed; do
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4924 as_fn_executable_p "$ac_path_SED" || continue
4925 # Check for GNU ac_path_SED and select it if it is found.
4926 # Check for GNU $ac_path_SED
4927 case `"$ac_path_SED" --version 2>&1` in
4928 *GNU*)
4929 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4930 *)
4931 ac_count=0
4932 $as_echo_n 0123456789 >"conftest.in"
4933 while :
4934 do
4935 cat "conftest.in" "conftest.in" >"conftest.tmp"
4936 mv "conftest.tmp" "conftest.in"
4937 cp "conftest.in" "conftest.nl"
4938 $as_echo '' >> "conftest.nl"
4939 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4941 as_fn_arith $ac_count + 1 && ac_count=$as_val
4942 if test $ac_count -gt ${ac_path_SED_max-0}; then
4943 # Best one so far, save it but keep looking for a better one
4944 ac_cv_path_SED="$ac_path_SED"
4945 ac_path_SED_max=$ac_count
4946 fi
4947 # 10*(2^10) chars as input seems more than enough
4948 test $ac_count -gt 10 && break
4949 done
4950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4951 esac
4952
4953 $ac_path_SED_found && break 3
4954 done
4955 done
4956 done
4957 IFS=$as_save_IFS
4958 if test -z "$ac_cv_path_SED"; then
4959 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4960 fi
4961 else
4962 ac_cv_path_SED=$SED
4963 fi
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4967 $as_echo "$ac_cv_path_SED" >&6; }
4968 SED="$ac_cv_path_SED"
4969 rm -f conftest.sed
4970
4971
4972
4973
4974
4975
4976 # Check whether --enable-selective-werror was given.
4977 if test "${enable_selective_werror+set}" = set; then :
4978 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4979 else
4980 SELECTIVE_WERROR=yes
4981 fi
4982
4983
4984
4985
4986
4987 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4988 if test "x$SUNCC" = "xyes"; then
4989 BASE_CFLAGS="-v"
4990 else
4991 BASE_CFLAGS=""
4992 fi
4993
4994 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 xorg_testset_save_CFLAGS="$CFLAGS"
5009
5010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 int i;
5020 _ACEOF
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 xorg_cv_cc_flag_unknown_warning_option=yes
5023 else
5024 xorg_cv_cc_flag_unknown_warning_option=no
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5031 CFLAGS="$xorg_testset_save_CFLAGS"
5032 fi
5033
5034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5037 fi
5038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 int i;
5047 _ACEOF
5048 if ac_fn_c_try_compile "$LINENO"; then :
5049 xorg_cv_cc_flag_unused_command_line_argument=yes
5050 else
5051 xorg_cv_cc_flag_unused_command_line_argument=no
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5058 CFLAGS="$xorg_testset_save_CFLAGS"
5059 fi
5060
5061 found="no"
5062
5063 if test $found = "no" ; then
5064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066 fi
5067
5068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070 fi
5071
5072 CFLAGS="$CFLAGS -Wall"
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5075 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5076 cacheid=xorg_cv_cc_flag__Wall
5077 if eval \${$cacheid+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082 int i;
5083 int
5084 main ()
5085 {
5086
5087 ;
5088 return 0;
5089 }
5090 _ACEOF
5091 if ac_fn_c_try_link "$LINENO"; then :
5092 eval $cacheid=yes
5093 else
5094 eval $cacheid=no
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext \
5097 conftest$ac_exeext conftest.$ac_ext
5098 fi
5099
5100
5101 CFLAGS="$xorg_testset_save_CFLAGS"
5102
5103 eval supported=\$$cacheid
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5105 $as_echo "$supported" >&6; }
5106 if test "$supported" = "yes" ; then
5107 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5108 found="yes"
5109 fi
5110 fi
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126 xorg_testset_save_CFLAGS="$CFLAGS"
5127
5128 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5131 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5132 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 int i;
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 xorg_cv_cc_flag_unknown_warning_option=yes
5141 else
5142 xorg_cv_cc_flag_unknown_warning_option=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5147 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5149 CFLAGS="$xorg_testset_save_CFLAGS"
5150 fi
5151
5152 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155 fi
5156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5158 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5159 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 int i;
5165 _ACEOF
5166 if ac_fn_c_try_compile "$LINENO"; then :
5167 xorg_cv_cc_flag_unused_command_line_argument=yes
5168 else
5169 xorg_cv_cc_flag_unused_command_line_argument=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5174 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5176 CFLAGS="$xorg_testset_save_CFLAGS"
5177 fi
5178
5179 found="no"
5180
5181 if test $found = "no" ; then
5182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184 fi
5185
5186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188 fi
5189
5190 CFLAGS="$CFLAGS -Wpointer-arith"
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5193 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5194 cacheid=xorg_cv_cc_flag__Wpointer_arith
5195 if eval \${$cacheid+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 int i;
5201 int
5202 main ()
5203 {
5204
5205 ;
5206 return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_c_try_link "$LINENO"; then :
5210 eval $cacheid=yes
5211 else
5212 eval $cacheid=no
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext \
5215 conftest$ac_exeext conftest.$ac_ext
5216 fi
5217
5218
5219 CFLAGS="$xorg_testset_save_CFLAGS"
5220
5221 eval supported=\$$cacheid
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5223 $as_echo "$supported" >&6; }
5224 if test "$supported" = "yes" ; then
5225 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5226 found="yes"
5227 fi
5228 fi
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 xorg_testset_save_CFLAGS="$CFLAGS"
5245
5246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5249 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5250 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 int i;
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 xorg_cv_cc_flag_unknown_warning_option=yes
5259 else
5260 xorg_cv_cc_flag_unknown_warning_option=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267 CFLAGS="$xorg_testset_save_CFLAGS"
5268 fi
5269
5270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273 fi
5274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 int i;
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 xorg_cv_cc_flag_unused_command_line_argument=yes
5286 else
5287 xorg_cv_cc_flag_unused_command_line_argument=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5292 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5294 CFLAGS="$xorg_testset_save_CFLAGS"
5295 fi
5296
5297 found="no"
5298
5299 if test $found = "no" ; then
5300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5302 fi
5303
5304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5306 fi
5307
5308 CFLAGS="$CFLAGS -Wmissing-declarations"
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5311 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5312 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5313 if eval \${$cacheid+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 int i;
5319 int
5320 main ()
5321 {
5322
5323 ;
5324 return 0;
5325 }
5326 _ACEOF
5327 if ac_fn_c_try_link "$LINENO"; then :
5328 eval $cacheid=yes
5329 else
5330 eval $cacheid=no
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext \
5333 conftest$ac_exeext conftest.$ac_ext
5334 fi
5335
5336
5337 CFLAGS="$xorg_testset_save_CFLAGS"
5338
5339 eval supported=\$$cacheid
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5341 $as_echo "$supported" >&6; }
5342 if test "$supported" = "yes" ; then
5343 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5344 found="yes"
5345 fi
5346 fi
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362 xorg_testset_save_CFLAGS="$CFLAGS"
5363
5364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5367 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5368 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 int i;
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376 xorg_cv_cc_flag_unknown_warning_option=yes
5377 else
5378 xorg_cv_cc_flag_unknown_warning_option=no
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5383 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5385 CFLAGS="$xorg_testset_save_CFLAGS"
5386 fi
5387
5388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391 fi
5392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5394 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5395 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400 int i;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 xorg_cv_cc_flag_unused_command_line_argument=yes
5404 else
5405 xorg_cv_cc_flag_unused_command_line_argument=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5410 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5412 CFLAGS="$xorg_testset_save_CFLAGS"
5413 fi
5414
5415 found="no"
5416
5417 if test $found = "no" ; then
5418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5420 fi
5421
5422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5424 fi
5425
5426 CFLAGS="$CFLAGS -Wformat=2"
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5429 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5430 cacheid=xorg_cv_cc_flag__Wformat_2
5431 if eval \${$cacheid+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 int i;
5437 int
5438 main ()
5439 {
5440
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_link "$LINENO"; then :
5446 eval $cacheid=yes
5447 else
5448 eval $cacheid=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
5452 fi
5453
5454
5455 CFLAGS="$xorg_testset_save_CFLAGS"
5456
5457 eval supported=\$$cacheid
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5459 $as_echo "$supported" >&6; }
5460 if test "$supported" = "yes" ; then
5461 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5462 found="yes"
5463 fi
5464 fi
5465
5466 if test $found = "no" ; then
5467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469 fi
5470
5471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473 fi
5474
5475 CFLAGS="$CFLAGS -Wformat"
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5478 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5479 cacheid=xorg_cv_cc_flag__Wformat
5480 if eval \${$cacheid+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 int i;
5486 int
5487 main ()
5488 {
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_link "$LINENO"; then :
5495 eval $cacheid=yes
5496 else
5497 eval $cacheid=no
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext \
5500 conftest$ac_exeext conftest.$ac_ext
5501 fi
5502
5503
5504 CFLAGS="$xorg_testset_save_CFLAGS"
5505
5506 eval supported=\$$cacheid
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5508 $as_echo "$supported" >&6; }
5509 if test "$supported" = "yes" ; then
5510 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5511 found="yes"
5512 fi
5513 fi
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 xorg_testset_save_CFLAGS="$CFLAGS"
5532
5533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5536 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5537 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 int i;
5543 _ACEOF
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 xorg_cv_cc_flag_unknown_warning_option=yes
5546 else
5547 xorg_cv_cc_flag_unknown_warning_option=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5552 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5554 CFLAGS="$xorg_testset_save_CFLAGS"
5555 fi
5556
5557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560 fi
5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5563 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5564 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 int i;
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"; then :
5572 xorg_cv_cc_flag_unused_command_line_argument=yes
5573 else
5574 xorg_cv_cc_flag_unused_command_line_argument=no
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5579 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5581 CFLAGS="$xorg_testset_save_CFLAGS"
5582 fi
5583
5584 found="no"
5585
5586 if test $found = "no" ; then
5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589 fi
5590
5591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5593 fi
5594
5595 CFLAGS="$CFLAGS -Wstrict-prototypes"
5596
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5598 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5599 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5600 if eval \${$cacheid+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 int i;
5606 int
5607 main ()
5608 {
5609
5610 ;
5611 return 0;
5612 }
5613 _ACEOF
5614 if ac_fn_c_try_link "$LINENO"; then :
5615 eval $cacheid=yes
5616 else
5617 eval $cacheid=no
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621 fi
5622
5623
5624 CFLAGS="$xorg_testset_save_CFLAGS"
5625
5626 eval supported=\$$cacheid
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5628 $as_echo "$supported" >&6; }
5629 if test "$supported" = "yes" ; then
5630 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5631 found="yes"
5632 fi
5633 fi
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649 xorg_testset_save_CFLAGS="$CFLAGS"
5650
5651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5654 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5655 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 int i;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 xorg_cv_cc_flag_unknown_warning_option=yes
5664 else
5665 xorg_cv_cc_flag_unknown_warning_option=no
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5670 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5672 CFLAGS="$xorg_testset_save_CFLAGS"
5673 fi
5674
5675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678 fi
5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5681 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5682 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 int i;
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690 xorg_cv_cc_flag_unused_command_line_argument=yes
5691 else
5692 xorg_cv_cc_flag_unused_command_line_argument=no
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5697 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5699 CFLAGS="$xorg_testset_save_CFLAGS"
5700 fi
5701
5702 found="no"
5703
5704 if test $found = "no" ; then
5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 fi
5708
5709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711 fi
5712
5713 CFLAGS="$CFLAGS -Wmissing-prototypes"
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5716 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5717 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5718 if eval \${$cacheid+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 int i;
5724 int
5725 main ()
5726 {
5727
5728 ;
5729 return 0;
5730 }
5731 _ACEOF
5732 if ac_fn_c_try_link "$LINENO"; then :
5733 eval $cacheid=yes
5734 else
5735 eval $cacheid=no
5736 fi
5737 rm -f core conftest.err conftest.$ac_objext \
5738 conftest$ac_exeext conftest.$ac_ext
5739 fi
5740
5741
5742 CFLAGS="$xorg_testset_save_CFLAGS"
5743
5744 eval supported=\$$cacheid
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5746 $as_echo "$supported" >&6; }
5747 if test "$supported" = "yes" ; then
5748 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5749 found="yes"
5750 fi
5751 fi
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 xorg_testset_save_CFLAGS="$CFLAGS"
5768
5769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5772 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5773 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 int i;
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 xorg_cv_cc_flag_unknown_warning_option=yes
5782 else
5783 xorg_cv_cc_flag_unknown_warning_option=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5788 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5790 CFLAGS="$xorg_testset_save_CFLAGS"
5791 fi
5792
5793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796 fi
5797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5799 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5800 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 int i;
5806 _ACEOF
5807 if ac_fn_c_try_compile "$LINENO"; then :
5808 xorg_cv_cc_flag_unused_command_line_argument=yes
5809 else
5810 xorg_cv_cc_flag_unused_command_line_argument=no
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5815 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5817 CFLAGS="$xorg_testset_save_CFLAGS"
5818 fi
5819
5820 found="no"
5821
5822 if test $found = "no" ; then
5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825 fi
5826
5827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5829 fi
5830
5831 CFLAGS="$CFLAGS -Wnested-externs"
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5834 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5835 cacheid=xorg_cv_cc_flag__Wnested_externs
5836 if eval \${$cacheid+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 int i;
5842 int
5843 main ()
5844 {
5845
5846 ;
5847 return 0;
5848 }
5849 _ACEOF
5850 if ac_fn_c_try_link "$LINENO"; then :
5851 eval $cacheid=yes
5852 else
5853 eval $cacheid=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5857 fi
5858
5859
5860 CFLAGS="$xorg_testset_save_CFLAGS"
5861
5862 eval supported=\$$cacheid
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5864 $as_echo "$supported" >&6; }
5865 if test "$supported" = "yes" ; then
5866 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5867 found="yes"
5868 fi
5869 fi
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885 xorg_testset_save_CFLAGS="$CFLAGS"
5886
5887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5890 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5891 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896 int i;
5897 _ACEOF
5898 if ac_fn_c_try_compile "$LINENO"; then :
5899 xorg_cv_cc_flag_unknown_warning_option=yes
5900 else
5901 xorg_cv_cc_flag_unknown_warning_option=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5906 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5908 CFLAGS="$xorg_testset_save_CFLAGS"
5909 fi
5910
5911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5914 fi
5915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5917 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5918 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923 int i;
5924 _ACEOF
5925 if ac_fn_c_try_compile "$LINENO"; then :
5926 xorg_cv_cc_flag_unused_command_line_argument=yes
5927 else
5928 xorg_cv_cc_flag_unused_command_line_argument=no
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5933 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5935 CFLAGS="$xorg_testset_save_CFLAGS"
5936 fi
5937
5938 found="no"
5939
5940 if test $found = "no" ; then
5941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943 fi
5944
5945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5947 fi
5948
5949 CFLAGS="$CFLAGS -Wbad-function-cast"
5950
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5952 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5953 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5954 if eval \${$cacheid+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 int i;
5960 int
5961 main ()
5962 {
5963
5964 ;
5965 return 0;
5966 }
5967 _ACEOF
5968 if ac_fn_c_try_link "$LINENO"; then :
5969 eval $cacheid=yes
5970 else
5971 eval $cacheid=no
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 fi
5976
5977
5978 CFLAGS="$xorg_testset_save_CFLAGS"
5979
5980 eval supported=\$$cacheid
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5982 $as_echo "$supported" >&6; }
5983 if test "$supported" = "yes" ; then
5984 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5985 found="yes"
5986 fi
5987 fi
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003 xorg_testset_save_CFLAGS="$CFLAGS"
6004
6005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 int i;
6015 _ACEOF
6016 if ac_fn_c_try_compile "$LINENO"; then :
6017 xorg_cv_cc_flag_unknown_warning_option=yes
6018 else
6019 xorg_cv_cc_flag_unknown_warning_option=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6026 CFLAGS="$xorg_testset_save_CFLAGS"
6027 fi
6028
6029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6032 fi
6033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 int i;
6042 _ACEOF
6043 if ac_fn_c_try_compile "$LINENO"; then :
6044 xorg_cv_cc_flag_unused_command_line_argument=yes
6045 else
6046 xorg_cv_cc_flag_unused_command_line_argument=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 fi
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6053 CFLAGS="$xorg_testset_save_CFLAGS"
6054 fi
6055
6056 found="no"
6057
6058 if test $found = "no" ; then
6059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061 fi
6062
6063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6065 fi
6066
6067 CFLAGS="$CFLAGS -Wold-style-definition"
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6070 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6071 cacheid=xorg_cv_cc_flag__Wold_style_definition
6072 if eval \${$cacheid+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 int i;
6078 int
6079 main ()
6080 {
6081
6082 ;
6083 return 0;
6084 }
6085 _ACEOF
6086 if ac_fn_c_try_link "$LINENO"; then :
6087 eval $cacheid=yes
6088 else
6089 eval $cacheid=no
6090 fi
6091 rm -f core conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6093 fi
6094
6095
6096 CFLAGS="$xorg_testset_save_CFLAGS"
6097
6098 eval supported=\$$cacheid
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6100 $as_echo "$supported" >&6; }
6101 if test "$supported" = "yes" ; then
6102 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6103 found="yes"
6104 fi
6105 fi
6106
6107 if test $found = "no" ; then
6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110 fi
6111
6112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114 fi
6115
6116 CFLAGS="$CFLAGS -fd"
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6119 $as_echo_n "checking if $CC supports -fd... " >&6; }
6120 cacheid=xorg_cv_cc_flag__fd
6121 if eval \${$cacheid+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 int i;
6127 int
6128 main ()
6129 {
6130
6131 ;
6132 return 0;
6133 }
6134 _ACEOF
6135 if ac_fn_c_try_link "$LINENO"; then :
6136 eval $cacheid=yes
6137 else
6138 eval $cacheid=no
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6142 fi
6143
6144
6145 CFLAGS="$xorg_testset_save_CFLAGS"
6146
6147 eval supported=\$$cacheid
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6149 $as_echo "$supported" >&6; }
6150 if test "$supported" = "yes" ; then
6151 BASE_CFLAGS="$BASE_CFLAGS -fd"
6152 found="yes"
6153 fi
6154 fi
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 xorg_testset_save_CFLAGS="$CFLAGS"
6171
6172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6175 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6176 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 int i;
6182 _ACEOF
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184 xorg_cv_cc_flag_unknown_warning_option=yes
6185 else
6186 xorg_cv_cc_flag_unknown_warning_option=no
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189 fi
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6191 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6193 CFLAGS="$xorg_testset_save_CFLAGS"
6194 fi
6195
6196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199 fi
6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6203 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208 int i;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"; then :
6211 xorg_cv_cc_flag_unused_command_line_argument=yes
6212 else
6213 xorg_cv_cc_flag_unused_command_line_argument=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6218 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6220 CFLAGS="$xorg_testset_save_CFLAGS"
6221 fi
6222
6223 found="no"
6224
6225 if test $found = "no" ; then
6226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6228 fi
6229
6230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6232 fi
6233
6234 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6235
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6237 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6238 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6239 if eval \${$cacheid+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 int i;
6245 int
6246 main ()
6247 {
6248
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 if ac_fn_c_try_link "$LINENO"; then :
6254 eval $cacheid=yes
6255 else
6256 eval $cacheid=no
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext \
6259 conftest$ac_exeext conftest.$ac_ext
6260 fi
6261
6262
6263 CFLAGS="$xorg_testset_save_CFLAGS"
6264
6265 eval supported=\$$cacheid
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6267 $as_echo "$supported" >&6; }
6268 if test "$supported" = "yes" ; then
6269 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6270 found="yes"
6271 fi
6272 fi
6273
6274
6275
6276
6277
6278 # This chunk adds additional warnings that could catch undesired effects.
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 xorg_testset_save_CFLAGS="$CFLAGS"
6293
6294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6303 int i;
6304 _ACEOF
6305 if ac_fn_c_try_compile "$LINENO"; then :
6306 xorg_cv_cc_flag_unknown_warning_option=yes
6307 else
6308 xorg_cv_cc_flag_unknown_warning_option=no
6309 fi
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 fi
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6315 CFLAGS="$xorg_testset_save_CFLAGS"
6316 fi
6317
6318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321 fi
6322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 int i;
6331 _ACEOF
6332 if ac_fn_c_try_compile "$LINENO"; then :
6333 xorg_cv_cc_flag_unused_command_line_argument=yes
6334 else
6335 xorg_cv_cc_flag_unused_command_line_argument=no
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338 fi
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6342 CFLAGS="$xorg_testset_save_CFLAGS"
6343 fi
6344
6345 found="no"
6346
6347 if test $found = "no" ; then
6348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350 fi
6351
6352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6354 fi
6355
6356 CFLAGS="$CFLAGS -Wunused"
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6359 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6360 cacheid=xorg_cv_cc_flag__Wunused
6361 if eval \${$cacheid+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 int i;
6367 int
6368 main ()
6369 {
6370
6371 ;
6372 return 0;
6373 }
6374 _ACEOF
6375 if ac_fn_c_try_link "$LINENO"; then :
6376 eval $cacheid=yes
6377 else
6378 eval $cacheid=no
6379 fi
6380 rm -f core conftest.err conftest.$ac_objext \
6381 conftest$ac_exeext conftest.$ac_ext
6382 fi
6383
6384
6385 CFLAGS="$xorg_testset_save_CFLAGS"
6386
6387 eval supported=\$$cacheid
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6389 $as_echo "$supported" >&6; }
6390 if test "$supported" = "yes" ; then
6391 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6392 found="yes"
6393 fi
6394 fi
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 xorg_testset_save_CFLAGS="$CFLAGS"
6411
6412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 int i;
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 xorg_cv_cc_flag_unknown_warning_option=yes
6425 else
6426 xorg_cv_cc_flag_unknown_warning_option=no
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6433 CFLAGS="$xorg_testset_save_CFLAGS"
6434 fi
6435
6436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439 fi
6440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448 int i;
6449 _ACEOF
6450 if ac_fn_c_try_compile "$LINENO"; then :
6451 xorg_cv_cc_flag_unused_command_line_argument=yes
6452 else
6453 xorg_cv_cc_flag_unused_command_line_argument=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 fi
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6460 CFLAGS="$xorg_testset_save_CFLAGS"
6461 fi
6462
6463 found="no"
6464
6465 if test $found = "no" ; then
6466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468 fi
6469
6470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472 fi
6473
6474 CFLAGS="$CFLAGS -Wuninitialized"
6475
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6477 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6478 cacheid=xorg_cv_cc_flag__Wuninitialized
6479 if eval \${$cacheid+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 int i;
6485 int
6486 main ()
6487 {
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_link "$LINENO"; then :
6494 eval $cacheid=yes
6495 else
6496 eval $cacheid=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500 fi
6501
6502
6503 CFLAGS="$xorg_testset_save_CFLAGS"
6504
6505 eval supported=\$$cacheid
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6507 $as_echo "$supported" >&6; }
6508 if test "$supported" = "yes" ; then
6509 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6510 found="yes"
6511 fi
6512 fi
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528 xorg_testset_save_CFLAGS="$CFLAGS"
6529
6530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6533 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6534 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 int i;
6540 _ACEOF
6541 if ac_fn_c_try_compile "$LINENO"; then :
6542 xorg_cv_cc_flag_unknown_warning_option=yes
6543 else
6544 xorg_cv_cc_flag_unknown_warning_option=no
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6549 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6551 CFLAGS="$xorg_testset_save_CFLAGS"
6552 fi
6553
6554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557 fi
6558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6560 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6561 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566 int i;
6567 _ACEOF
6568 if ac_fn_c_try_compile "$LINENO"; then :
6569 xorg_cv_cc_flag_unused_command_line_argument=yes
6570 else
6571 xorg_cv_cc_flag_unused_command_line_argument=no
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 fi
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6576 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6578 CFLAGS="$xorg_testset_save_CFLAGS"
6579 fi
6580
6581 found="no"
6582
6583 if test $found = "no" ; then
6584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586 fi
6587
6588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590 fi
6591
6592 CFLAGS="$CFLAGS -Wshadow"
6593
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6595 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6596 cacheid=xorg_cv_cc_flag__Wshadow
6597 if eval \${$cacheid+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 int i;
6603 int
6604 main ()
6605 {
6606
6607 ;
6608 return 0;
6609 }
6610 _ACEOF
6611 if ac_fn_c_try_link "$LINENO"; then :
6612 eval $cacheid=yes
6613 else
6614 eval $cacheid=no
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6618 fi
6619
6620
6621 CFLAGS="$xorg_testset_save_CFLAGS"
6622
6623 eval supported=\$$cacheid
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6625 $as_echo "$supported" >&6; }
6626 if test "$supported" = "yes" ; then
6627 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6628 found="yes"
6629 fi
6630 fi
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646 xorg_testset_save_CFLAGS="$CFLAGS"
6647
6648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6651 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6652 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 int i;
6658 _ACEOF
6659 if ac_fn_c_try_compile "$LINENO"; then :
6660 xorg_cv_cc_flag_unknown_warning_option=yes
6661 else
6662 xorg_cv_cc_flag_unknown_warning_option=no
6663 fi
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6667 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6669 CFLAGS="$xorg_testset_save_CFLAGS"
6670 fi
6671
6672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675 fi
6676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6679 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 int i;
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 xorg_cv_cc_flag_unused_command_line_argument=yes
6688 else
6689 xorg_cv_cc_flag_unused_command_line_argument=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 fi
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6694 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6696 CFLAGS="$xorg_testset_save_CFLAGS"
6697 fi
6698
6699 found="no"
6700
6701 if test $found = "no" ; then
6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 fi
6705
6706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708 fi
6709
6710 CFLAGS="$CFLAGS -Wmissing-noreturn"
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6713 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6714 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6715 if eval \${$cacheid+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720 int i;
6721 int
6722 main ()
6723 {
6724
6725 ;
6726 return 0;
6727 }
6728 _ACEOF
6729 if ac_fn_c_try_link "$LINENO"; then :
6730 eval $cacheid=yes
6731 else
6732 eval $cacheid=no
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext \
6735 conftest$ac_exeext conftest.$ac_ext
6736 fi
6737
6738
6739 CFLAGS="$xorg_testset_save_CFLAGS"
6740
6741 eval supported=\$$cacheid
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6743 $as_echo "$supported" >&6; }
6744 if test "$supported" = "yes" ; then
6745 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6746 found="yes"
6747 fi
6748 fi
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764 xorg_testset_save_CFLAGS="$CFLAGS"
6765
6766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775 int i;
6776 _ACEOF
6777 if ac_fn_c_try_compile "$LINENO"; then :
6778 xorg_cv_cc_flag_unknown_warning_option=yes
6779 else
6780 xorg_cv_cc_flag_unknown_warning_option=no
6781 fi
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 fi
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6787 CFLAGS="$xorg_testset_save_CFLAGS"
6788 fi
6789
6790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6793 fi
6794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 int i;
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 xorg_cv_cc_flag_unused_command_line_argument=yes
6806 else
6807 xorg_cv_cc_flag_unused_command_line_argument=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6814 CFLAGS="$xorg_testset_save_CFLAGS"
6815 fi
6816
6817 found="no"
6818
6819 if test $found = "no" ; then
6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822 fi
6823
6824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6826 fi
6827
6828 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6829
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6831 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6832 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6833 if eval \${$cacheid+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 int i;
6839 int
6840 main ()
6841 {
6842
6843 ;
6844 return 0;
6845 }
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"; then :
6848 eval $cacheid=yes
6849 else
6850 eval $cacheid=no
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6854 fi
6855
6856
6857 CFLAGS="$xorg_testset_save_CFLAGS"
6858
6859 eval supported=\$$cacheid
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6861 $as_echo "$supported" >&6; }
6862 if test "$supported" = "yes" ; then
6863 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6864 found="yes"
6865 fi
6866 fi
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882 xorg_testset_save_CFLAGS="$CFLAGS"
6883
6884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 int i;
6894 _ACEOF
6895 if ac_fn_c_try_compile "$LINENO"; then :
6896 xorg_cv_cc_flag_unknown_warning_option=yes
6897 else
6898 xorg_cv_cc_flag_unknown_warning_option=no
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6905 CFLAGS="$xorg_testset_save_CFLAGS"
6906 fi
6907
6908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911 fi
6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 int i;
6921 _ACEOF
6922 if ac_fn_c_try_compile "$LINENO"; then :
6923 xorg_cv_cc_flag_unused_command_line_argument=yes
6924 else
6925 xorg_cv_cc_flag_unused_command_line_argument=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6932 CFLAGS="$xorg_testset_save_CFLAGS"
6933 fi
6934
6935 found="no"
6936
6937 if test $found = "no" ; then
6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940 fi
6941
6942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6944 fi
6945
6946 CFLAGS="$CFLAGS -Wredundant-decls"
6947
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6949 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6950 cacheid=xorg_cv_cc_flag__Wredundant_decls
6951 if eval \${$cacheid+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 int i;
6957 int
6958 main ()
6959 {
6960
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 if ac_fn_c_try_link "$LINENO"; then :
6966 eval $cacheid=yes
6967 else
6968 eval $cacheid=no
6969 fi
6970 rm -f core conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972 fi
6973
6974
6975 CFLAGS="$xorg_testset_save_CFLAGS"
6976
6977 eval supported=\$$cacheid
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6979 $as_echo "$supported" >&6; }
6980 if test "$supported" = "yes" ; then
6981 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6982 found="yes"
6983 fi
6984 fi
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 xorg_testset_save_CFLAGS="$CFLAGS"
7001
7002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7005 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7006 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7011 int i;
7012 _ACEOF
7013 if ac_fn_c_try_compile "$LINENO"; then :
7014 xorg_cv_cc_flag_unknown_warning_option=yes
7015 else
7016 xorg_cv_cc_flag_unknown_warning_option=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7021 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7023 CFLAGS="$xorg_testset_save_CFLAGS"
7024 fi
7025
7026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7029 fi
7030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7032 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7033 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 int i;
7039 _ACEOF
7040 if ac_fn_c_try_compile "$LINENO"; then :
7041 xorg_cv_cc_flag_unused_command_line_argument=yes
7042 else
7043 xorg_cv_cc_flag_unused_command_line_argument=no
7044 fi
7045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7048 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7050 CFLAGS="$xorg_testset_save_CFLAGS"
7051 fi
7052
7053 found="no"
7054
7055 if test $found = "no" ; then
7056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058 fi
7059
7060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7062 fi
7063
7064 CFLAGS="$CFLAGS -Wlogical-op"
7065
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7067 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7068 cacheid=xorg_cv_cc_flag__Wlogical_op
7069 if eval \${$cacheid+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 int i;
7075 int
7076 main ()
7077 {
7078
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_link "$LINENO"; then :
7084 eval $cacheid=yes
7085 else
7086 eval $cacheid=no
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 fi
7091
7092
7093 CFLAGS="$xorg_testset_save_CFLAGS"
7094
7095 eval supported=\$$cacheid
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7097 $as_echo "$supported" >&6; }
7098 if test "$supported" = "yes" ; then
7099 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7100 found="yes"
7101 fi
7102 fi
7103
7104
7105
7106 # These are currently disabled because they are noisy. They will be enabled
7107 # in the future once the codebase is sufficiently modernized to silence
7108 # them. For now, I don't want them to drown out the other warnings.
7109 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7110 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7111 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7112
7113 # Turn some warnings into errors, so we don't accidently get successful builds
7114 # when there are problems that should be fixed.
7115
7116 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 xorg_testset_save_CFLAGS="$CFLAGS"
7131
7132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 int i;
7142 _ACEOF
7143 if ac_fn_c_try_compile "$LINENO"; then :
7144 xorg_cv_cc_flag_unknown_warning_option=yes
7145 else
7146 xorg_cv_cc_flag_unknown_warning_option=no
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7153 CFLAGS="$xorg_testset_save_CFLAGS"
7154 fi
7155
7156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7159 fi
7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 int i;
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171 xorg_cv_cc_flag_unused_command_line_argument=yes
7172 else
7173 xorg_cv_cc_flag_unused_command_line_argument=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7180 CFLAGS="$xorg_testset_save_CFLAGS"
7181 fi
7182
7183 found="no"
7184
7185 if test $found = "no" ; then
7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188 fi
7189
7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7192 fi
7193
7194 CFLAGS="$CFLAGS -Werror=implicit"
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7197 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7198 cacheid=xorg_cv_cc_flag__Werror_implicit
7199 if eval \${$cacheid+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 int i;
7205 int
7206 main ()
7207 {
7208
7209 ;
7210 return 0;
7211 }
7212 _ACEOF
7213 if ac_fn_c_try_link "$LINENO"; then :
7214 eval $cacheid=yes
7215 else
7216 eval $cacheid=no
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 fi
7221
7222
7223 CFLAGS="$xorg_testset_save_CFLAGS"
7224
7225 eval supported=\$$cacheid
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7227 $as_echo "$supported" >&6; }
7228 if test "$supported" = "yes" ; then
7229 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7230 found="yes"
7231 fi
7232 fi
7233
7234 if test $found = "no" ; then
7235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237 fi
7238
7239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7241 fi
7242
7243 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7244
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7246 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7247 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7248 if eval \${$cacheid+:} false; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 int i;
7254 int
7255 main ()
7256 {
7257
7258 ;
7259 return 0;
7260 }
7261 _ACEOF
7262 if ac_fn_c_try_link "$LINENO"; then :
7263 eval $cacheid=yes
7264 else
7265 eval $cacheid=no
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7269 fi
7270
7271
7272 CFLAGS="$xorg_testset_save_CFLAGS"
7273
7274 eval supported=\$$cacheid
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7276 $as_echo "$supported" >&6; }
7277 if test "$supported" = "yes" ; then
7278 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7279 found="yes"
7280 fi
7281 fi
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297 xorg_testset_save_CFLAGS="$CFLAGS"
7298
7299 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7302 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7303 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 int i;
7309 _ACEOF
7310 if ac_fn_c_try_compile "$LINENO"; then :
7311 xorg_cv_cc_flag_unknown_warning_option=yes
7312 else
7313 xorg_cv_cc_flag_unknown_warning_option=no
7314 fi
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7318 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7320 CFLAGS="$xorg_testset_save_CFLAGS"
7321 fi
7322
7323 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7326 fi
7327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7329 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7330 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335 int i;
7336 _ACEOF
7337 if ac_fn_c_try_compile "$LINENO"; then :
7338 xorg_cv_cc_flag_unused_command_line_argument=yes
7339 else
7340 xorg_cv_cc_flag_unused_command_line_argument=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 fi
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7345 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7347 CFLAGS="$xorg_testset_save_CFLAGS"
7348 fi
7349
7350 found="no"
7351
7352 if test $found = "no" ; then
7353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355 fi
7356
7357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7359 fi
7360
7361 CFLAGS="$CFLAGS -Werror=nonnull"
7362
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7364 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7365 cacheid=xorg_cv_cc_flag__Werror_nonnull
7366 if eval \${$cacheid+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 int i;
7372 int
7373 main ()
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_link "$LINENO"; then :
7381 eval $cacheid=yes
7382 else
7383 eval $cacheid=no
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7387 fi
7388
7389
7390 CFLAGS="$xorg_testset_save_CFLAGS"
7391
7392 eval supported=\$$cacheid
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7394 $as_echo "$supported" >&6; }
7395 if test "$supported" = "yes" ; then
7396 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7397 found="yes"
7398 fi
7399 fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415 xorg_testset_save_CFLAGS="$CFLAGS"
7416
7417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7420 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7421 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 int i;
7427 _ACEOF
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429 xorg_cv_cc_flag_unknown_warning_option=yes
7430 else
7431 xorg_cv_cc_flag_unknown_warning_option=no
7432 fi
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7436 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7438 CFLAGS="$xorg_testset_save_CFLAGS"
7439 fi
7440
7441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444 fi
7445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7447 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7448 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 int i;
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 xorg_cv_cc_flag_unused_command_line_argument=yes
7457 else
7458 xorg_cv_cc_flag_unused_command_line_argument=no
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7463 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7465 CFLAGS="$xorg_testset_save_CFLAGS"
7466 fi
7467
7468 found="no"
7469
7470 if test $found = "no" ; then
7471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473 fi
7474
7475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477 fi
7478
7479 CFLAGS="$CFLAGS -Werror=init-self"
7480
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7482 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7483 cacheid=xorg_cv_cc_flag__Werror_init_self
7484 if eval \${$cacheid+:} false; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 int i;
7490 int
7491 main ()
7492 {
7493
7494 ;
7495 return 0;
7496 }
7497 _ACEOF
7498 if ac_fn_c_try_link "$LINENO"; then :
7499 eval $cacheid=yes
7500 else
7501 eval $cacheid=no
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext conftest.$ac_ext
7505 fi
7506
7507
7508 CFLAGS="$xorg_testset_save_CFLAGS"
7509
7510 eval supported=\$$cacheid
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7512 $as_echo "$supported" >&6; }
7513 if test "$supported" = "yes" ; then
7514 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7515 found="yes"
7516 fi
7517 fi
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533 xorg_testset_save_CFLAGS="$CFLAGS"
7534
7535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7538 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7539 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 int i;
7545 _ACEOF
7546 if ac_fn_c_try_compile "$LINENO"; then :
7547 xorg_cv_cc_flag_unknown_warning_option=yes
7548 else
7549 xorg_cv_cc_flag_unknown_warning_option=no
7550 fi
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 fi
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7554 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7556 CFLAGS="$xorg_testset_save_CFLAGS"
7557 fi
7558
7559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7562 fi
7563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7565 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7566 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 int i;
7572 _ACEOF
7573 if ac_fn_c_try_compile "$LINENO"; then :
7574 xorg_cv_cc_flag_unused_command_line_argument=yes
7575 else
7576 xorg_cv_cc_flag_unused_command_line_argument=no
7577 fi
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7581 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7583 CFLAGS="$xorg_testset_save_CFLAGS"
7584 fi
7585
7586 found="no"
7587
7588 if test $found = "no" ; then
7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591 fi
7592
7593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595 fi
7596
7597 CFLAGS="$CFLAGS -Werror=main"
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7600 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7601 cacheid=xorg_cv_cc_flag__Werror_main
7602 if eval \${$cacheid+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 int i;
7608 int
7609 main ()
7610 {
7611
7612 ;
7613 return 0;
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_link "$LINENO"; then :
7617 eval $cacheid=yes
7618 else
7619 eval $cacheid=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
7623 fi
7624
7625
7626 CFLAGS="$xorg_testset_save_CFLAGS"
7627
7628 eval supported=\$$cacheid
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7630 $as_echo "$supported" >&6; }
7631 if test "$supported" = "yes" ; then
7632 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7633 found="yes"
7634 fi
7635 fi
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651 xorg_testset_save_CFLAGS="$CFLAGS"
7652
7653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7656 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7657 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 int i;
7663 _ACEOF
7664 if ac_fn_c_try_compile "$LINENO"; then :
7665 xorg_cv_cc_flag_unknown_warning_option=yes
7666 else
7667 xorg_cv_cc_flag_unknown_warning_option=no
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7672 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7674 CFLAGS="$xorg_testset_save_CFLAGS"
7675 fi
7676
7677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680 fi
7681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7683 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7684 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 int i;
7690 _ACEOF
7691 if ac_fn_c_try_compile "$LINENO"; then :
7692 xorg_cv_cc_flag_unused_command_line_argument=yes
7693 else
7694 xorg_cv_cc_flag_unused_command_line_argument=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7699 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7701 CFLAGS="$xorg_testset_save_CFLAGS"
7702 fi
7703
7704 found="no"
7705
7706 if test $found = "no" ; then
7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 fi
7710
7711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713 fi
7714
7715 CFLAGS="$CFLAGS -Werror=missing-braces"
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7718 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7719 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7720 if eval \${$cacheid+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 int i;
7726 int
7727 main ()
7728 {
7729
7730 ;
7731 return 0;
7732 }
7733 _ACEOF
7734 if ac_fn_c_try_link "$LINENO"; then :
7735 eval $cacheid=yes
7736 else
7737 eval $cacheid=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 fi
7742
7743
7744 CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746 eval supported=\$$cacheid
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748 $as_echo "$supported" >&6; }
7749 if test "$supported" = "yes" ; then
7750 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7751 found="yes"
7752 fi
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 int i;
7781 _ACEOF
7782 if ac_fn_c_try_compile "$LINENO"; then :
7783 xorg_cv_cc_flag_unknown_warning_option=yes
7784 else
7785 xorg_cv_cc_flag_unknown_warning_option=no
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7790 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7792 CFLAGS="$xorg_testset_save_CFLAGS"
7793 fi
7794
7795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798 fi
7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7801 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7802 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 int i;
7808 _ACEOF
7809 if ac_fn_c_try_compile "$LINENO"; then :
7810 xorg_cv_cc_flag_unused_command_line_argument=yes
7811 else
7812 xorg_cv_cc_flag_unused_command_line_argument=no
7813 fi
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815 fi
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7817 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7819 CFLAGS="$xorg_testset_save_CFLAGS"
7820 fi
7821
7822 found="no"
7823
7824 if test $found = "no" ; then
7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827 fi
7828
7829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831 fi
7832
7833 CFLAGS="$CFLAGS -Werror=sequence-point"
7834
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7836 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7837 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7838 if eval \${$cacheid+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 int i;
7844 int
7845 main ()
7846 {
7847
7848 ;
7849 return 0;
7850 }
7851 _ACEOF
7852 if ac_fn_c_try_link "$LINENO"; then :
7853 eval $cacheid=yes
7854 else
7855 eval $cacheid=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 fi
7860
7861
7862 CFLAGS="$xorg_testset_save_CFLAGS"
7863
7864 eval supported=\$$cacheid
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7866 $as_echo "$supported" >&6; }
7867 if test "$supported" = "yes" ; then
7868 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7869 found="yes"
7870 fi
7871 fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887 xorg_testset_save_CFLAGS="$CFLAGS"
7888
7889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7892 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7893 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 int i;
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 xorg_cv_cc_flag_unknown_warning_option=yes
7902 else
7903 xorg_cv_cc_flag_unknown_warning_option=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7908 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911 fi
7912
7913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916 fi
7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7919 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7920 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 int i;
7926 _ACEOF
7927 if ac_fn_c_try_compile "$LINENO"; then :
7928 xorg_cv_cc_flag_unused_command_line_argument=yes
7929 else
7930 xorg_cv_cc_flag_unused_command_line_argument=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7935 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7937 CFLAGS="$xorg_testset_save_CFLAGS"
7938 fi
7939
7940 found="no"
7941
7942 if test $found = "no" ; then
7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945 fi
7946
7947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7949 fi
7950
7951 CFLAGS="$CFLAGS -Werror=return-type"
7952
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7954 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7955 cacheid=xorg_cv_cc_flag__Werror_return_type
7956 if eval \${$cacheid+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 int i;
7962 int
7963 main ()
7964 {
7965
7966 ;
7967 return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"; then :
7971 eval $cacheid=yes
7972 else
7973 eval $cacheid=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 fi
7978
7979
7980 CFLAGS="$xorg_testset_save_CFLAGS"
7981
7982 eval supported=\$$cacheid
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7984 $as_echo "$supported" >&6; }
7985 if test "$supported" = "yes" ; then
7986 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7987 found="yes"
7988 fi
7989 fi
7990
7991 if test $found = "no" ; then
7992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994 fi
7995
7996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7998 fi
7999
8000 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8001
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8003 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8004 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8005 if eval \${$cacheid+:} false; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8010 int i;
8011 int
8012 main ()
8013 {
8014
8015 ;
8016 return 0;
8017 }
8018 _ACEOF
8019 if ac_fn_c_try_link "$LINENO"; then :
8020 eval $cacheid=yes
8021 else
8022 eval $cacheid=no
8023 fi
8024 rm -f core conftest.err conftest.$ac_objext \
8025 conftest$ac_exeext conftest.$ac_ext
8026 fi
8027
8028
8029 CFLAGS="$xorg_testset_save_CFLAGS"
8030
8031 eval supported=\$$cacheid
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8033 $as_echo "$supported" >&6; }
8034 if test "$supported" = "yes" ; then
8035 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8036 found="yes"
8037 fi
8038 fi
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054 xorg_testset_save_CFLAGS="$CFLAGS"
8055
8056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8059 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8060 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065 int i;
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 xorg_cv_cc_flag_unknown_warning_option=yes
8069 else
8070 xorg_cv_cc_flag_unknown_warning_option=no
8071 fi
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8075 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8077 CFLAGS="$xorg_testset_save_CFLAGS"
8078 fi
8079
8080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 fi
8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8086 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8087 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 int i;
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095 xorg_cv_cc_flag_unused_command_line_argument=yes
8096 else
8097 xorg_cv_cc_flag_unused_command_line_argument=no
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8102 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8104 CFLAGS="$xorg_testset_save_CFLAGS"
8105 fi
8106
8107 found="no"
8108
8109 if test $found = "no" ; then
8110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112 fi
8113
8114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8116 fi
8117
8118 CFLAGS="$CFLAGS -Werror=trigraphs"
8119
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8121 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8122 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8123 if eval \${$cacheid+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 int i;
8129 int
8130 main ()
8131 {
8132
8133 ;
8134 return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_link "$LINENO"; then :
8138 eval $cacheid=yes
8139 else
8140 eval $cacheid=no
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144 fi
8145
8146
8147 CFLAGS="$xorg_testset_save_CFLAGS"
8148
8149 eval supported=\$$cacheid
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8151 $as_echo "$supported" >&6; }
8152 if test "$supported" = "yes" ; then
8153 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8154 found="yes"
8155 fi
8156 fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172 xorg_testset_save_CFLAGS="$CFLAGS"
8173
8174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8177 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8178 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 int i;
8184 _ACEOF
8185 if ac_fn_c_try_compile "$LINENO"; then :
8186 xorg_cv_cc_flag_unknown_warning_option=yes
8187 else
8188 xorg_cv_cc_flag_unknown_warning_option=no
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 fi
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8193 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8195 CFLAGS="$xorg_testset_save_CFLAGS"
8196 fi
8197
8198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201 fi
8202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8204 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8205 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8210 int i;
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 xorg_cv_cc_flag_unused_command_line_argument=yes
8214 else
8215 xorg_cv_cc_flag_unused_command_line_argument=no
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8220 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8222 CFLAGS="$xorg_testset_save_CFLAGS"
8223 fi
8224
8225 found="no"
8226
8227 if test $found = "no" ; then
8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230 fi
8231
8232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234 fi
8235
8236 CFLAGS="$CFLAGS -Werror=array-bounds"
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8239 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8240 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8241 if eval \${$cacheid+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8246 int i;
8247 int
8248 main ()
8249 {
8250
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 if ac_fn_c_try_link "$LINENO"; then :
8256 eval $cacheid=yes
8257 else
8258 eval $cacheid=no
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8262 fi
8263
8264
8265 CFLAGS="$xorg_testset_save_CFLAGS"
8266
8267 eval supported=\$$cacheid
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8269 $as_echo "$supported" >&6; }
8270 if test "$supported" = "yes" ; then
8271 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8272 found="yes"
8273 fi
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 xorg_testset_save_CFLAGS="$CFLAGS"
8291
8292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8295 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8296 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 int i;
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"; then :
8304 xorg_cv_cc_flag_unknown_warning_option=yes
8305 else
8306 xorg_cv_cc_flag_unknown_warning_option=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8311 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319 fi
8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8322 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8323 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 int i;
8329 _ACEOF
8330 if ac_fn_c_try_compile "$LINENO"; then :
8331 xorg_cv_cc_flag_unused_command_line_argument=yes
8332 else
8333 xorg_cv_cc_flag_unused_command_line_argument=no
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8338 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8340 CFLAGS="$xorg_testset_save_CFLAGS"
8341 fi
8342
8343 found="no"
8344
8345 if test $found = "no" ; then
8346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8348 fi
8349
8350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352 fi
8353
8354 CFLAGS="$CFLAGS -Werror=write-strings"
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8357 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8358 cacheid=xorg_cv_cc_flag__Werror_write_strings
8359 if eval \${$cacheid+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 int i;
8365 int
8366 main ()
8367 {
8368
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_link "$LINENO"; then :
8374 eval $cacheid=yes
8375 else
8376 eval $cacheid=no
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 fi
8381
8382
8383 CFLAGS="$xorg_testset_save_CFLAGS"
8384
8385 eval supported=\$$cacheid
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8387 $as_echo "$supported" >&6; }
8388 if test "$supported" = "yes" ; then
8389 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8390 found="yes"
8391 fi
8392 fi
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408 xorg_testset_save_CFLAGS="$CFLAGS"
8409
8410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8413 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8414 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 int i;
8420 _ACEOF
8421 if ac_fn_c_try_compile "$LINENO"; then :
8422 xorg_cv_cc_flag_unknown_warning_option=yes
8423 else
8424 xorg_cv_cc_flag_unknown_warning_option=no
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 fi
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8429 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8431 CFLAGS="$xorg_testset_save_CFLAGS"
8432 fi
8433
8434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8437 fi
8438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8440 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8441 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446 int i;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 xorg_cv_cc_flag_unused_command_line_argument=yes
8450 else
8451 xorg_cv_cc_flag_unused_command_line_argument=no
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8456 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8458 CFLAGS="$xorg_testset_save_CFLAGS"
8459 fi
8460
8461 found="no"
8462
8463 if test $found = "no" ; then
8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466 fi
8467
8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470 fi
8471
8472 CFLAGS="$CFLAGS -Werror=address"
8473
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8475 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8476 cacheid=xorg_cv_cc_flag__Werror_address
8477 if eval \${$cacheid+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 int i;
8483 int
8484 main ()
8485 {
8486
8487 ;
8488 return 0;
8489 }
8490 _ACEOF
8491 if ac_fn_c_try_link "$LINENO"; then :
8492 eval $cacheid=yes
8493 else
8494 eval $cacheid=no
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498 fi
8499
8500
8501 CFLAGS="$xorg_testset_save_CFLAGS"
8502
8503 eval supported=\$$cacheid
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8505 $as_echo "$supported" >&6; }
8506 if test "$supported" = "yes" ; then
8507 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8508 found="yes"
8509 fi
8510 fi
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 xorg_testset_save_CFLAGS="$CFLAGS"
8527
8528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8531 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8532 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 int i;
8538 _ACEOF
8539 if ac_fn_c_try_compile "$LINENO"; then :
8540 xorg_cv_cc_flag_unknown_warning_option=yes
8541 else
8542 xorg_cv_cc_flag_unknown_warning_option=no
8543 fi
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8547 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8549 CFLAGS="$xorg_testset_save_CFLAGS"
8550 fi
8551
8552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8555 fi
8556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8558 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8559 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8564 int i;
8565 _ACEOF
8566 if ac_fn_c_try_compile "$LINENO"; then :
8567 xorg_cv_cc_flag_unused_command_line_argument=yes
8568 else
8569 xorg_cv_cc_flag_unused_command_line_argument=no
8570 fi
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8574 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8576 CFLAGS="$xorg_testset_save_CFLAGS"
8577 fi
8578
8579 found="no"
8580
8581 if test $found = "no" ; then
8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8584 fi
8585
8586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8588 fi
8589
8590 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8591
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8593 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8594 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8595 if eval \${$cacheid+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 int i;
8601 int
8602 main ()
8603 {
8604
8605 ;
8606 return 0;
8607 }
8608 _ACEOF
8609 if ac_fn_c_try_link "$LINENO"; then :
8610 eval $cacheid=yes
8611 else
8612 eval $cacheid=no
8613 fi
8614 rm -f core conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 fi
8617
8618
8619 CFLAGS="$xorg_testset_save_CFLAGS"
8620
8621 eval supported=\$$cacheid
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8623 $as_echo "$supported" >&6; }
8624 if test "$supported" = "yes" ; then
8625 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8626 found="yes"
8627 fi
8628 fi
8629
8630 if test $found = "no" ; then
8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 fi
8634
8635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8637 fi
8638
8639 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8640
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8642 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8643 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8644 if eval \${$cacheid+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 int i;
8650 int
8651 main ()
8652 {
8653
8654 ;
8655 return 0;
8656 }
8657 _ACEOF
8658 if ac_fn_c_try_link "$LINENO"; then :
8659 eval $cacheid=yes
8660 else
8661 eval $cacheid=no
8662 fi
8663 rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 fi
8666
8667
8668 CFLAGS="$xorg_testset_save_CFLAGS"
8669
8670 eval supported=\$$cacheid
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8672 $as_echo "$supported" >&6; }
8673 if test "$supported" = "yes" ; then
8674 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8675 found="yes"
8676 fi
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693 xorg_testset_save_CFLAGS="$CFLAGS"
8694
8695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8698 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8699 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 int i;
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 xorg_cv_cc_flag_unknown_warning_option=yes
8708 else
8709 xorg_cv_cc_flag_unknown_warning_option=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8714 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8716 CFLAGS="$xorg_testset_save_CFLAGS"
8717 fi
8718
8719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 fi
8723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8725 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8726 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 int i;
8732 _ACEOF
8733 if ac_fn_c_try_compile "$LINENO"; then :
8734 xorg_cv_cc_flag_unused_command_line_argument=yes
8735 else
8736 xorg_cv_cc_flag_unused_command_line_argument=no
8737 fi
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8741 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8743 CFLAGS="$xorg_testset_save_CFLAGS"
8744 fi
8745
8746 found="no"
8747
8748 if test $found = "no" ; then
8749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751 fi
8752
8753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8755 fi
8756
8757 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8758
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8760 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8761 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8762 if eval \${$cacheid+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 int i;
8768 int
8769 main ()
8770 {
8771
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_link "$LINENO"; then :
8777 eval $cacheid=yes
8778 else
8779 eval $cacheid=no
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8783 fi
8784
8785
8786 CFLAGS="$xorg_testset_save_CFLAGS"
8787
8788 eval supported=\$$cacheid
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8790 $as_echo "$supported" >&6; }
8791 if test "$supported" = "yes" ; then
8792 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8793 found="yes"
8794 fi
8795 fi
8796
8797 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8798 else
8799 { $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
8800 $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;}
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814 xorg_testset_save_CFLAGS="$CFLAGS"
8815
8816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8819 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8820 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 int i;
8826 _ACEOF
8827 if ac_fn_c_try_compile "$LINENO"; then :
8828 xorg_cv_cc_flag_unknown_warning_option=yes
8829 else
8830 xorg_cv_cc_flag_unknown_warning_option=no
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 fi
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8835 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8837 CFLAGS="$xorg_testset_save_CFLAGS"
8838 fi
8839
8840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843 fi
8844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8846 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8847 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 int i;
8853 _ACEOF
8854 if ac_fn_c_try_compile "$LINENO"; then :
8855 xorg_cv_cc_flag_unused_command_line_argument=yes
8856 else
8857 xorg_cv_cc_flag_unused_command_line_argument=no
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8862 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8864 CFLAGS="$xorg_testset_save_CFLAGS"
8865 fi
8866
8867 found="no"
8868
8869 if test $found = "no" ; then
8870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872 fi
8873
8874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876 fi
8877
8878 CFLAGS="$CFLAGS -Wimplicit"
8879
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8881 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8882 cacheid=xorg_cv_cc_flag__Wimplicit
8883 if eval \${$cacheid+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 int i;
8889 int
8890 main ()
8891 {
8892
8893 ;
8894 return 0;
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_link "$LINENO"; then :
8898 eval $cacheid=yes
8899 else
8900 eval $cacheid=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 fi
8905
8906
8907 CFLAGS="$xorg_testset_save_CFLAGS"
8908
8909 eval supported=\$$cacheid
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8911 $as_echo "$supported" >&6; }
8912 if test "$supported" = "yes" ; then
8913 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8914 found="yes"
8915 fi
8916 fi
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932 xorg_testset_save_CFLAGS="$CFLAGS"
8933
8934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8938 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 int i;
8944 _ACEOF
8945 if ac_fn_c_try_compile "$LINENO"; then :
8946 xorg_cv_cc_flag_unknown_warning_option=yes
8947 else
8948 xorg_cv_cc_flag_unknown_warning_option=no
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 fi
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8953 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8955 CFLAGS="$xorg_testset_save_CFLAGS"
8956 fi
8957
8958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 fi
8962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8964 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8965 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 int i;
8971 _ACEOF
8972 if ac_fn_c_try_compile "$LINENO"; then :
8973 xorg_cv_cc_flag_unused_command_line_argument=yes
8974 else
8975 xorg_cv_cc_flag_unused_command_line_argument=no
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8980 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8982 CFLAGS="$xorg_testset_save_CFLAGS"
8983 fi
8984
8985 found="no"
8986
8987 if test $found = "no" ; then
8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990 fi
8991
8992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994 fi
8995
8996 CFLAGS="$CFLAGS -Wnonnull"
8997
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8999 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9000 cacheid=xorg_cv_cc_flag__Wnonnull
9001 if eval \${$cacheid+:} false; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9006 int i;
9007 int
9008 main ()
9009 {
9010
9011 ;
9012 return 0;
9013 }
9014 _ACEOF
9015 if ac_fn_c_try_link "$LINENO"; then :
9016 eval $cacheid=yes
9017 else
9018 eval $cacheid=no
9019 fi
9020 rm -f core conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022 fi
9023
9024
9025 CFLAGS="$xorg_testset_save_CFLAGS"
9026
9027 eval supported=\$$cacheid
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9029 $as_echo "$supported" >&6; }
9030 if test "$supported" = "yes" ; then
9031 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9032 found="yes"
9033 fi
9034 fi
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050 xorg_testset_save_CFLAGS="$CFLAGS"
9051
9052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9055 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9056 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9061 int i;
9062 _ACEOF
9063 if ac_fn_c_try_compile "$LINENO"; then :
9064 xorg_cv_cc_flag_unknown_warning_option=yes
9065 else
9066 xorg_cv_cc_flag_unknown_warning_option=no
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069 fi
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9071 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9073 CFLAGS="$xorg_testset_save_CFLAGS"
9074 fi
9075
9076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079 fi
9080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9082 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9083 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 int i;
9089 _ACEOF
9090 if ac_fn_c_try_compile "$LINENO"; then :
9091 xorg_cv_cc_flag_unused_command_line_argument=yes
9092 else
9093 xorg_cv_cc_flag_unused_command_line_argument=no
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9098 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9100 CFLAGS="$xorg_testset_save_CFLAGS"
9101 fi
9102
9103 found="no"
9104
9105 if test $found = "no" ; then
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 fi
9109
9110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112 fi
9113
9114 CFLAGS="$CFLAGS -Winit-self"
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9117 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9118 cacheid=xorg_cv_cc_flag__Winit_self
9119 if eval \${$cacheid+:} false; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124 int i;
9125 int
9126 main ()
9127 {
9128
9129 ;
9130 return 0;
9131 }
9132 _ACEOF
9133 if ac_fn_c_try_link "$LINENO"; then :
9134 eval $cacheid=yes
9135 else
9136 eval $cacheid=no
9137 fi
9138 rm -f core conftest.err conftest.$ac_objext \
9139 conftest$ac_exeext conftest.$ac_ext
9140 fi
9141
9142
9143 CFLAGS="$xorg_testset_save_CFLAGS"
9144
9145 eval supported=\$$cacheid
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9147 $as_echo "$supported" >&6; }
9148 if test "$supported" = "yes" ; then
9149 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9150 found="yes"
9151 fi
9152 fi
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168 xorg_testset_save_CFLAGS="$CFLAGS"
9169
9170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9173 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9174 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 int i;
9180 _ACEOF
9181 if ac_fn_c_try_compile "$LINENO"; then :
9182 xorg_cv_cc_flag_unknown_warning_option=yes
9183 else
9184 xorg_cv_cc_flag_unknown_warning_option=no
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9189 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9191 CFLAGS="$xorg_testset_save_CFLAGS"
9192 fi
9193
9194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197 fi
9198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9200 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9201 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 int i;
9207 _ACEOF
9208 if ac_fn_c_try_compile "$LINENO"; then :
9209 xorg_cv_cc_flag_unused_command_line_argument=yes
9210 else
9211 xorg_cv_cc_flag_unused_command_line_argument=no
9212 fi
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9216 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9218 CFLAGS="$xorg_testset_save_CFLAGS"
9219 fi
9220
9221 found="no"
9222
9223 if test $found = "no" ; then
9224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226 fi
9227
9228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9230 fi
9231
9232 CFLAGS="$CFLAGS -Wmain"
9233
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9235 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9236 cacheid=xorg_cv_cc_flag__Wmain
9237 if eval \${$cacheid+:} false; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 int i;
9243 int
9244 main ()
9245 {
9246
9247 ;
9248 return 0;
9249 }
9250 _ACEOF
9251 if ac_fn_c_try_link "$LINENO"; then :
9252 eval $cacheid=yes
9253 else
9254 eval $cacheid=no
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 fi
9259
9260
9261 CFLAGS="$xorg_testset_save_CFLAGS"
9262
9263 eval supported=\$$cacheid
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9265 $as_echo "$supported" >&6; }
9266 if test "$supported" = "yes" ; then
9267 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9268 found="yes"
9269 fi
9270 fi
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286 xorg_testset_save_CFLAGS="$CFLAGS"
9287
9288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9291 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9292 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297 int i;
9298 _ACEOF
9299 if ac_fn_c_try_compile "$LINENO"; then :
9300 xorg_cv_cc_flag_unknown_warning_option=yes
9301 else
9302 xorg_cv_cc_flag_unknown_warning_option=no
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 fi
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9307 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9309 CFLAGS="$xorg_testset_save_CFLAGS"
9310 fi
9311
9312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315 fi
9316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9318 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9319 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324 int i;
9325 _ACEOF
9326 if ac_fn_c_try_compile "$LINENO"; then :
9327 xorg_cv_cc_flag_unused_command_line_argument=yes
9328 else
9329 xorg_cv_cc_flag_unused_command_line_argument=no
9330 fi
9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9334 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9336 CFLAGS="$xorg_testset_save_CFLAGS"
9337 fi
9338
9339 found="no"
9340
9341 if test $found = "no" ; then
9342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344 fi
9345
9346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9348 fi
9349
9350 CFLAGS="$CFLAGS -Wmissing-braces"
9351
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9353 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9354 cacheid=xorg_cv_cc_flag__Wmissing_braces
9355 if eval \${$cacheid+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 int i;
9361 int
9362 main ()
9363 {
9364
9365 ;
9366 return 0;
9367 }
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"; then :
9370 eval $cacheid=yes
9371 else
9372 eval $cacheid=no
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9376 fi
9377
9378
9379 CFLAGS="$xorg_testset_save_CFLAGS"
9380
9381 eval supported=\$$cacheid
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9383 $as_echo "$supported" >&6; }
9384 if test "$supported" = "yes" ; then
9385 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9386 found="yes"
9387 fi
9388 fi
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404 xorg_testset_save_CFLAGS="$CFLAGS"
9405
9406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 int i;
9416 _ACEOF
9417 if ac_fn_c_try_compile "$LINENO"; then :
9418 xorg_cv_cc_flag_unknown_warning_option=yes
9419 else
9420 xorg_cv_cc_flag_unknown_warning_option=no
9421 fi
9422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9423 fi
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9427 CFLAGS="$xorg_testset_save_CFLAGS"
9428 fi
9429
9430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9433 fi
9434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442 int i;
9443 _ACEOF
9444 if ac_fn_c_try_compile "$LINENO"; then :
9445 xorg_cv_cc_flag_unused_command_line_argument=yes
9446 else
9447 xorg_cv_cc_flag_unused_command_line_argument=no
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 fi
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9454 CFLAGS="$xorg_testset_save_CFLAGS"
9455 fi
9456
9457 found="no"
9458
9459 if test $found = "no" ; then
9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 fi
9463
9464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466 fi
9467
9468 CFLAGS="$CFLAGS -Wsequence-point"
9469
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9471 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9472 cacheid=xorg_cv_cc_flag__Wsequence_point
9473 if eval \${$cacheid+:} false; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 int i;
9479 int
9480 main ()
9481 {
9482
9483 ;
9484 return 0;
9485 }
9486 _ACEOF
9487 if ac_fn_c_try_link "$LINENO"; then :
9488 eval $cacheid=yes
9489 else
9490 eval $cacheid=no
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 fi
9495
9496
9497 CFLAGS="$xorg_testset_save_CFLAGS"
9498
9499 eval supported=\$$cacheid
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9501 $as_echo "$supported" >&6; }
9502 if test "$supported" = "yes" ; then
9503 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9504 found="yes"
9505 fi
9506 fi
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522 xorg_testset_save_CFLAGS="$CFLAGS"
9523
9524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9527 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9528 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533 int i;
9534 _ACEOF
9535 if ac_fn_c_try_compile "$LINENO"; then :
9536 xorg_cv_cc_flag_unknown_warning_option=yes
9537 else
9538 xorg_cv_cc_flag_unknown_warning_option=no
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 fi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9543 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9545 CFLAGS="$xorg_testset_save_CFLAGS"
9546 fi
9547
9548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9551 fi
9552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9554 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9555 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560 int i;
9561 _ACEOF
9562 if ac_fn_c_try_compile "$LINENO"; then :
9563 xorg_cv_cc_flag_unused_command_line_argument=yes
9564 else
9565 xorg_cv_cc_flag_unused_command_line_argument=no
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 fi
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9570 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9572 CFLAGS="$xorg_testset_save_CFLAGS"
9573 fi
9574
9575 found="no"
9576
9577 if test $found = "no" ; then
9578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580 fi
9581
9582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9584 fi
9585
9586 CFLAGS="$CFLAGS -Wreturn-type"
9587
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9589 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9590 cacheid=xorg_cv_cc_flag__Wreturn_type
9591 if eval \${$cacheid+:} false; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9596 int i;
9597 int
9598 main ()
9599 {
9600
9601 ;
9602 return 0;
9603 }
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"; then :
9606 eval $cacheid=yes
9607 else
9608 eval $cacheid=no
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612 fi
9613
9614
9615 CFLAGS="$xorg_testset_save_CFLAGS"
9616
9617 eval supported=\$$cacheid
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9619 $as_echo "$supported" >&6; }
9620 if test "$supported" = "yes" ; then
9621 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9622 found="yes"
9623 fi
9624 fi
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640 xorg_testset_save_CFLAGS="$CFLAGS"
9641
9642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 int i;
9652 _ACEOF
9653 if ac_fn_c_try_compile "$LINENO"; then :
9654 xorg_cv_cc_flag_unknown_warning_option=yes
9655 else
9656 xorg_cv_cc_flag_unknown_warning_option=no
9657 fi
9658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9659 fi
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9663 CFLAGS="$xorg_testset_save_CFLAGS"
9664 fi
9665
9666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9669 fi
9670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 int i;
9679 _ACEOF
9680 if ac_fn_c_try_compile "$LINENO"; then :
9681 xorg_cv_cc_flag_unused_command_line_argument=yes
9682 else
9683 xorg_cv_cc_flag_unused_command_line_argument=no
9684 fi
9685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9690 CFLAGS="$xorg_testset_save_CFLAGS"
9691 fi
9692
9693 found="no"
9694
9695 if test $found = "no" ; then
9696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698 fi
9699
9700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9702 fi
9703
9704 CFLAGS="$CFLAGS -Wtrigraphs"
9705
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9707 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9708 cacheid=xorg_cv_cc_flag__Wtrigraphs
9709 if eval \${$cacheid+:} false; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9714 int i;
9715 int
9716 main ()
9717 {
9718
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 if ac_fn_c_try_link "$LINENO"; then :
9724 eval $cacheid=yes
9725 else
9726 eval $cacheid=no
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730 fi
9731
9732
9733 CFLAGS="$xorg_testset_save_CFLAGS"
9734
9735 eval supported=\$$cacheid
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9737 $as_echo "$supported" >&6; }
9738 if test "$supported" = "yes" ; then
9739 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9740 found="yes"
9741 fi
9742 fi
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758 xorg_testset_save_CFLAGS="$CFLAGS"
9759
9760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9763 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9764 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 int i;
9770 _ACEOF
9771 if ac_fn_c_try_compile "$LINENO"; then :
9772 xorg_cv_cc_flag_unknown_warning_option=yes
9773 else
9774 xorg_cv_cc_flag_unknown_warning_option=no
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777 fi
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9779 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9781 CFLAGS="$xorg_testset_save_CFLAGS"
9782 fi
9783
9784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9787 fi
9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9790 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9791 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796 int i;
9797 _ACEOF
9798 if ac_fn_c_try_compile "$LINENO"; then :
9799 xorg_cv_cc_flag_unused_command_line_argument=yes
9800 else
9801 xorg_cv_cc_flag_unused_command_line_argument=no
9802 fi
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9806 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9808 CFLAGS="$xorg_testset_save_CFLAGS"
9809 fi
9810
9811 found="no"
9812
9813 if test $found = "no" ; then
9814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816 fi
9817
9818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9820 fi
9821
9822 CFLAGS="$CFLAGS -Warray-bounds"
9823
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9825 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9826 cacheid=xorg_cv_cc_flag__Warray_bounds
9827 if eval \${$cacheid+:} false; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 int i;
9833 int
9834 main ()
9835 {
9836
9837 ;
9838 return 0;
9839 }
9840 _ACEOF
9841 if ac_fn_c_try_link "$LINENO"; then :
9842 eval $cacheid=yes
9843 else
9844 eval $cacheid=no
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 fi
9849
9850
9851 CFLAGS="$xorg_testset_save_CFLAGS"
9852
9853 eval supported=\$$cacheid
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9855 $as_echo "$supported" >&6; }
9856 if test "$supported" = "yes" ; then
9857 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9858 found="yes"
9859 fi
9860 fi
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876 xorg_testset_save_CFLAGS="$CFLAGS"
9877
9878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9881 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9882 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9887 int i;
9888 _ACEOF
9889 if ac_fn_c_try_compile "$LINENO"; then :
9890 xorg_cv_cc_flag_unknown_warning_option=yes
9891 else
9892 xorg_cv_cc_flag_unknown_warning_option=no
9893 fi
9894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895 fi
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9897 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9899 CFLAGS="$xorg_testset_save_CFLAGS"
9900 fi
9901
9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9905 fi
9906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9908 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9909 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9910 $as_echo_n "(cached) " >&6
9911 else
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 int i;
9915 _ACEOF
9916 if ac_fn_c_try_compile "$LINENO"; then :
9917 xorg_cv_cc_flag_unused_command_line_argument=yes
9918 else
9919 xorg_cv_cc_flag_unused_command_line_argument=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9924 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9926 CFLAGS="$xorg_testset_save_CFLAGS"
9927 fi
9928
9929 found="no"
9930
9931 if test $found = "no" ; then
9932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934 fi
9935
9936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9938 fi
9939
9940 CFLAGS="$CFLAGS -Wwrite-strings"
9941
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9943 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9944 cacheid=xorg_cv_cc_flag__Wwrite_strings
9945 if eval \${$cacheid+:} false; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 int i;
9951 int
9952 main ()
9953 {
9954
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"; then :
9960 eval $cacheid=yes
9961 else
9962 eval $cacheid=no
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 fi
9967
9968
9969 CFLAGS="$xorg_testset_save_CFLAGS"
9970
9971 eval supported=\$$cacheid
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9973 $as_echo "$supported" >&6; }
9974 if test "$supported" = "yes" ; then
9975 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9976 found="yes"
9977 fi
9978 fi
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994 xorg_testset_save_CFLAGS="$CFLAGS"
9995
9996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9999 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10000 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 int i;
10006 _ACEOF
10007 if ac_fn_c_try_compile "$LINENO"; then :
10008 xorg_cv_cc_flag_unknown_warning_option=yes
10009 else
10010 xorg_cv_cc_flag_unknown_warning_option=no
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 fi
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10015 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10017 CFLAGS="$xorg_testset_save_CFLAGS"
10018 fi
10019
10020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10023 fi
10024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10026 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10027 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 int i;
10033 _ACEOF
10034 if ac_fn_c_try_compile "$LINENO"; then :
10035 xorg_cv_cc_flag_unused_command_line_argument=yes
10036 else
10037 xorg_cv_cc_flag_unused_command_line_argument=no
10038 fi
10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 fi
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10042 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10044 CFLAGS="$xorg_testset_save_CFLAGS"
10045 fi
10046
10047 found="no"
10048
10049 if test $found = "no" ; then
10050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052 fi
10053
10054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10056 fi
10057
10058 CFLAGS="$CFLAGS -Waddress"
10059
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10061 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
10062 cacheid=xorg_cv_cc_flag__Waddress
10063 if eval \${$cacheid+:} false; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 int i;
10069 int
10070 main ()
10071 {
10072
10073 ;
10074 return 0;
10075 }
10076 _ACEOF
10077 if ac_fn_c_try_link "$LINENO"; then :
10078 eval $cacheid=yes
10079 else
10080 eval $cacheid=no
10081 fi
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 fi
10085
10086
10087 CFLAGS="$xorg_testset_save_CFLAGS"
10088
10089 eval supported=\$$cacheid
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10091 $as_echo "$supported" >&6; }
10092 if test "$supported" = "yes" ; then
10093 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10094 found="yes"
10095 fi
10096 fi
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112 xorg_testset_save_CFLAGS="$CFLAGS"
10113
10114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10123 int i;
10124 _ACEOF
10125 if ac_fn_c_try_compile "$LINENO"; then :
10126 xorg_cv_cc_flag_unknown_warning_option=yes
10127 else
10128 xorg_cv_cc_flag_unknown_warning_option=no
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10135 CFLAGS="$xorg_testset_save_CFLAGS"
10136 fi
10137
10138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10141 fi
10142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150 int i;
10151 _ACEOF
10152 if ac_fn_c_try_compile "$LINENO"; then :
10153 xorg_cv_cc_flag_unused_command_line_argument=yes
10154 else
10155 xorg_cv_cc_flag_unused_command_line_argument=no
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 fi
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10162 CFLAGS="$xorg_testset_save_CFLAGS"
10163 fi
10164
10165 found="no"
10166
10167 if test $found = "no" ; then
10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170 fi
10171
10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174 fi
10175
10176 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10179 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10180 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10181 if eval \${$cacheid+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186 int i;
10187 int
10188 main ()
10189 {
10190
10191 ;
10192 return 0;
10193 }
10194 _ACEOF
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 eval $cacheid=yes
10197 else
10198 eval $cacheid=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 fi
10203
10204
10205 CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207 eval supported=\$$cacheid
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209 $as_echo "$supported" >&6; }
10210 if test "$supported" = "yes" ; then
10211 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10212 found="yes"
10213 fi
10214 fi
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230 xorg_testset_save_CFLAGS="$CFLAGS"
10231
10232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 int i;
10242 _ACEOF
10243 if ac_fn_c_try_compile "$LINENO"; then :
10244 xorg_cv_cc_flag_unknown_warning_option=yes
10245 else
10246 xorg_cv_cc_flag_unknown_warning_option=no
10247 fi
10248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249 fi
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10253 CFLAGS="$xorg_testset_save_CFLAGS"
10254 fi
10255
10256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10259 fi
10260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10268 int i;
10269 _ACEOF
10270 if ac_fn_c_try_compile "$LINENO"; then :
10271 xorg_cv_cc_flag_unused_command_line_argument=yes
10272 else
10273 xorg_cv_cc_flag_unused_command_line_argument=no
10274 fi
10275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10280 CFLAGS="$xorg_testset_save_CFLAGS"
10281 fi
10282
10283 found="no"
10284
10285 if test $found = "no" ; then
10286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10288 fi
10289
10290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10292 fi
10293
10294 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10295
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10297 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10298 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10299 if eval \${$cacheid+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 int i;
10305 int
10306 main ()
10307 {
10308
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 eval $cacheid=yes
10315 else
10316 eval $cacheid=no
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 fi
10321
10322
10323 CFLAGS="$xorg_testset_save_CFLAGS"
10324
10325 eval supported=\$$cacheid
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10327 $as_echo "$supported" >&6; }
10328 if test "$supported" = "yes" ; then
10329 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10330 found="yes"
10331 fi
10332 fi
10333
10334
10335 fi
10336
10337
10338
10339
10340
10341
10342
10343 CWARNFLAGS="$BASE_CFLAGS"
10344 if test "x$GCC" = xyes ; then
10345 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10346 fi
10347
10348
10349
10350
10351
10352
10353
10354
10355 # Check whether --enable-strict-compilation was given.
10356 if test "${enable_strict_compilation+set}" = set; then :
10357 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10358 else
10359 STRICT_COMPILE=no
10360 fi
10361
10362
10363
10364
10365
10366
10367 STRICT_CFLAGS=""
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381 xorg_testset_save_CFLAGS="$CFLAGS"
10382
10383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10386 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10387 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10392 int i;
10393 _ACEOF
10394 if ac_fn_c_try_compile "$LINENO"; then :
10395 xorg_cv_cc_flag_unknown_warning_option=yes
10396 else
10397 xorg_cv_cc_flag_unknown_warning_option=no
10398 fi
10399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10400 fi
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10402 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10404 CFLAGS="$xorg_testset_save_CFLAGS"
10405 fi
10406
10407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10410 fi
10411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10413 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10414 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10419 int i;
10420 _ACEOF
10421 if ac_fn_c_try_compile "$LINENO"; then :
10422 xorg_cv_cc_flag_unused_command_line_argument=yes
10423 else
10424 xorg_cv_cc_flag_unused_command_line_argument=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 fi
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10429 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10431 CFLAGS="$xorg_testset_save_CFLAGS"
10432 fi
10433
10434 found="no"
10435
10436 if test $found = "no" ; then
10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439 fi
10440
10441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10443 fi
10444
10445 CFLAGS="$CFLAGS -pedantic"
10446
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10448 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10449 cacheid=xorg_cv_cc_flag__pedantic
10450 if eval \${$cacheid+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 int i;
10456 int
10457 main ()
10458 {
10459
10460 ;
10461 return 0;
10462 }
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465 eval $cacheid=yes
10466 else
10467 eval $cacheid=no
10468 fi
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 fi
10472
10473
10474 CFLAGS="$xorg_testset_save_CFLAGS"
10475
10476 eval supported=\$$cacheid
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10478 $as_echo "$supported" >&6; }
10479 if test "$supported" = "yes" ; then
10480 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10481 found="yes"
10482 fi
10483 fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499 xorg_testset_save_CFLAGS="$CFLAGS"
10500
10501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10504 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10505 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 int i;
10511 _ACEOF
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513 xorg_cv_cc_flag_unknown_warning_option=yes
10514 else
10515 xorg_cv_cc_flag_unknown_warning_option=no
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10520 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10522 CFLAGS="$xorg_testset_save_CFLAGS"
10523 fi
10524
10525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10528 fi
10529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10531 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10532 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10537 int i;
10538 _ACEOF
10539 if ac_fn_c_try_compile "$LINENO"; then :
10540 xorg_cv_cc_flag_unused_command_line_argument=yes
10541 else
10542 xorg_cv_cc_flag_unused_command_line_argument=no
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10547 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10549 CFLAGS="$xorg_testset_save_CFLAGS"
10550 fi
10551
10552 found="no"
10553
10554 if test $found = "no" ; then
10555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10557 fi
10558
10559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10561 fi
10562
10563 CFLAGS="$CFLAGS -Werror"
10564
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10566 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10567 cacheid=xorg_cv_cc_flag__Werror
10568 if eval \${$cacheid+:} false; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 int i;
10574 int
10575 main ()
10576 {
10577
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 eval $cacheid=yes
10584 else
10585 eval $cacheid=no
10586 fi
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 fi
10590
10591
10592 CFLAGS="$xorg_testset_save_CFLAGS"
10593
10594 eval supported=\$$cacheid
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10596 $as_echo "$supported" >&6; }
10597 if test "$supported" = "yes" ; then
10598 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10599 found="yes"
10600 fi
10601 fi
10602
10603 if test $found = "no" ; then
10604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606 fi
10607
10608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10610 fi
10611
10612 CFLAGS="$CFLAGS -errwarn"
10613
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10615 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10616 cacheid=xorg_cv_cc_flag__errwarn
10617 if eval \${$cacheid+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622 int i;
10623 int
10624 main ()
10625 {
10626
10627 ;
10628 return 0;
10629 }
10630 _ACEOF
10631 if ac_fn_c_try_link "$LINENO"; then :
10632 eval $cacheid=yes
10633 else
10634 eval $cacheid=no
10635 fi
10636 rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10638 fi
10639
10640
10641 CFLAGS="$xorg_testset_save_CFLAGS"
10642
10643 eval supported=\$$cacheid
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10645 $as_echo "$supported" >&6; }
10646 if test "$supported" = "yes" ; then
10647 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10648 found="yes"
10649 fi
10650 fi
10651
10652
10653
10654 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10655 # activate it with -Werror, so we add it here explicitly.
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669 xorg_testset_save_CFLAGS="$CFLAGS"
10670
10671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10680 int i;
10681 _ACEOF
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683 xorg_cv_cc_flag_unknown_warning_option=yes
10684 else
10685 xorg_cv_cc_flag_unknown_warning_option=no
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10692 CFLAGS="$xorg_testset_save_CFLAGS"
10693 fi
10694
10695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10698 fi
10699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 int i;
10708 _ACEOF
10709 if ac_fn_c_try_compile "$LINENO"; then :
10710 xorg_cv_cc_flag_unused_command_line_argument=yes
10711 else
10712 xorg_cv_cc_flag_unused_command_line_argument=no
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 fi
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10719 CFLAGS="$xorg_testset_save_CFLAGS"
10720 fi
10721
10722 found="no"
10723
10724 if test $found = "no" ; then
10725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10727 fi
10728
10729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10731 fi
10732
10733 CFLAGS="$CFLAGS -Werror=attributes"
10734
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10736 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10737 cacheid=xorg_cv_cc_flag__Werror_attributes
10738 if eval \${$cacheid+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 int i;
10744 int
10745 main ()
10746 {
10747
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_c_try_link "$LINENO"; then :
10753 eval $cacheid=yes
10754 else
10755 eval $cacheid=no
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
10759 fi
10760
10761
10762 CFLAGS="$xorg_testset_save_CFLAGS"
10763
10764 eval supported=\$$cacheid
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10766 $as_echo "$supported" >&6; }
10767 if test "$supported" = "yes" ; then
10768 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10769 found="yes"
10770 fi
10771 fi
10772
10773
10774
10775 if test "x$STRICT_COMPILE" = "xyes"; then
10776 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10777 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10778 fi
10779
10780
10781
10782
10783
10784
10785 cat >>confdefs.h <<_ACEOF
10786 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10787 _ACEOF
10788
10789 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10790 if test "x$PVM" = "x"; then
10791 PVM="0"
10792 fi
10793
10794 cat >>confdefs.h <<_ACEOF
10795 #define PACKAGE_VERSION_MINOR $PVM
10796 _ACEOF
10797
10798 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10799 if test "x$PVP" = "x"; then
10800 PVP="0"
10801 fi
10802
10803 cat >>confdefs.h <<_ACEOF
10804 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10805 _ACEOF
10806
10807
10808
10809 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10810 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10811 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10812 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10813
10814
10815
10816
10817 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10818 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10819 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10820 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10821 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10822
10823
10824
10825
10826
10827
10828 if test x$APP_MAN_SUFFIX = x ; then
10829 APP_MAN_SUFFIX=1
10830 fi
10831 if test x$APP_MAN_DIR = x ; then
10832 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10833 fi
10834
10835 if test x$LIB_MAN_SUFFIX = x ; then
10836 LIB_MAN_SUFFIX=3
10837 fi
10838 if test x$LIB_MAN_DIR = x ; then
10839 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10840 fi
10841
10842 if test x$FILE_MAN_SUFFIX = x ; then
10843 case $host_os in
10844 # Solaris 2.0 - 11 use SysV man page sections
10845 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10846 *) FILE_MAN_SUFFIX=5 ;;
10847 esac
10848 fi
10849 if test x$FILE_MAN_DIR = x ; then
10850 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10851 fi
10852
10853 if test x$MISC_MAN_SUFFIX = x ; then
10854 case $host_os in
10855 # Solaris 2.0 - 11 use SysV man page sections
10856 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10857 *) MISC_MAN_SUFFIX=7 ;;
10858 esac
10859 fi
10860 if test x$MISC_MAN_DIR = x ; then
10861 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10862 fi
10863
10864 if test x$DRIVER_MAN_SUFFIX = x ; then
10865 case $host_os in
10866 # Solaris 2.0 - 11 use SysV man page sections
10867 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10868 *) DRIVER_MAN_SUFFIX=4 ;;
10869 esac
10870 fi
10871 if test x$DRIVER_MAN_DIR = x ; then
10872 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10873 fi
10874
10875 if test x$ADMIN_MAN_SUFFIX = x ; then
10876 case $host_os in
10877 # Solaris 2.0 - 11 use SysV man page sections
10878 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10879 *) ADMIN_MAN_SUFFIX=8 ;;
10880 esac
10881 fi
10882 if test x$ADMIN_MAN_DIR = x ; then
10883 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10884 fi
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900 XORG_MAN_PAGE="X Version 11"
10901
10902 MAN_SUBSTS="\
10903 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10904 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10905 -e 's|__xservername__|Xorg|g' \
10906 -e 's|__xconfigfile__|xorg.conf|g' \
10907 -e 's|__projectroot__|\$(prefix)|g' \
10908 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10909 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10910 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10911 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10912 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10913 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10914 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10915
10916
10917
10918 # Check whether --enable-silent-rules was given.
10919 if test "${enable_silent_rules+set}" = set; then :
10920 enableval=$enable_silent_rules;
10921 fi
10922
10923 case $enable_silent_rules in # (((
10924 yes) AM_DEFAULT_VERBOSITY=0;;
10925 no) AM_DEFAULT_VERBOSITY=1;;
10926 *) AM_DEFAULT_VERBOSITY=0;;
10927 esac
10928 am_make=${MAKE-make}
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10930 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10931 if ${am_cv_make_support_nested_variables+:} false; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10934 if $as_echo 'TRUE=$(BAR$(V))
10935 BAR0=false
10936 BAR1=true
10937 V=1
10938 am__doit:
10939 @$(TRUE)
10940 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10941 am_cv_make_support_nested_variables=yes
10942 else
10943 am_cv_make_support_nested_variables=no
10944 fi
10945 fi
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10947 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10948 if test $am_cv_make_support_nested_variables = yes; then
10949 AM_V='$(V)'
10950 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10951 else
10952 AM_V=$AM_DEFAULT_VERBOSITY
10953 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10954 fi
10955 AM_BACKSLASH='\'
10956
10957
10958
10959 for ac_header in net/errno.h
10960 do :
10961 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
10962 if test "x$ac_cv_header_net_errno_h" = xyes; then :
10963 cat >>confdefs.h <<_ACEOF
10964 #define HAVE_NET_ERRNO_H 1
10965 _ACEOF
10966
10967 fi
10968
10969 done
10970
10971
10972 for ac_func in strlcpy
10973 do :
10974 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
10975 if test "x$ac_cv_func_strlcpy" = xyes; then :
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_STRLCPY 1
10978 _ACEOF
10979
10980 fi
10981 done
10982
10983
10984 # Checks for pkg-config packages
10985
10986 pkg_failed=no
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
10988 $as_echo_n "checking for XAUTH... " >&6; }
10989
10990 if test -n "$XAUTH_CFLAGS"; then
10991 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
10992 elif test -n "$PKG_CONFIG"; then
10993 if test -n "$PKG_CONFIG" && \
10994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
10995 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
10996 ac_status=$?
10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998 test $ac_status = 0; }; then
10999 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11000 test "x$?" != "x0" && pkg_failed=yes
11001 else
11002 pkg_failed=yes
11003 fi
11004 else
11005 pkg_failed=untried
11006 fi
11007 if test -n "$XAUTH_LIBS"; then
11008 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
11009 elif test -n "$PKG_CONFIG"; then
11010 if test -n "$PKG_CONFIG" && \
11011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11012 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11013 ac_status=$?
11014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11015 test $ac_status = 0; }; then
11016 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11017 test "x$?" != "x0" && pkg_failed=yes
11018 else
11019 pkg_failed=yes
11020 fi
11021 else
11022 pkg_failed=untried
11023 fi
11024
11025
11026
11027 if test $pkg_failed = yes; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11030
11031 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11032 _pkg_short_errors_supported=yes
11033 else
11034 _pkg_short_errors_supported=no
11035 fi
11036 if test $_pkg_short_errors_supported = yes; then
11037 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11038 else
11039 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11040 fi
11041 # Put the nasty error message in config.log where it belongs
11042 echo "$XAUTH_PKG_ERRORS" >&5
11043
11044 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
11045
11046 $XAUTH_PKG_ERRORS
11047
11048 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11049 installed software in a non-standard prefix.
11050
11051 Alternatively, you may set the environment variables XAUTH_CFLAGS
11052 and XAUTH_LIBS to avoid the need to call pkg-config.
11053 See the pkg-config man page for more details." "$LINENO" 5
11054 elif test $pkg_failed = untried; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; }
11057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11059 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11060 is in your PATH or set the PKG_CONFIG environment variable to the full
11061 path to pkg-config.
11062
11063 Alternatively, you may set the environment variables XAUTH_CFLAGS
11064 and XAUTH_LIBS to avoid the need to call pkg-config.
11065 See the pkg-config man page for more details.
11066
11067 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11068 See \`config.log' for more details" "$LINENO" 5; }
11069 else
11070 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
11071 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11073 $as_echo "yes" >&6; }
11074
11075 fi
11076
11077 # Transport selection macro from xtrans.m4
11078 # Needed to set *CONN defines for gethost.c & parsedpy.c
11079
11080
11081 case $host_os in
11082 mingw*) unixdef="no" ;;
11083 *) unixdef="yes" ;;
11084 esac
11085 # Check whether --enable-unix-transport was given.
11086 if test "${enable_unix_transport+set}" = set; then :
11087 enableval=$enable_unix_transport; UNIXCONN=$enableval
11088 else
11089 UNIXCONN=$unixdef
11090 fi
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11093 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11094 if test "$UNIXCONN" = "yes"; then
11095
11096 $as_echo "#define UNIXCONN 1" >>confdefs.h
11097
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11100 $as_echo "$UNIXCONN" >&6; }
11101 # Check whether --enable-tcp-transport was given.
11102 if test "${enable_tcp_transport+set}" = set; then :
11103 enableval=$enable_tcp_transport; TCPCONN=$enableval
11104 else
11105 TCPCONN=yes
11106 fi
11107
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11109 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11111 $as_echo "$TCPCONN" >&6; }
11112 if test "$TCPCONN" = "yes"; then
11113
11114 $as_echo "#define TCPCONN 1" >>confdefs.h
11115
11116
11117 # SVR4 hides these in libraries other than libc
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11119 $as_echo_n "checking for library containing socket... " >&6; }
11120 if ${ac_cv_search_socket+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 ac_func_search_save_LIBS=$LIBS
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char socket ();
11134 int
11135 main ()
11136 {
11137 return socket ();
11138 ;
11139 return 0;
11140 }
11141 _ACEOF
11142 for ac_lib in '' socket; do
11143 if test -z "$ac_lib"; then
11144 ac_res="none required"
11145 else
11146 ac_res=-l$ac_lib
11147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11148 fi
11149 if ac_fn_c_try_link "$LINENO"; then :
11150 ac_cv_search_socket=$ac_res
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext
11154 if ${ac_cv_search_socket+:} false; then :
11155 break
11156 fi
11157 done
11158 if ${ac_cv_search_socket+:} false; then :
11159
11160 else
11161 ac_cv_search_socket=no
11162 fi
11163 rm conftest.$ac_ext
11164 LIBS=$ac_func_search_save_LIBS
11165 fi
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11167 $as_echo "$ac_cv_search_socket" >&6; }
11168 ac_res=$ac_cv_search_socket
11169 if test "$ac_res" != no; then :
11170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11171
11172 fi
11173
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11175 $as_echo_n "checking for library containing gethostbyname... " >&6; }
11176 if ${ac_cv_search_gethostbyname+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 ac_func_search_save_LIBS=$LIBS
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char gethostbyname ();
11190 int
11191 main ()
11192 {
11193 return gethostbyname ();
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 for ac_lib in '' nsl; do
11199 if test -z "$ac_lib"; then
11200 ac_res="none required"
11201 else
11202 ac_res=-l$ac_lib
11203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11204 fi
11205 if ac_fn_c_try_link "$LINENO"; then :
11206 ac_cv_search_gethostbyname=$ac_res
11207 fi
11208 rm -f core conftest.err conftest.$ac_objext \
11209 conftest$ac_exeext
11210 if ${ac_cv_search_gethostbyname+:} false; then :
11211 break
11212 fi
11213 done
11214 if ${ac_cv_search_gethostbyname+:} false; then :
11215
11216 else
11217 ac_cv_search_gethostbyname=no
11218 fi
11219 rm conftest.$ac_ext
11220 LIBS=$ac_func_search_save_LIBS
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11223 $as_echo "$ac_cv_search_gethostbyname" >&6; }
11224 ac_res=$ac_cv_search_gethostbyname
11225 if test "$ac_res" != no; then :
11226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11227
11228 fi
11229
11230 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11232 $as_echo_n "checking for main in -lws2_32... " >&6; }
11233 if ${ac_cv_lib_ws2_32_main+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 ac_check_lib_save_LIBS=$LIBS
11237 LIBS="-lws2_32 $LIBS"
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240
11241
11242 int
11243 main ()
11244 {
11245 return main ();
11246 ;
11247 return 0;
11248 }
11249 _ACEOF
11250 if ac_fn_c_try_link "$LINENO"; then :
11251 ac_cv_lib_ws2_32_main=yes
11252 else
11253 ac_cv_lib_ws2_32_main=no
11254 fi
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_lib_save_LIBS
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11260 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11261 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11262 cat >>confdefs.h <<_ACEOF
11263 #define HAVE_LIBWS2_32 1
11264 _ACEOF
11265
11266 LIBS="-lws2_32 $LIBS"
11267
11268 fi
11269
11270 fi
11271
11272 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11273 # Check whether --enable-ipv6 was given.
11274 if test "${enable_ipv6+set}" = set; then :
11275 enableval=$enable_ipv6; IPV6CONN=$enableval
11276 else
11277 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11278 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11279 IPV6CONN=yes
11280 else
11281 IPV6CONN=no
11282 fi
11283
11284 fi
11285
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11287 $as_echo_n "checking if IPv6 support should be built... " >&6; }
11288 if test "$IPV6CONN" = "yes"; then
11289
11290 $as_echo "#define IPv6 1" >>confdefs.h
11291
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11294 $as_echo "$IPV6CONN" >&6; }
11295
11296 # 4.3BSD-Reno added a new member to struct sockaddr_in
11297 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11298 #include <sys/types.h>
11299 #include <sys/socket.h>
11300 #include <netinet/in.h>
11301
11302 "
11303 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11304
11305 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11306
11307 fi
11308
11309
11310 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11311 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11312 $ac_includes_default
11313 #include <sys/socket.h>
11314 "
11315 if test "x$ac_cv_type_socklen_t" = xyes; then :
11316
11317 cat >>confdefs.h <<_ACEOF
11318 #define HAVE_SOCKLEN_T 1
11319 _ACEOF
11320
11321
11322 fi
11323
11324
11325 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11326 # _XOPEN_SOURCE to get it (such as on Solaris)
11327 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11328 $ac_includes_default
11329 #include <sys/socket.h>
11330
11331 "
11332 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11333
11334 fi
11335
11336 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11337 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11338 unset ac_cv_member_struct_msghdr_msg_control
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11340 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11341 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11342 #define _XOPEN_SOURCE 600
11343 $ac_includes_default
11344 #include <sys/socket.h>
11345
11346 "
11347 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11348
11349 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
11350
11351
11352 fi
11353
11354 fi
11355 # If that didn't work, fall back to XPG5/UNIX98 with C89
11356 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11357 unset ac_cv_member_struct_msghdr_msg_control
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11359 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11360 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11361 #define _XOPEN_SOURCE 500
11362 $ac_includes_default
11363 #include <sys/socket.h>
11364
11365 "
11366 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11367
11368 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
11369
11370
11371 fi
11372
11373 fi
11374
11375
11376
11377 fi
11378 case $host_os in
11379 solaris*|sco*|sysv4*) localdef="yes" ;;
11380 *) localdef="no" ;;
11381 esac
11382 # Check whether --enable-local-transport was given.
11383 if test "${enable_local_transport+set}" = set; then :
11384 enableval=$enable_local_transport; LOCALCONN=$enableval
11385 else
11386 LOCALCONN=$localdef
11387 fi
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11390 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11392 $as_echo "$LOCALCONN" >&6; }
11393 if test "$LOCALCONN" = "yes"; then
11394
11395 $as_echo "#define LOCALCONN 1" >>confdefs.h
11396
11397 fi
11398
11399
11400
11401
11402
11403
11404
11405
11406 # Check whether --with-lint was given.
11407 if test "${with_lint+set}" = set; then :
11408 withval=$with_lint; use_lint=$withval
11409 else
11410 use_lint=no
11411 fi
11412
11413
11414 # Obtain platform specific info like program name and options
11415 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11416 case $host_os in
11417 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11418 lint_name=splint
11419 lint_options="-badflag"
11420 ;;
11421 *freebsd* | *netbsd*)
11422 lint_name=lint
11423 lint_options="-u -b"
11424 ;;
11425 *solaris*)
11426 lint_name=lint
11427 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11428 ;;
11429 esac
11430
11431 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11432 if test "x$use_lint" = x"yes" ; then
11433 # Extract the first word of "$lint_name", so it can be a program name with args.
11434 set dummy $lint_name; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if ${ac_cv_path_LINT+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 case $LINT in
11441 [\\/]* | ?:[\\/]*)
11442 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11443 ;;
11444 *)
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11447 do
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11455 fi
11456 done
11457 done
11458 IFS=$as_save_IFS
11459
11460 ;;
11461 esac
11462 fi
11463 LINT=$ac_cv_path_LINT
11464 if test -n "$LINT"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11466 $as_echo "$LINT" >&6; }
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11470 fi
11471
11472
11473 if test "x$LINT" = "x"; then
11474 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11475 fi
11476 elif test "x$use_lint" = x"no" ; then
11477 if test "x$LINT" != "x"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11479 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11480 fi
11481 else
11482 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11483 fi
11484
11485 # User supplied flags override default flags
11486 if test "x$LINT_FLAGS" != "x"; then
11487 lint_options=$LINT_FLAGS
11488 fi
11489
11490 LINT_FLAGS=$lint_options
11491
11492 if test "x$LINT" != x; then
11493 LINT_TRUE=
11494 LINT_FALSE='#'
11495 else
11496 LINT_TRUE='#'
11497 LINT_FALSE=
11498 fi
11499
11500
11501
11502
11503 ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
11504
11505 cat >confcache <<\_ACEOF
11506 # This file is a shell script that caches the results of configure
11507 # tests run on this system so they can be shared between configure
11508 # scripts and configure runs, see configure's option --config-cache.
11509 # It is not useful on other systems. If it contains results you don't
11510 # want to keep, you may remove or edit it.
11511 #
11512 # config.status only pays attention to the cache file if you give it
11513 # the --recheck option to rerun configure.
11514 #
11515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11517 # following values.
11518
11519 _ACEOF
11520
11521 # The following way of writing the cache mishandles newlines in values,
11522 # but we know of no workaround that is simple, portable, and efficient.
11523 # So, we kill variables containing newlines.
11524 # Ultrix sh set writes to stderr and can't be redirected directly,
11525 # and sets the high bit in the cache file unless we assign to the vars.
11526 (
11527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11528 eval ac_val=\$$ac_var
11529 case $ac_val in #(
11530 *${as_nl}*)
11531 case $ac_var in #(
11532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11534 esac
11535 case $ac_var in #(
11536 _ | IFS | as_nl) ;; #(
11537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11538 *) { eval $ac_var=; unset $ac_var;} ;;
11539 esac ;;
11540 esac
11541 done
11542
11543 (set) 2>&1 |
11544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11545 *${as_nl}ac_space=\ *)
11546 # `set' does not quote correctly, so add quotes: double-quote
11547 # substitution turns \\\\ into \\, and sed turns \\ into \.
11548 sed -n \
11549 "s/'/'\\\\''/g;
11550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11551 ;; #(
11552 *)
11553 # `set' quotes correctly as required by POSIX, so do not add quotes.
11554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11555 ;;
11556 esac |
11557 sort
11558 ) |
11559 sed '
11560 /^ac_cv_env_/b end
11561 t clear
11562 :clear
11563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11564 t end
11565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11566 :end' >>confcache
11567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11568 if test -w "$cache_file"; then
11569 if test "x$cache_file" != "x/dev/null"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11571 $as_echo "$as_me: updating cache $cache_file" >&6;}
11572 if test ! -f "$cache_file" || test -h "$cache_file"; then
11573 cat confcache >"$cache_file"
11574 else
11575 case $cache_file in #(
11576 */* | ?:*)
11577 mv -f confcache "$cache_file"$$ &&
11578 mv -f "$cache_file"$$ "$cache_file" ;; #(
11579 *)
11580 mv -f confcache "$cache_file" ;;
11581 esac
11582 fi
11583 fi
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11586 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11587 fi
11588 fi
11589 rm -f confcache
11590
11591 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11592 # Let make expand exec_prefix.
11593 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11594
11595 DEFS=-DHAVE_CONFIG_H
11596
11597 ac_libobjs=
11598 ac_ltlibobjs=
11599 U=
11600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11601 # 1. Remove the extension, and $U if already installed.
11602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11605 # will be set to the directory where LIBOBJS objects are built.
11606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11608 done
11609 LIBOBJS=$ac_libobjs
11610
11611 LTLIBOBJS=$ac_ltlibobjs
11612
11613
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11615 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11616 if test -n "$am_sleep_pid"; then
11617 # Hide warnings about reused PIDs.
11618 wait $am_sleep_pid 2>/dev/null
11619 fi
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11621 $as_echo "done" >&6; }
11622 if test -n "$EXEEXT"; then
11623 am__EXEEXT_TRUE=
11624 am__EXEEXT_FALSE='#'
11625 else
11626 am__EXEEXT_TRUE='#'
11627 am__EXEEXT_FALSE=
11628 fi
11629
11630 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11631 as_fn_error $? "conditional \"AMDEP\" was never defined.
11632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11633 fi
11634 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11635 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11637 fi
11638 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11639 as_fn_error $? "conditional \"LINT\" was never defined.
11640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11641 fi
11642
11643 : "${CONFIG_STATUS=./config.status}"
11644 ac_write_fail=0
11645 ac_clean_files_save=$ac_clean_files
11646 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11648 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11649 as_write_fail=0
11650 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11651 #! $SHELL
11652 # Generated by $as_me.
11653 # Run this file to recreate the current configuration.
11654 # Compiler output produced by configure, useful for debugging
11655 # configure, is in config.log if it exists.
11656
11657 debug=false
11658 ac_cs_recheck=false
11659 ac_cs_silent=false
11660
11661 SHELL=\${CONFIG_SHELL-$SHELL}
11662 export SHELL
11663 _ASEOF
11664 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11665 ## -------------------- ##
11666 ## M4sh Initialization. ##
11667 ## -------------------- ##
11668
11669 # Be more Bourne compatible
11670 DUALCASE=1; export DUALCASE # for MKS sh
11671 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11672 emulate sh
11673 NULLCMD=:
11674 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11675 # is contrary to our usage. Disable this feature.
11676 alias -g '${1+"$@"}'='"$@"'
11677 setopt NO_GLOB_SUBST
11678 else
11679 case `(set -o) 2>/dev/null` in #(
11680 *posix*) :
11681 set -o posix ;; #(
11682 *) :
11683 ;;
11684 esac
11685 fi
11686
11687
11688 as_nl='
11689 '
11690 export as_nl
11691 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11692 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11693 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11694 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11695 # Prefer a ksh shell builtin over an external printf program on Solaris,
11696 # but without wasting forks for bash or zsh.
11697 if test -z "$BASH_VERSION$ZSH_VERSION" \
11698 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11699 as_echo='print -r --'
11700 as_echo_n='print -rn --'
11701 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11702 as_echo='printf %s\n'
11703 as_echo_n='printf %s'
11704 else
11705 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11706 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11707 as_echo_n='/usr/ucb/echo -n'
11708 else
11709 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11710 as_echo_n_body='eval
11711 arg=$1;
11712 case $arg in #(
11713 *"$as_nl"*)
11714 expr "X$arg" : "X\\(.*\\)$as_nl";
11715 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11716 esac;
11717 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11718 '
11719 export as_echo_n_body
11720 as_echo_n='sh -c $as_echo_n_body as_echo'
11721 fi
11722 export as_echo_body
11723 as_echo='sh -c $as_echo_body as_echo'
11724 fi
11725
11726 # The user is always right.
11727 if test "${PATH_SEPARATOR+set}" != set; then
11728 PATH_SEPARATOR=:
11729 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11730 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11731 PATH_SEPARATOR=';'
11732 }
11733 fi
11734
11735
11736 # IFS
11737 # We need space, tab and new line, in precisely that order. Quoting is
11738 # there to prevent editors from complaining about space-tab.
11739 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11740 # splitting by setting IFS to empty value.)
11741 IFS=" "" $as_nl"
11742
11743 # Find who we are. Look in the path if we contain no directory separator.
11744 as_myself=
11745 case $0 in #((
11746 *[\\/]* ) as_myself=$0 ;;
11747 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11753 done
11754 IFS=$as_save_IFS
11755
11756 ;;
11757 esac
11758 # We did not find ourselves, most probably we were run as `sh COMMAND'
11759 # in which case we are not to be found in the path.
11760 if test "x$as_myself" = x; then
11761 as_myself=$0
11762 fi
11763 if test ! -f "$as_myself"; then
11764 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11765 exit 1
11766 fi
11767
11768 # Unset variables that we do not need and which cause bugs (e.g. in
11769 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11770 # suppresses any "Segmentation fault" message there. '((' could
11771 # trigger a bug in pdksh 5.2.14.
11772 for as_var in BASH_ENV ENV MAIL MAILPATH
11773 do eval test x\${$as_var+set} = xset \
11774 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11775 done
11776 PS1='$ '
11777 PS2='> '
11778 PS4='+ '
11779
11780 # NLS nuisances.
11781 LC_ALL=C
11782 export LC_ALL
11783 LANGUAGE=C
11784 export LANGUAGE
11785
11786 # CDPATH.
11787 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11788
11789
11790 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11791 # ----------------------------------------
11792 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11793 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11794 # script with STATUS, using 1 if that was 0.
11795 as_fn_error ()
11796 {
11797 as_status=$1; test $as_status -eq 0 && as_status=1
11798 if test "$4"; then
11799 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11800 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11801 fi
11802 $as_echo "$as_me: error: $2" >&2
11803 as_fn_exit $as_status
11804 } # as_fn_error
11805
11806
11807 # as_fn_set_status STATUS
11808 # -----------------------
11809 # Set $? to STATUS, without forking.
11810 as_fn_set_status ()
11811 {
11812 return $1
11813 } # as_fn_set_status
11814
11815 # as_fn_exit STATUS
11816 # -----------------
11817 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11818 as_fn_exit ()
11819 {
11820 set +e
11821 as_fn_set_status $1
11822 exit $1
11823 } # as_fn_exit
11824
11825 # as_fn_unset VAR
11826 # ---------------
11827 # Portably unset VAR.
11828 as_fn_unset ()
11829 {
11830 { eval $1=; unset $1;}
11831 }
11832 as_unset=as_fn_unset
11833 # as_fn_append VAR VALUE
11834 # ----------------------
11835 # Append the text in VALUE to the end of the definition contained in VAR. Take
11836 # advantage of any shell optimizations that allow amortized linear growth over
11837 # repeated appends, instead of the typical quadratic growth present in naive
11838 # implementations.
11839 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11840 eval 'as_fn_append ()
11841 {
11842 eval $1+=\$2
11843 }'
11844 else
11845 as_fn_append ()
11846 {
11847 eval $1=\$$1\$2
11848 }
11849 fi # as_fn_append
11850
11851 # as_fn_arith ARG...
11852 # ------------------
11853 # Perform arithmetic evaluation on the ARGs, and store the result in the
11854 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11855 # must be portable across $(()) and expr.
11856 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11857 eval 'as_fn_arith ()
11858 {
11859 as_val=$(( $* ))
11860 }'
11861 else
11862 as_fn_arith ()
11863 {
11864 as_val=`expr "$@" || test $? -eq 1`
11865 }
11866 fi # as_fn_arith
11867
11868
11869 if expr a : '\(a\)' >/dev/null 2>&1 &&
11870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11871 as_expr=expr
11872 else
11873 as_expr=false
11874 fi
11875
11876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11877 as_basename=basename
11878 else
11879 as_basename=false
11880 fi
11881
11882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11883 as_dirname=dirname
11884 else
11885 as_dirname=false
11886 fi
11887
11888 as_me=`$as_basename -- "$0" ||
11889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11890 X"$0" : 'X\(//\)$' \| \
11891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11892 $as_echo X/"$0" |
11893 sed '/^.*\/\([^/][^/]*\)\/*$/{
11894 s//\1/
11895 q
11896 }
11897 /^X\/\(\/\/\)$/{
11898 s//\1/
11899 q
11900 }
11901 /^X\/\(\/\).*/{
11902 s//\1/
11903 q
11904 }
11905 s/.*/./; q'`
11906
11907 # Avoid depending upon Character Ranges.
11908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11911 as_cr_digits='0123456789'
11912 as_cr_alnum=$as_cr_Letters$as_cr_digits
11913
11914 ECHO_C= ECHO_N= ECHO_T=
11915 case `echo -n x` in #(((((
11916 -n*)
11917 case `echo 'xy\c'` in
11918 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11919 xy) ECHO_C='\c';;
11920 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11921 ECHO_T=' ';;
11922 esac;;
11923 *)
11924 ECHO_N='-n';;
11925 esac
11926
11927 rm -f conf$$ conf$$.exe conf$$.file
11928 if test -d conf$$.dir; then
11929 rm -f conf$$.dir/conf$$.file
11930 else
11931 rm -f conf$$.dir
11932 mkdir conf$$.dir 2>/dev/null
11933 fi
11934 if (echo >conf$$.file) 2>/dev/null; then
11935 if ln -s conf$$.file conf$$ 2>/dev/null; then
11936 as_ln_s='ln -s'
11937 # ... but there are two gotchas:
11938 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11939 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11940 # In both cases, we have to default to `cp -pR'.
11941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11942 as_ln_s='cp -pR'
11943 elif ln conf$$.file conf$$ 2>/dev/null; then
11944 as_ln_s=ln
11945 else
11946 as_ln_s='cp -pR'
11947 fi
11948 else
11949 as_ln_s='cp -pR'
11950 fi
11951 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11952 rmdir conf$$.dir 2>/dev/null
11953
11954
11955 # as_fn_mkdir_p
11956 # -------------
11957 # Create "$as_dir" as a directory, including parents if necessary.
11958 as_fn_mkdir_p ()
11959 {
11960
11961 case $as_dir in #(
11962 -*) as_dir=./$as_dir;;
11963 esac
11964 test -d "$as_dir" || eval $as_mkdir_p || {
11965 as_dirs=
11966 while :; do
11967 case $as_dir in #(
11968 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11969 *) as_qdir=$as_dir;;
11970 esac
11971 as_dirs="'$as_qdir' $as_dirs"
11972 as_dir=`$as_dirname -- "$as_dir" ||
11973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11974 X"$as_dir" : 'X\(//\)[^/]' \| \
11975 X"$as_dir" : 'X\(//\)$' \| \
11976 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11977 $as_echo X"$as_dir" |
11978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11979 s//\1/
11980 q
11981 }
11982 /^X\(\/\/\)[^/].*/{
11983 s//\1/
11984 q
11985 }
11986 /^X\(\/\/\)$/{
11987 s//\1/
11988 q
11989 }
11990 /^X\(\/\).*/{
11991 s//\1/
11992 q
11993 }
11994 s/.*/./; q'`
11995 test -d "$as_dir" && break
11996 done
11997 test -z "$as_dirs" || eval "mkdir $as_dirs"
11998 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11999
12000
12001 } # as_fn_mkdir_p
12002 if mkdir -p . 2>/dev/null; then
12003 as_mkdir_p='mkdir -p "$as_dir"'
12004 else
12005 test -d ./-p && rmdir ./-p
12006 as_mkdir_p=false
12007 fi
12008
12009
12010 # as_fn_executable_p FILE
12011 # -----------------------
12012 # Test if FILE is an executable regular file.
12013 as_fn_executable_p ()
12014 {
12015 test -f "$1" && test -x "$1"
12016 } # as_fn_executable_p
12017 as_test_x='test -x'
12018 as_executable_p=as_fn_executable_p
12019
12020 # Sed expression to map a string onto a valid CPP name.
12021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12022
12023 # Sed expression to map a string onto a valid variable name.
12024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12025
12026
12027 exec 6>&1
12028 ## ----------------------------------- ##
12029 ## Main body of $CONFIG_STATUS script. ##
12030 ## ----------------------------------- ##
12031 _ASEOF
12032 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12033
12034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12035 # Save the log message, to keep $0 and so on meaningful, and to
12036 # report actual input values of CONFIG_FILES etc. instead of their
12037 # values after options handling.
12038 ac_log="
12039 This file was extended by xauth $as_me 1.0.10, which was
12040 generated by GNU Autoconf 2.69. Invocation command line was
12041
12042 CONFIG_FILES = $CONFIG_FILES
12043 CONFIG_HEADERS = $CONFIG_HEADERS
12044 CONFIG_LINKS = $CONFIG_LINKS
12045 CONFIG_COMMANDS = $CONFIG_COMMANDS
12046 $ $0 $@
12047
12048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12049 "
12050
12051 _ACEOF
12052
12053 case $ac_config_files in *"
12054 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12055 esac
12056
12057 case $ac_config_headers in *"
12058 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12059 esac
12060
12061
12062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12063 # Files that config.status was made for.
12064 config_files="$ac_config_files"
12065 config_headers="$ac_config_headers"
12066 config_commands="$ac_config_commands"
12067
12068 _ACEOF
12069
12070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12071 ac_cs_usage="\
12072 \`$as_me' instantiates files and other configuration actions
12073 from templates according to the current configuration. Unless the files
12074 and actions are specified as TAGs, all are instantiated by default.
12075
12076 Usage: $0 [OPTION]... [TAG]...
12077
12078 -h, --help print this help, then exit
12079 -V, --version print version number and configuration settings, then exit
12080 --config print configuration, then exit
12081 -q, --quiet, --silent
12082 do not print progress messages
12083 -d, --debug don't remove temporary files
12084 --recheck update $as_me by reconfiguring in the same conditions
12085 --file=FILE[:TEMPLATE]
12086 instantiate the configuration file FILE
12087 --header=FILE[:TEMPLATE]
12088 instantiate the configuration header FILE
12089
12090 Configuration files:
12091 $config_files
12092
12093 Configuration headers:
12094 $config_headers
12095
12096 Configuration commands:
12097 $config_commands
12098
12099 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12100
12101 _ACEOF
12102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12103 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12104 ac_cs_version="\\
12105 xauth config.status 1.0.10
12106 configured by $0, generated by GNU Autoconf 2.69,
12107 with options \\"\$ac_cs_config\\"
12108
12109 Copyright (C) 2012 Free Software Foundation, Inc.
12110 This config.status script is free software; the Free Software Foundation
12111 gives unlimited permission to copy, distribute and modify it."
12112
12113 ac_pwd='$ac_pwd'
12114 srcdir='$srcdir'
12115 INSTALL='$INSTALL'
12116 MKDIR_P='$MKDIR_P'
12117 AWK='$AWK'
12118 test -n "\$AWK" || AWK=awk
12119 _ACEOF
12120
12121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12122 # The default lists apply if the user does not specify any file.
12123 ac_need_defaults=:
12124 while test $# != 0
12125 do
12126 case $1 in
12127 --*=?*)
12128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12130 ac_shift=:
12131 ;;
12132 --*=)
12133 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12134 ac_optarg=
12135 ac_shift=:
12136 ;;
12137 *)
12138 ac_option=$1
12139 ac_optarg=$2
12140 ac_shift=shift
12141 ;;
12142 esac
12143
12144 case $ac_option in
12145 # Handling of the options.
12146 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12147 ac_cs_recheck=: ;;
12148 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12149 $as_echo "$ac_cs_version"; exit ;;
12150 --config | --confi | --conf | --con | --co | --c )
12151 $as_echo "$ac_cs_config"; exit ;;
12152 --debug | --debu | --deb | --de | --d | -d )
12153 debug=: ;;
12154 --file | --fil | --fi | --f )
12155 $ac_shift
12156 case $ac_optarg in
12157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12158 '') as_fn_error $? "missing file argument" ;;
12159 esac
12160 as_fn_append CONFIG_FILES " '$ac_optarg'"
12161 ac_need_defaults=false;;
12162 --header | --heade | --head | --hea )
12163 $ac_shift
12164 case $ac_optarg in
12165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12166 esac
12167 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12168 ac_need_defaults=false;;
12169 --he | --h)
12170 # Conflict between --help and --header
12171 as_fn_error $? "ambiguous option: \`$1'
12172 Try \`$0 --help' for more information.";;
12173 --help | --hel | -h )
12174 $as_echo "$ac_cs_usage"; exit ;;
12175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12177 ac_cs_silent=: ;;
12178
12179 # This is an error.
12180 -*) as_fn_error $? "unrecognized option: \`$1'
12181 Try \`$0 --help' for more information." ;;
12182
12183 *) as_fn_append ac_config_targets " $1"
12184 ac_need_defaults=false ;;
12185
12186 esac
12187 shift
12188 done
12189
12190 ac_configure_extra_args=
12191
12192 if $ac_cs_silent; then
12193 exec 6>/dev/null
12194 ac_configure_extra_args="$ac_configure_extra_args --silent"
12195 fi
12196
12197 _ACEOF
12198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12199 if \$ac_cs_recheck; then
12200 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12201 shift
12202 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12203 CONFIG_SHELL='$SHELL'
12204 export CONFIG_SHELL
12205 exec "\$@"
12206 fi
12207
12208 _ACEOF
12209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12210 exec 5>>config.log
12211 {
12212 echo
12213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12214 ## Running $as_me. ##
12215 _ASBOX
12216 $as_echo "$ac_log"
12217 } >&5
12218
12219 _ACEOF
12220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12221 #
12222 # INIT-COMMANDS
12223 #
12224 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12225
12226 _ACEOF
12227
12228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12229
12230 # Handling of arguments.
12231 for ac_config_target in $ac_config_targets
12232 do
12233 case $ac_config_target in
12234 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12235 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12237 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12238 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12239
12240 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12241 esac
12242 done
12243
12244
12245 # If the user did not use the arguments to specify the items to instantiate,
12246 # then the envvar interface is used. Set only those that are not.
12247 # We use the long form for the default assignment because of an extremely
12248 # bizarre bug on SunOS 4.1.3.
12249 if $ac_need_defaults; then
12250 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12251 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12252 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12253 fi
12254
12255 # Have a temporary directory for convenience. Make it in the build tree
12256 # simply because there is no reason against having it here, and in addition,
12257 # creating and moving files from /tmp can sometimes cause problems.
12258 # Hook for its removal unless debugging.
12259 # Note that there is a small window in which the directory will not be cleaned:
12260 # after its creation but before its name has been assigned to `$tmp'.
12261 $debug ||
12262 {
12263 tmp= ac_tmp=
12264 trap 'exit_status=$?
12265 : "${ac_tmp:=$tmp}"
12266 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12267 ' 0
12268 trap 'as_fn_exit 1' 1 2 13 15
12269 }
12270 # Create a (secure) tmp directory for tmp files.
12271
12272 {
12273 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12274 test -d "$tmp"
12275 } ||
12276 {
12277 tmp=./conf$$-$RANDOM
12278 (umask 077 && mkdir "$tmp")
12279 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12280 ac_tmp=$tmp
12281
12282 # Set up the scripts for CONFIG_FILES section.
12283 # No need to generate them if there are no CONFIG_FILES.
12284 # This happens for instance with `./config.status config.h'.
12285 if test -n "$CONFIG_FILES"; then
12286
12287
12288 ac_cr=`echo X | tr X '\015'`
12289 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12290 # But we know of no other shell where ac_cr would be empty at this
12291 # point, so we can use a bashism as a fallback.
12292 if test "x$ac_cr" = x; then
12293 eval ac_cr=\$\'\\r\'
12294 fi
12295 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12296 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12297 ac_cs_awk_cr='\\r'
12298 else
12299 ac_cs_awk_cr=$ac_cr
12300 fi
12301
12302 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12303 _ACEOF
12304
12305
12306 {
12307 echo "cat >conf$$subs.awk <<_ACEOF" &&
12308 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12309 echo "_ACEOF"
12310 } >conf$$subs.sh ||
12311 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12312 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12313 ac_delim='%!_!# '
12314 for ac_last_try in false false false false false :; do
12315 . ./conf$$subs.sh ||
12316 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12317
12318 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12319 if test $ac_delim_n = $ac_delim_num; then
12320 break
12321 elif $ac_last_try; then
12322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12323 else
12324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12325 fi
12326 done
12327 rm -f conf$$subs.sh
12328
12329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12330 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12331 _ACEOF
12332 sed -n '
12333 h
12334 s/^/S["/; s/!.*/"]=/
12335 p
12336 g
12337 s/^[^!]*!//
12338 :repl
12339 t repl
12340 s/'"$ac_delim"'$//
12341 t delim
12342 :nl
12343 h
12344 s/\(.\{148\}\)..*/\1/
12345 t more1
12346 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12347 p
12348 n
12349 b repl
12350 :more1
12351 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12352 p
12353 g
12354 s/.\{148\}//
12355 t nl
12356 :delim
12357 h
12358 s/\(.\{148\}\)..*/\1/
12359 t more2
12360 s/["\\]/\\&/g; s/^/"/; s/$/"/
12361 p
12362 b
12363 :more2
12364 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12365 p
12366 g
12367 s/.\{148\}//
12368 t delim
12369 ' <conf$$subs.awk | sed '
12370 /^[^""]/{
12371 N
12372 s/\n//
12373 }
12374 ' >>$CONFIG_STATUS || ac_write_fail=1
12375 rm -f conf$$subs.awk
12376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12377 _ACAWK
12378 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12379 for (key in S) S_is_set[key] = 1
12380 FS = ""
12381
12382 }
12383 {
12384 line = $ 0
12385 nfields = split(line, field, "@")
12386 substed = 0
12387 len = length(field[1])
12388 for (i = 2; i < nfields; i++) {
12389 key = field[i]
12390 keylen = length(key)
12391 if (S_is_set[key]) {
12392 value = S[key]
12393 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12394 len += length(value) + length(field[++i])
12395 substed = 1
12396 } else
12397 len += 1 + keylen
12398 }
12399
12400 print line
12401 }
12402
12403 _ACAWK
12404 _ACEOF
12405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12406 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12407 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12408 else
12409 cat
12410 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12411 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12412 _ACEOF
12413
12414 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12415 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12416 # trailing colons and then remove the whole line if VPATH becomes empty
12417 # (actually we leave an empty line to preserve line numbers).
12418 if test "x$srcdir" = x.; then
12419 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12420 h
12421 s///
12422 s/^/:/
12423 s/[ ]*$/:/
12424 s/:\$(srcdir):/:/g
12425 s/:\${srcdir}:/:/g
12426 s/:@srcdir@:/:/g
12427 s/^:*//
12428 s/:*$//
12429 x
12430 s/\(=[ ]*\).*/\1/
12431 G
12432 s/\n//
12433 s/^[^=]*=[ ]*$//
12434 }'
12435 fi
12436
12437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12438 fi # test -n "$CONFIG_FILES"
12439
12440 # Set up the scripts for CONFIG_HEADERS section.
12441 # No need to generate them if there are no CONFIG_HEADERS.
12442 # This happens for instance with `./config.status Makefile'.
12443 if test -n "$CONFIG_HEADERS"; then
12444 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12445 BEGIN {
12446 _ACEOF
12447
12448 # Transform confdefs.h into an awk script `defines.awk', embedded as
12449 # here-document in config.status, that substitutes the proper values into
12450 # config.h.in to produce config.h.
12451
12452 # Create a delimiter string that does not exist in confdefs.h, to ease
12453 # handling of long lines.
12454 ac_delim='%!_!# '
12455 for ac_last_try in false false :; do
12456 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12457 if test -z "$ac_tt"; then
12458 break
12459 elif $ac_last_try; then
12460 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12461 else
12462 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12463 fi
12464 done
12465
12466 # For the awk script, D is an array of macro values keyed by name,
12467 # likewise P contains macro parameters if any. Preserve backslash
12468 # newline sequences.
12469
12470 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12471 sed -n '
12472 s/.\{148\}/&'"$ac_delim"'/g
12473 t rset
12474 :rset
12475 s/^[ ]*#[ ]*define[ ][ ]*/ /
12476 t def
12477 d
12478 :def
12479 s/\\$//
12480 t bsnl
12481 s/["\\]/\\&/g
12482 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12483 D["\1"]=" \3"/p
12484 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12485 d
12486 :bsnl
12487 s/["\\]/\\&/g
12488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12489 D["\1"]=" \3\\\\\\n"\\/p
12490 t cont
12491 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12492 t cont
12493 d
12494 :cont
12495 n
12496 s/.\{148\}/&'"$ac_delim"'/g
12497 t clear
12498 :clear
12499 s/\\$//
12500 t bsnlc
12501 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12502 d
12503 :bsnlc
12504 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12505 b cont
12506 ' <confdefs.h | sed '
12507 s/'"$ac_delim"'/"\\\
12508 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12509
12510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12511 for (key in D) D_is_set[key] = 1
12512 FS = ""
12513 }
12514 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12515 line = \$ 0
12516 split(line, arg, " ")
12517 if (arg[1] == "#") {
12518 defundef = arg[2]
12519 mac1 = arg[3]
12520 } else {
12521 defundef = substr(arg[1], 2)
12522 mac1 = arg[2]
12523 }
12524 split(mac1, mac2, "(") #)
12525 macro = mac2[1]
12526 prefix = substr(line, 1, index(line, defundef) - 1)
12527 if (D_is_set[macro]) {
12528 # Preserve the white space surrounding the "#".
12529 print prefix "define", macro P[macro] D[macro]
12530 next
12531 } else {
12532 # Replace #undef with comments. This is necessary, for example,
12533 # in the case of _POSIX_SOURCE, which is predefined and required
12534 # on some systems where configure will not decide to define it.
12535 if (defundef == "undef") {
12536 print "/*", prefix defundef, macro, "*/"
12537 next
12538 }
12539 }
12540 }
12541 { print }
12542 _ACAWK
12543 _ACEOF
12544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12545 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12546 fi # test -n "$CONFIG_HEADERS"
12547
12548
12549 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12550 shift
12551 for ac_tag
12552 do
12553 case $ac_tag in
12554 :[FHLC]) ac_mode=$ac_tag; continue;;
12555 esac
12556 case $ac_mode$ac_tag in
12557 :[FHL]*:*);;
12558 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12559 :[FH]-) ac_tag=-:-;;
12560 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12561 esac
12562 ac_save_IFS=$IFS
12563 IFS=:
12564 set x $ac_tag
12565 IFS=$ac_save_IFS
12566 shift
12567 ac_file=$1
12568 shift
12569
12570 case $ac_mode in
12571 :L) ac_source=$1;;
12572 :[FH])
12573 ac_file_inputs=
12574 for ac_f
12575 do
12576 case $ac_f in
12577 -) ac_f="$ac_tmp/stdin";;
12578 *) # Look for the file first in the build tree, then in the source tree
12579 # (if the path is not absolute). The absolute path cannot be DOS-style,
12580 # because $ac_f cannot contain `:'.
12581 test -f "$ac_f" ||
12582 case $ac_f in
12583 [\\/$]*) false;;
12584 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12585 esac ||
12586 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12587 esac
12588 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12589 as_fn_append ac_file_inputs " '$ac_f'"
12590 done
12591
12592 # Let's still pretend it is `configure' which instantiates (i.e., don't
12593 # use $as_me), people would be surprised to read:
12594 # /* config.h. Generated by config.status. */
12595 configure_input='Generated from '`
12596 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12597 `' by configure.'
12598 if test x"$ac_file" != x-; then
12599 configure_input="$ac_file. $configure_input"
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12601 $as_echo "$as_me: creating $ac_file" >&6;}
12602 fi
12603 # Neutralize special characters interpreted by sed in replacement strings.
12604 case $configure_input in #(
12605 *\&* | *\|* | *\\* )
12606 ac_sed_conf_input=`$as_echo "$configure_input" |
12607 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12608 *) ac_sed_conf_input=$configure_input;;
12609 esac
12610
12611 case $ac_tag in
12612 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12613 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12614 esac
12615 ;;
12616 esac
12617
12618 ac_dir=`$as_dirname -- "$ac_file" ||
12619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12620 X"$ac_file" : 'X\(//\)[^/]' \| \
12621 X"$ac_file" : 'X\(//\)$' \| \
12622 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12623 $as_echo X"$ac_file" |
12624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12625 s//\1/
12626 q
12627 }
12628 /^X\(\/\/\)[^/].*/{
12629 s//\1/
12630 q
12631 }
12632 /^X\(\/\/\)$/{
12633 s//\1/
12634 q
12635 }
12636 /^X\(\/\).*/{
12637 s//\1/
12638 q
12639 }
12640 s/.*/./; q'`
12641 as_dir="$ac_dir"; as_fn_mkdir_p
12642 ac_builddir=.
12643
12644 case "$ac_dir" in
12645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12646 *)
12647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12648 # A ".." for each directory in $ac_dir_suffix.
12649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12650 case $ac_top_builddir_sub in
12651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12653 esac ;;
12654 esac
12655 ac_abs_top_builddir=$ac_pwd
12656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12657 # for backward compatibility:
12658 ac_top_builddir=$ac_top_build_prefix
12659
12660 case $srcdir in
12661 .) # We are building in place.
12662 ac_srcdir=.
12663 ac_top_srcdir=$ac_top_builddir_sub
12664 ac_abs_top_srcdir=$ac_pwd ;;
12665 [\\/]* | ?:[\\/]* ) # Absolute name.
12666 ac_srcdir=$srcdir$ac_dir_suffix;
12667 ac_top_srcdir=$srcdir
12668 ac_abs_top_srcdir=$srcdir ;;
12669 *) # Relative name.
12670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12671 ac_top_srcdir=$ac_top_build_prefix$srcdir
12672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12673 esac
12674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12675
12676
12677 case $ac_mode in
12678 :F)
12679 #
12680 # CONFIG_FILE
12681 #
12682
12683 case $INSTALL in
12684 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12685 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12686 esac
12687 ac_MKDIR_P=$MKDIR_P
12688 case $MKDIR_P in
12689 [\\/$]* | ?:[\\/]* ) ;;
12690 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12691 esac
12692 _ACEOF
12693
12694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12695 # If the template does not know about datarootdir, expand it.
12696 # FIXME: This hack should be removed a few years after 2.60.
12697 ac_datarootdir_hack=; ac_datarootdir_seen=
12698 ac_sed_dataroot='
12699 /datarootdir/ {
12700 p
12701 q
12702 }
12703 /@datadir@/p
12704 /@docdir@/p
12705 /@infodir@/p
12706 /@localedir@/p
12707 /@mandir@/p'
12708 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12709 *datarootdir*) ac_datarootdir_seen=yes;;
12710 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12712 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12713 _ACEOF
12714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715 ac_datarootdir_hack='
12716 s&@datadir@&$datadir&g
12717 s&@docdir@&$docdir&g
12718 s&@infodir@&$infodir&g
12719 s&@localedir@&$localedir&g
12720 s&@mandir@&$mandir&g
12721 s&\\\${datarootdir}&$datarootdir&g' ;;
12722 esac
12723 _ACEOF
12724
12725 # Neutralize VPATH when `$srcdir' = `.'.
12726 # Shell code in configure.ac might set extrasub.
12727 # FIXME: do we really want to maintain this feature?
12728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12729 ac_sed_extra="$ac_vpsub
12730 $extrasub
12731 _ACEOF
12732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12733 :t
12734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12735 s|@configure_input@|$ac_sed_conf_input|;t t
12736 s&@top_builddir@&$ac_top_builddir_sub&;t t
12737 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12738 s&@srcdir@&$ac_srcdir&;t t
12739 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12740 s&@top_srcdir@&$ac_top_srcdir&;t t
12741 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12742 s&@builddir@&$ac_builddir&;t t
12743 s&@abs_builddir@&$ac_abs_builddir&;t t
12744 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12745 s&@INSTALL@&$ac_INSTALL&;t t
12746 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12747 $ac_datarootdir_hack
12748 "
12749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12750 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12751
12752 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12753 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12754 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12755 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12757 which seems to be undefined. Please make sure it is defined" >&5
12758 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12759 which seems to be undefined. Please make sure it is defined" >&2;}
12760
12761 rm -f "$ac_tmp/stdin"
12762 case $ac_file in
12763 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12764 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12765 esac \
12766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12767 ;;
12768 :H)
12769 #
12770 # CONFIG_HEADER
12771 #
12772 if test x"$ac_file" != x-; then
12773 {
12774 $as_echo "/* $configure_input */" \
12775 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12776 } >"$ac_tmp/config.h" \
12777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12778 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12780 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12781 else
12782 rm -f "$ac_file"
12783 mv "$ac_tmp/config.h" "$ac_file" \
12784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12785 fi
12786 else
12787 $as_echo "/* $configure_input */" \
12788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12789 || as_fn_error $? "could not create -" "$LINENO" 5
12790 fi
12791 # Compute "$ac_file"'s index in $config_headers.
12792 _am_arg="$ac_file"
12793 _am_stamp_count=1
12794 for _am_header in $config_headers :; do
12795 case $_am_header in
12796 $_am_arg | $_am_arg:* )
12797 break ;;
12798 * )
12799 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12800 esac
12801 done
12802 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12803 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12804 X"$_am_arg" : 'X\(//\)[^/]' \| \
12805 X"$_am_arg" : 'X\(//\)$' \| \
12806 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12807 $as_echo X"$_am_arg" |
12808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12809 s//\1/
12810 q
12811 }
12812 /^X\(\/\/\)[^/].*/{
12813 s//\1/
12814 q
12815 }
12816 /^X\(\/\/\)$/{
12817 s//\1/
12818 q
12819 }
12820 /^X\(\/\).*/{
12821 s//\1/
12822 q
12823 }
12824 s/.*/./; q'`/stamp-h$_am_stamp_count
12825 ;;
12826
12827 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12828 $as_echo "$as_me: executing $ac_file commands" >&6;}
12829 ;;
12830 esac
12831
12832
12833 case $ac_file$ac_mode in
12834 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12835 # Older Autoconf quotes --file arguments for eval, but not when files
12836 # are listed without --file. Let's play safe and only enable the eval
12837 # if we detect the quoting.
12838 case $CONFIG_FILES in
12839 *\'*) eval set x "$CONFIG_FILES" ;;
12840 *) set x $CONFIG_FILES ;;
12841 esac
12842 shift
12843 for mf
12844 do
12845 # Strip MF so we end up with the name of the file.
12846 mf=`echo "$mf" | sed -e 's/:.*$//'`
12847 # Check whether this is an Automake generated Makefile or not.
12848 # We used to match only the files named 'Makefile.in', but
12849 # some people rename them; so instead we look at the file content.
12850 # Grep'ing the first line is not enough: some people post-process
12851 # each Makefile.in and add a new line on top of each file to say so.
12852 # Grep'ing the whole file is not good either: AIX grep has a line
12853 # limit of 2048, but all sed's we know have understand at least 4000.
12854 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12855 dirpart=`$as_dirname -- "$mf" ||
12856 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12857 X"$mf" : 'X\(//\)[^/]' \| \
12858 X"$mf" : 'X\(//\)$' \| \
12859 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12860 $as_echo X"$mf" |
12861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12862 s//\1/
12863 q
12864 }
12865 /^X\(\/\/\)[^/].*/{
12866 s//\1/
12867 q
12868 }
12869 /^X\(\/\/\)$/{
12870 s//\1/
12871 q
12872 }
12873 /^X\(\/\).*/{
12874 s//\1/
12875 q
12876 }
12877 s/.*/./; q'`
12878 else
12879 continue
12880 fi
12881 # Extract the definition of DEPDIR, am__include, and am__quote
12882 # from the Makefile without running 'make'.
12883 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12884 test -z "$DEPDIR" && continue
12885 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12886 test -z "$am__include" && continue
12887 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12888 # Find all dependency output files, they are included files with
12889 # $(DEPDIR) in their names. We invoke sed twice because it is the
12890 # simplest approach to changing $(DEPDIR) to its actual value in the
12891 # expansion.
12892 for file in `sed -n "
12893 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12894 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12895 # Make sure the directory exists.
12896 test -f "$dirpart/$file" && continue
12897 fdir=`$as_dirname -- "$file" ||
12898 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12899 X"$file" : 'X\(//\)[^/]' \| \
12900 X"$file" : 'X\(//\)$' \| \
12901 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12902 $as_echo X"$file" |
12903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12904 s//\1/
12905 q
12906 }
12907 /^X\(\/\/\)[^/].*/{
12908 s//\1/
12909 q
12910 }
12911 /^X\(\/\/\)$/{
12912 s//\1/
12913 q
12914 }
12915 /^X\(\/\).*/{
12916 s//\1/
12917 q
12918 }
12919 s/.*/./; q'`
12920 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12921 # echo "creating $dirpart/$file"
12922 echo '# dummy' > "$dirpart/$file"
12923 done
12924 done
12925 }
12926 ;;
12927
12928 esac
12929 done # for ac_tag
12930
12931
12932 as_fn_exit 0
12933 _ACEOF
12934 ac_clean_files=$ac_clean_files_save
12935
12936 test $ac_write_fail = 0 ||
12937 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12938
12939
12940 # configure is writing to config.log, and then calls config.status.
12941 # config.status does its own redirection, appending to config.log.
12942 # Unfortunately, on DOS this fails, as config.log is still kept open
12943 # by configure, so config.status won't be able to write to it; its
12944 # output is simply discarded. So we exec the FD to /dev/null,
12945 # effectively closing config.log, so it can be properly (re)opened and
12946 # appended to by config.status. When coming back to configure, we
12947 # need to make the FD available again.
12948 if test "$no_create" != yes; then
12949 ac_cs_success=:
12950 ac_config_status_args=
12951 test "$silent" = yes &&
12952 ac_config_status_args="$ac_config_status_args --quiet"
12953 exec 5>/dev/null
12954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12955 exec 5>>config.log
12956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12957 # would make configure fail if this is the last instruction.
12958 $ac_cs_success || as_fn_exit 1
12959 fi
12960 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12962 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12963 fi
12964
12965