configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xauth 1.0.9.
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.9'
585 PACKAGE_STRING='xauth 1.0.9'
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 MAINT
687 MAINTAINER_MODE_FALSE
688 MAINTAINER_MODE_TRUE
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_silent_rules
758 enable_maintainer_mode
759 enable_dependency_tracking
760 enable_selective_werror
761 enable_strict_compilation
762 enable_unix_transport
763 enable_tcp_transport
764 enable_ipv6
765 enable_local_transport
766 with_lint
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP
777 PKG_CONFIG
778 PKG_CONFIG_PATH
779 PKG_CONFIG_LIBDIR
780 XAUTH_CFLAGS
781 XAUTH_LIBS
782 LINT
783 LINT_FLAGS'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
807
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
833
834 ac_prev=
835 ac_dashdash=
836 for ac_option
837 do
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
843 fi
844
845 case $ac_option in
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures xauth 1.0.9 to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/xauth]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1378
1379 cat <<\_ACEOF
1380
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of xauth 1.0.9:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-silent-rules less verbose build output (undo: "make V=1")
1403 --disable-silent-rules verbose build output (undo: "make V=0")
1404 --enable-maintainer-mode
1405 enable make rules and dependencies not useful (and
1406 sometimes confusing) to the casual installer
1407 --enable-dependency-tracking
1408 do not reject slow dependency extractors
1409 --disable-dependency-tracking
1410 speeds up one-time build
1411 --disable-selective-werror
1412 Turn off selective compiler errors. (default:
1413 enabled)
1414 --enable-strict-compilation
1415 Enable all warnings from compiler and make them
1416 errors (default: disabled)
1417 --enable-unix-transport Enable UNIX domain socket transport
1418 --enable-tcp-transport Enable TCP socket transport
1419 --enable-ipv6 Enable IPv6 support
1420 --enable-local-transport
1421 Enable os-specific local transport
1422
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-lint Use a lint-style source code checker (default:
1427 disabled)
1428
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1438 PKG_CONFIG path to pkg-config utility
1439 PKG_CONFIG_PATH
1440 directories to add to pkg-config's search path
1441 PKG_CONFIG_LIBDIR
1442 path overriding pkg-config's built-in search path
1443 XAUTH_CFLAGS
1444 C compiler flags for XAUTH, overriding pkg-config
1445 XAUTH_LIBS linker flags for XAUTH, overriding pkg-config
1446 LINT Path to a lint-style command
1447 LINT_FLAGS Flags for the lint-style command
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 xauth configure 1.0.9
1516 generated by GNU Autoconf 2.69
1517
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_cpp ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } > conftest.i && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_cpp
1603
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1608 # accordingly.
1609 ac_fn_c_check_header_mongrel ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if eval \${$3+:} false; then :
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616 $as_echo_n "(cached) " >&6
1617 fi
1618 eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 else
1622 # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_header_compiler=yes
1632 else
1633 ac_header_compiler=no
1634 fi
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1638
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647 ac_header_preproc=yes
1648 else
1649 ac_header_preproc=no
1650 fi
1651 rm -f conftest.err conftest.i conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1654
1655 # So? What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657 yes:no: )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 ;;
1663 no:yes:* )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ( $as_echo "## ---------------------------------------------------------------------- ##
1675 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1676 ## ---------------------------------------------------------------------- ##"
1677 ) | sed "s/^/$as_me: WARNING: /" >&2
1678 ;;
1679 esac
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1684 else
1685 eval "$3=\$ac_header_compiler"
1686 fi
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693 } # ac_fn_c_check_header_mongrel
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 eval "$3=yes"
1756 else
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1769 # ---------------------------------------------
1770 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1771 # accordingly.
1772 ac_fn_c_check_decl ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 as_decl_name=`echo $2|sed 's/ *(.*//'`
1776 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1778 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 int
1786 main ()
1787 {
1788 #ifndef $as_decl_name
1789 #ifdef __cplusplus
1790 (void) $as_decl_use;
1791 #else
1792 (void) $as_decl_name;
1793 #endif
1794 #endif
1795
1796 ;
1797 return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_decl
1813
1814 # ac_fn_c_try_link LINENO
1815 # -----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_link ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext conftest$ac_exeext
1821 if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest$ac_exeext && {
1840 test "$cross_compiling" = yes ||
1841 test -x conftest$ac_exeext
1842 }; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849 fi
1850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852 # interfere with the next link command; also delete a directory that is
1853 # left behind by Apple's compiler. We do this before executing the actions.
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_link
1859
1860 # ac_fn_c_check_func LINENO FUNC VAR
1861 # ----------------------------------
1862 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1863 ac_fn_c_check_func ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1873 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1875 #define $2 innocuous_$2
1876
1877 /* System header to define __stub macros and hopefully few prototypes,
1878 which can conflict with char $2 (); below.
1879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1880 <limits.h> exists even on freestanding compilers. */
1881
1882 #ifdef __STDC__
1883 # include <limits.h>
1884 #else
1885 # include <assert.h>
1886 #endif
1887
1888 #undef $2
1889
1890 /* Override any GCC internal prototype to avoid an error.
1891 Use char because int might match the return type of a GCC
1892 builtin and then its argument prototype would still apply. */
1893 #ifdef __cplusplus
1894 extern "C"
1895 #endif
1896 char $2 ();
1897 /* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900 #if defined __stub_$2 || defined __stub___$2
1901 choke me
1902 #endif
1903
1904 int
1905 main ()
1906 {
1907 return $2 ();
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_link "$LINENO"; then :
1913 eval "$3=yes"
1914 else
1915 eval "$3=no"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext \
1918 conftest$ac_exeext conftest.$ac_ext
1919 fi
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925 } # ac_fn_c_check_func
1926
1927 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1928 # ----------------------------------------------------
1929 # Tries to find if the field MEMBER exists in type AGGR, after including
1930 # INCLUDES, setting cache variable VAR accordingly.
1931 ac_fn_c_check_member ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1935 $as_echo_n "checking for $2.$3... " >&6; }
1936 if eval \${$4+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $5
1942 int
1943 main ()
1944 {
1945 static $2 ac_aggr;
1946 if (ac_aggr.$3)
1947 return 0;
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 eval "$4=yes"
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $5
1958 int
1959 main ()
1960 {
1961 static $2 ac_aggr;
1962 if (sizeof ac_aggr.$3)
1963 return 0;
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 eval "$4=yes"
1970 else
1971 eval "$4=no"
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$4
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_member
1983
1984 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1985 # -------------------------------------------
1986 # Tests whether TYPE exists after having included INCLUDES, setting cache
1987 # variable VAR accordingly.
1988 ac_fn_c_check_type ()
1989 {
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 eval "$3=no"
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 int
2001 main ()
2002 {
2003 if (sizeof ($2))
2004 return 0;
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main ()
2015 {
2016 if (sizeof (($2)))
2017 return 0;
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023
2024 else
2025 eval "$3=yes"
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036 } # ac_fn_c_check_type
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by xauth $as_me 1.0.9, which was
2042 generated by GNU Autoconf 2.69. Invocation command line was
2043
2044 $ $0 $@
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062
2063 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2064 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2067 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 $as_echo "PATH: $as_dir"
2079 done
2080 IFS=$as_save_IFS
2081
2082 } >&5
2083
2084 cat >&5 <<_ACEOF
2085
2086
2087 ## ----------- ##
2088 ## Core tests. ##
2089 ## ----------- ##
2090
2091 _ACEOF
2092
2093
2094 # Keep a trace of the command line.
2095 # Strip out --no-create and --no-recursion so they do not pile up.
2096 # Strip out --silent because we don't want to record it for future runs.
2097 # Also quote any args containing shell meta-characters.
2098 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_configure_args=
2100 ac_configure_args0=
2101 ac_configure_args1=
2102 ac_must_keep_next=false
2103 for ac_pass in 1 2
2104 do
2105 for ac_arg
2106 do
2107 case $ac_arg in
2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110 | -silent | --silent | --silen | --sile | --sil)
2111 continue ;;
2112 *\'*)
2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 esac
2115 case $ac_pass in
2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117 2)
2118 as_fn_append ac_configure_args1 " '$ac_arg'"
2119 if test $ac_must_keep_next = true; then
2120 ac_must_keep_next=false # Got value, back to normal.
2121 else
2122 case $ac_arg in
2123 *=* | --config-cache | -C | -disable-* | --disable-* \
2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126 | -with-* | --with-* | -without-* | --without-* | --x)
2127 case "$ac_configure_args0 " in
2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 esac
2130 ;;
2131 -* ) ac_must_keep_next=true ;;
2132 esac
2133 fi
2134 as_fn_append ac_configure_args " '$ac_arg'"
2135 ;;
2136 esac
2137 done
2138 done
2139 { ac_configure_args0=; unset ac_configure_args0;}
2140 { ac_configure_args1=; unset ac_configure_args1;}
2141
2142 # When interrupted or exit'd, cleanup temporary files, and complete
2143 # config.log. We remove comments because anyway the quotes in there
2144 # would cause problems or look ugly.
2145 # WARNING: Use '\'' to represent an apostrophe within the trap.
2146 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147 trap 'exit_status=$?
2148 # Save into config.log some information that might help in debugging.
2149 {
2150 echo
2151
2152 $as_echo "## ---------------- ##
2153 ## Cache variables. ##
2154 ## ---------------- ##"
2155 echo
2156 # The following way of writing the cache mishandles newlines in values,
2157 (
2158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2159 eval ac_val=\$$ac_var
2160 case $ac_val in #(
2161 *${as_nl}*)
2162 case $ac_var in #(
2163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165 esac
2166 case $ac_var in #(
2167 _ | IFS | as_nl) ;; #(
2168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169 *) { eval $ac_var=; unset $ac_var;} ;;
2170 esac ;;
2171 esac
2172 done
2173 (set) 2>&1 |
2174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175 *${as_nl}ac_space=\ *)
2176 sed -n \
2177 "s/'\''/'\''\\\\'\'''\''/g;
2178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179 ;; #(
2180 *)
2181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182 ;;
2183 esac |
2184 sort
2185 )
2186 echo
2187
2188 $as_echo "## ----------------- ##
2189 ## Output variables. ##
2190 ## ----------------- ##"
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
2203 $as_echo "## ------------------- ##
2204 ## File substitutions. ##
2205 ## ------------------- ##"
2206 echo
2207 for ac_var in $ac_subst_files
2208 do
2209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
2214 done | sort
2215 echo
2216 fi
2217
2218 if test -s confdefs.h; then
2219 $as_echo "## ----------- ##
2220 ## confdefs.h. ##
2221 ## ----------- ##"
2222 echo
2223 cat confdefs.h
2224 echo
2225 fi
2226 test "$ac_signal" != 0 &&
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
2229 } >&5
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 exit $exit_status
2233 ' 0
2234 for ac_signal in 1 2 13 15; do
2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 done
2237 ac_signal=0
2238
2239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240 rm -f -r conftest* confdefs.h
2241
2242 $as_echo "/* confdefs.h */" > confdefs.h
2243
2244 # Predefined preprocessor variables.
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_URL "$PACKAGE_URL"
2268 _ACEOF
2269
2270
2271 # Let the site file select an alternate cache file if it wants to.
2272 # Prefer an explicitly selected file to automatically selected ones.
2273 ac_site_file1=NONE
2274 ac_site_file2=NONE
2275 if test -n "$CONFIG_SITE"; then
2276 # We do not want a PATH search for config.site.
2277 case $CONFIG_SITE in #((
2278 -*) ac_site_file1=./$CONFIG_SITE;;
2279 */*) ac_site_file1=$CONFIG_SITE;;
2280 *) ac_site_file1=./$CONFIG_SITE;;
2281 esac
2282 elif test "x$prefix" != xNONE; then
2283 ac_site_file1=$prefix/share/config.site
2284 ac_site_file2=$prefix/etc/config.site
2285 else
2286 ac_site_file1=$ac_default_prefix/share/config.site
2287 ac_site_file2=$ac_default_prefix/etc/config.site
2288 fi
2289 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290 do
2291 test "x$ac_site_file" = xNONE && continue
2292 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2295 sed 's/^/| /' "$ac_site_file" >&5
2296 . "$ac_site_file" \
2297 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 as_fn_error $? "failed to load site script $ac_site_file
2300 See \`config.log' for more details" "$LINENO" 5; }
2301 fi
2302 done
2303
2304 if test -r "$cache_file"; then
2305 # Some versions of bash will fail to source /dev/null (special files
2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309 $as_echo "$as_me: loading cache $cache_file" >&6;}
2310 case $cache_file in
2311 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312 *) . "./$cache_file";;
2313 esac
2314 fi
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317 $as_echo "$as_me: creating cache $cache_file" >&6;}
2318 >$cache_file
2319 fi
2320
2321 # Check that the precious variables saved in the cache have kept the same
2322 # value.
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326 eval ac_new_set=\$ac_env_${ac_var}_set
2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328 eval ac_new_val=\$ac_env_${ac_var}_value
2329 case $ac_old_set,$ac_new_set in
2330 set,)
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2334 ,set)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,);;
2339 *)
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w=`echo x $ac_old_val`
2343 ac_new_val_w=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted=:
2348 else
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351 eval $ac_var=\$ac_old_val
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2354 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2357 fi;;
2358 esac
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2361 case $ac_new_val in
2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 *) ac_arg=$ac_var=$ac_new_val ;;
2364 esac
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368 esac
2369 fi
2370 done
2371 if $ac_cache_corrupted; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377 fi
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389 am__api_version='1.13'
2390
2391 ac_aux_dir=
2392 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2393 if test -f "$ac_dir/install-sh"; then
2394 ac_aux_dir=$ac_dir
2395 ac_install_sh="$ac_aux_dir/install-sh -c"
2396 break
2397 elif test -f "$ac_dir/install.sh"; then
2398 ac_aux_dir=$ac_dir
2399 ac_install_sh="$ac_aux_dir/install.sh -c"
2400 break
2401 elif test -f "$ac_dir/shtool"; then
2402 ac_aux_dir=$ac_dir
2403 ac_install_sh="$ac_aux_dir/shtool install -c"
2404 break
2405 fi
2406 done
2407 if test -z "$ac_aux_dir"; then
2408 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2409 fi
2410
2411 # These three variables are undocumented and unsupported,
2412 # and are intended to be withdrawn in a future Autoconf release.
2413 # They can cause serious problems if a builder's source tree is in a directory
2414 # whose full name contains unusual characters.
2415 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2416 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2417 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2418
2419
2420 # Find a good install program. We prefer a C program (faster),
2421 # so one script is as good as another. But avoid the broken or
2422 # incompatible versions:
2423 # SysV /etc/install, /usr/sbin/install
2424 # SunOS /usr/etc/install
2425 # IRIX /sbin/install
2426 # AIX /bin/install
2427 # AmigaOS /C/install, which installs bootblocks on floppy discs
2428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2431 # OS/2's system install, which has a completely different semantic
2432 # ./install, which can be erroneously created by make from ./install.sh.
2433 # Reject install programs that cannot install multiple files.
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2435 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2436 if test -z "$INSTALL"; then
2437 if ${ac_cv_path_install+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 # Account for people who put trailing slashes in PATH elements.
2446 case $as_dir/ in #((
2447 ./ | .// | /[cC]/* | \
2448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2449 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2450 /usr/ucb/* ) ;;
2451 *)
2452 # OSF1 and SCO ODT 3.0 have their own names for install.
2453 # Don't use installbsd from OSF since it installs stuff as root
2454 # by default.
2455 for ac_prog in ginstall scoinst install; do
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2458 if test $ac_prog = install &&
2459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460 # AIX install. It has an incompatible calling convention.
2461 :
2462 elif test $ac_prog = install &&
2463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2464 # program-specific install script used by HP pwplus--don't use.
2465 :
2466 else
2467 rm -rf conftest.one conftest.two conftest.dir
2468 echo one > conftest.one
2469 echo two > conftest.two
2470 mkdir conftest.dir
2471 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2472 test -s conftest.one && test -s conftest.two &&
2473 test -s conftest.dir/conftest.one &&
2474 test -s conftest.dir/conftest.two
2475 then
2476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2477 break 3
2478 fi
2479 fi
2480 fi
2481 done
2482 done
2483 ;;
2484 esac
2485
2486 done
2487 IFS=$as_save_IFS
2488
2489 rm -rf conftest.one conftest.two conftest.dir
2490
2491 fi
2492 if test "${ac_cv_path_install+set}" = set; then
2493 INSTALL=$ac_cv_path_install
2494 else
2495 # As a last resort, use the slow shell script. Don't cache a
2496 # value for INSTALL within a source directory, because that will
2497 # break other packages using the cache if that directory is
2498 # removed, or if the value is a relative name.
2499 INSTALL=$ac_install_sh
2500 fi
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2503 $as_echo "$INSTALL" >&6; }
2504
2505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2506 # It thinks the first close brace ends the variable substitution.
2507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2508
2509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2510
2511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2512
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2514 $as_echo_n "checking whether build environment is sane... " >&6; }
2515 # Reject unsafe characters in $srcdir or the absolute working directory
2516 # name. Accept space and tab only in the latter.
2517 am_lf='
2518 '
2519 case `pwd` in
2520 *[\\\"\#\$\&\'\`$am_lf]*)
2521 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2522 esac
2523 case $srcdir in
2524 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2525 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2526 esac
2527
2528 # Do 'set' in a subshell so we don't clobber the current shell's
2529 # arguments. Must try -L first in case configure is actually a
2530 # symlink; some systems play weird games with the mod time of symlinks
2531 # (eg FreeBSD returns the mod time of the symlink's containing
2532 # directory).
2533 if (
2534 am_has_slept=no
2535 for am_try in 1 2; do
2536 echo "timestamp, slept: $am_has_slept" > conftest.file
2537 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2538 if test "$*" = "X"; then
2539 # -L didn't work.
2540 set X `ls -t "$srcdir/configure" conftest.file`
2541 fi
2542 if test "$*" != "X $srcdir/configure conftest.file" \
2543 && test "$*" != "X conftest.file $srcdir/configure"; then
2544
2545 # If neither matched, then we have a broken ls. This can happen
2546 # if, for instance, CONFIG_SHELL is bash and it inherits a
2547 # broken ls alias from the environment. This has actually
2548 # happened. Such a system could not be considered "sane".
2549 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2550 alias in your environment" "$LINENO" 5
2551 fi
2552 if test "$2" = conftest.file || test $am_try -eq 2; then
2553 break
2554 fi
2555 # Just in case.
2556 sleep 1
2557 am_has_slept=yes
2558 done
2559 test "$2" = conftest.file
2560 )
2561 then
2562 # Ok.
2563 :
2564 else
2565 as_fn_error $? "newly created file is older than distributed files!
2566 Check your system clock" "$LINENO" 5
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569 $as_echo "yes" >&6; }
2570 # If we didn't sleep, we still need to ensure time stamps of config.status and
2571 # generated files are strictly newer.
2572 am_sleep_pid=
2573 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2574 ( sleep 1 ) &
2575 am_sleep_pid=$!
2576 fi
2577
2578 rm -f conftest.file
2579
2580 test "$program_prefix" != NONE &&
2581 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2582 # Use a double $ so make ignores it.
2583 test "$program_suffix" != NONE &&
2584 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2585 # Double any \ or $.
2586 # By default was `s,x,x', remove it if useless.
2587 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2588 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2589
2590 # expand $ac_aux_dir to an absolute path
2591 am_aux_dir=`cd $ac_aux_dir && pwd`
2592
2593 if test x"${MISSING+set}" != xset; then
2594 case $am_aux_dir in
2595 *\ * | *\ *)
2596 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2597 *)
2598 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2599 esac
2600 fi
2601 # Use eval to expand $SHELL
2602 if eval "$MISSING --is-lightweight"; then
2603 am_missing_run="$MISSING "
2604 else
2605 am_missing_run=
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2607 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2608 fi
2609
2610 if test x"${install_sh}" != xset; then
2611 case $am_aux_dir in
2612 *\ * | *\ *)
2613 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2614 *)
2615 install_sh="\${SHELL} $am_aux_dir/install-sh"
2616 esac
2617 fi
2618
2619 # Installed binaries are usually stripped using 'strip' when the user
2620 # run "make install-strip". However 'strip' might not be the right
2621 # tool to use in cross-compilation environments, therefore Automake
2622 # will honor the 'STRIP' environment variable to overrule this program.
2623 if test "$cross_compiling" != no; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}strip; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_STRIP+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$STRIP"; then
2633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 STRIP=$ac_cv_prog_STRIP
2653 if test -n "$STRIP"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2655 $as_echo "$STRIP" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661
2662 fi
2663 if test -z "$ac_cv_prog_STRIP"; then
2664 ac_ct_STRIP=$STRIP
2665 # Extract the first word of "strip", so it can be a program name with args.
2666 set dummy strip; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$ac_ct_STRIP"; then
2673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_ac_ct_STRIP="strip"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686 done
2687 done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2693 if test -n "$ac_ct_STRIP"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2695 $as_echo "$ac_ct_STRIP" >&6; }
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701 if test "x$ac_ct_STRIP" = x; then
2702 STRIP=":"
2703 else
2704 case $cross_compiling:$ac_tool_warned in
2705 yes:)
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708 ac_tool_warned=yes ;;
2709 esac
2710 STRIP=$ac_ct_STRIP
2711 fi
2712 else
2713 STRIP="$ac_cv_prog_STRIP"
2714 fi
2715
2716 fi
2717 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2720 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2721 if test -z "$MKDIR_P"; then
2722 if ${ac_cv_path_mkdir+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_prog in mkdir gmkdir; do
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2733 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2734 'mkdir (GNU coreutils) '* | \
2735 'mkdir (coreutils) '* | \
2736 'mkdir (fileutils) '4.1*)
2737 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2738 break 3;;
2739 esac
2740 done
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi
2746
2747 test -d ./--version && rmdir ./--version
2748 if test "${ac_cv_path_mkdir+set}" = set; then
2749 MKDIR_P="$ac_cv_path_mkdir -p"
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for MKDIR_P within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 MKDIR_P="$ac_install_sh -d"
2756 fi
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2759 $as_echo "$MKDIR_P" >&6; }
2760
2761 for ac_prog in gawk mawk nawk awk
2762 do
2763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2764 set dummy $ac_prog; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_AWK+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$AWK"; then
2771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_AWK="$ac_prog"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2783 fi
2784 done
2785 done
2786 IFS=$as_save_IFS
2787
2788 fi
2789 fi
2790 AWK=$ac_cv_prog_AWK
2791 if test -n "$AWK"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2793 $as_echo "$AWK" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 fi
2798
2799
2800 test -n "$AWK" && break
2801 done
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2804 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2805 set x ${MAKE-make}
2806 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2807 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 cat >conftest.make <<\_ACEOF
2811 SHELL = /bin/sh
2812 all:
2813 @echo '@@@%%%=$(MAKE)=@@@%%%'
2814 _ACEOF
2815 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2816 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2817 *@@@%%%=?*=@@@%%%*)
2818 eval ac_cv_prog_make_${ac_make}_set=yes;;
2819 *)
2820 eval ac_cv_prog_make_${ac_make}_set=no;;
2821 esac
2822 rm -f conftest.make
2823 fi
2824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2826 $as_echo "yes" >&6; }
2827 SET_MAKE=
2828 else
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831 SET_MAKE="MAKE=${MAKE-make}"
2832 fi
2833
2834 rm -rf .tst 2>/dev/null
2835 mkdir .tst 2>/dev/null
2836 if test -d .tst; then
2837 am__leading_dot=.
2838 else
2839 am__leading_dot=_
2840 fi
2841 rmdir .tst 2>/dev/null
2842
2843 # Check whether --enable-silent-rules was given.
2844 if test "${enable_silent_rules+set}" = set; then :
2845 enableval=$enable_silent_rules;
2846 fi
2847
2848 case $enable_silent_rules in # (((
2849 yes) AM_DEFAULT_VERBOSITY=0;;
2850 no) AM_DEFAULT_VERBOSITY=1;;
2851 *) AM_DEFAULT_VERBOSITY=1;;
2852 esac
2853 am_make=${MAKE-make}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2855 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2856 if ${am_cv_make_support_nested_variables+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if $as_echo 'TRUE=$(BAR$(V))
2860 BAR0=false
2861 BAR1=true
2862 V=1
2863 am__doit:
2864 @$(TRUE)
2865 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2866 am_cv_make_support_nested_variables=yes
2867 else
2868 am_cv_make_support_nested_variables=no
2869 fi
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2872 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2873 if test $am_cv_make_support_nested_variables = yes; then
2874 AM_V='$(V)'
2875 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2876 else
2877 AM_V=$AM_DEFAULT_VERBOSITY
2878 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2879 fi
2880 AM_BACKSLASH='\'
2881
2882 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2883 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2884 # is not polluted with repeated "-I."
2885 am__isrc=' -I$(srcdir)'
2886 # test to see if srcdir already configured
2887 if test -f $srcdir/config.status; then
2888 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2889 fi
2890 fi
2891
2892 # test whether we have cygpath
2893 if test -z "$CYGPATH_W"; then
2894 if (cygpath --version) >/dev/null 2>/dev/null; then
2895 CYGPATH_W='cygpath -w'
2896 else
2897 CYGPATH_W=echo
2898 fi
2899 fi
2900
2901
2902 # Define the identity of the package.
2903 PACKAGE='xauth'
2904 VERSION='1.0.9'
2905
2906
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE "$PACKAGE"
2909 _ACEOF
2910
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define VERSION "$VERSION"
2914 _ACEOF
2915
2916 # Some tools Automake needs.
2917
2918 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2919
2920
2921 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2922
2923
2924 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2925
2926
2927 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2928
2929
2930 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2931
2932 # For better backward compatibility. To be removed once Automake 1.9.x
2933 # dies out for good. For more background, see:
2934 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2935 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2936 mkdir_p='$(MKDIR_P)'
2937
2938 # We need awk for the "check" target. The system "awk" is bad on
2939 # some platforms.
2940 # Always define AMTAR for backward compatibility. Yes, it's still used
2941 # in the wild :-( We should find a proper way to deprecate it ...
2942 AMTAR='$${TAR-tar}'
2943
2944
2945 # We'll loop over all known methods to create a tar archive until one works.
2946 _am_tools='gnutar pax cpio none'
2947
2948 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2949
2950
2951
2952
2953
2954
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2957 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2958 # Check whether --enable-maintainer-mode was given.
2959 if test "${enable_maintainer_mode+set}" = set; then :
2960 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2961 else
2962 USE_MAINTAINER_MODE=no
2963 fi
2964
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2966 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2967 if test $USE_MAINTAINER_MODE = yes; then
2968 MAINTAINER_MODE_TRUE=
2969 MAINTAINER_MODE_FALSE='#'
2970 else
2971 MAINTAINER_MODE_TRUE='#'
2972 MAINTAINER_MODE_FALSE=
2973 fi
2974
2975 MAINT=$MAINTAINER_MODE_TRUE
2976
2977
2978
2979 ac_config_headers="$ac_config_headers config.h"
2980
2981
2982 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2983 # Must be called before any macros that run the compiler (like
2984 # AC_PROG_LIBTOOL) to avoid autoconf errors.
2985 DEPDIR="${am__leading_dot}deps"
2986
2987 ac_config_commands="$ac_config_commands depfiles"
2988
2989
2990 am_make=${MAKE-make}
2991 cat > confinc << 'END'
2992 am__doit:
2993 @echo this is the am__doit target
2994 .PHONY: am__doit
2995 END
2996 # If we don't find an include directive, just comment out the code.
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2999 am__include="#"
3000 am__quote=
3001 _am_result=none
3002 # First try GNU make style include.
3003 echo "include confinc" > confmf
3004 # Ignore all kinds of additional output from 'make'.
3005 case `$am_make -s -f confmf 2> /dev/null` in #(
3006 *the\ am__doit\ target*)
3007 am__include=include
3008 am__quote=
3009 _am_result=GNU
3010 ;;
3011 esac
3012 # Now try BSD make style include.
3013 if test "$am__include" = "#"; then
3014 echo '.include "confinc"' > confmf
3015 case `$am_make -s -f confmf 2> /dev/null` in #(
3016 *the\ am__doit\ target*)
3017 am__include=.include
3018 am__quote="\""
3019 _am_result=BSD
3020 ;;
3021 esac
3022 fi
3023
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3026 $as_echo "$_am_result" >&6; }
3027 rm -f confinc confmf
3028
3029 # Check whether --enable-dependency-tracking was given.
3030 if test "${enable_dependency_tracking+set}" = set; then :
3031 enableval=$enable_dependency_tracking;
3032 fi
3033
3034 if test "x$enable_dependency_tracking" != xno; then
3035 am_depcomp="$ac_aux_dir/depcomp"
3036 AMDEPBACKSLASH='\'
3037 am__nodep='_no'
3038 fi
3039 if test "x$enable_dependency_tracking" != xno; then
3040 AMDEP_TRUE=
3041 AMDEP_FALSE='#'
3042 else
3043 AMDEP_TRUE='#'
3044 AMDEP_FALSE=
3045 fi
3046
3047
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091 fi
3092 if test -z "$ac_cv_prog_CC"; then
3093 ac_ct_CC=$CC
3094 # Extract the first word of "gcc", so it can be a program name with args.
3095 set dummy gcc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$ac_ct_CC"; then
3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_CC="gcc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122 if test -n "$ac_ct_CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124 $as_echo "$ac_ct_CC" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130 if test "x$ac_ct_CC" = x; then
3131 CC=""
3132 else
3133 case $cross_compiling:$ac_tool_warned in
3134 yes:)
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3138 esac
3139 CC=$ac_ct_CC
3140 fi
3141 else
3142 CC="$ac_cv_prog_CC"
3143 fi
3144
3145 if test -z "$CC"; then
3146 if test -n "$ac_tool_prefix"; then
3147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3148 set dummy ${ac_tool_prefix}cc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_CC="${ac_tool_prefix}cc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 fi
3185 fi
3186 if test -z "$CC"; then
3187 # Extract the first word of "cc", so it can be a program name with args.
3188 set dummy cc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197 ac_prog_rejected=no
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206 ac_prog_rejected=yes
3207 continue
3208 fi
3209 ac_cv_prog_CC="cc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 if test $ac_prog_rejected = yes; then
3218 # We found a bogon in the path, so make sure we never use it.
3219 set dummy $ac_cv_prog_CC
3220 shift
3221 if test $# != 0; then
3222 # We chose a different compiler from the bogus one.
3223 # However, it has the same basename, so the bogon will be chosen
3224 # first if we set CC to just the basename; use the full file name.
3225 shift
3226 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3227 fi
3228 fi
3229 fi
3230 fi
3231 CC=$ac_cv_prog_CC
3232 if test -n "$CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234 $as_echo "$CC" >&6; }
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241 fi
3242 if test -z "$CC"; then
3243 if test -n "$ac_tool_prefix"; then
3244 for ac_prog in cl.exe
3245 do
3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_CC+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269 IFS=$as_save_IFS
3270
3271 fi
3272 fi
3273 CC=$ac_cv_prog_CC
3274 if test -n "$CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 $as_echo "$CC" >&6; }
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 fi
3281
3282
3283 test -n "$CC" && break
3284 done
3285 fi
3286 if test -z "$CC"; then
3287 ac_ct_CC=$CC
3288 for ac_prog in cl.exe
3289 do
3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy $ac_prog; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_ac_ct_CC="$ac_prog"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3320 $as_echo "$ac_ct_CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 test -n "$ac_ct_CC" && break
3328 done
3329
3330 if test "x$ac_ct_CC" = x; then
3331 CC=""
3332 else
3333 case $cross_compiling:$ac_tool_warned in
3334 yes:)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339 CC=$ac_ct_CC
3340 fi
3341 fi
3342
3343 fi
3344
3345
3346 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error $? "no acceptable C compiler found in \$PATH
3349 See \`config.log' for more details" "$LINENO" 5; }
3350
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3353 set X $ac_compile
3354 ac_compiler=$2
3355 for ac_option in --version -v -V -qversion; do
3356 { { ac_try="$ac_compiler $ac_option >&5"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3364 ac_status=$?
3365 if test -s conftest.err; then
3366 sed '10a\
3367 ... rest of stderr output deleted ...
3368 10q' conftest.err >conftest.er1
3369 cat conftest.er1 >&5
3370 fi
3371 rm -f conftest.er1 conftest.err
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374 done
3375
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378
3379 int
3380 main ()
3381 {
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 ac_clean_files_save=$ac_clean_files
3388 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3389 # Try to create an executable without -o first, disregard a.out.
3390 # It will help us diagnose broken compilers, and finding out an intuition
3391 # of exeext.
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3393 $as_echo_n "checking whether the C compiler works... " >&6; }
3394 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3395
3396 # The possible output files:
3397 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3398
3399 ac_rmfiles=
3400 for ac_file in $ac_files
3401 do
3402 case $ac_file in
3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3405 esac
3406 done
3407 rm -f $ac_rmfiles
3408
3409 if { { ac_try="$ac_link_default"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_link_default") 2>&5
3417 ac_status=$?
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; then :
3420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3421 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3422 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3423 # so that the user can short-circuit this test for compilers unknown to
3424 # Autoconf.
3425 for ac_file in $ac_files ''
3426 do
3427 test -f "$ac_file" || continue
3428 case $ac_file in
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3430 ;;
3431 [ab].out )
3432 # We found the default executable, but exeext='' is most
3433 # certainly right.
3434 break;;
3435 *.* )
3436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3437 then :; else
3438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439 fi
3440 # We set ac_cv_exeext here because the later test for it is not
3441 # safe: cross compilers may not add the suffix if given an `-o'
3442 # argument, so we may need to know it at that point already.
3443 # Even if this section looks crufty: it has the advantage of
3444 # actually working.
3445 break;;
3446 * )
3447 break;;
3448 esac
3449 done
3450 test "$ac_cv_exeext" = no && ac_cv_exeext=
3451
3452 else
3453 ac_file=''
3454 fi
3455 if test -z "$ac_file"; then :
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error 77 "C compiler cannot create executables
3464 See \`config.log' for more details" "$LINENO" 5; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467 $as_echo "yes" >&6; }
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3470 $as_echo_n "checking for C compiler default output file name... " >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3472 $as_echo "$ac_file" >&6; }
3473 ac_exeext=$ac_cv_exeext
3474
3475 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3476 ac_clean_files=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3478 $as_echo_n "checking for suffix of executables... " >&6; }
3479 if { { ac_try="$ac_link"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_link") 2>&5
3487 ac_status=$?
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }; then :
3490 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3491 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3492 # work properly (i.e., refer to `conftest.exe'), while it won't with
3493 # `rm'.
3494 for ac_file in conftest.exe conftest conftest.*; do
3495 test -f "$ac_file" || continue
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499 break;;
3500 * ) break;;
3501 esac
3502 done
3503 else
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3507 See \`config.log' for more details" "$LINENO" 5; }
3508 fi
3509 rm -f conftest conftest$ac_cv_exeext
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3511 $as_echo "$ac_cv_exeext" >&6; }
3512
3513 rm -f conftest.$ac_ext
3514 EXEEXT=$ac_cv_exeext
3515 ac_exeext=$EXEEXT
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518 #include <stdio.h>
3519 int
3520 main ()
3521 {
3522 FILE *f = fopen ("conftest.out", "w");
3523 return ferror (f) || fclose (f) != 0;
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 ac_clean_files="$ac_clean_files conftest.out"
3530 # Check that the compiler produces executables we can run. If not, either
3531 # the compiler is broken, or we cross compile.
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3533 $as_echo_n "checking whether we are cross compiling... " >&6; }
3534 if test "$cross_compiling" != yes; then
3535 { { ac_try="$ac_link"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3546 if { ac_try='./conftest$ac_cv_exeext'
3547 { { case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_try") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; }; then
3557 cross_compiling=no
3558 else
3559 if test "$cross_compiling" = maybe; then
3560 cross_compiling=yes
3561 else
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot run C compiled programs.
3565 If you meant to cross compile, use \`--host'.
3566 See \`config.log' for more details" "$LINENO" 5; }
3567 fi
3568 fi
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3571 $as_echo "$cross_compiling" >&6; }
3572
3573 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3574 ac_clean_files=$ac_clean_files_save
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3576 $as_echo_n "checking for suffix of object files... " >&6; }
3577 if ${ac_cv_objext+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 int
3584 main ()
3585 {
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 rm -f conftest.o conftest.obj
3592 if { { ac_try="$ac_compile"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_compile") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 for ac_file in conftest.o conftest.obj conftest.*; do
3604 test -f "$ac_file" || continue;
3605 case $ac_file in
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3608 break;;
3609 esac
3610 done
3611 else
3612 $as_echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error $? "cannot compute suffix of object files: cannot compile
3618 See \`config.log' for more details" "$LINENO" 5; }
3619 fi
3620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3623 $as_echo "$ac_cv_objext" >&6; }
3624 OBJEXT=$ac_cv_objext
3625 ac_objext=$OBJEXT
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3627 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3628 if ${ac_cv_c_compiler_gnu+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 int
3635 main ()
3636 {
3637 #ifndef __GNUC__
3638 choke me
3639 #endif
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_compiler_gnu=yes
3647 else
3648 ac_compiler_gnu=no
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3652
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3655 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3656 if test $ac_compiler_gnu = yes; then
3657 GCC=yes
3658 else
3659 GCC=
3660 fi
3661 ac_test_CFLAGS=${CFLAGS+set}
3662 ac_save_CFLAGS=$CFLAGS
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3664 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3665 if ${ac_cv_prog_cc_g+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 ac_save_c_werror_flag=$ac_c_werror_flag
3669 ac_c_werror_flag=yes
3670 ac_cv_prog_cc_g=no
3671 CFLAGS="-g"
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674
3675 int
3676 main ()
3677 {
3678
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_g=yes
3685 else
3686 CFLAGS=""
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689
3690 int
3691 main ()
3692 {
3693
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699
3700 else
3701 ac_c_werror_flag=$ac_save_c_werror_flag
3702 CFLAGS="-g"
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_prog_cc_g=yes
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3725 $as_echo "$ac_cv_prog_cc_g" >&6; }
3726 if test "$ac_test_CFLAGS" = set; then
3727 CFLAGS=$ac_save_CFLAGS
3728 elif test $ac_cv_prog_cc_g = yes; then
3729 if test "$GCC" = yes; then
3730 CFLAGS="-g -O2"
3731 else
3732 CFLAGS="-g"
3733 fi
3734 else
3735 if test "$GCC" = yes; then
3736 CFLAGS="-O2"
3737 else
3738 CFLAGS=
3739 fi
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3742 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743 if ${ac_cv_prog_cc_c89+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 ac_cv_prog_cc_c89=no
3747 ac_save_CC=$CC
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 #include <stdarg.h>
3751 #include <stdio.h>
3752 struct stat;
3753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3754 struct buf { int x; };
3755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756 static char *e (p, i)
3757 char **p;
3758 int i;
3759 {
3760 return p[i];
3761 }
3762 static char *f (char * (*g) (char **, int), char **p, ...)
3763 {
3764 char *s;
3765 va_list v;
3766 va_start (v,p);
3767 s = g (p, va_arg (v,int));
3768 va_end (v);
3769 return s;
3770 }
3771
3772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3773 function prototypes and stuff, but not '\xHH' hex character constants.
3774 These don't provoke an error unfortunately, instead are silently treated
3775 as 'x'. The following induces an error, until -std is added to get
3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3777 array size at least. It's necessary to write '\x00'==0 to get something
3778 that's true only with -std. */
3779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780
3781 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3782 inside strings and character constants. */
3783 #define FOO(x) 'x'
3784 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3785
3786 int test (int i, double x);
3787 struct s1 {int (*f) (int a);};
3788 struct s2 {int (*f) (double a);};
3789 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3790 int argc;
3791 char **argv;
3792 int
3793 main ()
3794 {
3795 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3802 do
3803 CC="$ac_save_CC $ac_arg"
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_cv_prog_cc_c89=$ac_arg
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext
3808 test "x$ac_cv_prog_cc_c89" != "xno" && break
3809 done
3810 rm -f conftest.$ac_ext
3811 CC=$ac_save_CC
3812
3813 fi
3814 # AC_CACHE_VAL
3815 case "x$ac_cv_prog_cc_c89" in
3816 x)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3818 $as_echo "none needed" >&6; } ;;
3819 xno)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3821 $as_echo "unsupported" >&6; } ;;
3822 *)
3823 CC="$CC $ac_cv_prog_cc_c89"
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3825 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3826 esac
3827 if test "x$ac_cv_prog_cc_c89" != xno; then :
3828
3829 fi
3830
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836
3837 depcc="$CC" am_compiler_list=
3838
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3840 $as_echo_n "checking dependency style of $depcc... " >&6; }
3841 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3845 # We make a subdir and do the tests there. Otherwise we can end up
3846 # making bogus files that we don't know about and never remove. For
3847 # instance it was reported that on HP-UX the gcc test will end up
3848 # making a dummy file named 'D' -- because '-MD' means "put the output
3849 # in D".
3850 rm -rf conftest.dir
3851 mkdir conftest.dir
3852 # Copy depcomp to subdir because otherwise we won't find it if we're
3853 # using a relative directory.
3854 cp "$am_depcomp" conftest.dir
3855 cd conftest.dir
3856 # We will build objects and dependencies in a subdirectory because
3857 # it helps to detect inapplicable dependency modes. For instance
3858 # both Tru64's cc and ICC support -MD to output dependencies as a
3859 # side effect of compilation, but ICC will put the dependencies in
3860 # the current directory while Tru64 will put them in the object
3861 # directory.
3862 mkdir sub
3863
3864 am_cv_CC_dependencies_compiler_type=none
3865 if test "$am_compiler_list" = ""; then
3866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3867 fi
3868 am__universal=false
3869 case " $depcc " in #(
3870 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3871 esac
3872
3873 for depmode in $am_compiler_list; do
3874 # Setup a source with many dependencies, because some compilers
3875 # like to wrap large dependency lists on column 80 (with \), and
3876 # we should not choose a depcomp mode which is confused by this.
3877 #
3878 # We need to recreate these files for each test, as the compiler may
3879 # overwrite some of them when testing with obscure command lines.
3880 # This happens at least with the AIX C compiler.
3881 : > sub/conftest.c
3882 for i in 1 2 3 4 5 6; do
3883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3885 # Solaris 10 /bin/sh.
3886 echo '/* dummy */' > sub/conftst$i.h
3887 done
3888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3889
3890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3891 # mode. It turns out that the SunPro C++ compiler does not properly
3892 # handle '-M -o', and we need to detect this. Also, some Intel
3893 # versions had trouble with output in subdirs.
3894 am__obj=sub/conftest.${OBJEXT-o}
3895 am__minus_obj="-o $am__obj"
3896 case $depmode in
3897 gcc)
3898 # This depmode causes a compiler race in universal mode.
3899 test "$am__universal" = false || continue
3900 ;;
3901 nosideeffect)
3902 # After this tag, mechanisms are not by side-effect, so they'll
3903 # only be used when explicitly requested.
3904 if test "x$enable_dependency_tracking" = xyes; then
3905 continue
3906 else
3907 break
3908 fi
3909 ;;
3910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3911 # This compiler won't grok '-c -o', but also, the minuso test has
3912 # not run yet. These depmodes are late enough in the game, and
3913 # so weak that their functioning should not be impacted.
3914 am__obj=conftest.${OBJEXT-o}
3915 am__minus_obj=
3916 ;;
3917 none) break ;;
3918 esac
3919 if depmode=$depmode \
3920 source=sub/conftest.c object=$am__obj \
3921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3923 >/dev/null 2>conftest.err &&
3924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3928 # icc doesn't choke on unknown options, it will just issue warnings
3929 # or remarks (even with -Werror). So we grep stderr for any message
3930 # that says an option was ignored or not supported.
3931 # When given -MP, icc 7.0 and 7.1 complain thusly:
3932 # icc: Command line warning: ignoring option '-M'; no argument required
3933 # The diagnosis changed in icc 8.0:
3934 # icc: Command line remark: option '-MP' not supported
3935 if (grep 'ignoring option' conftest.err ||
3936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3937 am_cv_CC_dependencies_compiler_type=$depmode
3938 break
3939 fi
3940 fi
3941 done
3942
3943 cd ..
3944 rm -rf conftest.dir
3945 else
3946 am_cv_CC_dependencies_compiler_type=none
3947 fi
3948
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3951 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3952 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3953
3954 if
3955 test "x$enable_dependency_tracking" != xno \
3956 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3957 am__fastdepCC_TRUE=
3958 am__fastdepCC_FALSE='#'
3959 else
3960 am__fastdepCC_TRUE='#'
3961 am__fastdepCC_FALSE=
3962 fi
3963
3964
3965
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3972 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3973 # On Suns, sometimes $CPP names a directory.
3974 if test -n "$CPP" && test -d "$CPP"; then
3975 CPP=
3976 fi
3977 if test -z "$CPP"; then
3978 if ${ac_cv_prog_CPP+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 # Double quotes because CPP needs to be expanded
3982 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3983 do
3984 ac_preproc_ok=false
3985 for ac_c_preproc_warn_flag in '' yes
3986 do
3987 # Use a header file that comes with gcc, so configuring glibc
3988 # with a fresh cross-compiler works.
3989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3990 # <limits.h> exists even on freestanding compilers.
3991 # On the NeXT, cc -E runs the code through the compiler's parser,
3992 # not just through cpp. "Syntax error" is here to catch this case.
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #ifdef __STDC__
3996 # include <limits.h>
3997 #else
3998 # include <assert.h>
3999 #endif
4000 Syntax error
4001 _ACEOF
4002 if ac_fn_c_try_cpp "$LINENO"; then :
4003
4004 else
4005 # Broken: fails on valid input.
4006 continue
4007 fi
4008 rm -f conftest.err conftest.i conftest.$ac_ext
4009
4010 # OK, works on sane cases. Now check whether nonexistent headers
4011 # can be detected and how.
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014 #include <ac_nonexistent.h>
4015 _ACEOF
4016 if ac_fn_c_try_cpp "$LINENO"; then :
4017 # Broken: success on invalid input.
4018 continue
4019 else
4020 # Passes both tests.
4021 ac_preproc_ok=:
4022 break
4023 fi
4024 rm -f conftest.err conftest.i conftest.$ac_ext
4025
4026 done
4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.i conftest.err conftest.$ac_ext
4029 if $ac_preproc_ok; then :
4030 break
4031 fi
4032
4033 done
4034 ac_cv_prog_CPP=$CPP
4035
4036 fi
4037 CPP=$ac_cv_prog_CPP
4038 else
4039 ac_cv_prog_CPP=$CPP
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4042 $as_echo "$CPP" >&6; }
4043 ac_preproc_ok=false
4044 for ac_c_preproc_warn_flag in '' yes
4045 do
4046 # Use a header file that comes with gcc, so configuring glibc
4047 # with a fresh cross-compiler works.
4048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4049 # <limits.h> exists even on freestanding compilers.
4050 # On the NeXT, cc -E runs the code through the compiler's parser,
4051 # not just through cpp. "Syntax error" is here to catch this case.
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #ifdef __STDC__
4055 # include <limits.h>
4056 #else
4057 # include <assert.h>
4058 #endif
4059 Syntax error
4060 _ACEOF
4061 if ac_fn_c_try_cpp "$LINENO"; then :
4062
4063 else
4064 # Broken: fails on valid input.
4065 continue
4066 fi
4067 rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069 # OK, works on sane cases. Now check whether nonexistent headers
4070 # can be detected and how.
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073 #include <ac_nonexistent.h>
4074 _ACEOF
4075 if ac_fn_c_try_cpp "$LINENO"; then :
4076 # Broken: success on invalid input.
4077 continue
4078 else
4079 # Passes both tests.
4080 ac_preproc_ok=:
4081 break
4082 fi
4083 rm -f conftest.err conftest.i conftest.$ac_ext
4084
4085 done
4086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4087 rm -f conftest.i conftest.err conftest.$ac_ext
4088 if $ac_preproc_ok; then :
4089
4090 else
4091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4093 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4094 See \`config.log' for more details" "$LINENO" 5; }
4095 fi
4096
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4105 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4106 if ${ac_cv_path_GREP+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -z "$GREP"; then
4110 ac_path_GREP_found=false
4111 # Loop through the user's path and test for each of PROGNAME-LIST
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4114 do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_prog in grep ggrep; do
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4120 as_fn_executable_p "$ac_path_GREP" || continue
4121 # Check for GNU ac_path_GREP and select it if it is found.
4122 # Check for GNU $ac_path_GREP
4123 case `"$ac_path_GREP" --version 2>&1` in
4124 *GNU*)
4125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4126 *)
4127 ac_count=0
4128 $as_echo_n 0123456789 >"conftest.in"
4129 while :
4130 do
4131 cat "conftest.in" "conftest.in" >"conftest.tmp"
4132 mv "conftest.tmp" "conftest.in"
4133 cp "conftest.in" "conftest.nl"
4134 $as_echo 'GREP' >> "conftest.nl"
4135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137 as_fn_arith $ac_count + 1 && ac_count=$as_val
4138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4139 # Best one so far, save it but keep looking for a better one
4140 ac_cv_path_GREP="$ac_path_GREP"
4141 ac_path_GREP_max=$ac_count
4142 fi
4143 # 10*(2^10) chars as input seems more than enough
4144 test $ac_count -gt 10 && break
4145 done
4146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4147 esac
4148
4149 $ac_path_GREP_found && break 3
4150 done
4151 done
4152 done
4153 IFS=$as_save_IFS
4154 if test -z "$ac_cv_path_GREP"; then
4155 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4156 fi
4157 else
4158 ac_cv_path_GREP=$GREP
4159 fi
4160
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4163 $as_echo "$ac_cv_path_GREP" >&6; }
4164 GREP="$ac_cv_path_GREP"
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4168 $as_echo_n "checking for egrep... " >&6; }
4169 if ${ac_cv_path_EGREP+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4173 then ac_cv_path_EGREP="$GREP -E"
4174 else
4175 if test -z "$EGREP"; then
4176 ac_path_EGREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in egrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4186 as_fn_executable_p "$ac_path_EGREP" || continue
4187 # Check for GNU ac_path_EGREP and select it if it is found.
4188 # Check for GNU $ac_path_EGREP
4189 case `"$ac_path_EGREP" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo 'EGREP' >> "conftest.nl"
4201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_EGREP="$ac_path_EGREP"
4207 ac_path_EGREP_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_EGREP_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_EGREP"; then
4221 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_EGREP=$EGREP
4225 fi
4226
4227 fi
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4230 $as_echo "$ac_cv_path_EGREP" >&6; }
4231 EGREP="$ac_cv_path_EGREP"
4232
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4235 $as_echo_n "checking for ANSI C header files... " >&6; }
4236 if ${ac_cv_header_stdc+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <stdlib.h>
4242 #include <stdarg.h>
4243 #include <string.h>
4244 #include <float.h>
4245
4246 int
4247 main ()
4248 {
4249
4250 ;
4251 return 0;
4252 }
4253 _ACEOF
4254 if ac_fn_c_try_compile "$LINENO"; then :
4255 ac_cv_header_stdc=yes
4256 else
4257 ac_cv_header_stdc=no
4258 fi
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260
4261 if test $ac_cv_header_stdc = yes; then
4262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #include <string.h>
4266
4267 _ACEOF
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 $EGREP "memchr" >/dev/null 2>&1; then :
4270
4271 else
4272 ac_cv_header_stdc=no
4273 fi
4274 rm -f conftest*
4275
4276 fi
4277
4278 if test $ac_cv_header_stdc = yes; then
4279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <stdlib.h>
4283
4284 _ACEOF
4285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286 $EGREP "free" >/dev/null 2>&1; then :
4287
4288 else
4289 ac_cv_header_stdc=no
4290 fi
4291 rm -f conftest*
4292
4293 fi
4294
4295 if test $ac_cv_header_stdc = yes; then
4296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4297 if test "$cross_compiling" = yes; then :
4298 :
4299 else
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <ctype.h>
4303 #include <stdlib.h>
4304 #if ((' ' & 0x0FF) == 0x020)
4305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4307 #else
4308 # define ISLOWER(c) \
4309 (('a' <= (c) && (c) <= 'i') \
4310 || ('j' <= (c) && (c) <= 'r') \
4311 || ('s' <= (c) && (c) <= 'z'))
4312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4313 #endif
4314
4315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4316 int
4317 main ()
4318 {
4319 int i;
4320 for (i = 0; i < 256; i++)
4321 if (XOR (islower (i), ISLOWER (i))
4322 || toupper (i) != TOUPPER (i))
4323 return 2;
4324 return 0;
4325 }
4326 _ACEOF
4327 if ac_fn_c_try_run "$LINENO"; then :
4328
4329 else
4330 ac_cv_header_stdc=no
4331 fi
4332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4333 conftest.$ac_objext conftest.beam conftest.$ac_ext
4334 fi
4335
4336 fi
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4339 $as_echo "$ac_cv_header_stdc" >&6; }
4340 if test $ac_cv_header_stdc = yes; then
4341
4342 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4343
4344 fi
4345
4346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4347 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4348 inttypes.h stdint.h unistd.h
4349 do :
4350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4351 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4352 "
4353 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4354 cat >>confdefs.h <<_ACEOF
4355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 _ACEOF
4357
4358 fi
4359
4360 done
4361
4362
4363
4364 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4365 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4366 MINIX=yes
4367 else
4368 MINIX=
4369 fi
4370
4371
4372 if test "$MINIX" = yes; then
4373
4374 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4375
4376
4377 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4378
4379
4380 $as_echo "#define _MINIX 1" >>confdefs.h
4381
4382 fi
4383
4384
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4386 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4387 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392
4393 # define __EXTENSIONS__ 1
4394 $ac_includes_default
4395 int
4396 main ()
4397 {
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_safe_to_define___extensions__=yes
4405 else
4406 ac_cv_safe_to_define___extensions__=no
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4411 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4412 test $ac_cv_safe_to_define___extensions__ = yes &&
4413 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4414
4415 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4416
4417 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4418
4419 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4420
4421 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4422
4423
4424
4425 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4438 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4439 if ${ac_cv_prog_cc_c99+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 ac_cv_prog_cc_c99=no
4443 ac_save_CC=$CC
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdarg.h>
4447 #include <stdbool.h>
4448 #include <stdlib.h>
4449 #include <wchar.h>
4450 #include <stdio.h>
4451
4452 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4453 #define debug(...) fprintf (stderr, __VA_ARGS__)
4454 #define showlist(...) puts (#__VA_ARGS__)
4455 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4456 static void
4457 test_varargs_macros (void)
4458 {
4459 int x = 1234;
4460 int y = 5678;
4461 debug ("Flag");
4462 debug ("X = %d\n", x);
4463 showlist (The first, second, and third items.);
4464 report (x>y, "x is %d but y is %d", x, y);
4465 }
4466
4467 // Check long long types.
4468 #define BIG64 18446744073709551615ull
4469 #define BIG32 4294967295ul
4470 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4471 #if !BIG_OK
4472 your preprocessor is broken;
4473 #endif
4474 #if BIG_OK
4475 #else
4476 your preprocessor is broken;
4477 #endif
4478 static long long int bignum = -9223372036854775807LL;
4479 static unsigned long long int ubignum = BIG64;
4480
4481 struct incomplete_array
4482 {
4483 int datasize;
4484 double data[];
4485 };
4486
4487 struct named_init {
4488 int number;
4489 const wchar_t *name;
4490 double average;
4491 };
4492
4493 typedef const char *ccp;
4494
4495 static inline int
4496 test_restrict (ccp restrict text)
4497 {
4498 // See if C++-style comments work.
4499 // Iterate through items via the restricted pointer.
4500 // Also check for declarations in for loops.
4501 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4502 continue;
4503 return 0;
4504 }
4505
4506 // Check varargs and va_copy.
4507 static void
4508 test_varargs (const char *format, ...)
4509 {
4510 va_list args;
4511 va_start (args, format);
4512 va_list args_copy;
4513 va_copy (args_copy, args);
4514
4515 const char *str;
4516 int number;
4517 float fnumber;
4518
4519 while (*format)
4520 {
4521 switch (*format++)
4522 {
4523 case 's': // string
4524 str = va_arg (args_copy, const char *);
4525 break;
4526 case 'd': // int
4527 number = va_arg (args_copy, int);
4528 break;
4529 case 'f': // float
4530 fnumber = va_arg (args_copy, double);
4531 break;
4532 default:
4533 break;
4534 }
4535 }
4536 va_end (args_copy);
4537 va_end (args);
4538 }
4539
4540 int
4541 main ()
4542 {
4543
4544 // Check bool.
4545 _Bool success = false;
4546
4547 // Check restrict.
4548 if (test_restrict ("String literal") == 0)
4549 success = true;
4550 char *restrict newvar = "Another string";
4551
4552 // Check varargs.
4553 test_varargs ("s, d' f .", "string", 65, 34.234);
4554 test_varargs_macros ();
4555
4556 // Check flexible array members.
4557 struct incomplete_array *ia =
4558 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4559 ia->datasize = 10;
4560 for (int i = 0; i < ia->datasize; ++i)
4561 ia->data[i] = i * 1.234;
4562
4563 // Check named initializers.
4564 struct named_init ni = {
4565 .number = 34,
4566 .name = L"Test wide string",
4567 .average = 543.34343,
4568 };
4569
4570 ni.number = 58;
4571
4572 int dynamic_array[ni.number];
4573 dynamic_array[ni.number - 1] = 543;
4574
4575 // work around unused variable warnings
4576 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4577 || dynamic_array[ni.number - 1] != 543);
4578
4579 ;
4580 return 0;
4581 }
4582 _ACEOF
4583 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4584 do
4585 CC="$ac_save_CC $ac_arg"
4586 if ac_fn_c_try_compile "$LINENO"; then :
4587 ac_cv_prog_cc_c99=$ac_arg
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext
4590 test "x$ac_cv_prog_cc_c99" != "xno" && break
4591 done
4592 rm -f conftest.$ac_ext
4593 CC=$ac_save_CC
4594
4595 fi
4596 # AC_CACHE_VAL
4597 case "x$ac_cv_prog_cc_c99" in
4598 x)
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4600 $as_echo "none needed" >&6; } ;;
4601 xno)
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4603 $as_echo "unsupported" >&6; } ;;
4604 *)
4605 CC="$CC $ac_cv_prog_cc_c99"
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4607 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4608 esac
4609 if test "x$ac_cv_prog_cc_c99" != xno; then :
4610
4611 fi
4612
4613
4614
4615
4616
4617
4618 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4619 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4620 CLANGCC="yes"
4621 else
4622 CLANGCC="no"
4623 fi
4624
4625 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4626 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4627 INTELCC="yes"
4628 else
4629 INTELCC="no"
4630 fi
4631
4632 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4633 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4634 SUNCC="yes"
4635 else
4636 SUNCC="no"
4637 fi
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4648 if test -n "$ac_tool_prefix"; then
4649 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4650 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 case $PKG_CONFIG in
4657 [\\/]* | ?:[\\/]*)
4658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4659 ;;
4660 *)
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 ;;
4677 esac
4678 fi
4679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4680 if test -n "$PKG_CONFIG"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4682 $as_echo "$PKG_CONFIG" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4686 fi
4687
4688
4689 fi
4690 if test -z "$ac_cv_path_PKG_CONFIG"; then
4691 ac_pt_PKG_CONFIG=$PKG_CONFIG
4692 # Extract the first word of "pkg-config", so it can be a program name with args.
4693 set dummy pkg-config; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 case $ac_pt_PKG_CONFIG in
4700 [\\/]* | ?:[\\/]*)
4701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4702 ;;
4703 *)
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715 done
4716 done
4717 IFS=$as_save_IFS
4718
4719 ;;
4720 esac
4721 fi
4722 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4723 if test -n "$ac_pt_PKG_CONFIG"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4725 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731 if test "x$ac_pt_PKG_CONFIG" = x; then
4732 PKG_CONFIG=""
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 PKG_CONFIG=$ac_pt_PKG_CONFIG
4741 fi
4742 else
4743 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4744 fi
4745
4746 fi
4747 if test -n "$PKG_CONFIG"; then
4748 _pkg_min_version=0.9.0
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4750 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4751 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4753 $as_echo "yes" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 PKG_CONFIG=""
4758 fi
4759 fi
4760 # Make sure we can run config.sub.
4761 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4762 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4763
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4765 $as_echo_n "checking build system type... " >&6; }
4766 if ${ac_cv_build+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 ac_build_alias=$build_alias
4770 test "x$ac_build_alias" = x &&
4771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4772 test "x$ac_build_alias" = x &&
4773 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4774 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4776
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4779 $as_echo "$ac_cv_build" >&6; }
4780 case $ac_cv_build in
4781 *-*-*) ;;
4782 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4783 esac
4784 build=$ac_cv_build
4785 ac_save_IFS=$IFS; IFS='-'
4786 set x $ac_cv_build
4787 shift
4788 build_cpu=$1
4789 build_vendor=$2
4790 shift; shift
4791 # Remember, the first character of IFS is used to create $*,
4792 # except with old shells:
4793 build_os=$*
4794 IFS=$ac_save_IFS
4795 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4796
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4799 $as_echo_n "checking host system type... " >&6; }
4800 if ${ac_cv_host+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test "x$host_alias" = x; then
4804 ac_cv_host=$ac_cv_build
4805 else
4806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4808 fi
4809
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4812 $as_echo "$ac_cv_host" >&6; }
4813 case $ac_cv_host in
4814 *-*-*) ;;
4815 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4816 esac
4817 host=$ac_cv_host
4818 ac_save_IFS=$IFS; IFS='-'
4819 set x $ac_cv_host
4820 shift
4821 host_cpu=$1
4822 host_vendor=$2
4823 shift; shift
4824 # Remember, the first character of IFS is used to create $*,
4825 # except with old shells:
4826 host_os=$*
4827 IFS=$ac_save_IFS
4828 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4829
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4832 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4833 if ${ac_cv_path_SED+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4837 for ac_i in 1 2 3 4 5 6 7; do
4838 ac_script="$ac_script$as_nl$ac_script"
4839 done
4840 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4841 { ac_script=; unset ac_script;}
4842 if test -z "$SED"; then
4843 ac_path_SED_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_prog in sed gsed; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4853 as_fn_executable_p "$ac_path_SED" || continue
4854 # Check for GNU ac_path_SED and select it if it is found.
4855 # Check for GNU $ac_path_SED
4856 case `"$ac_path_SED" --version 2>&1` in
4857 *GNU*)
4858 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4859 *)
4860 ac_count=0
4861 $as_echo_n 0123456789 >"conftest.in"
4862 while :
4863 do
4864 cat "conftest.in" "conftest.in" >"conftest.tmp"
4865 mv "conftest.tmp" "conftest.in"
4866 cp "conftest.in" "conftest.nl"
4867 $as_echo '' >> "conftest.nl"
4868 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870 as_fn_arith $ac_count + 1 && ac_count=$as_val
4871 if test $ac_count -gt ${ac_path_SED_max-0}; then
4872 # Best one so far, save it but keep looking for a better one
4873 ac_cv_path_SED="$ac_path_SED"
4874 ac_path_SED_max=$ac_count
4875 fi
4876 # 10*(2^10) chars as input seems more than enough
4877 test $ac_count -gt 10 && break
4878 done
4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880 esac
4881
4882 $ac_path_SED_found && break 3
4883 done
4884 done
4885 done
4886 IFS=$as_save_IFS
4887 if test -z "$ac_cv_path_SED"; then
4888 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4889 fi
4890 else
4891 ac_cv_path_SED=$SED
4892 fi
4893
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4896 $as_echo "$ac_cv_path_SED" >&6; }
4897 SED="$ac_cv_path_SED"
4898 rm -f conftest.sed
4899
4900
4901
4902
4903
4904
4905 # Check whether --enable-selective-werror was given.
4906 if test "${enable_selective_werror+set}" = set; then :
4907 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4908 else
4909 SELECTIVE_WERROR=yes
4910 fi
4911
4912
4913
4914
4915
4916 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4917 if test "x$SUNCC" = "xyes"; then
4918 BASE_CFLAGS="-v"
4919 else
4920 BASE_CFLAGS=""
4921 fi
4922
4923 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937 xorg_testset_save_CFLAGS="$CFLAGS"
4938
4939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 int i;
4949 _ACEOF
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 xorg_cv_cc_flag_unknown_warning_option=yes
4952 else
4953 xorg_cv_cc_flag_unknown_warning_option=no
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4960 CFLAGS="$xorg_testset_save_CFLAGS"
4961 fi
4962
4963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4966 fi
4967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975 int i;
4976 _ACEOF
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 xorg_cv_cc_flag_unused_command_line_argument=yes
4979 else
4980 xorg_cv_cc_flag_unused_command_line_argument=no
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4987 CFLAGS="$xorg_testset_save_CFLAGS"
4988 fi
4989
4990 found="no"
4991
4992 if test $found = "no" ; then
4993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995 fi
4996
4997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4999 fi
5000
5001 CFLAGS="$CFLAGS -Wall"
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
5004 $as_echo_n "checking if $CC supports-Wall... " >&6; }
5005 cacheid=xorg_cv_cc_flag__Wall
5006 if eval \${$cacheid+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 int i;
5012 int
5013 main ()
5014 {
5015
5016 ;
5017 return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_c_try_link "$LINENO"; then :
5021 eval $cacheid=yes
5022 else
5023 eval $cacheid=no
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5027 fi
5028
5029
5030 CFLAGS="$xorg_testset_save_CFLAGS"
5031
5032 eval supported=\$$cacheid
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5034 $as_echo "$supported" >&6; }
5035 if test "$supported" = "yes" ; then
5036 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5037 found="yes"
5038 fi
5039 fi
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055 xorg_testset_save_CFLAGS="$CFLAGS"
5056
5057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 int i;
5067 _ACEOF
5068 if ac_fn_c_try_compile "$LINENO"; then :
5069 xorg_cv_cc_flag_unknown_warning_option=yes
5070 else
5071 xorg_cv_cc_flag_unknown_warning_option=no
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5078 CFLAGS="$xorg_testset_save_CFLAGS"
5079 fi
5080
5081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5084 fi
5085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 int i;
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096 xorg_cv_cc_flag_unused_command_line_argument=yes
5097 else
5098 xorg_cv_cc_flag_unused_command_line_argument=no
5099 fi
5100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5105 CFLAGS="$xorg_testset_save_CFLAGS"
5106 fi
5107
5108 found="no"
5109
5110 if test $found = "no" ; then
5111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5113 fi
5114
5115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5117 fi
5118
5119 CFLAGS="$CFLAGS -Wpointer-arith"
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
5122 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
5123 cacheid=xorg_cv_cc_flag__Wpointer_arith
5124 if eval \${$cacheid+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129 int i;
5130 int
5131 main ()
5132 {
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 if ac_fn_c_try_link "$LINENO"; then :
5139 eval $cacheid=yes
5140 else
5141 eval $cacheid=no
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext \
5144 conftest$ac_exeext conftest.$ac_ext
5145 fi
5146
5147
5148 CFLAGS="$xorg_testset_save_CFLAGS"
5149
5150 eval supported=\$$cacheid
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5152 $as_echo "$supported" >&6; }
5153 if test "$supported" = "yes" ; then
5154 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5155 found="yes"
5156 fi
5157 fi
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173 xorg_testset_save_CFLAGS="$CFLAGS"
5174
5175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 int i;
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 xorg_cv_cc_flag_unknown_warning_option=yes
5188 else
5189 xorg_cv_cc_flag_unknown_warning_option=no
5190 fi
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5196 CFLAGS="$xorg_testset_save_CFLAGS"
5197 fi
5198
5199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5202 fi
5203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 int i;
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"; then :
5214 xorg_cv_cc_flag_unused_command_line_argument=yes
5215 else
5216 xorg_cv_cc_flag_unused_command_line_argument=no
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5223 CFLAGS="$xorg_testset_save_CFLAGS"
5224 fi
5225
5226 found="no"
5227
5228 if test $found = "no" ; then
5229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231 fi
5232
5233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5235 fi
5236
5237 CFLAGS="$CFLAGS -Wmissing-declarations"
5238
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5240 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5241 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5242 if eval \${$cacheid+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 int i;
5248 int
5249 main ()
5250 {
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_c_try_link "$LINENO"; then :
5257 eval $cacheid=yes
5258 else
5259 eval $cacheid=no
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 fi
5264
5265
5266 CFLAGS="$xorg_testset_save_CFLAGS"
5267
5268 eval supported=\$$cacheid
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5270 $as_echo "$supported" >&6; }
5271 if test "$supported" = "yes" ; then
5272 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5273 found="yes"
5274 fi
5275 fi
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291 xorg_testset_save_CFLAGS="$CFLAGS"
5292
5293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 int i;
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 xorg_cv_cc_flag_unknown_warning_option=yes
5306 else
5307 xorg_cv_cc_flag_unknown_warning_option=no
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 fi
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5314 CFLAGS="$xorg_testset_save_CFLAGS"
5315 fi
5316
5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5320 fi
5321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 int i;
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 xorg_cv_cc_flag_unused_command_line_argument=yes
5333 else
5334 xorg_cv_cc_flag_unused_command_line_argument=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5342 fi
5343
5344 found="no"
5345
5346 if test $found = "no" ; then
5347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5349 fi
5350
5351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5353 fi
5354
5355 CFLAGS="$CFLAGS -Wformat=2"
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5358 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5359 cacheid=xorg_cv_cc_flag__Wformat_2
5360 if eval \${$cacheid+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 int i;
5366 int
5367 main ()
5368 {
5369
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 if ac_fn_c_try_link "$LINENO"; then :
5375 eval $cacheid=yes
5376 else
5377 eval $cacheid=no
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext \
5380 conftest$ac_exeext conftest.$ac_ext
5381 fi
5382
5383
5384 CFLAGS="$xorg_testset_save_CFLAGS"
5385
5386 eval supported=\$$cacheid
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5388 $as_echo "$supported" >&6; }
5389 if test "$supported" = "yes" ; then
5390 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5391 found="yes"
5392 fi
5393 fi
5394
5395 if test $found = "no" ; then
5396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398 fi
5399
5400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5402 fi
5403
5404 CFLAGS="$CFLAGS -Wformat"
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5407 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5408 cacheid=xorg_cv_cc_flag__Wformat
5409 if eval \${$cacheid+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 int i;
5415 int
5416 main ()
5417 {
5418
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_link "$LINENO"; then :
5424 eval $cacheid=yes
5425 else
5426 eval $cacheid=no
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext \
5429 conftest$ac_exeext conftest.$ac_ext
5430 fi
5431
5432
5433 CFLAGS="$xorg_testset_save_CFLAGS"
5434
5435 eval supported=\$$cacheid
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5437 $as_echo "$supported" >&6; }
5438 if test "$supported" = "yes" ; then
5439 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5440 found="yes"
5441 fi
5442 fi
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460 xorg_testset_save_CFLAGS="$CFLAGS"
5461
5462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5465 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5466 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 int i;
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474 xorg_cv_cc_flag_unknown_warning_option=yes
5475 else
5476 xorg_cv_cc_flag_unknown_warning_option=no
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5481 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5483 CFLAGS="$xorg_testset_save_CFLAGS"
5484 fi
5485
5486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5489 fi
5490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5492 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5493 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 int i;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 xorg_cv_cc_flag_unused_command_line_argument=yes
5502 else
5503 xorg_cv_cc_flag_unused_command_line_argument=no
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5508 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5510 CFLAGS="$xorg_testset_save_CFLAGS"
5511 fi
5512
5513 found="no"
5514
5515 if test $found = "no" ; then
5516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518 fi
5519
5520 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5522 fi
5523
5524 CFLAGS="$CFLAGS -Wstrict-prototypes"
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5527 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5528 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5529 if eval \${$cacheid+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 int i;
5535 int
5536 main ()
5537 {
5538
5539 ;
5540 return 0;
5541 }
5542 _ACEOF
5543 if ac_fn_c_try_link "$LINENO"; then :
5544 eval $cacheid=yes
5545 else
5546 eval $cacheid=no
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext \
5549 conftest$ac_exeext conftest.$ac_ext
5550 fi
5551
5552
5553 CFLAGS="$xorg_testset_save_CFLAGS"
5554
5555 eval supported=\$$cacheid
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5557 $as_echo "$supported" >&6; }
5558 if test "$supported" = "yes" ; then
5559 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5560 found="yes"
5561 fi
5562 fi
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578 xorg_testset_save_CFLAGS="$CFLAGS"
5579
5580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5583 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5584 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 int i;
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 xorg_cv_cc_flag_unknown_warning_option=yes
5593 else
5594 xorg_cv_cc_flag_unknown_warning_option=no
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5599 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5601 CFLAGS="$xorg_testset_save_CFLAGS"
5602 fi
5603
5604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5607 fi
5608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5610 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5611 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 int i;
5617 _ACEOF
5618 if ac_fn_c_try_compile "$LINENO"; then :
5619 xorg_cv_cc_flag_unused_command_line_argument=yes
5620 else
5621 xorg_cv_cc_flag_unused_command_line_argument=no
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5626 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5628 CFLAGS="$xorg_testset_save_CFLAGS"
5629 fi
5630
5631 found="no"
5632
5633 if test $found = "no" ; then
5634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636 fi
5637
5638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5640 fi
5641
5642 CFLAGS="$CFLAGS -Wmissing-prototypes"
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5645 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5646 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5647 if eval \${$cacheid+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 int i;
5653 int
5654 main ()
5655 {
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_link "$LINENO"; then :
5662 eval $cacheid=yes
5663 else
5664 eval $cacheid=no
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext \
5667 conftest$ac_exeext conftest.$ac_ext
5668 fi
5669
5670
5671 CFLAGS="$xorg_testset_save_CFLAGS"
5672
5673 eval supported=\$$cacheid
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5675 $as_echo "$supported" >&6; }
5676 if test "$supported" = "yes" ; then
5677 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5678 found="yes"
5679 fi
5680 fi
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 xorg_testset_save_CFLAGS="$CFLAGS"
5697
5698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5701 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5702 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 int i;
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710 xorg_cv_cc_flag_unknown_warning_option=yes
5711 else
5712 xorg_cv_cc_flag_unknown_warning_option=no
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5717 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5719 CFLAGS="$xorg_testset_save_CFLAGS"
5720 fi
5721
5722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5725 fi
5726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5728 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5729 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 int i;
5735 _ACEOF
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737 xorg_cv_cc_flag_unused_command_line_argument=yes
5738 else
5739 xorg_cv_cc_flag_unused_command_line_argument=no
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5744 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5746 CFLAGS="$xorg_testset_save_CFLAGS"
5747 fi
5748
5749 found="no"
5750
5751 if test $found = "no" ; then
5752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754 fi
5755
5756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5758 fi
5759
5760 CFLAGS="$CFLAGS -Wnested-externs"
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5763 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5764 cacheid=xorg_cv_cc_flag__Wnested_externs
5765 if eval \${$cacheid+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 int i;
5771 int
5772 main ()
5773 {
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_c_try_link "$LINENO"; then :
5780 eval $cacheid=yes
5781 else
5782 eval $cacheid=no
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext \
5785 conftest$ac_exeext conftest.$ac_ext
5786 fi
5787
5788
5789 CFLAGS="$xorg_testset_save_CFLAGS"
5790
5791 eval supported=\$$cacheid
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5793 $as_echo "$supported" >&6; }
5794 if test "$supported" = "yes" ; then
5795 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5796 found="yes"
5797 fi
5798 fi
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 xorg_testset_save_CFLAGS="$CFLAGS"
5815
5816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5819 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5820 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 int i;
5826 _ACEOF
5827 if ac_fn_c_try_compile "$LINENO"; then :
5828 xorg_cv_cc_flag_unknown_warning_option=yes
5829 else
5830 xorg_cv_cc_flag_unknown_warning_option=no
5831 fi
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5835 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5837 CFLAGS="$xorg_testset_save_CFLAGS"
5838 fi
5839
5840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5843 fi
5844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5846 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5847 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 int i;
5853 _ACEOF
5854 if ac_fn_c_try_compile "$LINENO"; then :
5855 xorg_cv_cc_flag_unused_command_line_argument=yes
5856 else
5857 xorg_cv_cc_flag_unused_command_line_argument=no
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5862 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5864 CFLAGS="$xorg_testset_save_CFLAGS"
5865 fi
5866
5867 found="no"
5868
5869 if test $found = "no" ; then
5870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872 fi
5873
5874 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876 fi
5877
5878 CFLAGS="$CFLAGS -Wbad-function-cast"
5879
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5881 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5882 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5883 if eval \${$cacheid+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 int i;
5889 int
5890 main ()
5891 {
5892
5893 ;
5894 return 0;
5895 }
5896 _ACEOF
5897 if ac_fn_c_try_link "$LINENO"; then :
5898 eval $cacheid=yes
5899 else
5900 eval $cacheid=no
5901 fi
5902 rm -f core conftest.err conftest.$ac_objext \
5903 conftest$ac_exeext conftest.$ac_ext
5904 fi
5905
5906
5907 CFLAGS="$xorg_testset_save_CFLAGS"
5908
5909 eval supported=\$$cacheid
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5911 $as_echo "$supported" >&6; }
5912 if test "$supported" = "yes" ; then
5913 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5914 found="yes"
5915 fi
5916 fi
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 xorg_testset_save_CFLAGS="$CFLAGS"
5933
5934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5938 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 int i;
5944 _ACEOF
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946 xorg_cv_cc_flag_unknown_warning_option=yes
5947 else
5948 xorg_cv_cc_flag_unknown_warning_option=no
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5953 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5955 CFLAGS="$xorg_testset_save_CFLAGS"
5956 fi
5957
5958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5961 fi
5962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5964 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5965 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 int i;
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 xorg_cv_cc_flag_unused_command_line_argument=yes
5974 else
5975 xorg_cv_cc_flag_unused_command_line_argument=no
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5980 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5982 CFLAGS="$xorg_testset_save_CFLAGS"
5983 fi
5984
5985 found="no"
5986
5987 if test $found = "no" ; then
5988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5990 fi
5991
5992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5994 fi
5995
5996 CFLAGS="$CFLAGS -Wold-style-definition"
5997
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5999 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
6000 cacheid=xorg_cv_cc_flag__Wold_style_definition
6001 if eval \${$cacheid+:} false; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006 int i;
6007 int
6008 main ()
6009 {
6010
6011 ;
6012 return 0;
6013 }
6014 _ACEOF
6015 if ac_fn_c_try_link "$LINENO"; then :
6016 eval $cacheid=yes
6017 else
6018 eval $cacheid=no
6019 fi
6020 rm -f core conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6022 fi
6023
6024
6025 CFLAGS="$xorg_testset_save_CFLAGS"
6026
6027 eval supported=\$$cacheid
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6029 $as_echo "$supported" >&6; }
6030 if test "$supported" = "yes" ; then
6031 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6032 found="yes"
6033 fi
6034 fi
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050 xorg_testset_save_CFLAGS="$CFLAGS"
6051
6052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6055 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6056 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 int i;
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"; then :
6064 xorg_cv_cc_flag_unknown_warning_option=yes
6065 else
6066 xorg_cv_cc_flag_unknown_warning_option=no
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6071 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6073 CFLAGS="$xorg_testset_save_CFLAGS"
6074 fi
6075
6076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6079 fi
6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6082 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6083 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 int i;
6089 _ACEOF
6090 if ac_fn_c_try_compile "$LINENO"; then :
6091 xorg_cv_cc_flag_unused_command_line_argument=yes
6092 else
6093 xorg_cv_cc_flag_unused_command_line_argument=no
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6098 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6100 CFLAGS="$xorg_testset_save_CFLAGS"
6101 fi
6102
6103 found="no"
6104
6105 if test $found = "no" ; then
6106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108 fi
6109
6110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112 fi
6113
6114 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6115
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
6117 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
6118 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6119 if eval \${$cacheid+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 int i;
6125 int
6126 main ()
6127 {
6128
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 if ac_fn_c_try_link "$LINENO"; then :
6134 eval $cacheid=yes
6135 else
6136 eval $cacheid=no
6137 fi
6138 rm -f core conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
6140 fi
6141
6142
6143 CFLAGS="$xorg_testset_save_CFLAGS"
6144
6145 eval supported=\$$cacheid
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6147 $as_echo "$supported" >&6; }
6148 if test "$supported" = "yes" ; then
6149 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6150 found="yes"
6151 fi
6152 fi
6153
6154
6155
6156
6157
6158 # This chunk adds additional warnings that could catch undesired effects.
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172 xorg_testset_save_CFLAGS="$CFLAGS"
6173
6174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6177 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6178 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6183 int i;
6184 _ACEOF
6185 if ac_fn_c_try_compile "$LINENO"; then :
6186 xorg_cv_cc_flag_unknown_warning_option=yes
6187 else
6188 xorg_cv_cc_flag_unknown_warning_option=no
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 fi
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6193 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6195 CFLAGS="$xorg_testset_save_CFLAGS"
6196 fi
6197
6198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6201 fi
6202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6204 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6205 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 int i;
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213 xorg_cv_cc_flag_unused_command_line_argument=yes
6214 else
6215 xorg_cv_cc_flag_unused_command_line_argument=no
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6220 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6222 CFLAGS="$xorg_testset_save_CFLAGS"
6223 fi
6224
6225 found="no"
6226
6227 if test $found = "no" ; then
6228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6230 fi
6231
6232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6234 fi
6235
6236 CFLAGS="$CFLAGS -Wunused"
6237
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6239 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6240 cacheid=xorg_cv_cc_flag__Wunused
6241 if eval \${$cacheid+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 int i;
6247 int
6248 main ()
6249 {
6250
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 if ac_fn_c_try_link "$LINENO"; then :
6256 eval $cacheid=yes
6257 else
6258 eval $cacheid=no
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262 fi
6263
6264
6265 CFLAGS="$xorg_testset_save_CFLAGS"
6266
6267 eval supported=\$$cacheid
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6269 $as_echo "$supported" >&6; }
6270 if test "$supported" = "yes" ; then
6271 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6272 found="yes"
6273 fi
6274 fi
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290 xorg_testset_save_CFLAGS="$CFLAGS"
6291
6292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6295 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6296 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 int i;
6302 _ACEOF
6303 if ac_fn_c_try_compile "$LINENO"; then :
6304 xorg_cv_cc_flag_unknown_warning_option=yes
6305 else
6306 xorg_cv_cc_flag_unknown_warning_option=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6311 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6313 CFLAGS="$xorg_testset_save_CFLAGS"
6314 fi
6315
6316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6319 fi
6320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6322 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6323 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 int i;
6329 _ACEOF
6330 if ac_fn_c_try_compile "$LINENO"; then :
6331 xorg_cv_cc_flag_unused_command_line_argument=yes
6332 else
6333 xorg_cv_cc_flag_unused_command_line_argument=no
6334 fi
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6338 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6340 CFLAGS="$xorg_testset_save_CFLAGS"
6341 fi
6342
6343 found="no"
6344
6345 if test $found = "no" ; then
6346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348 fi
6349
6350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6352 fi
6353
6354 CFLAGS="$CFLAGS -Wuninitialized"
6355
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6357 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6358 cacheid=xorg_cv_cc_flag__Wuninitialized
6359 if eval \${$cacheid+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 int i;
6365 int
6366 main ()
6367 {
6368
6369 ;
6370 return 0;
6371 }
6372 _ACEOF
6373 if ac_fn_c_try_link "$LINENO"; then :
6374 eval $cacheid=yes
6375 else
6376 eval $cacheid=no
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
6380 fi
6381
6382
6383 CFLAGS="$xorg_testset_save_CFLAGS"
6384
6385 eval supported=\$$cacheid
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6387 $as_echo "$supported" >&6; }
6388 if test "$supported" = "yes" ; then
6389 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6390 found="yes"
6391 fi
6392 fi
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408 xorg_testset_save_CFLAGS="$CFLAGS"
6409
6410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6413 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6414 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 int i;
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422 xorg_cv_cc_flag_unknown_warning_option=yes
6423 else
6424 xorg_cv_cc_flag_unknown_warning_option=no
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6429 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6431 CFLAGS="$xorg_testset_save_CFLAGS"
6432 fi
6433
6434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437 fi
6438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6440 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6441 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 int i;
6447 _ACEOF
6448 if ac_fn_c_try_compile "$LINENO"; then :
6449 xorg_cv_cc_flag_unused_command_line_argument=yes
6450 else
6451 xorg_cv_cc_flag_unused_command_line_argument=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 fi
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6456 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6458 CFLAGS="$xorg_testset_save_CFLAGS"
6459 fi
6460
6461 found="no"
6462
6463 if test $found = "no" ; then
6464 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6466 fi
6467
6468 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6470 fi
6471
6472 CFLAGS="$CFLAGS -Wshadow"
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6475 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6476 cacheid=xorg_cv_cc_flag__Wshadow
6477 if eval \${$cacheid+:} false; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 int i;
6483 int
6484 main ()
6485 {
6486
6487 ;
6488 return 0;
6489 }
6490 _ACEOF
6491 if ac_fn_c_try_link "$LINENO"; then :
6492 eval $cacheid=yes
6493 else
6494 eval $cacheid=no
6495 fi
6496 rm -f core conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
6498 fi
6499
6500
6501 CFLAGS="$xorg_testset_save_CFLAGS"
6502
6503 eval supported=\$$cacheid
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6505 $as_echo "$supported" >&6; }
6506 if test "$supported" = "yes" ; then
6507 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6508 found="yes"
6509 fi
6510 fi
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526 xorg_testset_save_CFLAGS="$CFLAGS"
6527
6528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6531 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6532 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 int i;
6538 _ACEOF
6539 if ac_fn_c_try_compile "$LINENO"; then :
6540 xorg_cv_cc_flag_unknown_warning_option=yes
6541 else
6542 xorg_cv_cc_flag_unknown_warning_option=no
6543 fi
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 fi
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6547 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6549 CFLAGS="$xorg_testset_save_CFLAGS"
6550 fi
6551
6552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6555 fi
6556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6558 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6559 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564 int i;
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 xorg_cv_cc_flag_unused_command_line_argument=yes
6568 else
6569 xorg_cv_cc_flag_unused_command_line_argument=no
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 fi
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6574 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6576 CFLAGS="$xorg_testset_save_CFLAGS"
6577 fi
6578
6579 found="no"
6580
6581 if test $found = "no" ; then
6582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584 fi
6585
6586 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6588 fi
6589
6590 CFLAGS="$CFLAGS -Wcast-qual"
6591
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6593 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6594 cacheid=xorg_cv_cc_flag__Wcast_qual
6595 if eval \${$cacheid+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 int i;
6601 int
6602 main ()
6603 {
6604
6605 ;
6606 return 0;
6607 }
6608 _ACEOF
6609 if ac_fn_c_try_link "$LINENO"; then :
6610 eval $cacheid=yes
6611 else
6612 eval $cacheid=no
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext \
6615 conftest$ac_exeext conftest.$ac_ext
6616 fi
6617
6618
6619 CFLAGS="$xorg_testset_save_CFLAGS"
6620
6621 eval supported=\$$cacheid
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6623 $as_echo "$supported" >&6; }
6624 if test "$supported" = "yes" ; then
6625 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6626 found="yes"
6627 fi
6628 fi
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644 xorg_testset_save_CFLAGS="$CFLAGS"
6645
6646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 int i;
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658 xorg_cv_cc_flag_unknown_warning_option=yes
6659 else
6660 xorg_cv_cc_flag_unknown_warning_option=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 fi
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6667 CFLAGS="$xorg_testset_save_CFLAGS"
6668 fi
6669
6670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673 fi
6674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 int i;
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 xorg_cv_cc_flag_unused_command_line_argument=yes
6686 else
6687 xorg_cv_cc_flag_unused_command_line_argument=no
6688 fi
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6694 CFLAGS="$xorg_testset_save_CFLAGS"
6695 fi
6696
6697 found="no"
6698
6699 if test $found = "no" ; then
6700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702 fi
6703
6704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706 fi
6707
6708 CFLAGS="$CFLAGS -Wmissing-noreturn"
6709
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6711 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6712 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6713 if eval \${$cacheid+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 int i;
6719 int
6720 main ()
6721 {
6722
6723 ;
6724 return 0;
6725 }
6726 _ACEOF
6727 if ac_fn_c_try_link "$LINENO"; then :
6728 eval $cacheid=yes
6729 else
6730 eval $cacheid=no
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6734 fi
6735
6736
6737 CFLAGS="$xorg_testset_save_CFLAGS"
6738
6739 eval supported=\$$cacheid
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6741 $as_echo "$supported" >&6; }
6742 if test "$supported" = "yes" ; then
6743 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6744 found="yes"
6745 fi
6746 fi
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762 xorg_testset_save_CFLAGS="$CFLAGS"
6763
6764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6767 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6768 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 int i;
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 xorg_cv_cc_flag_unknown_warning_option=yes
6777 else
6778 xorg_cv_cc_flag_unknown_warning_option=no
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6783 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6785 CFLAGS="$xorg_testset_save_CFLAGS"
6786 fi
6787
6788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791 fi
6792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6794 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6795 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 int i;
6801 _ACEOF
6802 if ac_fn_c_try_compile "$LINENO"; then :
6803 xorg_cv_cc_flag_unused_command_line_argument=yes
6804 else
6805 xorg_cv_cc_flag_unused_command_line_argument=no
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 fi
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6810 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6812 CFLAGS="$xorg_testset_save_CFLAGS"
6813 fi
6814
6815 found="no"
6816
6817 if test $found = "no" ; then
6818 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6820 fi
6821
6822 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824 fi
6825
6826 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6829 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6830 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6831 if eval \${$cacheid+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 int i;
6837 int
6838 main ()
6839 {
6840
6841 ;
6842 return 0;
6843 }
6844 _ACEOF
6845 if ac_fn_c_try_link "$LINENO"; then :
6846 eval $cacheid=yes
6847 else
6848 eval $cacheid=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852 fi
6853
6854
6855 CFLAGS="$xorg_testset_save_CFLAGS"
6856
6857 eval supported=\$$cacheid
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6859 $as_echo "$supported" >&6; }
6860 if test "$supported" = "yes" ; then
6861 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6862 found="yes"
6863 fi
6864 fi
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880 xorg_testset_save_CFLAGS="$CFLAGS"
6881
6882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6885 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6886 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 int i;
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894 xorg_cv_cc_flag_unknown_warning_option=yes
6895 else
6896 xorg_cv_cc_flag_unknown_warning_option=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6901 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6903 CFLAGS="$xorg_testset_save_CFLAGS"
6904 fi
6905
6906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909 fi
6910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6912 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6913 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918 int i;
6919 _ACEOF
6920 if ac_fn_c_try_compile "$LINENO"; then :
6921 xorg_cv_cc_flag_unused_command_line_argument=yes
6922 else
6923 xorg_cv_cc_flag_unused_command_line_argument=no
6924 fi
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6928 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6930 CFLAGS="$xorg_testset_save_CFLAGS"
6931 fi
6932
6933 found="no"
6934
6935 if test $found = "no" ; then
6936 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6938 fi
6939
6940 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942 fi
6943
6944 CFLAGS="$CFLAGS -Wredundant-decls"
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6947 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6948 cacheid=xorg_cv_cc_flag__Wredundant_decls
6949 if eval \${$cacheid+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 int i;
6955 int
6956 main ()
6957 {
6958
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 if ac_fn_c_try_link "$LINENO"; then :
6964 eval $cacheid=yes
6965 else
6966 eval $cacheid=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6970 fi
6971
6972
6973 CFLAGS="$xorg_testset_save_CFLAGS"
6974
6975 eval supported=\$$cacheid
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6977 $as_echo "$supported" >&6; }
6978 if test "$supported" = "yes" ; then
6979 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6980 found="yes"
6981 fi
6982 fi
6983
6984
6985
6986 # These are currently disabled because they are noisy. They will be enabled
6987 # in the future once the codebase is sufficiently modernized to silence
6988 # them. For now, I don't want them to drown out the other warnings.
6989 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6990 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6991 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6992
6993 # Turn some warnings into errors, so we don't accidently get successful builds
6994 # when there are problems that should be fixed.
6995
6996 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010 xorg_testset_save_CFLAGS="$CFLAGS"
7011
7012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7015 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7016 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021 int i;
7022 _ACEOF
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024 xorg_cv_cc_flag_unknown_warning_option=yes
7025 else
7026 xorg_cv_cc_flag_unknown_warning_option=no
7027 fi
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7031 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7033 CFLAGS="$xorg_testset_save_CFLAGS"
7034 fi
7035
7036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039 fi
7040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7042 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7043 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 int i;
7049 _ACEOF
7050 if ac_fn_c_try_compile "$LINENO"; then :
7051 xorg_cv_cc_flag_unused_command_line_argument=yes
7052 else
7053 xorg_cv_cc_flag_unused_command_line_argument=no
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7058 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7060 CFLAGS="$xorg_testset_save_CFLAGS"
7061 fi
7062
7063 found="no"
7064
7065 if test $found = "no" ; then
7066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7068 fi
7069
7070 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072 fi
7073
7074 CFLAGS="$CFLAGS -Werror=implicit"
7075
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
7077 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
7078 cacheid=xorg_cv_cc_flag__Werror_implicit
7079 if eval \${$cacheid+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 int i;
7085 int
7086 main ()
7087 {
7088
7089 ;
7090 return 0;
7091 }
7092 _ACEOF
7093 if ac_fn_c_try_link "$LINENO"; then :
7094 eval $cacheid=yes
7095 else
7096 eval $cacheid=no
7097 fi
7098 rm -f core conftest.err conftest.$ac_objext \
7099 conftest$ac_exeext conftest.$ac_ext
7100 fi
7101
7102
7103 CFLAGS="$xorg_testset_save_CFLAGS"
7104
7105 eval supported=\$$cacheid
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7107 $as_echo "$supported" >&6; }
7108 if test "$supported" = "yes" ; then
7109 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7110 found="yes"
7111 fi
7112 fi
7113
7114 if test $found = "no" ; then
7115 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 fi
7118
7119 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121 fi
7122
7123 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7124
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7126 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7127 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7128 if eval \${$cacheid+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 int i;
7134 int
7135 main ()
7136 {
7137
7138 ;
7139 return 0;
7140 }
7141 _ACEOF
7142 if ac_fn_c_try_link "$LINENO"; then :
7143 eval $cacheid=yes
7144 else
7145 eval $cacheid=no
7146 fi
7147 rm -f core conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7149 fi
7150
7151
7152 CFLAGS="$xorg_testset_save_CFLAGS"
7153
7154 eval supported=\$$cacheid
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7156 $as_echo "$supported" >&6; }
7157 if test "$supported" = "yes" ; then
7158 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7159 found="yes"
7160 fi
7161 fi
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177 xorg_testset_save_CFLAGS="$CFLAGS"
7178
7179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7182 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7183 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 int i;
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"; then :
7191 xorg_cv_cc_flag_unknown_warning_option=yes
7192 else
7193 xorg_cv_cc_flag_unknown_warning_option=no
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 fi
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7198 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7200 CFLAGS="$xorg_testset_save_CFLAGS"
7201 fi
7202
7203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7206 fi
7207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7209 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7210 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 int i;
7216 _ACEOF
7217 if ac_fn_c_try_compile "$LINENO"; then :
7218 xorg_cv_cc_flag_unused_command_line_argument=yes
7219 else
7220 xorg_cv_cc_flag_unused_command_line_argument=no
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7225 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7227 CFLAGS="$xorg_testset_save_CFLAGS"
7228 fi
7229
7230 found="no"
7231
7232 if test $found = "no" ; then
7233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7235 fi
7236
7237 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7239 fi
7240
7241 CFLAGS="$CFLAGS -Werror=nonnull"
7242
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7244 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7245 cacheid=xorg_cv_cc_flag__Werror_nonnull
7246 if eval \${$cacheid+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 int i;
7252 int
7253 main ()
7254 {
7255
7256 ;
7257 return 0;
7258 }
7259 _ACEOF
7260 if ac_fn_c_try_link "$LINENO"; then :
7261 eval $cacheid=yes
7262 else
7263 eval $cacheid=no
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext \
7266 conftest$ac_exeext conftest.$ac_ext
7267 fi
7268
7269
7270 CFLAGS="$xorg_testset_save_CFLAGS"
7271
7272 eval supported=\$$cacheid
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7274 $as_echo "$supported" >&6; }
7275 if test "$supported" = "yes" ; then
7276 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7277 found="yes"
7278 fi
7279 fi
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295 xorg_testset_save_CFLAGS="$CFLAGS"
7296
7297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7300 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7301 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 int i;
7307 _ACEOF
7308 if ac_fn_c_try_compile "$LINENO"; then :
7309 xorg_cv_cc_flag_unknown_warning_option=yes
7310 else
7311 xorg_cv_cc_flag_unknown_warning_option=no
7312 fi
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7316 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7318 CFLAGS="$xorg_testset_save_CFLAGS"
7319 fi
7320
7321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324 fi
7325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7327 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7328 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 int i;
7334 _ACEOF
7335 if ac_fn_c_try_compile "$LINENO"; then :
7336 xorg_cv_cc_flag_unused_command_line_argument=yes
7337 else
7338 xorg_cv_cc_flag_unused_command_line_argument=no
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7343 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7345 CFLAGS="$xorg_testset_save_CFLAGS"
7346 fi
7347
7348 found="no"
7349
7350 if test $found = "no" ; then
7351 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7353 fi
7354
7355 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7357 fi
7358
7359 CFLAGS="$CFLAGS -Werror=init-self"
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7362 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7363 cacheid=xorg_cv_cc_flag__Werror_init_self
7364 if eval \${$cacheid+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369 int i;
7370 int
7371 main ()
7372 {
7373
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 if ac_fn_c_try_link "$LINENO"; then :
7379 eval $cacheid=yes
7380 else
7381 eval $cacheid=no
7382 fi
7383 rm -f core conftest.err conftest.$ac_objext \
7384 conftest$ac_exeext conftest.$ac_ext
7385 fi
7386
7387
7388 CFLAGS="$xorg_testset_save_CFLAGS"
7389
7390 eval supported=\$$cacheid
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7392 $as_echo "$supported" >&6; }
7393 if test "$supported" = "yes" ; then
7394 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7395 found="yes"
7396 fi
7397 fi
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 xorg_testset_save_CFLAGS="$CFLAGS"
7414
7415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7418 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7419 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 int i;
7425 _ACEOF
7426 if ac_fn_c_try_compile "$LINENO"; then :
7427 xorg_cv_cc_flag_unknown_warning_option=yes
7428 else
7429 xorg_cv_cc_flag_unknown_warning_option=no
7430 fi
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 fi
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7434 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7436 CFLAGS="$xorg_testset_save_CFLAGS"
7437 fi
7438
7439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442 fi
7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7445 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7446 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 int i;
7452 _ACEOF
7453 if ac_fn_c_try_compile "$LINENO"; then :
7454 xorg_cv_cc_flag_unused_command_line_argument=yes
7455 else
7456 xorg_cv_cc_flag_unused_command_line_argument=no
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7461 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7463 CFLAGS="$xorg_testset_save_CFLAGS"
7464 fi
7465
7466 found="no"
7467
7468 if test $found = "no" ; then
7469 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7471 fi
7472
7473 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7475 fi
7476
7477 CFLAGS="$CFLAGS -Werror=main"
7478
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7480 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7481 cacheid=xorg_cv_cc_flag__Werror_main
7482 if eval \${$cacheid+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 int i;
7488 int
7489 main ()
7490 {
7491
7492 ;
7493 return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_c_try_link "$LINENO"; then :
7497 eval $cacheid=yes
7498 else
7499 eval $cacheid=no
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext \
7502 conftest$ac_exeext conftest.$ac_ext
7503 fi
7504
7505
7506 CFLAGS="$xorg_testset_save_CFLAGS"
7507
7508 eval supported=\$$cacheid
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7510 $as_echo "$supported" >&6; }
7511 if test "$supported" = "yes" ; then
7512 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7513 found="yes"
7514 fi
7515 fi
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 xorg_testset_save_CFLAGS="$CFLAGS"
7532
7533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7536 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7537 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 int i;
7543 _ACEOF
7544 if ac_fn_c_try_compile "$LINENO"; then :
7545 xorg_cv_cc_flag_unknown_warning_option=yes
7546 else
7547 xorg_cv_cc_flag_unknown_warning_option=no
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 fi
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7552 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7554 CFLAGS="$xorg_testset_save_CFLAGS"
7555 fi
7556
7557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560 fi
7561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7563 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7564 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 int i;
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572 xorg_cv_cc_flag_unused_command_line_argument=yes
7573 else
7574 xorg_cv_cc_flag_unused_command_line_argument=no
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7579 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7581 CFLAGS="$xorg_testset_save_CFLAGS"
7582 fi
7583
7584 found="no"
7585
7586 if test $found = "no" ; then
7587 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589 fi
7590
7591 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7593 fi
7594
7595 CFLAGS="$CFLAGS -Werror=missing-braces"
7596
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7598 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7599 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7600 if eval \${$cacheid+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 int i;
7606 int
7607 main ()
7608 {
7609
7610 ;
7611 return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_link "$LINENO"; then :
7615 eval $cacheid=yes
7616 else
7617 eval $cacheid=no
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext \
7620 conftest$ac_exeext conftest.$ac_ext
7621 fi
7622
7623
7624 CFLAGS="$xorg_testset_save_CFLAGS"
7625
7626 eval supported=\$$cacheid
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7628 $as_echo "$supported" >&6; }
7629 if test "$supported" = "yes" ; then
7630 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7631 found="yes"
7632 fi
7633 fi
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649 xorg_testset_save_CFLAGS="$CFLAGS"
7650
7651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7654 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7655 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660 int i;
7661 _ACEOF
7662 if ac_fn_c_try_compile "$LINENO"; then :
7663 xorg_cv_cc_flag_unknown_warning_option=yes
7664 else
7665 xorg_cv_cc_flag_unknown_warning_option=no
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 fi
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7670 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7672 CFLAGS="$xorg_testset_save_CFLAGS"
7673 fi
7674
7675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678 fi
7679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7681 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7682 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 int i;
7688 _ACEOF
7689 if ac_fn_c_try_compile "$LINENO"; then :
7690 xorg_cv_cc_flag_unused_command_line_argument=yes
7691 else
7692 xorg_cv_cc_flag_unused_command_line_argument=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699 CFLAGS="$xorg_testset_save_CFLAGS"
7700 fi
7701
7702 found="no"
7703
7704 if test $found = "no" ; then
7705 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707 fi
7708
7709 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 fi
7712
7713 CFLAGS="$CFLAGS -Werror=sequence-point"
7714
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7716 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7717 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7718 if eval \${$cacheid+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 int i;
7724 int
7725 main ()
7726 {
7727
7728 ;
7729 return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_link "$LINENO"; then :
7733 eval $cacheid=yes
7734 else
7735 eval $cacheid=no
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739 fi
7740
7741
7742 CFLAGS="$xorg_testset_save_CFLAGS"
7743
7744 eval supported=\$$cacheid
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7746 $as_echo "$supported" >&6; }
7747 if test "$supported" = "yes" ; then
7748 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7749 found="yes"
7750 fi
7751 fi
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767 xorg_testset_save_CFLAGS="$CFLAGS"
7768
7769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7772 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7773 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 int i;
7779 _ACEOF
7780 if ac_fn_c_try_compile "$LINENO"; then :
7781 xorg_cv_cc_flag_unknown_warning_option=yes
7782 else
7783 xorg_cv_cc_flag_unknown_warning_option=no
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 fi
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7788 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7790 CFLAGS="$xorg_testset_save_CFLAGS"
7791 fi
7792
7793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796 fi
7797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7799 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7800 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 int i;
7806 _ACEOF
7807 if ac_fn_c_try_compile "$LINENO"; then :
7808 xorg_cv_cc_flag_unused_command_line_argument=yes
7809 else
7810 xorg_cv_cc_flag_unused_command_line_argument=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 fi
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7815 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7817 CFLAGS="$xorg_testset_save_CFLAGS"
7818 fi
7819
7820 found="no"
7821
7822 if test $found = "no" ; then
7823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825 fi
7826
7827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829 fi
7830
7831 CFLAGS="$CFLAGS -Werror=return-type"
7832
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7834 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7835 cacheid=xorg_cv_cc_flag__Werror_return_type
7836 if eval \${$cacheid+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841 int i;
7842 int
7843 main ()
7844 {
7845
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_link "$LINENO"; then :
7851 eval $cacheid=yes
7852 else
7853 eval $cacheid=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 fi
7858
7859
7860 CFLAGS="$xorg_testset_save_CFLAGS"
7861
7862 eval supported=\$$cacheid
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7864 $as_echo "$supported" >&6; }
7865 if test "$supported" = "yes" ; then
7866 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7867 found="yes"
7868 fi
7869 fi
7870
7871 if test $found = "no" ; then
7872 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7874 fi
7875
7876 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7878 fi
7879
7880 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7883 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7884 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7885 if eval \${$cacheid+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 int i;
7891 int
7892 main ()
7893 {
7894
7895 ;
7896 return 0;
7897 }
7898 _ACEOF
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 eval $cacheid=yes
7901 else
7902 eval $cacheid=no
7903 fi
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7906 fi
7907
7908
7909 CFLAGS="$xorg_testset_save_CFLAGS"
7910
7911 eval supported=\$$cacheid
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7913 $as_echo "$supported" >&6; }
7914 if test "$supported" = "yes" ; then
7915 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7916 found="yes"
7917 fi
7918 fi
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934 xorg_testset_save_CFLAGS="$CFLAGS"
7935
7936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7939 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7940 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 int i;
7946 _ACEOF
7947 if ac_fn_c_try_compile "$LINENO"; then :
7948 xorg_cv_cc_flag_unknown_warning_option=yes
7949 else
7950 xorg_cv_cc_flag_unknown_warning_option=no
7951 fi
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 fi
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7955 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7957 CFLAGS="$xorg_testset_save_CFLAGS"
7958 fi
7959
7960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963 fi
7964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7966 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7967 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 int i;
7973 _ACEOF
7974 if ac_fn_c_try_compile "$LINENO"; then :
7975 xorg_cv_cc_flag_unused_command_line_argument=yes
7976 else
7977 xorg_cv_cc_flag_unused_command_line_argument=no
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7982 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7984 CFLAGS="$xorg_testset_save_CFLAGS"
7985 fi
7986
7987 found="no"
7988
7989 if test $found = "no" ; then
7990 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7992 fi
7993
7994 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7996 fi
7997
7998 CFLAGS="$CFLAGS -Werror=trigraphs"
7999
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
8001 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
8002 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8003 if eval \${$cacheid+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 int i;
8009 int
8010 main ()
8011 {
8012
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"; then :
8018 eval $cacheid=yes
8019 else
8020 eval $cacheid=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 fi
8025
8026
8027 CFLAGS="$xorg_testset_save_CFLAGS"
8028
8029 eval supported=\$$cacheid
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8031 $as_echo "$supported" >&6; }
8032 if test "$supported" = "yes" ; then
8033 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8034 found="yes"
8035 fi
8036 fi
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052 xorg_testset_save_CFLAGS="$CFLAGS"
8053
8054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8057 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8058 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 int i;
8064 _ACEOF
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066 xorg_cv_cc_flag_unknown_warning_option=yes
8067 else
8068 xorg_cv_cc_flag_unknown_warning_option=no
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 fi
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8073 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8075 CFLAGS="$xorg_testset_save_CFLAGS"
8076 fi
8077
8078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081 fi
8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8084 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8085 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 int i;
8091 _ACEOF
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093 xorg_cv_cc_flag_unused_command_line_argument=yes
8094 else
8095 xorg_cv_cc_flag_unused_command_line_argument=no
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8100 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8102 CFLAGS="$xorg_testset_save_CFLAGS"
8103 fi
8104
8105 found="no"
8106
8107 if test $found = "no" ; then
8108 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110 fi
8111
8112 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8114 fi
8115
8116 CFLAGS="$CFLAGS -Werror=array-bounds"
8117
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
8119 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
8120 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8121 if eval \${$cacheid+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 int i;
8127 int
8128 main ()
8129 {
8130
8131 ;
8132 return 0;
8133 }
8134 _ACEOF
8135 if ac_fn_c_try_link "$LINENO"; then :
8136 eval $cacheid=yes
8137 else
8138 eval $cacheid=no
8139 fi
8140 rm -f core conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142 fi
8143
8144
8145 CFLAGS="$xorg_testset_save_CFLAGS"
8146
8147 eval supported=\$$cacheid
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8149 $as_echo "$supported" >&6; }
8150 if test "$supported" = "yes" ; then
8151 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8152 found="yes"
8153 fi
8154 fi
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170 xorg_testset_save_CFLAGS="$CFLAGS"
8171
8172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8175 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8176 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 int i;
8182 _ACEOF
8183 if ac_fn_c_try_compile "$LINENO"; then :
8184 xorg_cv_cc_flag_unknown_warning_option=yes
8185 else
8186 xorg_cv_cc_flag_unknown_warning_option=no
8187 fi
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8191 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8193 CFLAGS="$xorg_testset_save_CFLAGS"
8194 fi
8195
8196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8199 fi
8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8203 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 int i;
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 xorg_cv_cc_flag_unused_command_line_argument=yes
8212 else
8213 xorg_cv_cc_flag_unused_command_line_argument=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8218 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8220 CFLAGS="$xorg_testset_save_CFLAGS"
8221 fi
8222
8223 found="no"
8224
8225 if test $found = "no" ; then
8226 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228 fi
8229
8230 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8232 fi
8233
8234 CFLAGS="$CFLAGS -Werror=write-strings"
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8237 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8238 cacheid=xorg_cv_cc_flag__Werror_write_strings
8239 if eval \${$cacheid+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 int i;
8245 int
8246 main ()
8247 {
8248
8249 ;
8250 return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_link "$LINENO"; then :
8254 eval $cacheid=yes
8255 else
8256 eval $cacheid=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260 fi
8261
8262
8263 CFLAGS="$xorg_testset_save_CFLAGS"
8264
8265 eval supported=\$$cacheid
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8267 $as_echo "$supported" >&6; }
8268 if test "$supported" = "yes" ; then
8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8270 found="yes"
8271 fi
8272 fi
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288 xorg_testset_save_CFLAGS="$CFLAGS"
8289
8290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8293 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8294 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 int i;
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302 xorg_cv_cc_flag_unknown_warning_option=yes
8303 else
8304 xorg_cv_cc_flag_unknown_warning_option=no
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8309 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8311 CFLAGS="$xorg_testset_save_CFLAGS"
8312 fi
8313
8314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8317 fi
8318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8320 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8321 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326 int i;
8327 _ACEOF
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329 xorg_cv_cc_flag_unused_command_line_argument=yes
8330 else
8331 xorg_cv_cc_flag_unused_command_line_argument=no
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8336 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8338 CFLAGS="$xorg_testset_save_CFLAGS"
8339 fi
8340
8341 found="no"
8342
8343 if test $found = "no" ; then
8344 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346 fi
8347
8348 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8350 fi
8351
8352 CFLAGS="$CFLAGS -Werror=address"
8353
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8355 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8356 cacheid=xorg_cv_cc_flag__Werror_address
8357 if eval \${$cacheid+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 int i;
8363 int
8364 main ()
8365 {
8366
8367 ;
8368 return 0;
8369 }
8370 _ACEOF
8371 if ac_fn_c_try_link "$LINENO"; then :
8372 eval $cacheid=yes
8373 else
8374 eval $cacheid=no
8375 fi
8376 rm -f core conftest.err conftest.$ac_objext \
8377 conftest$ac_exeext conftest.$ac_ext
8378 fi
8379
8380
8381 CFLAGS="$xorg_testset_save_CFLAGS"
8382
8383 eval supported=\$$cacheid
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8385 $as_echo "$supported" >&6; }
8386 if test "$supported" = "yes" ; then
8387 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8388 found="yes"
8389 fi
8390 fi
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406 xorg_testset_save_CFLAGS="$CFLAGS"
8407
8408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8411 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8412 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8417 int i;
8418 _ACEOF
8419 if ac_fn_c_try_compile "$LINENO"; then :
8420 xorg_cv_cc_flag_unknown_warning_option=yes
8421 else
8422 xorg_cv_cc_flag_unknown_warning_option=no
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 fi
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8427 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8429 CFLAGS="$xorg_testset_save_CFLAGS"
8430 fi
8431
8432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8435 fi
8436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8438 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8439 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 int i;
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447 xorg_cv_cc_flag_unused_command_line_argument=yes
8448 else
8449 xorg_cv_cc_flag_unused_command_line_argument=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 fi
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8454 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8456 CFLAGS="$xorg_testset_save_CFLAGS"
8457 fi
8458
8459 found="no"
8460
8461 if test $found = "no" ; then
8462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8464 fi
8465
8466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468 fi
8469
8470 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8473 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8474 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8475 if eval \${$cacheid+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 int i;
8481 int
8482 main ()
8483 {
8484
8485 ;
8486 return 0;
8487 }
8488 _ACEOF
8489 if ac_fn_c_try_link "$LINENO"; then :
8490 eval $cacheid=yes
8491 else
8492 eval $cacheid=no
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496 fi
8497
8498
8499 CFLAGS="$xorg_testset_save_CFLAGS"
8500
8501 eval supported=\$$cacheid
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8503 $as_echo "$supported" >&6; }
8504 if test "$supported" = "yes" ; then
8505 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8506 found="yes"
8507 fi
8508 fi
8509
8510 if test $found = "no" ; then
8511 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513 fi
8514
8515 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8517 fi
8518
8519 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8520
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8522 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8523 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8524 if eval \${$cacheid+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 int i;
8530 int
8531 main ()
8532 {
8533
8534 ;
8535 return 0;
8536 }
8537 _ACEOF
8538 if ac_fn_c_try_link "$LINENO"; then :
8539 eval $cacheid=yes
8540 else
8541 eval $cacheid=no
8542 fi
8543 rm -f core conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8545 fi
8546
8547
8548 CFLAGS="$xorg_testset_save_CFLAGS"
8549
8550 eval supported=\$$cacheid
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8552 $as_echo "$supported" >&6; }
8553 if test "$supported" = "yes" ; then
8554 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8555 found="yes"
8556 fi
8557 fi
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573 xorg_testset_save_CFLAGS="$CFLAGS"
8574
8575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8578 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8579 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 int i;
8585 _ACEOF
8586 if ac_fn_c_try_compile "$LINENO"; then :
8587 xorg_cv_cc_flag_unknown_warning_option=yes
8588 else
8589 xorg_cv_cc_flag_unknown_warning_option=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8594 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8596 CFLAGS="$xorg_testset_save_CFLAGS"
8597 fi
8598
8599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8602 fi
8603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8605 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8606 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 int i;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614 xorg_cv_cc_flag_unused_command_line_argument=yes
8615 else
8616 xorg_cv_cc_flag_unused_command_line_argument=no
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8621 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8623 CFLAGS="$xorg_testset_save_CFLAGS"
8624 fi
8625
8626 found="no"
8627
8628 if test $found = "no" ; then
8629 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8631 fi
8632
8633 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635 fi
8636
8637 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8638
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8640 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8641 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8642 if eval \${$cacheid+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8647 int i;
8648 int
8649 main ()
8650 {
8651
8652 ;
8653 return 0;
8654 }
8655 _ACEOF
8656 if ac_fn_c_try_link "$LINENO"; then :
8657 eval $cacheid=yes
8658 else
8659 eval $cacheid=no
8660 fi
8661 rm -f core conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8663 fi
8664
8665
8666 CFLAGS="$xorg_testset_save_CFLAGS"
8667
8668 eval supported=\$$cacheid
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8670 $as_echo "$supported" >&6; }
8671 if test "$supported" = "yes" ; then
8672 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8673 found="yes"
8674 fi
8675 fi
8676
8677 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8678 else
8679 { $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
8680 $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;}
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694 xorg_testset_save_CFLAGS="$CFLAGS"
8695
8696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8699 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8700 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 int i;
8706 _ACEOF
8707 if ac_fn_c_try_compile "$LINENO"; then :
8708 xorg_cv_cc_flag_unknown_warning_option=yes
8709 else
8710 xorg_cv_cc_flag_unknown_warning_option=no
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 fi
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8715 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8717 CFLAGS="$xorg_testset_save_CFLAGS"
8718 fi
8719
8720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723 fi
8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8726 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8727 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 int i;
8733 _ACEOF
8734 if ac_fn_c_try_compile "$LINENO"; then :
8735 xorg_cv_cc_flag_unused_command_line_argument=yes
8736 else
8737 xorg_cv_cc_flag_unused_command_line_argument=no
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8742 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8744 CFLAGS="$xorg_testset_save_CFLAGS"
8745 fi
8746
8747 found="no"
8748
8749 if test $found = "no" ; then
8750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752 fi
8753
8754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756 fi
8757
8758 CFLAGS="$CFLAGS -Wimplicit"
8759
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8761 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8762 cacheid=xorg_cv_cc_flag__Wimplicit
8763 if eval \${$cacheid+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 int i;
8769 int
8770 main ()
8771 {
8772
8773 ;
8774 return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778 eval $cacheid=yes
8779 else
8780 eval $cacheid=no
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
8784 fi
8785
8786
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789 eval supported=\$$cacheid
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791 $as_echo "$supported" >&6; }
8792 if test "$supported" = "yes" ; then
8793 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8794 found="yes"
8795 fi
8796 fi
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812 xorg_testset_save_CFLAGS="$CFLAGS"
8813
8814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8817 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8818 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 int i;
8824 _ACEOF
8825 if ac_fn_c_try_compile "$LINENO"; then :
8826 xorg_cv_cc_flag_unknown_warning_option=yes
8827 else
8828 xorg_cv_cc_flag_unknown_warning_option=no
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 fi
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8833 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8835 CFLAGS="$xorg_testset_save_CFLAGS"
8836 fi
8837
8838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8841 fi
8842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8844 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8845 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 int i;
8851 _ACEOF
8852 if ac_fn_c_try_compile "$LINENO"; then :
8853 xorg_cv_cc_flag_unused_command_line_argument=yes
8854 else
8855 xorg_cv_cc_flag_unused_command_line_argument=no
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8860 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8862 CFLAGS="$xorg_testset_save_CFLAGS"
8863 fi
8864
8865 found="no"
8866
8867 if test $found = "no" ; then
8868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870 fi
8871
8872 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8874 fi
8875
8876 CFLAGS="$CFLAGS -Wnonnull"
8877
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8879 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8880 cacheid=xorg_cv_cc_flag__Wnonnull
8881 if eval \${$cacheid+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 int i;
8887 int
8888 main ()
8889 {
8890
8891 ;
8892 return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_link "$LINENO"; then :
8896 eval $cacheid=yes
8897 else
8898 eval $cacheid=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext conftest.$ac_ext
8902 fi
8903
8904
8905 CFLAGS="$xorg_testset_save_CFLAGS"
8906
8907 eval supported=\$$cacheid
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8909 $as_echo "$supported" >&6; }
8910 if test "$supported" = "yes" ; then
8911 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8912 found="yes"
8913 fi
8914 fi
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930 xorg_testset_save_CFLAGS="$CFLAGS"
8931
8932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8935 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8936 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 int i;
8942 _ACEOF
8943 if ac_fn_c_try_compile "$LINENO"; then :
8944 xorg_cv_cc_flag_unknown_warning_option=yes
8945 else
8946 xorg_cv_cc_flag_unknown_warning_option=no
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8951 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8953 CFLAGS="$xorg_testset_save_CFLAGS"
8954 fi
8955
8956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8959 fi
8960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8962 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8963 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968 int i;
8969 _ACEOF
8970 if ac_fn_c_try_compile "$LINENO"; then :
8971 xorg_cv_cc_flag_unused_command_line_argument=yes
8972 else
8973 xorg_cv_cc_flag_unused_command_line_argument=no
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976 fi
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8978 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8980 CFLAGS="$xorg_testset_save_CFLAGS"
8981 fi
8982
8983 found="no"
8984
8985 if test $found = "no" ; then
8986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8988 fi
8989
8990 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992 fi
8993
8994 CFLAGS="$CFLAGS -Winit-self"
8995
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8997 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8998 cacheid=xorg_cv_cc_flag__Winit_self
8999 if eval \${$cacheid+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 int i;
9005 int
9006 main ()
9007 {
9008
9009 ;
9010 return 0;
9011 }
9012 _ACEOF
9013 if ac_fn_c_try_link "$LINENO"; then :
9014 eval $cacheid=yes
9015 else
9016 eval $cacheid=no
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext \
9019 conftest$ac_exeext conftest.$ac_ext
9020 fi
9021
9022
9023 CFLAGS="$xorg_testset_save_CFLAGS"
9024
9025 eval supported=\$$cacheid
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9027 $as_echo "$supported" >&6; }
9028 if test "$supported" = "yes" ; then
9029 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9030 found="yes"
9031 fi
9032 fi
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048 xorg_testset_save_CFLAGS="$CFLAGS"
9049
9050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 int i;
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"; then :
9062 xorg_cv_cc_flag_unknown_warning_option=yes
9063 else
9064 xorg_cv_cc_flag_unknown_warning_option=no
9065 fi
9066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9071 CFLAGS="$xorg_testset_save_CFLAGS"
9072 fi
9073
9074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9077 fi
9078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086 int i;
9087 _ACEOF
9088 if ac_fn_c_try_compile "$LINENO"; then :
9089 xorg_cv_cc_flag_unused_command_line_argument=yes
9090 else
9091 xorg_cv_cc_flag_unused_command_line_argument=no
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9098 CFLAGS="$xorg_testset_save_CFLAGS"
9099 fi
9100
9101 found="no"
9102
9103 if test $found = "no" ; then
9104 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106 fi
9107
9108 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 fi
9111
9112 CFLAGS="$CFLAGS -Wmain"
9113
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
9115 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
9116 cacheid=xorg_cv_cc_flag__Wmain
9117 if eval \${$cacheid+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122 int i;
9123 int
9124 main ()
9125 {
9126
9127 ;
9128 return 0;
9129 }
9130 _ACEOF
9131 if ac_fn_c_try_link "$LINENO"; then :
9132 eval $cacheid=yes
9133 else
9134 eval $cacheid=no
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138 fi
9139
9140
9141 CFLAGS="$xorg_testset_save_CFLAGS"
9142
9143 eval supported=\$$cacheid
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9145 $as_echo "$supported" >&6; }
9146 if test "$supported" = "yes" ; then
9147 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9148 found="yes"
9149 fi
9150 fi
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166 xorg_testset_save_CFLAGS="$CFLAGS"
9167
9168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9172 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9177 int i;
9178 _ACEOF
9179 if ac_fn_c_try_compile "$LINENO"; then :
9180 xorg_cv_cc_flag_unknown_warning_option=yes
9181 else
9182 xorg_cv_cc_flag_unknown_warning_option=no
9183 fi
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9189 CFLAGS="$xorg_testset_save_CFLAGS"
9190 fi
9191
9192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195 fi
9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 int i;
9205 _ACEOF
9206 if ac_fn_c_try_compile "$LINENO"; then :
9207 xorg_cv_cc_flag_unused_command_line_argument=yes
9208 else
9209 xorg_cv_cc_flag_unused_command_line_argument=no
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9216 CFLAGS="$xorg_testset_save_CFLAGS"
9217 fi
9218
9219 found="no"
9220
9221 if test $found = "no" ; then
9222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224 fi
9225
9226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228 fi
9229
9230 CFLAGS="$CFLAGS -Wmissing-braces"
9231
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9233 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9234 cacheid=xorg_cv_cc_flag__Wmissing_braces
9235 if eval \${$cacheid+:} false; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 int i;
9241 int
9242 main ()
9243 {
9244
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"; then :
9250 eval $cacheid=yes
9251 else
9252 eval $cacheid=no
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 fi
9257
9258
9259 CFLAGS="$xorg_testset_save_CFLAGS"
9260
9261 eval supported=\$$cacheid
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9263 $as_echo "$supported" >&6; }
9264 if test "$supported" = "yes" ; then
9265 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9266 found="yes"
9267 fi
9268 fi
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284 xorg_testset_save_CFLAGS="$CFLAGS"
9285
9286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9290 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295 int i;
9296 _ACEOF
9297 if ac_fn_c_try_compile "$LINENO"; then :
9298 xorg_cv_cc_flag_unknown_warning_option=yes
9299 else
9300 xorg_cv_cc_flag_unknown_warning_option=no
9301 fi
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9303 fi
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9307 CFLAGS="$xorg_testset_save_CFLAGS"
9308 fi
9309
9310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9313 fi
9314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 int i;
9323 _ACEOF
9324 if ac_fn_c_try_compile "$LINENO"; then :
9325 xorg_cv_cc_flag_unused_command_line_argument=yes
9326 else
9327 xorg_cv_cc_flag_unused_command_line_argument=no
9328 fi
9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9330 fi
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9334 CFLAGS="$xorg_testset_save_CFLAGS"
9335 fi
9336
9337 found="no"
9338
9339 if test $found = "no" ; then
9340 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9342 fi
9343
9344 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346 fi
9347
9348 CFLAGS="$CFLAGS -Wsequence-point"
9349
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9351 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9352 cacheid=xorg_cv_cc_flag__Wsequence_point
9353 if eval \${$cacheid+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 int i;
9359 int
9360 main ()
9361 {
9362
9363 ;
9364 return 0;
9365 }
9366 _ACEOF
9367 if ac_fn_c_try_link "$LINENO"; then :
9368 eval $cacheid=yes
9369 else
9370 eval $cacheid=no
9371 fi
9372 rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9374 fi
9375
9376
9377 CFLAGS="$xorg_testset_save_CFLAGS"
9378
9379 eval supported=\$$cacheid
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9381 $as_echo "$supported" >&6; }
9382 if test "$supported" = "yes" ; then
9383 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9384 found="yes"
9385 fi
9386 fi
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402 xorg_testset_save_CFLAGS="$CFLAGS"
9403
9404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9407 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9408 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413 int i;
9414 _ACEOF
9415 if ac_fn_c_try_compile "$LINENO"; then :
9416 xorg_cv_cc_flag_unknown_warning_option=yes
9417 else
9418 xorg_cv_cc_flag_unknown_warning_option=no
9419 fi
9420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9421 fi
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9423 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9425 CFLAGS="$xorg_testset_save_CFLAGS"
9426 fi
9427
9428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9431 fi
9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9434 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9435 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9440 int i;
9441 _ACEOF
9442 if ac_fn_c_try_compile "$LINENO"; then :
9443 xorg_cv_cc_flag_unused_command_line_argument=yes
9444 else
9445 xorg_cv_cc_flag_unused_command_line_argument=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9450 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9452 CFLAGS="$xorg_testset_save_CFLAGS"
9453 fi
9454
9455 found="no"
9456
9457 if test $found = "no" ; then
9458 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460 fi
9461
9462 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464 fi
9465
9466 CFLAGS="$CFLAGS -Wreturn-type"
9467
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9469 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9470 cacheid=xorg_cv_cc_flag__Wreturn_type
9471 if eval \${$cacheid+:} false; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 int i;
9477 int
9478 main ()
9479 {
9480
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 eval $cacheid=yes
9487 else
9488 eval $cacheid=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 fi
9493
9494
9495 CFLAGS="$xorg_testset_save_CFLAGS"
9496
9497 eval supported=\$$cacheid
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9499 $as_echo "$supported" >&6; }
9500 if test "$supported" = "yes" ; then
9501 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9502 found="yes"
9503 fi
9504 fi
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520 xorg_testset_save_CFLAGS="$CFLAGS"
9521
9522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9525 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9526 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531 int i;
9532 _ACEOF
9533 if ac_fn_c_try_compile "$LINENO"; then :
9534 xorg_cv_cc_flag_unknown_warning_option=yes
9535 else
9536 xorg_cv_cc_flag_unknown_warning_option=no
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9541 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9543 CFLAGS="$xorg_testset_save_CFLAGS"
9544 fi
9545
9546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549 fi
9550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9552 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9553 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9558 int i;
9559 _ACEOF
9560 if ac_fn_c_try_compile "$LINENO"; then :
9561 xorg_cv_cc_flag_unused_command_line_argument=yes
9562 else
9563 xorg_cv_cc_flag_unused_command_line_argument=no
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 fi
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9568 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9570 CFLAGS="$xorg_testset_save_CFLAGS"
9571 fi
9572
9573 found="no"
9574
9575 if test $found = "no" ; then
9576 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578 fi
9579
9580 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9582 fi
9583
9584 CFLAGS="$CFLAGS -Wtrigraphs"
9585
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9587 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9588 cacheid=xorg_cv_cc_flag__Wtrigraphs
9589 if eval \${$cacheid+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 int i;
9595 int
9596 main ()
9597 {
9598
9599 ;
9600 return 0;
9601 }
9602 _ACEOF
9603 if ac_fn_c_try_link "$LINENO"; then :
9604 eval $cacheid=yes
9605 else
9606 eval $cacheid=no
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 fi
9611
9612
9613 CFLAGS="$xorg_testset_save_CFLAGS"
9614
9615 eval supported=\$$cacheid
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9617 $as_echo "$supported" >&6; }
9618 if test "$supported" = "yes" ; then
9619 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9620 found="yes"
9621 fi
9622 fi
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638 xorg_testset_save_CFLAGS="$CFLAGS"
9639
9640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9643 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9644 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 int i;
9650 _ACEOF
9651 if ac_fn_c_try_compile "$LINENO"; then :
9652 xorg_cv_cc_flag_unknown_warning_option=yes
9653 else
9654 xorg_cv_cc_flag_unknown_warning_option=no
9655 fi
9656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9659 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9661 CFLAGS="$xorg_testset_save_CFLAGS"
9662 fi
9663
9664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9667 fi
9668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9670 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9671 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 int i;
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679 xorg_cv_cc_flag_unused_command_line_argument=yes
9680 else
9681 xorg_cv_cc_flag_unused_command_line_argument=no
9682 fi
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 fi
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9686 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9688 CFLAGS="$xorg_testset_save_CFLAGS"
9689 fi
9690
9691 found="no"
9692
9693 if test $found = "no" ; then
9694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696 fi
9697
9698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9700 fi
9701
9702 CFLAGS="$CFLAGS -Warray-bounds"
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9705 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9706 cacheid=xorg_cv_cc_flag__Warray_bounds
9707 if eval \${$cacheid+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 int i;
9713 int
9714 main ()
9715 {
9716
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_c_try_link "$LINENO"; then :
9722 eval $cacheid=yes
9723 else
9724 eval $cacheid=no
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 fi
9729
9730
9731 CFLAGS="$xorg_testset_save_CFLAGS"
9732
9733 eval supported=\$$cacheid
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9735 $as_echo "$supported" >&6; }
9736 if test "$supported" = "yes" ; then
9737 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9738 found="yes"
9739 fi
9740 fi
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756 xorg_testset_save_CFLAGS="$CFLAGS"
9757
9758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9761 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9762 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 int i;
9768 _ACEOF
9769 if ac_fn_c_try_compile "$LINENO"; then :
9770 xorg_cv_cc_flag_unknown_warning_option=yes
9771 else
9772 xorg_cv_cc_flag_unknown_warning_option=no
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9777 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9779 CFLAGS="$xorg_testset_save_CFLAGS"
9780 fi
9781
9782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 fi
9786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9788 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9789 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 int i;
9795 _ACEOF
9796 if ac_fn_c_try_compile "$LINENO"; then :
9797 xorg_cv_cc_flag_unused_command_line_argument=yes
9798 else
9799 xorg_cv_cc_flag_unused_command_line_argument=no
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9804 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9806 CFLAGS="$xorg_testset_save_CFLAGS"
9807 fi
9808
9809 found="no"
9810
9811 if test $found = "no" ; then
9812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814 fi
9815
9816 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9818 fi
9819
9820 CFLAGS="$CFLAGS -Wwrite-strings"
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9823 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9824 cacheid=xorg_cv_cc_flag__Wwrite_strings
9825 if eval \${$cacheid+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830 int i;
9831 int
9832 main ()
9833 {
9834
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 if ac_fn_c_try_link "$LINENO"; then :
9840 eval $cacheid=yes
9841 else
9842 eval $cacheid=no
9843 fi
9844 rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9846 fi
9847
9848
9849 CFLAGS="$xorg_testset_save_CFLAGS"
9850
9851 eval supported=\$$cacheid
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9853 $as_echo "$supported" >&6; }
9854 if test "$supported" = "yes" ; then
9855 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9856 found="yes"
9857 fi
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874 xorg_testset_save_CFLAGS="$CFLAGS"
9875
9876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9879 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9880 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 int i;
9886 _ACEOF
9887 if ac_fn_c_try_compile "$LINENO"; then :
9888 xorg_cv_cc_flag_unknown_warning_option=yes
9889 else
9890 xorg_cv_cc_flag_unknown_warning_option=no
9891 fi
9892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9893 fi
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9895 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9897 CFLAGS="$xorg_testset_save_CFLAGS"
9898 fi
9899
9900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903 fi
9904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9906 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9907 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 int i;
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 xorg_cv_cc_flag_unused_command_line_argument=yes
9916 else
9917 xorg_cv_cc_flag_unused_command_line_argument=no
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9922 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9924 CFLAGS="$xorg_testset_save_CFLAGS"
9925 fi
9926
9927 found="no"
9928
9929 if test $found = "no" ; then
9930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9932 fi
9933
9934 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9936 fi
9937
9938 CFLAGS="$CFLAGS -Waddress"
9939
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9941 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9942 cacheid=xorg_cv_cc_flag__Waddress
9943 if eval \${$cacheid+:} false; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 int i;
9949 int
9950 main ()
9951 {
9952
9953 ;
9954 return 0;
9955 }
9956 _ACEOF
9957 if ac_fn_c_try_link "$LINENO"; then :
9958 eval $cacheid=yes
9959 else
9960 eval $cacheid=no
9961 fi
9962 rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 fi
9965
9966
9967 CFLAGS="$xorg_testset_save_CFLAGS"
9968
9969 eval supported=\$$cacheid
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9971 $as_echo "$supported" >&6; }
9972 if test "$supported" = "yes" ; then
9973 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9974 found="yes"
9975 fi
9976 fi
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992 xorg_testset_save_CFLAGS="$CFLAGS"
9993
9994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10003 int i;
10004 _ACEOF
10005 if ac_fn_c_try_compile "$LINENO"; then :
10006 xorg_cv_cc_flag_unknown_warning_option=yes
10007 else
10008 xorg_cv_cc_flag_unknown_warning_option=no
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 fi
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10015 CFLAGS="$xorg_testset_save_CFLAGS"
10016 fi
10017
10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 fi
10022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 int i;
10031 _ACEOF
10032 if ac_fn_c_try_compile "$LINENO"; then :
10033 xorg_cv_cc_flag_unused_command_line_argument=yes
10034 else
10035 xorg_cv_cc_flag_unused_command_line_argument=no
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10042 CFLAGS="$xorg_testset_save_CFLAGS"
10043 fi
10044
10045 found="no"
10046
10047 if test $found = "no" ; then
10048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10050 fi
10051
10052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054 fi
10055
10056 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10057
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
10059 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
10060 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10061 if eval \${$cacheid+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10066 int i;
10067 int
10068 main ()
10069 {
10070
10071 ;
10072 return 0;
10073 }
10074 _ACEOF
10075 if ac_fn_c_try_link "$LINENO"; then :
10076 eval $cacheid=yes
10077 else
10078 eval $cacheid=no
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 fi
10083
10084
10085 CFLAGS="$xorg_testset_save_CFLAGS"
10086
10087 eval supported=\$$cacheid
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10089 $as_echo "$supported" >&6; }
10090 if test "$supported" = "yes" ; then
10091 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10092 found="yes"
10093 fi
10094 fi
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110 xorg_testset_save_CFLAGS="$CFLAGS"
10111
10112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121 int i;
10122 _ACEOF
10123 if ac_fn_c_try_compile "$LINENO"; then :
10124 xorg_cv_cc_flag_unknown_warning_option=yes
10125 else
10126 xorg_cv_cc_flag_unknown_warning_option=no
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10133 CFLAGS="$xorg_testset_save_CFLAGS"
10134 fi
10135
10136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139 fi
10140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 int i;
10149 _ACEOF
10150 if ac_fn_c_try_compile "$LINENO"; then :
10151 xorg_cv_cc_flag_unused_command_line_argument=yes
10152 else
10153 xorg_cv_cc_flag_unused_command_line_argument=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160 CFLAGS="$xorg_testset_save_CFLAGS"
10161 fi
10162
10163 found="no"
10164
10165 if test $found = "no" ; then
10166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168 fi
10169
10170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 fi
10173
10174 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10175
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10177 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10178 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10179 if eval \${$cacheid+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int i;
10185 int
10186 main ()
10187 {
10188
10189 ;
10190 return 0;
10191 }
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"; then :
10194 eval $cacheid=yes
10195 else
10196 eval $cacheid=no
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 fi
10201
10202
10203 CFLAGS="$xorg_testset_save_CFLAGS"
10204
10205 eval supported=\$$cacheid
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10207 $as_echo "$supported" >&6; }
10208 if test "$supported" = "yes" ; then
10209 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10210 found="yes"
10211 fi
10212 fi
10213
10214
10215 fi
10216
10217
10218
10219
10220
10221
10222
10223 CWARNFLAGS="$BASE_CFLAGS"
10224 if test "x$GCC" = xyes ; then
10225 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10226 fi
10227
10228
10229
10230
10231
10232
10233
10234
10235 # Check whether --enable-strict-compilation was given.
10236 if test "${enable_strict_compilation+set}" = set; then :
10237 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10238 else
10239 STRICT_COMPILE=no
10240 fi
10241
10242
10243
10244
10245
10246
10247 STRICT_CFLAGS=""
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261 xorg_testset_save_CFLAGS="$CFLAGS"
10262
10263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272 int i;
10273 _ACEOF
10274 if ac_fn_c_try_compile "$LINENO"; then :
10275 xorg_cv_cc_flag_unknown_warning_option=yes
10276 else
10277 xorg_cv_cc_flag_unknown_warning_option=no
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10280 fi
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10284 CFLAGS="$xorg_testset_save_CFLAGS"
10285 fi
10286
10287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290 fi
10291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 int i;
10300 _ACEOF
10301 if ac_fn_c_try_compile "$LINENO"; then :
10302 xorg_cv_cc_flag_unused_command_line_argument=yes
10303 else
10304 xorg_cv_cc_flag_unused_command_line_argument=no
10305 fi
10306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307 fi
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10311 CFLAGS="$xorg_testset_save_CFLAGS"
10312 fi
10313
10314 found="no"
10315
10316 if test $found = "no" ; then
10317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319 fi
10320
10321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10323 fi
10324
10325 CFLAGS="$CFLAGS -pedantic"
10326
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10328 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10329 cacheid=xorg_cv_cc_flag__pedantic
10330 if eval \${$cacheid+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10335 int i;
10336 int
10337 main ()
10338 {
10339
10340 ;
10341 return 0;
10342 }
10343 _ACEOF
10344 if ac_fn_c_try_link "$LINENO"; then :
10345 eval $cacheid=yes
10346 else
10347 eval $cacheid=no
10348 fi
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 fi
10352
10353
10354 CFLAGS="$xorg_testset_save_CFLAGS"
10355
10356 eval supported=\$$cacheid
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10358 $as_echo "$supported" >&6; }
10359 if test "$supported" = "yes" ; then
10360 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10361 found="yes"
10362 fi
10363 fi
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379 xorg_testset_save_CFLAGS="$CFLAGS"
10380
10381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10385 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 int i;
10391 _ACEOF
10392 if ac_fn_c_try_compile "$LINENO"; then :
10393 xorg_cv_cc_flag_unknown_warning_option=yes
10394 else
10395 xorg_cv_cc_flag_unknown_warning_option=no
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10400 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10402 CFLAGS="$xorg_testset_save_CFLAGS"
10403 fi
10404
10405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408 fi
10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10411 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10412 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 int i;
10418 _ACEOF
10419 if ac_fn_c_try_compile "$LINENO"; then :
10420 xorg_cv_cc_flag_unused_command_line_argument=yes
10421 else
10422 xorg_cv_cc_flag_unused_command_line_argument=no
10423 fi
10424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425 fi
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10427 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10429 CFLAGS="$xorg_testset_save_CFLAGS"
10430 fi
10431
10432 found="no"
10433
10434 if test $found = "no" ; then
10435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10437 fi
10438
10439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10441 fi
10442
10443 CFLAGS="$CFLAGS -Werror"
10444
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10446 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10447 cacheid=xorg_cv_cc_flag__Werror
10448 if eval \${$cacheid+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453 int i;
10454 int
10455 main ()
10456 {
10457
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463 eval $cacheid=yes
10464 else
10465 eval $cacheid=no
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 fi
10470
10471
10472 CFLAGS="$xorg_testset_save_CFLAGS"
10473
10474 eval supported=\$$cacheid
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10476 $as_echo "$supported" >&6; }
10477 if test "$supported" = "yes" ; then
10478 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10479 found="yes"
10480 fi
10481 fi
10482
10483 if test $found = "no" ; then
10484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10486 fi
10487
10488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10490 fi
10491
10492 CFLAGS="$CFLAGS -errwarn"
10493
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10495 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10496 cacheid=xorg_cv_cc_flag__errwarn
10497 if eval \${$cacheid+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502 int i;
10503 int
10504 main ()
10505 {
10506
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_link "$LINENO"; then :
10512 eval $cacheid=yes
10513 else
10514 eval $cacheid=no
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 fi
10519
10520
10521 CFLAGS="$xorg_testset_save_CFLAGS"
10522
10523 eval supported=\$$cacheid
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10525 $as_echo "$supported" >&6; }
10526 if test "$supported" = "yes" ; then
10527 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10528 found="yes"
10529 fi
10530 fi
10531
10532
10533
10534 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10535 # activate it with -Werror, so we add it here explicitly.
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549 xorg_testset_save_CFLAGS="$CFLAGS"
10550
10551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560 int i;
10561 _ACEOF
10562 if ac_fn_c_try_compile "$LINENO"; then :
10563 xorg_cv_cc_flag_unknown_warning_option=yes
10564 else
10565 xorg_cv_cc_flag_unknown_warning_option=no
10566 fi
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 fi
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10572 CFLAGS="$xorg_testset_save_CFLAGS"
10573 fi
10574
10575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10578 fi
10579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10587 int i;
10588 _ACEOF
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590 xorg_cv_cc_flag_unused_command_line_argument=yes
10591 else
10592 xorg_cv_cc_flag_unused_command_line_argument=no
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10599 CFLAGS="$xorg_testset_save_CFLAGS"
10600 fi
10601
10602 found="no"
10603
10604 if test $found = "no" ; then
10605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607 fi
10608
10609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10611 fi
10612
10613 CFLAGS="$CFLAGS -Werror=attributes"
10614
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10616 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10617 cacheid=xorg_cv_cc_flag__Werror_attributes
10618 if eval \${$cacheid+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10623 int i;
10624 int
10625 main ()
10626 {
10627
10628 ;
10629 return 0;
10630 }
10631 _ACEOF
10632 if ac_fn_c_try_link "$LINENO"; then :
10633 eval $cacheid=yes
10634 else
10635 eval $cacheid=no
10636 fi
10637 rm -f core conftest.err conftest.$ac_objext \
10638 conftest$ac_exeext conftest.$ac_ext
10639 fi
10640
10641
10642 CFLAGS="$xorg_testset_save_CFLAGS"
10643
10644 eval supported=\$$cacheid
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10646 $as_echo "$supported" >&6; }
10647 if test "$supported" = "yes" ; then
10648 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10649 found="yes"
10650 fi
10651 fi
10652
10653
10654
10655 if test "x$STRICT_COMPILE" = "xyes"; then
10656 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10657 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10658 fi
10659
10660
10661
10662
10663
10664
10665 cat >>confdefs.h <<_ACEOF
10666 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10667 _ACEOF
10668
10669 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10670 if test "x$PVM" = "x"; then
10671 PVM="0"
10672 fi
10673
10674 cat >>confdefs.h <<_ACEOF
10675 #define PACKAGE_VERSION_MINOR $PVM
10676 _ACEOF
10677
10678 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10679 if test "x$PVP" = "x"; then
10680 PVP="0"
10681 fi
10682
10683 cat >>confdefs.h <<_ACEOF
10684 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10685 _ACEOF
10686
10687
10688
10689 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10690 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10691 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10692 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10693
10694
10695
10696
10697 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10698 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10699 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10700 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10701 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10702
10703
10704
10705
10706
10707
10708 if test x$APP_MAN_SUFFIX = x ; then
10709 APP_MAN_SUFFIX=1
10710 fi
10711 if test x$APP_MAN_DIR = x ; then
10712 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10713 fi
10714
10715 if test x$LIB_MAN_SUFFIX = x ; then
10716 LIB_MAN_SUFFIX=3
10717 fi
10718 if test x$LIB_MAN_DIR = x ; then
10719 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10720 fi
10721
10722 if test x$FILE_MAN_SUFFIX = x ; then
10723 case $host_os in
10724 solaris*) FILE_MAN_SUFFIX=4 ;;
10725 *) FILE_MAN_SUFFIX=5 ;;
10726 esac
10727 fi
10728 if test x$FILE_MAN_DIR = x ; then
10729 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10730 fi
10731
10732 if test x$MISC_MAN_SUFFIX = x ; then
10733 case $host_os in
10734 solaris*) MISC_MAN_SUFFIX=5 ;;
10735 *) MISC_MAN_SUFFIX=7 ;;
10736 esac
10737 fi
10738 if test x$MISC_MAN_DIR = x ; then
10739 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10740 fi
10741
10742 if test x$DRIVER_MAN_SUFFIX = x ; then
10743 case $host_os in
10744 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10745 *) DRIVER_MAN_SUFFIX=4 ;;
10746 esac
10747 fi
10748 if test x$DRIVER_MAN_DIR = x ; then
10749 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10750 fi
10751
10752 if test x$ADMIN_MAN_SUFFIX = x ; then
10753 case $host_os in
10754 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10755 *) ADMIN_MAN_SUFFIX=8 ;;
10756 esac
10757 fi
10758 if test x$ADMIN_MAN_DIR = x ; then
10759 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10760 fi
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776 XORG_MAN_PAGE="X Version 11"
10777
10778 MAN_SUBSTS="\
10779 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10780 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10781 -e 's|__xservername__|Xorg|g' \
10782 -e 's|__xconfigfile__|xorg.conf|g' \
10783 -e 's|__projectroot__|\$(prefix)|g' \
10784 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10785 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10786 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10787 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10788 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10789 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10790 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10791
10792
10793
10794 # Check whether --enable-silent-rules was given.
10795 if test "${enable_silent_rules+set}" = set; then :
10796 enableval=$enable_silent_rules;
10797 fi
10798
10799 case $enable_silent_rules in # (((
10800 yes) AM_DEFAULT_VERBOSITY=0;;
10801 no) AM_DEFAULT_VERBOSITY=1;;
10802 *) AM_DEFAULT_VERBOSITY=0;;
10803 esac
10804 am_make=${MAKE-make}
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10806 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10807 if ${am_cv_make_support_nested_variables+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 if $as_echo 'TRUE=$(BAR$(V))
10811 BAR0=false
10812 BAR1=true
10813 V=1
10814 am__doit:
10815 @$(TRUE)
10816 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10817 am_cv_make_support_nested_variables=yes
10818 else
10819 am_cv_make_support_nested_variables=no
10820 fi
10821 fi
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10823 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10824 if test $am_cv_make_support_nested_variables = yes; then
10825 AM_V='$(V)'
10826 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10827 else
10828 AM_V=$AM_DEFAULT_VERBOSITY
10829 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10830 fi
10831 AM_BACKSLASH='\'
10832
10833
10834
10835 for ac_header in net/errno.h
10836 do :
10837 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
10838 if test "x$ac_cv_header_net_errno_h" = xyes; then :
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_NET_ERRNO_H 1
10841 _ACEOF
10842
10843 fi
10844
10845 done
10846
10847
10848 for ac_func in strlcpy
10849 do :
10850 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
10851 if test "x$ac_cv_func_strlcpy" = xyes; then :
10852 cat >>confdefs.h <<_ACEOF
10853 #define HAVE_STRLCPY 1
10854 _ACEOF
10855
10856 fi
10857 done
10858
10859
10860 # Checks for pkg-config packages
10861
10862 pkg_failed=no
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
10864 $as_echo_n "checking for XAUTH... " >&6; }
10865
10866 if test -n "$XAUTH_CFLAGS"; then
10867 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
10868 elif test -n "$PKG_CONFIG"; then
10869 if test -n "$PKG_CONFIG" && \
10870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
10871 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
10872 ac_status=$?
10873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10874 test $ac_status = 0; }; then
10875 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
10876 test "x$?" != "x0" && pkg_failed=yes
10877 else
10878 pkg_failed=yes
10879 fi
10880 else
10881 pkg_failed=untried
10882 fi
10883 if test -n "$XAUTH_LIBS"; then
10884 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
10885 elif test -n "$PKG_CONFIG"; then
10886 if test -n "$PKG_CONFIG" && \
10887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
10888 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
10889 ac_status=$?
10890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10891 test $ac_status = 0; }; then
10892 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
10893 test "x$?" != "x0" && pkg_failed=yes
10894 else
10895 pkg_failed=yes
10896 fi
10897 else
10898 pkg_failed=untried
10899 fi
10900
10901
10902
10903 if test $pkg_failed = yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906
10907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10908 _pkg_short_errors_supported=yes
10909 else
10910 _pkg_short_errors_supported=no
10911 fi
10912 if test $_pkg_short_errors_supported = yes; then
10913 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
10914 else
10915 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
10916 fi
10917 # Put the nasty error message in config.log where it belongs
10918 echo "$XAUTH_PKG_ERRORS" >&5
10919
10920 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
10921
10922 $XAUTH_PKG_ERRORS
10923
10924 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10925 installed software in a non-standard prefix.
10926
10927 Alternatively, you may set the environment variables XAUTH_CFLAGS
10928 and XAUTH_LIBS to avoid the need to call pkg-config.
10929 See the pkg-config man page for more details." "$LINENO" 5
10930 elif test $pkg_failed = untried; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10935 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10936 is in your PATH or set the PKG_CONFIG environment variable to the full
10937 path to pkg-config.
10938
10939 Alternatively, you may set the environment variables XAUTH_CFLAGS
10940 and XAUTH_LIBS to avoid the need to call pkg-config.
10941 See the pkg-config man page for more details.
10942
10943 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10944 See \`config.log' for more details" "$LINENO" 5; }
10945 else
10946 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
10947 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10949 $as_echo "yes" >&6; }
10950
10951 fi
10952
10953 # Transport selection macro from xtrans.m4
10954 # Needed to set *CONN defines for gethost.c & parsedpy.c
10955
10956
10957 case $host_os in
10958 mingw*) unixdef="no" ;;
10959 *) unixdef="yes" ;;
10960 esac
10961 # Check whether --enable-unix-transport was given.
10962 if test "${enable_unix_transport+set}" = set; then :
10963 enableval=$enable_unix_transport; UNIXCONN=$enableval
10964 else
10965 UNIXCONN=$unixdef
10966 fi
10967
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
10969 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
10970 if test "$UNIXCONN" = "yes"; then
10971
10972 $as_echo "#define UNIXCONN 1" >>confdefs.h
10973
10974 fi
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
10976 $as_echo "$UNIXCONN" >&6; }
10977 # Check whether --enable-tcp-transport was given.
10978 if test "${enable_tcp_transport+set}" = set; then :
10979 enableval=$enable_tcp_transport; TCPCONN=$enableval
10980 else
10981 TCPCONN=yes
10982 fi
10983
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
10985 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
10987 $as_echo "$TCPCONN" >&6; }
10988 if test "$TCPCONN" = "yes"; then
10989
10990 $as_echo "#define TCPCONN 1" >>confdefs.h
10991
10992
10993 # SVR4 hides these in libraries other than libc
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10995 $as_echo_n "checking for library containing socket... " >&6; }
10996 if ${ac_cv_search_socket+:} false; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 ac_func_search_save_LIBS=$LIBS
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11002
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char socket ();
11010 int
11011 main ()
11012 {
11013 return socket ();
11014 ;
11015 return 0;
11016 }
11017 _ACEOF
11018 for ac_lib in '' socket; do
11019 if test -z "$ac_lib"; then
11020 ac_res="none required"
11021 else
11022 ac_res=-l$ac_lib
11023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11024 fi
11025 if ac_fn_c_try_link "$LINENO"; then :
11026 ac_cv_search_socket=$ac_res
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext
11030 if ${ac_cv_search_socket+:} false; then :
11031 break
11032 fi
11033 done
11034 if ${ac_cv_search_socket+:} false; then :
11035
11036 else
11037 ac_cv_search_socket=no
11038 fi
11039 rm conftest.$ac_ext
11040 LIBS=$ac_func_search_save_LIBS
11041 fi
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11043 $as_echo "$ac_cv_search_socket" >&6; }
11044 ac_res=$ac_cv_search_socket
11045 if test "$ac_res" != no; then :
11046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11047
11048 fi
11049
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11051 $as_echo_n "checking for library containing gethostbyname... " >&6; }
11052 if ${ac_cv_search_gethostbyname+:} false; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 ac_func_search_save_LIBS=$LIBS
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058
11059 /* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11062 #ifdef __cplusplus
11063 extern "C"
11064 #endif
11065 char gethostbyname ();
11066 int
11067 main ()
11068 {
11069 return gethostbyname ();
11070 ;
11071 return 0;
11072 }
11073 _ACEOF
11074 for ac_lib in '' nsl; do
11075 if test -z "$ac_lib"; then
11076 ac_res="none required"
11077 else
11078 ac_res=-l$ac_lib
11079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11080 fi
11081 if ac_fn_c_try_link "$LINENO"; then :
11082 ac_cv_search_gethostbyname=$ac_res
11083 fi
11084 rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext
11086 if ${ac_cv_search_gethostbyname+:} false; then :
11087 break
11088 fi
11089 done
11090 if ${ac_cv_search_gethostbyname+:} false; then :
11091
11092 else
11093 ac_cv_search_gethostbyname=no
11094 fi
11095 rm conftest.$ac_ext
11096 LIBS=$ac_func_search_save_LIBS
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11099 $as_echo "$ac_cv_search_gethostbyname" >&6; }
11100 ac_res=$ac_cv_search_gethostbyname
11101 if test "$ac_res" != no; then :
11102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11103
11104 fi
11105
11106 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11108 $as_echo_n "checking for main in -lws2_32... " >&6; }
11109 if ${ac_cv_lib_ws2_32_main+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 ac_check_lib_save_LIBS=$LIBS
11113 LIBS="-lws2_32 $LIBS"
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11116
11117
11118 int
11119 main ()
11120 {
11121 return main ();
11122 ;
11123 return 0;
11124 }
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 ac_cv_lib_ws2_32_main=yes
11128 else
11129 ac_cv_lib_ws2_32_main=no
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11136 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11137 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11138 cat >>confdefs.h <<_ACEOF
11139 #define HAVE_LIBWS2_32 1
11140 _ACEOF
11141
11142 LIBS="-lws2_32 $LIBS"
11143
11144 fi
11145
11146 fi
11147
11148 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11149 # Check whether --enable-ipv6 was given.
11150 if test "${enable_ipv6+set}" = set; then :
11151 enableval=$enable_ipv6; IPV6CONN=$enableval
11152 else
11153 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11154 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11155 IPV6CONN=yes
11156 else
11157 IPV6CONN=no
11158 fi
11159
11160 fi
11161
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11163 $as_echo_n "checking if IPv6 support should be built... " >&6; }
11164 if test "$IPV6CONN" = "yes"; then
11165
11166 $as_echo "#define IPv6 1" >>confdefs.h
11167
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11170 $as_echo "$IPV6CONN" >&6; }
11171
11172 # 4.3BSD-Reno added a new member to struct sockaddr_in
11173 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11174 #include <sys/types.h>
11175 #include <sys/socket.h>
11176 #include <netinet/in.h>
11177
11178 "
11179 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11180
11181 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11182
11183 fi
11184
11185
11186 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11187 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11188 $ac_includes_default
11189 #include <sys/socket.h>
11190 "
11191 if test "x$ac_cv_type_socklen_t" = xyes; then :
11192
11193 cat >>confdefs.h <<_ACEOF
11194 #define HAVE_SOCKLEN_T 1
11195 _ACEOF
11196
11197
11198 fi
11199
11200
11201 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11202 # _XOPEN_SOURCE to get it (such as on Solaris)
11203 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11204 $ac_includes_default
11205 #include <sys/socket.h>
11206
11207 "
11208 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11209
11210 fi
11211
11212 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11213 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11214 unset ac_cv_member_struct_msghdr_msg_control
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11216 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11217 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11218 #define _XOPEN_SOURCE 600
11219 $ac_includes_default
11220 #include <sys/socket.h>
11221
11222 "
11223 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11224
11225 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
11226
11227
11228 fi
11229
11230 fi
11231 # If that didn't work, fall back to XPG5/UNIX98 with C89
11232 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11233 unset ac_cv_member_struct_msghdr_msg_control
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11235 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11236 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11237 #define _XOPEN_SOURCE 500
11238 $ac_includes_default
11239 #include <sys/socket.h>
11240
11241 "
11242 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11243
11244 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
11245
11246
11247 fi
11248
11249 fi
11250
11251
11252
11253 fi
11254 case $host_os in
11255 solaris*|sco*|sysv4*) localdef="yes" ;;
11256 *) localdef="no" ;;
11257 esac
11258 # Check whether --enable-local-transport was given.
11259 if test "${enable_local_transport+set}" = set; then :
11260 enableval=$enable_local_transport; LOCALCONN=$enableval
11261 else
11262 LOCALCONN=$localdef
11263 fi
11264
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11266 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11268 $as_echo "$LOCALCONN" >&6; }
11269 if test "$LOCALCONN" = "yes"; then
11270
11271 $as_echo "#define LOCALCONN 1" >>confdefs.h
11272
11273 fi
11274
11275
11276
11277
11278
11279
11280
11281
11282 # Check whether --with-lint was given.
11283 if test "${with_lint+set}" = set; then :
11284 withval=$with_lint; use_lint=$withval
11285 else
11286 use_lint=no
11287 fi
11288
11289
11290 # Obtain platform specific info like program name and options
11291 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11292 case $host_os in
11293 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11294 lint_name=splint
11295 lint_options="-badflag"
11296 ;;
11297 *freebsd* | *netbsd*)
11298 lint_name=lint
11299 lint_options="-u -b"
11300 ;;
11301 *solaris*)
11302 lint_name=lint
11303 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11304 ;;
11305 esac
11306
11307 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11308 if test "x$use_lint" = x"yes" ; then
11309 # Extract the first word of "$lint_name", so it can be a program name with args.
11310 set dummy $lint_name; ac_word=$2
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11312 $as_echo_n "checking for $ac_word... " >&6; }
11313 if ${ac_cv_path_LINT+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 case $LINT in
11317 [\\/]* | ?:[\\/]*)
11318 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11319 ;;
11320 *)
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11328 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11331 fi
11332 done
11333 done
11334 IFS=$as_save_IFS
11335
11336 ;;
11337 esac
11338 fi
11339 LINT=$ac_cv_path_LINT
11340 if test -n "$LINT"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11342 $as_echo "$LINT" >&6; }
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11346 fi
11347
11348
11349 if test "x$LINT" = "x"; then
11350 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11351 fi
11352 elif test "x$use_lint" = x"no" ; then
11353 if test "x$LINT" != "x"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11355 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11356 fi
11357 else
11358 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11359 fi
11360
11361 # User supplied flags override default flags
11362 if test "x$LINT_FLAGS" != "x"; then
11363 lint_options=$LINT_FLAGS
11364 fi
11365
11366 LINT_FLAGS=$lint_options
11367
11368 if test "x$LINT" != x; then
11369 LINT_TRUE=
11370 LINT_FALSE='#'
11371 else
11372 LINT_TRUE='#'
11373 LINT_FALSE=
11374 fi
11375
11376
11377
11378
11379 ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
11380
11381 cat >confcache <<\_ACEOF
11382 # This file is a shell script that caches the results of configure
11383 # tests run on this system so they can be shared between configure
11384 # scripts and configure runs, see configure's option --config-cache.
11385 # It is not useful on other systems. If it contains results you don't
11386 # want to keep, you may remove or edit it.
11387 #
11388 # config.status only pays attention to the cache file if you give it
11389 # the --recheck option to rerun configure.
11390 #
11391 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11392 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11393 # following values.
11394
11395 _ACEOF
11396
11397 # The following way of writing the cache mishandles newlines in values,
11398 # but we know of no workaround that is simple, portable, and efficient.
11399 # So, we kill variables containing newlines.
11400 # Ultrix sh set writes to stderr and can't be redirected directly,
11401 # and sets the high bit in the cache file unless we assign to the vars.
11402 (
11403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11404 eval ac_val=\$$ac_var
11405 case $ac_val in #(
11406 *${as_nl}*)
11407 case $ac_var in #(
11408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11410 esac
11411 case $ac_var in #(
11412 _ | IFS | as_nl) ;; #(
11413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11414 *) { eval $ac_var=; unset $ac_var;} ;;
11415 esac ;;
11416 esac
11417 done
11418
11419 (set) 2>&1 |
11420 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11421 *${as_nl}ac_space=\ *)
11422 # `set' does not quote correctly, so add quotes: double-quote
11423 # substitution turns \\\\ into \\, and sed turns \\ into \.
11424 sed -n \
11425 "s/'/'\\\\''/g;
11426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11427 ;; #(
11428 *)
11429 # `set' quotes correctly as required by POSIX, so do not add quotes.
11430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11431 ;;
11432 esac |
11433 sort
11434 ) |
11435 sed '
11436 /^ac_cv_env_/b end
11437 t clear
11438 :clear
11439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11440 t end
11441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11442 :end' >>confcache
11443 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11444 if test -w "$cache_file"; then
11445 if test "x$cache_file" != "x/dev/null"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11447 $as_echo "$as_me: updating cache $cache_file" >&6;}
11448 if test ! -f "$cache_file" || test -h "$cache_file"; then
11449 cat confcache >"$cache_file"
11450 else
11451 case $cache_file in #(
11452 */* | ?:*)
11453 mv -f confcache "$cache_file"$$ &&
11454 mv -f "$cache_file"$$ "$cache_file" ;; #(
11455 *)
11456 mv -f confcache "$cache_file" ;;
11457 esac
11458 fi
11459 fi
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11462 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11463 fi
11464 fi
11465 rm -f confcache
11466
11467 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11468 # Let make expand exec_prefix.
11469 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11470
11471 DEFS=-DHAVE_CONFIG_H
11472
11473 ac_libobjs=
11474 ac_ltlibobjs=
11475 U=
11476 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11477 # 1. Remove the extension, and $U if already installed.
11478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11479 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11481 # will be set to the directory where LIBOBJS objects are built.
11482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11484 done
11485 LIBOBJS=$ac_libobjs
11486
11487 LTLIBOBJS=$ac_ltlibobjs
11488
11489
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11491 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11492 if test -n "$am_sleep_pid"; then
11493 # Hide warnings about reused PIDs.
11494 wait $am_sleep_pid 2>/dev/null
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11497 $as_echo "done" >&6; }
11498 if test -n "$EXEEXT"; then
11499 am__EXEEXT_TRUE=
11500 am__EXEEXT_FALSE='#'
11501 else
11502 am__EXEEXT_TRUE='#'
11503 am__EXEEXT_FALSE=
11504 fi
11505
11506 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11507 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11509 fi
11510 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11511 as_fn_error $? "conditional \"AMDEP\" was never defined.
11512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11513 fi
11514 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11515 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11517 fi
11518 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11519 as_fn_error $? "conditional \"LINT\" was never defined.
11520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11521 fi
11522
11523 : "${CONFIG_STATUS=./config.status}"
11524 ac_write_fail=0
11525 ac_clean_files_save=$ac_clean_files
11526 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11528 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11529 as_write_fail=0
11530 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11531 #! $SHELL
11532 # Generated by $as_me.
11533 # Run this file to recreate the current configuration.
11534 # Compiler output produced by configure, useful for debugging
11535 # configure, is in config.log if it exists.
11536
11537 debug=false
11538 ac_cs_recheck=false
11539 ac_cs_silent=false
11540
11541 SHELL=\${CONFIG_SHELL-$SHELL}
11542 export SHELL
11543 _ASEOF
11544 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11545 ## -------------------- ##
11546 ## M4sh Initialization. ##
11547 ## -------------------- ##
11548
11549 # Be more Bourne compatible
11550 DUALCASE=1; export DUALCASE # for MKS sh
11551 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11552 emulate sh
11553 NULLCMD=:
11554 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11555 # is contrary to our usage. Disable this feature.
11556 alias -g '${1+"$@"}'='"$@"'
11557 setopt NO_GLOB_SUBST
11558 else
11559 case `(set -o) 2>/dev/null` in #(
11560 *posix*) :
11561 set -o posix ;; #(
11562 *) :
11563 ;;
11564 esac
11565 fi
11566
11567
11568 as_nl='
11569 '
11570 export as_nl
11571 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11572 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11573 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11574 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11575 # Prefer a ksh shell builtin over an external printf program on Solaris,
11576 # but without wasting forks for bash or zsh.
11577 if test -z "$BASH_VERSION$ZSH_VERSION" \
11578 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11579 as_echo='print -r --'
11580 as_echo_n='print -rn --'
11581 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11582 as_echo='printf %s\n'
11583 as_echo_n='printf %s'
11584 else
11585 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11586 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11587 as_echo_n='/usr/ucb/echo -n'
11588 else
11589 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11590 as_echo_n_body='eval
11591 arg=$1;
11592 case $arg in #(
11593 *"$as_nl"*)
11594 expr "X$arg" : "X\\(.*\\)$as_nl";
11595 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11596 esac;
11597 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11598 '
11599 export as_echo_n_body
11600 as_echo_n='sh -c $as_echo_n_body as_echo'
11601 fi
11602 export as_echo_body
11603 as_echo='sh -c $as_echo_body as_echo'
11604 fi
11605
11606 # The user is always right.
11607 if test "${PATH_SEPARATOR+set}" != set; then
11608 PATH_SEPARATOR=:
11609 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11610 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11611 PATH_SEPARATOR=';'
11612 }
11613 fi
11614
11615
11616 # IFS
11617 # We need space, tab and new line, in precisely that order. Quoting is
11618 # there to prevent editors from complaining about space-tab.
11619 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11620 # splitting by setting IFS to empty value.)
11621 IFS=" "" $as_nl"
11622
11623 # Find who we are. Look in the path if we contain no directory separator.
11624 as_myself=
11625 case $0 in #((
11626 *[\\/]* ) as_myself=$0 ;;
11627 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11629 do
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
11632 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11633 done
11634 IFS=$as_save_IFS
11635
11636 ;;
11637 esac
11638 # We did not find ourselves, most probably we were run as `sh COMMAND'
11639 # in which case we are not to be found in the path.
11640 if test "x$as_myself" = x; then
11641 as_myself=$0
11642 fi
11643 if test ! -f "$as_myself"; then
11644 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11645 exit 1
11646 fi
11647
11648 # Unset variables that we do not need and which cause bugs (e.g. in
11649 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11650 # suppresses any "Segmentation fault" message there. '((' could
11651 # trigger a bug in pdksh 5.2.14.
11652 for as_var in BASH_ENV ENV MAIL MAILPATH
11653 do eval test x\${$as_var+set} = xset \
11654 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11655 done
11656 PS1='$ '
11657 PS2='> '
11658 PS4='+ '
11659
11660 # NLS nuisances.
11661 LC_ALL=C
11662 export LC_ALL
11663 LANGUAGE=C
11664 export LANGUAGE
11665
11666 # CDPATH.
11667 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11668
11669
11670 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11671 # ----------------------------------------
11672 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11673 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11674 # script with STATUS, using 1 if that was 0.
11675 as_fn_error ()
11676 {
11677 as_status=$1; test $as_status -eq 0 && as_status=1
11678 if test "$4"; then
11679 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11680 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11681 fi
11682 $as_echo "$as_me: error: $2" >&2
11683 as_fn_exit $as_status
11684 } # as_fn_error
11685
11686
11687 # as_fn_set_status STATUS
11688 # -----------------------
11689 # Set $? to STATUS, without forking.
11690 as_fn_set_status ()
11691 {
11692 return $1
11693 } # as_fn_set_status
11694
11695 # as_fn_exit STATUS
11696 # -----------------
11697 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11698 as_fn_exit ()
11699 {
11700 set +e
11701 as_fn_set_status $1
11702 exit $1
11703 } # as_fn_exit
11704
11705 # as_fn_unset VAR
11706 # ---------------
11707 # Portably unset VAR.
11708 as_fn_unset ()
11709 {
11710 { eval $1=; unset $1;}
11711 }
11712 as_unset=as_fn_unset
11713 # as_fn_append VAR VALUE
11714 # ----------------------
11715 # Append the text in VALUE to the end of the definition contained in VAR. Take
11716 # advantage of any shell optimizations that allow amortized linear growth over
11717 # repeated appends, instead of the typical quadratic growth present in naive
11718 # implementations.
11719 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11720 eval 'as_fn_append ()
11721 {
11722 eval $1+=\$2
11723 }'
11724 else
11725 as_fn_append ()
11726 {
11727 eval $1=\$$1\$2
11728 }
11729 fi # as_fn_append
11730
11731 # as_fn_arith ARG...
11732 # ------------------
11733 # Perform arithmetic evaluation on the ARGs, and store the result in the
11734 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11735 # must be portable across $(()) and expr.
11736 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11737 eval 'as_fn_arith ()
11738 {
11739 as_val=$(( $* ))
11740 }'
11741 else
11742 as_fn_arith ()
11743 {
11744 as_val=`expr "$@" || test $? -eq 1`
11745 }
11746 fi # as_fn_arith
11747
11748
11749 if expr a : '\(a\)' >/dev/null 2>&1 &&
11750 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11751 as_expr=expr
11752 else
11753 as_expr=false
11754 fi
11755
11756 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11757 as_basename=basename
11758 else
11759 as_basename=false
11760 fi
11761
11762 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11763 as_dirname=dirname
11764 else
11765 as_dirname=false
11766 fi
11767
11768 as_me=`$as_basename -- "$0" ||
11769 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11770 X"$0" : 'X\(//\)$' \| \
11771 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11772 $as_echo X/"$0" |
11773 sed '/^.*\/\([^/][^/]*\)\/*$/{
11774 s//\1/
11775 q
11776 }
11777 /^X\/\(\/\/\)$/{
11778 s//\1/
11779 q
11780 }
11781 /^X\/\(\/\).*/{
11782 s//\1/
11783 q
11784 }
11785 s/.*/./; q'`
11786
11787 # Avoid depending upon Character Ranges.
11788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11791 as_cr_digits='0123456789'
11792 as_cr_alnum=$as_cr_Letters$as_cr_digits
11793
11794 ECHO_C= ECHO_N= ECHO_T=
11795 case `echo -n x` in #(((((
11796 -n*)
11797 case `echo 'xy\c'` in
11798 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11799 xy) ECHO_C='\c';;
11800 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11801 ECHO_T=' ';;
11802 esac;;
11803 *)
11804 ECHO_N='-n';;
11805 esac
11806
11807 rm -f conf$$ conf$$.exe conf$$.file
11808 if test -d conf$$.dir; then
11809 rm -f conf$$.dir/conf$$.file
11810 else
11811 rm -f conf$$.dir
11812 mkdir conf$$.dir 2>/dev/null
11813 fi
11814 if (echo >conf$$.file) 2>/dev/null; then
11815 if ln -s conf$$.file conf$$ 2>/dev/null; then
11816 as_ln_s='ln -s'
11817 # ... but there are two gotchas:
11818 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11819 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11820 # In both cases, we have to default to `cp -pR'.
11821 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11822 as_ln_s='cp -pR'
11823 elif ln conf$$.file conf$$ 2>/dev/null; then
11824 as_ln_s=ln
11825 else
11826 as_ln_s='cp -pR'
11827 fi
11828 else
11829 as_ln_s='cp -pR'
11830 fi
11831 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11832 rmdir conf$$.dir 2>/dev/null
11833
11834
11835 # as_fn_mkdir_p
11836 # -------------
11837 # Create "$as_dir" as a directory, including parents if necessary.
11838 as_fn_mkdir_p ()
11839 {
11840
11841 case $as_dir in #(
11842 -*) as_dir=./$as_dir;;
11843 esac
11844 test -d "$as_dir" || eval $as_mkdir_p || {
11845 as_dirs=
11846 while :; do
11847 case $as_dir in #(
11848 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11849 *) as_qdir=$as_dir;;
11850 esac
11851 as_dirs="'$as_qdir' $as_dirs"
11852 as_dir=`$as_dirname -- "$as_dir" ||
11853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11854 X"$as_dir" : 'X\(//\)[^/]' \| \
11855 X"$as_dir" : 'X\(//\)$' \| \
11856 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11857 $as_echo X"$as_dir" |
11858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11859 s//\1/
11860 q
11861 }
11862 /^X\(\/\/\)[^/].*/{
11863 s//\1/
11864 q
11865 }
11866 /^X\(\/\/\)$/{
11867 s//\1/
11868 q
11869 }
11870 /^X\(\/\).*/{
11871 s//\1/
11872 q
11873 }
11874 s/.*/./; q'`
11875 test -d "$as_dir" && break
11876 done
11877 test -z "$as_dirs" || eval "mkdir $as_dirs"
11878 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11879
11880
11881 } # as_fn_mkdir_p
11882 if mkdir -p . 2>/dev/null; then
11883 as_mkdir_p='mkdir -p "$as_dir"'
11884 else
11885 test -d ./-p && rmdir ./-p
11886 as_mkdir_p=false
11887 fi
11888
11889
11890 # as_fn_executable_p FILE
11891 # -----------------------
11892 # Test if FILE is an executable regular file.
11893 as_fn_executable_p ()
11894 {
11895 test -f "$1" && test -x "$1"
11896 } # as_fn_executable_p
11897 as_test_x='test -x'
11898 as_executable_p=as_fn_executable_p
11899
11900 # Sed expression to map a string onto a valid CPP name.
11901 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11902
11903 # Sed expression to map a string onto a valid variable name.
11904 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11905
11906
11907 exec 6>&1
11908 ## ----------------------------------- ##
11909 ## Main body of $CONFIG_STATUS script. ##
11910 ## ----------------------------------- ##
11911 _ASEOF
11912 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11913
11914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11915 # Save the log message, to keep $0 and so on meaningful, and to
11916 # report actual input values of CONFIG_FILES etc. instead of their
11917 # values after options handling.
11918 ac_log="
11919 This file was extended by xauth $as_me 1.0.9, which was
11920 generated by GNU Autoconf 2.69. Invocation command line was
11921
11922 CONFIG_FILES = $CONFIG_FILES
11923 CONFIG_HEADERS = $CONFIG_HEADERS
11924 CONFIG_LINKS = $CONFIG_LINKS
11925 CONFIG_COMMANDS = $CONFIG_COMMANDS
11926 $ $0 $@
11927
11928 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11929 "
11930
11931 _ACEOF
11932
11933 case $ac_config_files in *"
11934 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11935 esac
11936
11937 case $ac_config_headers in *"
11938 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11939 esac
11940
11941
11942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11943 # Files that config.status was made for.
11944 config_files="$ac_config_files"
11945 config_headers="$ac_config_headers"
11946 config_commands="$ac_config_commands"
11947
11948 _ACEOF
11949
11950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11951 ac_cs_usage="\
11952 \`$as_me' instantiates files and other configuration actions
11953 from templates according to the current configuration. Unless the files
11954 and actions are specified as TAGs, all are instantiated by default.
11955
11956 Usage: $0 [OPTION]... [TAG]...
11957
11958 -h, --help print this help, then exit
11959 -V, --version print version number and configuration settings, then exit
11960 --config print configuration, then exit
11961 -q, --quiet, --silent
11962 do not print progress messages
11963 -d, --debug don't remove temporary files
11964 --recheck update $as_me by reconfiguring in the same conditions
11965 --file=FILE[:TEMPLATE]
11966 instantiate the configuration file FILE
11967 --header=FILE[:TEMPLATE]
11968 instantiate the configuration header FILE
11969
11970 Configuration files:
11971 $config_files
11972
11973 Configuration headers:
11974 $config_headers
11975
11976 Configuration commands:
11977 $config_commands
11978
11979 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11980
11981 _ACEOF
11982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11983 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11984 ac_cs_version="\\
11985 xauth config.status 1.0.9
11986 configured by $0, generated by GNU Autoconf 2.69,
11987 with options \\"\$ac_cs_config\\"
11988
11989 Copyright (C) 2012 Free Software Foundation, Inc.
11990 This config.status script is free software; the Free Software Foundation
11991 gives unlimited permission to copy, distribute and modify it."
11992
11993 ac_pwd='$ac_pwd'
11994 srcdir='$srcdir'
11995 INSTALL='$INSTALL'
11996 MKDIR_P='$MKDIR_P'
11997 AWK='$AWK'
11998 test -n "\$AWK" || AWK=awk
11999 _ACEOF
12000
12001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12002 # The default lists apply if the user does not specify any file.
12003 ac_need_defaults=:
12004 while test $# != 0
12005 do
12006 case $1 in
12007 --*=?*)
12008 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12009 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12010 ac_shift=:
12011 ;;
12012 --*=)
12013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12014 ac_optarg=
12015 ac_shift=:
12016 ;;
12017 *)
12018 ac_option=$1
12019 ac_optarg=$2
12020 ac_shift=shift
12021 ;;
12022 esac
12023
12024 case $ac_option in
12025 # Handling of the options.
12026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12027 ac_cs_recheck=: ;;
12028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12029 $as_echo "$ac_cs_version"; exit ;;
12030 --config | --confi | --conf | --con | --co | --c )
12031 $as_echo "$ac_cs_config"; exit ;;
12032 --debug | --debu | --deb | --de | --d | -d )
12033 debug=: ;;
12034 --file | --fil | --fi | --f )
12035 $ac_shift
12036 case $ac_optarg in
12037 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12038 '') as_fn_error $? "missing file argument" ;;
12039 esac
12040 as_fn_append CONFIG_FILES " '$ac_optarg'"
12041 ac_need_defaults=false;;
12042 --header | --heade | --head | --hea )
12043 $ac_shift
12044 case $ac_optarg in
12045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12046 esac
12047 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12048 ac_need_defaults=false;;
12049 --he | --h)
12050 # Conflict between --help and --header
12051 as_fn_error $? "ambiguous option: \`$1'
12052 Try \`$0 --help' for more information.";;
12053 --help | --hel | -h )
12054 $as_echo "$ac_cs_usage"; exit ;;
12055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12056 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12057 ac_cs_silent=: ;;
12058
12059 # This is an error.
12060 -*) as_fn_error $? "unrecognized option: \`$1'
12061 Try \`$0 --help' for more information." ;;
12062
12063 *) as_fn_append ac_config_targets " $1"
12064 ac_need_defaults=false ;;
12065
12066 esac
12067 shift
12068 done
12069
12070 ac_configure_extra_args=
12071
12072 if $ac_cs_silent; then
12073 exec 6>/dev/null
12074 ac_configure_extra_args="$ac_configure_extra_args --silent"
12075 fi
12076
12077 _ACEOF
12078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12079 if \$ac_cs_recheck; then
12080 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12081 shift
12082 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12083 CONFIG_SHELL='$SHELL'
12084 export CONFIG_SHELL
12085 exec "\$@"
12086 fi
12087
12088 _ACEOF
12089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12090 exec 5>>config.log
12091 {
12092 echo
12093 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12094 ## Running $as_me. ##
12095 _ASBOX
12096 $as_echo "$ac_log"
12097 } >&5
12098
12099 _ACEOF
12100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101 #
12102 # INIT-COMMANDS
12103 #
12104 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12105
12106 _ACEOF
12107
12108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12109
12110 # Handling of arguments.
12111 for ac_config_target in $ac_config_targets
12112 do
12113 case $ac_config_target in
12114 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12115 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12116 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12117 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12118 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12119
12120 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12121 esac
12122 done
12123
12124
12125 # If the user did not use the arguments to specify the items to instantiate,
12126 # then the envvar interface is used. Set only those that are not.
12127 # We use the long form for the default assignment because of an extremely
12128 # bizarre bug on SunOS 4.1.3.
12129 if $ac_need_defaults; then
12130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12131 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12133 fi
12134
12135 # Have a temporary directory for convenience. Make it in the build tree
12136 # simply because there is no reason against having it here, and in addition,
12137 # creating and moving files from /tmp can sometimes cause problems.
12138 # Hook for its removal unless debugging.
12139 # Note that there is a small window in which the directory will not be cleaned:
12140 # after its creation but before its name has been assigned to `$tmp'.
12141 $debug ||
12142 {
12143 tmp= ac_tmp=
12144 trap 'exit_status=$?
12145 : "${ac_tmp:=$tmp}"
12146 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12147 ' 0
12148 trap 'as_fn_exit 1' 1 2 13 15
12149 }
12150 # Create a (secure) tmp directory for tmp files.
12151
12152 {
12153 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12154 test -d "$tmp"
12155 } ||
12156 {
12157 tmp=./conf$$-$RANDOM
12158 (umask 077 && mkdir "$tmp")
12159 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12160 ac_tmp=$tmp
12161
12162 # Set up the scripts for CONFIG_FILES section.
12163 # No need to generate them if there are no CONFIG_FILES.
12164 # This happens for instance with `./config.status config.h'.
12165 if test -n "$CONFIG_FILES"; then
12166
12167
12168 ac_cr=`echo X | tr X '\015'`
12169 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12170 # But we know of no other shell where ac_cr would be empty at this
12171 # point, so we can use a bashism as a fallback.
12172 if test "x$ac_cr" = x; then
12173 eval ac_cr=\$\'\\r\'
12174 fi
12175 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12176 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12177 ac_cs_awk_cr='\\r'
12178 else
12179 ac_cs_awk_cr=$ac_cr
12180 fi
12181
12182 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12183 _ACEOF
12184
12185
12186 {
12187 echo "cat >conf$$subs.awk <<_ACEOF" &&
12188 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12189 echo "_ACEOF"
12190 } >conf$$subs.sh ||
12191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12192 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12193 ac_delim='%!_!# '
12194 for ac_last_try in false false false false false :; do
12195 . ./conf$$subs.sh ||
12196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12197
12198 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12199 if test $ac_delim_n = $ac_delim_num; then
12200 break
12201 elif $ac_last_try; then
12202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12203 else
12204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12205 fi
12206 done
12207 rm -f conf$$subs.sh
12208
12209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12210 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12211 _ACEOF
12212 sed -n '
12213 h
12214 s/^/S["/; s/!.*/"]=/
12215 p
12216 g
12217 s/^[^!]*!//
12218 :repl
12219 t repl
12220 s/'"$ac_delim"'$//
12221 t delim
12222 :nl
12223 h
12224 s/\(.\{148\}\)..*/\1/
12225 t more1
12226 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12227 p
12228 n
12229 b repl
12230 :more1
12231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12232 p
12233 g
12234 s/.\{148\}//
12235 t nl
12236 :delim
12237 h
12238 s/\(.\{148\}\)..*/\1/
12239 t more2
12240 s/["\\]/\\&/g; s/^/"/; s/$/"/
12241 p
12242 b
12243 :more2
12244 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12245 p
12246 g
12247 s/.\{148\}//
12248 t delim
12249 ' <conf$$subs.awk | sed '
12250 /^[^""]/{
12251 N
12252 s/\n//
12253 }
12254 ' >>$CONFIG_STATUS || ac_write_fail=1
12255 rm -f conf$$subs.awk
12256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12257 _ACAWK
12258 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12259 for (key in S) S_is_set[key] = 1
12260 FS = ""
12261
12262 }
12263 {
12264 line = $ 0
12265 nfields = split(line, field, "@")
12266 substed = 0
12267 len = length(field[1])
12268 for (i = 2; i < nfields; i++) {
12269 key = field[i]
12270 keylen = length(key)
12271 if (S_is_set[key]) {
12272 value = S[key]
12273 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12274 len += length(value) + length(field[++i])
12275 substed = 1
12276 } else
12277 len += 1 + keylen
12278 }
12279
12280 print line
12281 }
12282
12283 _ACAWK
12284 _ACEOF
12285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12286 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12287 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12288 else
12289 cat
12290 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12291 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12292 _ACEOF
12293
12294 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12295 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12296 # trailing colons and then remove the whole line if VPATH becomes empty
12297 # (actually we leave an empty line to preserve line numbers).
12298 if test "x$srcdir" = x.; then
12299 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12300 h
12301 s///
12302 s/^/:/
12303 s/[ ]*$/:/
12304 s/:\$(srcdir):/:/g
12305 s/:\${srcdir}:/:/g
12306 s/:@srcdir@:/:/g
12307 s/^:*//
12308 s/:*$//
12309 x
12310 s/\(=[ ]*\).*/\1/
12311 G
12312 s/\n//
12313 s/^[^=]*=[ ]*$//
12314 }'
12315 fi
12316
12317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12318 fi # test -n "$CONFIG_FILES"
12319
12320 # Set up the scripts for CONFIG_HEADERS section.
12321 # No need to generate them if there are no CONFIG_HEADERS.
12322 # This happens for instance with `./config.status Makefile'.
12323 if test -n "$CONFIG_HEADERS"; then
12324 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12325 BEGIN {
12326 _ACEOF
12327
12328 # Transform confdefs.h into an awk script `defines.awk', embedded as
12329 # here-document in config.status, that substitutes the proper values into
12330 # config.h.in to produce config.h.
12331
12332 # Create a delimiter string that does not exist in confdefs.h, to ease
12333 # handling of long lines.
12334 ac_delim='%!_!# '
12335 for ac_last_try in false false :; do
12336 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12337 if test -z "$ac_tt"; then
12338 break
12339 elif $ac_last_try; then
12340 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12341 else
12342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12343 fi
12344 done
12345
12346 # For the awk script, D is an array of macro values keyed by name,
12347 # likewise P contains macro parameters if any. Preserve backslash
12348 # newline sequences.
12349
12350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12351 sed -n '
12352 s/.\{148\}/&'"$ac_delim"'/g
12353 t rset
12354 :rset
12355 s/^[ ]*#[ ]*define[ ][ ]*/ /
12356 t def
12357 d
12358 :def
12359 s/\\$//
12360 t bsnl
12361 s/["\\]/\\&/g
12362 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12363 D["\1"]=" \3"/p
12364 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12365 d
12366 :bsnl
12367 s/["\\]/\\&/g
12368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12369 D["\1"]=" \3\\\\\\n"\\/p
12370 t cont
12371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12372 t cont
12373 d
12374 :cont
12375 n
12376 s/.\{148\}/&'"$ac_delim"'/g
12377 t clear
12378 :clear
12379 s/\\$//
12380 t bsnlc
12381 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12382 d
12383 :bsnlc
12384 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12385 b cont
12386 ' <confdefs.h | sed '
12387 s/'"$ac_delim"'/"\\\
12388 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12389
12390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12391 for (key in D) D_is_set[key] = 1
12392 FS = ""
12393 }
12394 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12395 line = \$ 0
12396 split(line, arg, " ")
12397 if (arg[1] == "#") {
12398 defundef = arg[2]
12399 mac1 = arg[3]
12400 } else {
12401 defundef = substr(arg[1], 2)
12402 mac1 = arg[2]
12403 }
12404 split(mac1, mac2, "(") #)
12405 macro = mac2[1]
12406 prefix = substr(line, 1, index(line, defundef) - 1)
12407 if (D_is_set[macro]) {
12408 # Preserve the white space surrounding the "#".
12409 print prefix "define", macro P[macro] D[macro]
12410 next
12411 } else {
12412 # Replace #undef with comments. This is necessary, for example,
12413 # in the case of _POSIX_SOURCE, which is predefined and required
12414 # on some systems where configure will not decide to define it.
12415 if (defundef == "undef") {
12416 print "/*", prefix defundef, macro, "*/"
12417 next
12418 }
12419 }
12420 }
12421 { print }
12422 _ACAWK
12423 _ACEOF
12424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12425 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12426 fi # test -n "$CONFIG_HEADERS"
12427
12428
12429 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12430 shift
12431 for ac_tag
12432 do
12433 case $ac_tag in
12434 :[FHLC]) ac_mode=$ac_tag; continue;;
12435 esac
12436 case $ac_mode$ac_tag in
12437 :[FHL]*:*);;
12438 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12439 :[FH]-) ac_tag=-:-;;
12440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12441 esac
12442 ac_save_IFS=$IFS
12443 IFS=:
12444 set x $ac_tag
12445 IFS=$ac_save_IFS
12446 shift
12447 ac_file=$1
12448 shift
12449
12450 case $ac_mode in
12451 :L) ac_source=$1;;
12452 :[FH])
12453 ac_file_inputs=
12454 for ac_f
12455 do
12456 case $ac_f in
12457 -) ac_f="$ac_tmp/stdin";;
12458 *) # Look for the file first in the build tree, then in the source tree
12459 # (if the path is not absolute). The absolute path cannot be DOS-style,
12460 # because $ac_f cannot contain `:'.
12461 test -f "$ac_f" ||
12462 case $ac_f in
12463 [\\/$]*) false;;
12464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12465 esac ||
12466 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12467 esac
12468 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12469 as_fn_append ac_file_inputs " '$ac_f'"
12470 done
12471
12472 # Let's still pretend it is `configure' which instantiates (i.e., don't
12473 # use $as_me), people would be surprised to read:
12474 # /* config.h. Generated by config.status. */
12475 configure_input='Generated from '`
12476 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12477 `' by configure.'
12478 if test x"$ac_file" != x-; then
12479 configure_input="$ac_file. $configure_input"
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12481 $as_echo "$as_me: creating $ac_file" >&6;}
12482 fi
12483 # Neutralize special characters interpreted by sed in replacement strings.
12484 case $configure_input in #(
12485 *\&* | *\|* | *\\* )
12486 ac_sed_conf_input=`$as_echo "$configure_input" |
12487 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12488 *) ac_sed_conf_input=$configure_input;;
12489 esac
12490
12491 case $ac_tag in
12492 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12493 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12494 esac
12495 ;;
12496 esac
12497
12498 ac_dir=`$as_dirname -- "$ac_file" ||
12499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12500 X"$ac_file" : 'X\(//\)[^/]' \| \
12501 X"$ac_file" : 'X\(//\)$' \| \
12502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12503 $as_echo X"$ac_file" |
12504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12505 s//\1/
12506 q
12507 }
12508 /^X\(\/\/\)[^/].*/{
12509 s//\1/
12510 q
12511 }
12512 /^X\(\/\/\)$/{
12513 s//\1/
12514 q
12515 }
12516 /^X\(\/\).*/{
12517 s//\1/
12518 q
12519 }
12520 s/.*/./; q'`
12521 as_dir="$ac_dir"; as_fn_mkdir_p
12522 ac_builddir=.
12523
12524 case "$ac_dir" in
12525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12526 *)
12527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12528 # A ".." for each directory in $ac_dir_suffix.
12529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12530 case $ac_top_builddir_sub in
12531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12533 esac ;;
12534 esac
12535 ac_abs_top_builddir=$ac_pwd
12536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12537 # for backward compatibility:
12538 ac_top_builddir=$ac_top_build_prefix
12539
12540 case $srcdir in
12541 .) # We are building in place.
12542 ac_srcdir=.
12543 ac_top_srcdir=$ac_top_builddir_sub
12544 ac_abs_top_srcdir=$ac_pwd ;;
12545 [\\/]* | ?:[\\/]* ) # Absolute name.
12546 ac_srcdir=$srcdir$ac_dir_suffix;
12547 ac_top_srcdir=$srcdir
12548 ac_abs_top_srcdir=$srcdir ;;
12549 *) # Relative name.
12550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12551 ac_top_srcdir=$ac_top_build_prefix$srcdir
12552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12553 esac
12554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12555
12556
12557 case $ac_mode in
12558 :F)
12559 #
12560 # CONFIG_FILE
12561 #
12562
12563 case $INSTALL in
12564 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12565 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12566 esac
12567 ac_MKDIR_P=$MKDIR_P
12568 case $MKDIR_P in
12569 [\\/$]* | ?:[\\/]* ) ;;
12570 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12571 esac
12572 _ACEOF
12573
12574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12575 # If the template does not know about datarootdir, expand it.
12576 # FIXME: This hack should be removed a few years after 2.60.
12577 ac_datarootdir_hack=; ac_datarootdir_seen=
12578 ac_sed_dataroot='
12579 /datarootdir/ {
12580 p
12581 q
12582 }
12583 /@datadir@/p
12584 /@docdir@/p
12585 /@infodir@/p
12586 /@localedir@/p
12587 /@mandir@/p'
12588 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12589 *datarootdir*) ac_datarootdir_seen=yes;;
12590 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12592 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12593 _ACEOF
12594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12595 ac_datarootdir_hack='
12596 s&@datadir@&$datadir&g
12597 s&@docdir@&$docdir&g
12598 s&@infodir@&$infodir&g
12599 s&@localedir@&$localedir&g
12600 s&@mandir@&$mandir&g
12601 s&\\\${datarootdir}&$datarootdir&g' ;;
12602 esac
12603 _ACEOF
12604
12605 # Neutralize VPATH when `$srcdir' = `.'.
12606 # Shell code in configure.ac might set extrasub.
12607 # FIXME: do we really want to maintain this feature?
12608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12609 ac_sed_extra="$ac_vpsub
12610 $extrasub
12611 _ACEOF
12612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12613 :t
12614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12615 s|@configure_input@|$ac_sed_conf_input|;t t
12616 s&@top_builddir@&$ac_top_builddir_sub&;t t
12617 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12618 s&@srcdir@&$ac_srcdir&;t t
12619 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12620 s&@top_srcdir@&$ac_top_srcdir&;t t
12621 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12622 s&@builddir@&$ac_builddir&;t t
12623 s&@abs_builddir@&$ac_abs_builddir&;t t
12624 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12625 s&@INSTALL@&$ac_INSTALL&;t t
12626 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12627 $ac_datarootdir_hack
12628 "
12629 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12630 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12631
12632 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12633 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12635 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12637 which seems to be undefined. Please make sure it is defined" >&5
12638 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12639 which seems to be undefined. Please make sure it is defined" >&2;}
12640
12641 rm -f "$ac_tmp/stdin"
12642 case $ac_file in
12643 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12644 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12645 esac \
12646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12647 ;;
12648 :H)
12649 #
12650 # CONFIG_HEADER
12651 #
12652 if test x"$ac_file" != x-; then
12653 {
12654 $as_echo "/* $configure_input */" \
12655 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12656 } >"$ac_tmp/config.h" \
12657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12658 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12660 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12661 else
12662 rm -f "$ac_file"
12663 mv "$ac_tmp/config.h" "$ac_file" \
12664 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12665 fi
12666 else
12667 $as_echo "/* $configure_input */" \
12668 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12669 || as_fn_error $? "could not create -" "$LINENO" 5
12670 fi
12671 # Compute "$ac_file"'s index in $config_headers.
12672 _am_arg="$ac_file"
12673 _am_stamp_count=1
12674 for _am_header in $config_headers :; do
12675 case $_am_header in
12676 $_am_arg | $_am_arg:* )
12677 break ;;
12678 * )
12679 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12680 esac
12681 done
12682 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12683 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12684 X"$_am_arg" : 'X\(//\)[^/]' \| \
12685 X"$_am_arg" : 'X\(//\)$' \| \
12686 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12687 $as_echo X"$_am_arg" |
12688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12689 s//\1/
12690 q
12691 }
12692 /^X\(\/\/\)[^/].*/{
12693 s//\1/
12694 q
12695 }
12696 /^X\(\/\/\)$/{
12697 s//\1/
12698 q
12699 }
12700 /^X\(\/\).*/{
12701 s//\1/
12702 q
12703 }
12704 s/.*/./; q'`/stamp-h$_am_stamp_count
12705 ;;
12706
12707 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12708 $as_echo "$as_me: executing $ac_file commands" >&6;}
12709 ;;
12710 esac
12711
12712
12713 case $ac_file$ac_mode in
12714 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12715 # Older Autoconf quotes --file arguments for eval, but not when files
12716 # are listed without --file. Let's play safe and only enable the eval
12717 # if we detect the quoting.
12718 case $CONFIG_FILES in
12719 *\'*) eval set x "$CONFIG_FILES" ;;
12720 *) set x $CONFIG_FILES ;;
12721 esac
12722 shift
12723 for mf
12724 do
12725 # Strip MF so we end up with the name of the file.
12726 mf=`echo "$mf" | sed -e 's/:.*$//'`
12727 # Check whether this is an Automake generated Makefile or not.
12728 # We used to match only the files named 'Makefile.in', but
12729 # some people rename them; so instead we look at the file content.
12730 # Grep'ing the first line is not enough: some people post-process
12731 # each Makefile.in and add a new line on top of each file to say so.
12732 # Grep'ing the whole file is not good either: AIX grep has a line
12733 # limit of 2048, but all sed's we know have understand at least 4000.
12734 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12735 dirpart=`$as_dirname -- "$mf" ||
12736 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12737 X"$mf" : 'X\(//\)[^/]' \| \
12738 X"$mf" : 'X\(//\)$' \| \
12739 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12740 $as_echo X"$mf" |
12741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12742 s//\1/
12743 q
12744 }
12745 /^X\(\/\/\)[^/].*/{
12746 s//\1/
12747 q
12748 }
12749 /^X\(\/\/\)$/{
12750 s//\1/
12751 q
12752 }
12753 /^X\(\/\).*/{
12754 s//\1/
12755 q
12756 }
12757 s/.*/./; q'`
12758 else
12759 continue
12760 fi
12761 # Extract the definition of DEPDIR, am__include, and am__quote
12762 # from the Makefile without running 'make'.
12763 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12764 test -z "$DEPDIR" && continue
12765 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12766 test -z "$am__include" && continue
12767 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12768 # Find all dependency output files, they are included files with
12769 # $(DEPDIR) in their names. We invoke sed twice because it is the
12770 # simplest approach to changing $(DEPDIR) to its actual value in the
12771 # expansion.
12772 for file in `sed -n "
12773 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12774 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12775 # Make sure the directory exists.
12776 test -f "$dirpart/$file" && continue
12777 fdir=`$as_dirname -- "$file" ||
12778 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12779 X"$file" : 'X\(//\)[^/]' \| \
12780 X"$file" : 'X\(//\)$' \| \
12781 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12782 $as_echo X"$file" |
12783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12784 s//\1/
12785 q
12786 }
12787 /^X\(\/\/\)[^/].*/{
12788 s//\1/
12789 q
12790 }
12791 /^X\(\/\/\)$/{
12792 s//\1/
12793 q
12794 }
12795 /^X\(\/\).*/{
12796 s//\1/
12797 q
12798 }
12799 s/.*/./; q'`
12800 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12801 # echo "creating $dirpart/$file"
12802 echo '# dummy' > "$dirpart/$file"
12803 done
12804 done
12805 }
12806 ;;
12807
12808 esac
12809 done # for ac_tag
12810
12811
12812 as_fn_exit 0
12813 _ACEOF
12814 ac_clean_files=$ac_clean_files_save
12815
12816 test $ac_write_fail = 0 ||
12817 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12818
12819
12820 # configure is writing to config.log, and then calls config.status.
12821 # config.status does its own redirection, appending to config.log.
12822 # Unfortunately, on DOS this fails, as config.log is still kept open
12823 # by configure, so config.status won't be able to write to it; its
12824 # output is simply discarded. So we exec the FD to /dev/null,
12825 # effectively closing config.log, so it can be properly (re)opened and
12826 # appended to by config.status. When coming back to configure, we
12827 # need to make the FD available again.
12828 if test "$no_create" != yes; then
12829 ac_cs_success=:
12830 ac_config_status_args=
12831 test "$silent" = yes &&
12832 ac_config_status_args="$ac_config_status_args --quiet"
12833 exec 5>/dev/null
12834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12835 exec 5>>config.log
12836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12837 # would make configure fail if this is the last instruction.
12838 $ac_cs_success || as_fn_exit 1
12839 fi
12840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12842 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12843 fi
12844
12845