configure revision 1.1.1.11 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xauth 1.1.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xauth/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xauth'
614 PACKAGE_TARNAME='xauth'
615 PACKAGE_VERSION='1.1.2'
616 PACKAGE_STRING='xauth 1.1.2'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/issues'
618 PACKAGE_URL=''
619
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 LINT_FALSE
657 LINT_TRUE
658 LINT_FLAGS
659 LINT
660 XAUTH_LIBS
661 XAUTH_CFLAGS
662 MAN_SUBSTS
663 XORG_MAN_PAGE
664 ADMIN_MAN_DIR
665 DRIVER_MAN_DIR
666 MISC_MAN_DIR
667 FILE_MAN_DIR
668 LIB_MAN_DIR
669 APP_MAN_DIR
670 ADMIN_MAN_SUFFIX
671 DRIVER_MAN_SUFFIX
672 MISC_MAN_SUFFIX
673 FILE_MAN_SUFFIX
674 LIB_MAN_SUFFIX
675 APP_MAN_SUFFIX
676 SED
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 INSTALL_CMD
686 PKG_CONFIG_LIBDIR
687 PKG_CONFIG_PATH
688 PKG_CONFIG
689 CHANGELOG_CMD
690 STRICT_CFLAGS
691 CWARNFLAGS
692 BASE_CFLAGS
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__include
701 DEPDIR
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 AM_BACKSLASH
710 AM_DEFAULT_VERBOSITY
711 AM_DEFAULT_V
712 AM_V
713 CSCOPE
714 ETAGS
715 CTAGS
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 runstatedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL
778 am__quote'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_silent_rules
783 enable_dependency_tracking
784 enable_selective_werror
785 enable_strict_compilation
786 enable_unix_transport
787 enable_tcp_transport
788 enable_ipv6
789 enable_local_transport
790 with_lint
791 '
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
803 XAUTH_CFLAGS
804 XAUTH_LIBS
805 LINT
806 LINT_FLAGS'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 runstatedir='${localstatedir}/run'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
867 fi
868
869 case $ac_option in
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
873 esac
874
875 case $ac_dashdash$ac_option in
876 --)
877 ac_dashdash=yes ;;
878
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
883
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
888
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
895
896 --config-cache | -C)
897 cache_file=config.cache ;;
898
899 -datadir | --datadir | --datadi | --datad)
900 ac_prev=datadir ;;
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
903
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
910
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: \`$ac_useropt'"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
936
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: \`$ac_useropt'"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=\$ac_optarg ;;
952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -runstatedir | --runstatedir | --runstatedi | --runstated \
1097 | --runstate | --runstat | --runsta | --runst | --runs \
1098 | --run | --ru | --r)
1099 ac_prev=runstatedir ;;
1100 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1101 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1102 | --run=* | --ru=* | --r=*)
1103 runstatedir=$ac_optarg ;;
1104
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1110
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1121
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1126
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1131
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1138
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1143
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1146
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1149
1150 -with-* | --with-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: \`$ac_useropt'"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=\$ac_optarg ;;
1165
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: \`$ac_useropt'"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
1181
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1185
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1192
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1199
1200 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1202 ;;
1203
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1213
1214 *)
1215 # FIXME: should be removed in autoconf 3.0.
1216 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 ;;
1221
1222 esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error $? "missing argument to $ac_option"
1228 fi
1229
1230 if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 esac
1236 fi
1237
1238 # Check all directory arguments for consistency.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir runstatedir
1243 do
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
1252 case $ac_val in
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 esac
1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1258
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1265
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1272 fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 printf "%s\n" X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)$/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\).*/{
1312 s//\1/
1313 q
1314 }
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1319 fi
1320 else
1321 ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures xauth 1.1.2 to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/xauth]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1410
1411 cat <<\_ACEOF
1412
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of xauth 1.1.2:";;
1427 esac
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-selective-werror
1441 Turn off selective compiler errors. (default:
1442 enabled)
1443 --enable-strict-compilation
1444 Enable all warnings from compiler and make them
1445 errors (default: disabled)
1446 --enable-unix-transport Enable UNIX domain socket transport
1447 --enable-tcp-transport Enable TCP socket transport
1448 --enable-ipv6 Enable IPv6 support
1449 --enable-local-transport
1450 Enable os-specific local transport
1451
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-lint Use a lint-style source code checker (default:
1456 disabled)
1457
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 PKG_CONFIG path to pkg-config utility
1467 PKG_CONFIG_PATH
1468 directories to add to pkg-config's search path
1469 PKG_CONFIG_LIBDIR
1470 path overriding pkg-config's built-in search path
1471 XAUTH_CFLAGS
1472 C compiler flags for XAUTH, overriding pkg-config
1473 XAUTH_LIBS linker flags for XAUTH, overriding pkg-config
1474 LINT Path to a lint-style command
1475 LINT_FLAGS Flags for the lint-style command
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for configure.gnu first; this name is used for a wrapper for
1527 # Metaconfig's "Configure" on case-insensitive file systems.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 xauth configure 1.1.2
1545 generated by GNU Autoconf 2.71
1546
1547 Copyright (C) 2021 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest.beam
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 printf "%s\n" "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext
1584 then :
1585 ac_retval=0
1586 else $as_nop
1587 printf "%s\n" "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists and can be compiled using the include files in
1600 # INCLUDES, setting the cache variable VAR accordingly.
1601 ac_fn_c_check_header_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 printf %s "checking for $2... " >&6; }
1606 if eval test \${$3+y}
1607 then :
1608 printf %s "(cached) " >&6
1609 else $as_nop
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"
1616 then :
1617 eval "$3=yes"
1618 else $as_nop
1619 eval "$3=no"
1620 fi
1621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1622 fi
1623 eval ac_res=\$$3
1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625 printf "%s\n" "$ac_res" >&6; }
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628 } # ac_fn_c_check_header_compile
1629
1630 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1631 # ------------------------------------------------------------------
1632 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1633 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1634 ac_fn_check_decl ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 as_decl_name=`echo $2|sed 's/ *(.*//'`
1638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1639 printf %s "checking whether $as_decl_name is declared... " >&6; }
1640 if eval test \${$3+y}
1641 then :
1642 printf %s "(cached) " >&6
1643 else $as_nop
1644 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1645 eval ac_save_FLAGS=\$$6
1646 as_fn_append $6 " $5"
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 int
1651 main (void)
1652 {
1653 #ifndef $as_decl_name
1654 #ifdef __cplusplus
1655 (void) $as_decl_use;
1656 #else
1657 (void) $as_decl_name;
1658 #endif
1659 #endif
1660
1661 ;
1662 return 0;
1663 }
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"
1666 then :
1667 eval "$3=yes"
1668 else $as_nop
1669 eval "$3=no"
1670 fi
1671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672 eval $6=\$ac_save_FLAGS
1673
1674 fi
1675 eval ac_res=\$$3
1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 printf "%s\n" "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_check_decl
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 printf "%s\n" "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 test -x conftest$ac_exeext
1710 }
1711 then :
1712 ac_retval=0
1713 else $as_nop
1714 printf "%s\n" "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_check_func LINENO FUNC VAR
1730 # ----------------------------------
1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1732 ac_fn_c_check_func ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 printf %s "checking for $2... " >&6; }
1737 if eval test \${$3+y}
1738 then :
1739 printf %s "(cached) " >&6
1740 else $as_nop
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below. */
1749
1750 #include <limits.h>
1751 #undef $2
1752
1753 /* Override any GCC internal prototype to avoid an error.
1754 Use char because int might match the return type of a GCC
1755 builtin and then its argument prototype would still apply. */
1756 #ifdef __cplusplus
1757 extern "C"
1758 #endif
1759 char $2 ();
1760 /* The GNU C library defines this for functions which it implements
1761 to always fail with ENOSYS. Some functions are actually named
1762 something starting with __ and the normal name is an alias. */
1763 #if defined __stub_$2 || defined __stub___$2
1764 choke me
1765 #endif
1766
1767 int
1768 main (void)
1769 {
1770 return $2 ();
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_link "$LINENO"
1776 then :
1777 eval "$3=yes"
1778 else $as_nop
1779 eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782 conftest$ac_exeext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_func
1790
1791 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1792 # ----------------------------------------------------
1793 # Tries to find if the field MEMBER exists in type AGGR, after including
1794 # INCLUDES, setting cache variable VAR accordingly.
1795 ac_fn_c_check_member ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1799 printf %s "checking for $2.$3... " >&6; }
1800 if eval test \${$4+y}
1801 then :
1802 printf %s "(cached) " >&6
1803 else $as_nop
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $5
1807 int
1808 main (void)
1809 {
1810 static $2 ac_aggr;
1811 if (ac_aggr.$3)
1812 return 0;
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"
1818 then :
1819 eval "$4=yes"
1820 else $as_nop
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $5
1824 int
1825 main (void)
1826 {
1827 static $2 ac_aggr;
1828 if (sizeof ac_aggr.$3)
1829 return 0;
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"
1835 then :
1836 eval "$4=yes"
1837 else $as_nop
1838 eval "$4=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$4
1845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 printf "%s\n" "$ac_res" >&6; }
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_member
1850
1851 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852 # -------------------------------------------
1853 # Tests whether TYPE exists after having included INCLUDES, setting cache
1854 # variable VAR accordingly.
1855 ac_fn_c_check_type ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 printf %s "checking for $2... " >&6; }
1860 if eval test \${$3+y}
1861 then :
1862 printf %s "(cached) " >&6
1863 else $as_nop
1864 eval "$3=no"
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 int
1869 main (void)
1870 {
1871 if (sizeof ($2))
1872 return 0;
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"
1878 then :
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $4
1882 int
1883 main (void)
1884 {
1885 if (sizeof (($2)))
1886 return 0;
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"
1892 then :
1893
1894 else $as_nop
1895 eval "$3=yes"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 printf "%s\n" "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_type
1907 ac_configure_args_raw=
1908 for ac_arg
1909 do
1910 case $ac_arg in
1911 *\'*)
1912 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913 esac
1914 as_fn_append ac_configure_args_raw " '$ac_arg'"
1915 done
1916
1917 case $ac_configure_args_raw in
1918 *$as_nl*)
1919 ac_safe_unquote= ;;
1920 *)
1921 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1922 ac_unsafe_a="$ac_unsafe_z#~"
1923 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1924 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1925 esac
1926
1927 cat >config.log <<_ACEOF
1928 This file contains any messages produced by compilers while
1929 running configure, to aid debugging if configure makes a mistake.
1930
1931 It was created by xauth $as_me 1.1.2, which was
1932 generated by GNU Autoconf 2.71. Invocation command line was
1933
1934 $ $0$ac_configure_args_raw
1935
1936 _ACEOF
1937 exec 5>>config.log
1938 {
1939 cat <<_ASUNAME
1940 ## --------- ##
1941 ## Platform. ##
1942 ## --------- ##
1943
1944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1952
1953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1960
1961 _ASUNAME
1962
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 case $as_dir in #(((
1968 '') as_dir=./ ;;
1969 */) ;;
1970 *) as_dir=$as_dir/ ;;
1971 esac
1972 printf "%s\n" "PATH: $as_dir"
1973 done
1974 IFS=$as_save_IFS
1975
1976 } >&5
1977
1978 cat >&5 <<_ACEOF
1979
1980
1981 ## ----------- ##
1982 ## Core tests. ##
1983 ## ----------- ##
1984
1985 _ACEOF
1986
1987
1988 # Keep a trace of the command line.
1989 # Strip out --no-create and --no-recursion so they do not pile up.
1990 # Strip out --silent because we don't want to record it for future runs.
1991 # Also quote any args containing shell meta-characters.
1992 # Make two passes to allow for proper duplicate-argument suppression.
1993 ac_configure_args=
1994 ac_configure_args0=
1995 ac_configure_args1=
1996 ac_must_keep_next=false
1997 for ac_pass in 1 2
1998 do
1999 for ac_arg
2000 do
2001 case $ac_arg in
2002 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004 | -silent | --silent | --silen | --sile | --sil)
2005 continue ;;
2006 *\'*)
2007 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2008 esac
2009 case $ac_pass in
2010 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011 2)
2012 as_fn_append ac_configure_args1 " '$ac_arg'"
2013 if test $ac_must_keep_next = true; then
2014 ac_must_keep_next=false # Got value, back to normal.
2015 else
2016 case $ac_arg in
2017 *=* | --config-cache | -C | -disable-* | --disable-* \
2018 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020 | -with-* | --with-* | -without-* | --without-* | --x)
2021 case "$ac_configure_args0 " in
2022 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2023 esac
2024 ;;
2025 -* ) ac_must_keep_next=true ;;
2026 esac
2027 fi
2028 as_fn_append ac_configure_args " '$ac_arg'"
2029 ;;
2030 esac
2031 done
2032 done
2033 { ac_configure_args0=; unset ac_configure_args0;}
2034 { ac_configure_args1=; unset ac_configure_args1;}
2035
2036 # When interrupted or exit'd, cleanup temporary files, and complete
2037 # config.log. We remove comments because anyway the quotes in there
2038 # would cause problems or look ugly.
2039 # WARNING: Use '\'' to represent an apostrophe within the trap.
2040 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041 trap 'exit_status=$?
2042 # Sanitize IFS.
2043 IFS=" "" $as_nl"
2044 # Save into config.log some information that might help in debugging.
2045 {
2046 echo
2047
2048 printf "%s\n" "## ---------------- ##
2049 ## Cache variables. ##
2050 ## ---------------- ##"
2051 echo
2052 # The following way of writing the cache mishandles newlines in values,
2053 (
2054 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in #(
2057 *${as_nl}*)
2058 case $ac_var in #(
2059 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2060 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061 esac
2062 case $ac_var in #(
2063 _ | IFS | as_nl) ;; #(
2064 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2065 *) { eval $ac_var=; unset $ac_var;} ;;
2066 esac ;;
2067 esac
2068 done
2069 (set) 2>&1 |
2070 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2071 *${as_nl}ac_space=\ *)
2072 sed -n \
2073 "s/'\''/'\''\\\\'\'''\''/g;
2074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075 ;; #(
2076 *)
2077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078 ;;
2079 esac |
2080 sort
2081 )
2082 echo
2083
2084 printf "%s\n" "## ----------------- ##
2085 ## Output variables. ##
2086 ## ----------------- ##"
2087 echo
2088 for ac_var in $ac_subst_vars
2089 do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in
2092 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093 esac
2094 printf "%s\n" "$ac_var='\''$ac_val'\''"
2095 done | sort
2096 echo
2097
2098 if test -n "$ac_subst_files"; then
2099 printf "%s\n" "## ------------------- ##
2100 ## File substitutions. ##
2101 ## ------------------- ##"
2102 echo
2103 for ac_var in $ac_subst_files
2104 do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in
2107 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108 esac
2109 printf "%s\n" "$ac_var='\''$ac_val'\''"
2110 done | sort
2111 echo
2112 fi
2113
2114 if test -s confdefs.h; then
2115 printf "%s\n" "## ----------- ##
2116 ## confdefs.h. ##
2117 ## ----------- ##"
2118 echo
2119 cat confdefs.h
2120 echo
2121 fi
2122 test "$ac_signal" != 0 &&
2123 printf "%s\n" "$as_me: caught signal $ac_signal"
2124 printf "%s\n" "$as_me: exit $exit_status"
2125 } >&5
2126 rm -f core *.core core.conftest.* &&
2127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128 exit $exit_status
2129 ' 0
2130 for ac_signal in 1 2 13 15; do
2131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132 done
2133 ac_signal=0
2134
2135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2136 rm -f -r conftest* confdefs.h
2137
2138 printf "%s\n" "/* confdefs.h */" > confdefs.h
2139
2140 # Predefined preprocessor variables.
2141
2142 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2143
2144 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2145
2146 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2147
2148 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2149
2150 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2151
2152 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2153
2154
2155 # Let the site file select an alternate cache file if it wants to.
2156 # Prefer an explicitly selected file to automatically selected ones.
2157 if test -n "$CONFIG_SITE"; then
2158 ac_site_files="$CONFIG_SITE"
2159 elif test "x$prefix" != xNONE; then
2160 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2161 else
2162 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2163 fi
2164
2165 for ac_site_file in $ac_site_files
2166 do
2167 case $ac_site_file in #(
2168 */*) :
2169 ;; #(
2170 *) :
2171 ac_site_file=./$ac_site_file ;;
2172 esac
2173 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2175 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2176 sed 's/^/| /' "$ac_site_file" >&5
2177 . "$ac_site_file" \
2178 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2179 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2180 as_fn_error $? "failed to load site script $ac_site_file
2181 See \`config.log' for more details" "$LINENO" 5; }
2182 fi
2183 done
2184
2185 if test -r "$cache_file"; then
2186 # Some versions of bash will fail to source /dev/null (special files
2187 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2188 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2191 case $cache_file in
2192 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 *) . "./$cache_file";;
2194 esac
2195 fi
2196 else
2197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2199 >$cache_file
2200 fi
2201
2202 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2203 # Test code for whether the C compiler supports C89 (global declarations)
2204 ac_c_conftest_c89_globals='
2205 /* Does the compiler advertise C89 conformance?
2206 Do not test the value of __STDC__, because some compilers set it to 0
2207 while being otherwise adequately conformant. */
2208 #if !defined __STDC__
2209 # error "Compiler does not advertise C89 conformance"
2210 #endif
2211
2212 #include <stddef.h>
2213 #include <stdarg.h>
2214 struct stat;
2215 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2216 struct buf { int x; };
2217 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2219 char **p;
2220 int i;
2221 {
2222 return p[i];
2223 }
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2225 {
2226 char *s;
2227 va_list v;
2228 va_start (v,p);
2229 s = g (p, va_arg (v,int));
2230 va_end (v);
2231 return s;
2232 }
2233
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2235 function prototypes and stuff, but not \xHH hex character constants.
2236 These do not provoke an error unfortunately, instead are silently treated
2237 as an "x". The following induces an error, until -std is added to get
2238 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2239 array size at least. It is necessary to write \x00 == 0 to get something
2240 that is true only with -std. */
2241 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2242
2243 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2244 inside strings and character constants. */
2245 #define FOO(x) '\''x'\''
2246 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2247
2248 int test (int i, double x);
2249 struct s1 {int (*f) (int a);};
2250 struct s2 {int (*f) (double a);};
2251 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2252 int, int);'
2253
2254 # Test code for whether the C compiler supports C89 (body of main).
2255 ac_c_conftest_c89_main='
2256 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2257 '
2258
2259 # Test code for whether the C compiler supports C99 (global declarations)
2260 ac_c_conftest_c99_globals='
2261 // Does the compiler advertise C99 conformance?
2262 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2263 # error "Compiler does not advertise C99 conformance"
2264 #endif
2265
2266 #include <stdbool.h>
2267 extern int puts (const char *);
2268 extern int printf (const char *, ...);
2269 extern int dprintf (int, const char *, ...);
2270 extern void *malloc (size_t);
2271
2272 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2273 // dprintf is used instead of fprintf to avoid needing to declare
2274 // FILE and stderr.
2275 #define debug(...) dprintf (2, __VA_ARGS__)
2276 #define showlist(...) puts (#__VA_ARGS__)
2277 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2278 static void
2279 test_varargs_macros (void)
2280 {
2281 int x = 1234;
2282 int y = 5678;
2283 debug ("Flag");
2284 debug ("X = %d\n", x);
2285 showlist (The first, second, and third items.);
2286 report (x>y, "x is %d but y is %d", x, y);
2287 }
2288
2289 // Check long long types.
2290 #define BIG64 18446744073709551615ull
2291 #define BIG32 4294967295ul
2292 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2293 #if !BIG_OK
2294 #error "your preprocessor is broken"
2295 #endif
2296 #if BIG_OK
2297 #else
2298 #error "your preprocessor is broken"
2299 #endif
2300 static long long int bignum = -9223372036854775807LL;
2301 static unsigned long long int ubignum = BIG64;
2302
2303 struct incomplete_array
2304 {
2305 int datasize;
2306 double data[];
2307 };
2308
2309 struct named_init {
2310 int number;
2311 const wchar_t *name;
2312 double average;
2313 };
2314
2315 typedef const char *ccp;
2316
2317 static inline int
2318 test_restrict (ccp restrict text)
2319 {
2320 // See if C++-style comments work.
2321 // Iterate through items via the restricted pointer.
2322 // Also check for declarations in for loops.
2323 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2324 continue;
2325 return 0;
2326 }
2327
2328 // Check varargs and va_copy.
2329 static bool
2330 test_varargs (const char *format, ...)
2331 {
2332 va_list args;
2333 va_start (args, format);
2334 va_list args_copy;
2335 va_copy (args_copy, args);
2336
2337 const char *str = "";
2338 int number = 0;
2339 float fnumber = 0;
2340
2341 while (*format)
2342 {
2343 switch (*format++)
2344 {
2345 case '\''s'\'': // string
2346 str = va_arg (args_copy, const char *);
2347 break;
2348 case '\''d'\'': // int
2349 number = va_arg (args_copy, int);
2350 break;
2351 case '\''f'\'': // float
2352 fnumber = va_arg (args_copy, double);
2353 break;
2354 default:
2355 break;
2356 }
2357 }
2358 va_end (args_copy);
2359 va_end (args);
2360
2361 return *str && number && fnumber;
2362 }
2363 '
2364
2365 # Test code for whether the C compiler supports C99 (body of main).
2366 ac_c_conftest_c99_main='
2367 // Check bool.
2368 _Bool success = false;
2369 success |= (argc != 0);
2370
2371 // Check restrict.
2372 if (test_restrict ("String literal") == 0)
2373 success = true;
2374 char *restrict newvar = "Another string";
2375
2376 // Check varargs.
2377 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2378 test_varargs_macros ();
2379
2380 // Check flexible array members.
2381 struct incomplete_array *ia =
2382 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2383 ia->datasize = 10;
2384 for (int i = 0; i < ia->datasize; ++i)
2385 ia->data[i] = i * 1.234;
2386
2387 // Check named initializers.
2388 struct named_init ni = {
2389 .number = 34,
2390 .name = L"Test wide string",
2391 .average = 543.34343,
2392 };
2393
2394 ni.number = 58;
2395
2396 int dynamic_array[ni.number];
2397 dynamic_array[0] = argv[0][0];
2398 dynamic_array[ni.number - 1] = 543;
2399
2400 // work around unused variable warnings
2401 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2402 || dynamic_array[ni.number - 1] != 543);
2403 '
2404
2405 # Test code for whether the C compiler supports C11 (global declarations)
2406 ac_c_conftest_c11_globals='
2407 // Does the compiler advertise C11 conformance?
2408 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2409 # error "Compiler does not advertise C11 conformance"
2410 #endif
2411
2412 // Check _Alignas.
2413 char _Alignas (double) aligned_as_double;
2414 char _Alignas (0) no_special_alignment;
2415 extern char aligned_as_int;
2416 char _Alignas (0) _Alignas (int) aligned_as_int;
2417
2418 // Check _Alignof.
2419 enum
2420 {
2421 int_alignment = _Alignof (int),
2422 int_array_alignment = _Alignof (int[100]),
2423 char_alignment = _Alignof (char)
2424 };
2425 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2426
2427 // Check _Noreturn.
2428 int _Noreturn does_not_return (void) { for (;;) continue; }
2429
2430 // Check _Static_assert.
2431 struct test_static_assert
2432 {
2433 int x;
2434 _Static_assert (sizeof (int) <= sizeof (long int),
2435 "_Static_assert does not work in struct");
2436 long int y;
2437 };
2438
2439 // Check UTF-8 literals.
2440 #define u8 syntax error!
2441 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2442
2443 // Check duplicate typedefs.
2444 typedef long *long_ptr;
2445 typedef long int *long_ptr;
2446 typedef long_ptr long_ptr;
2447
2448 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2449 struct anonymous
2450 {
2451 union {
2452 struct { int i; int j; };
2453 struct { int k; long int l; } w;
2454 };
2455 int m;
2456 } v1;
2457 '
2458
2459 # Test code for whether the C compiler supports C11 (body of main).
2460 ac_c_conftest_c11_main='
2461 _Static_assert ((offsetof (struct anonymous, i)
2462 == offsetof (struct anonymous, w.k)),
2463 "Anonymous union alignment botch");
2464 v1.i = 2;
2465 v1.w.k = 5;
2466 ok |= v1.i != 5;
2467 '
2468
2469 # Test code for whether the C compiler supports C11 (complete).
2470 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2471 ${ac_c_conftest_c99_globals}
2472 ${ac_c_conftest_c11_globals}
2473
2474 int
2475 main (int argc, char **argv)
2476 {
2477 int ok = 0;
2478 ${ac_c_conftest_c89_main}
2479 ${ac_c_conftest_c99_main}
2480 ${ac_c_conftest_c11_main}
2481 return ok;
2482 }
2483 "
2484
2485 # Test code for whether the C compiler supports C99 (complete).
2486 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2487 ${ac_c_conftest_c99_globals}
2488
2489 int
2490 main (int argc, char **argv)
2491 {
2492 int ok = 0;
2493 ${ac_c_conftest_c89_main}
2494 ${ac_c_conftest_c99_main}
2495 return ok;
2496 }
2497 "
2498
2499 # Test code for whether the C compiler supports C89 (complete).
2500 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2501
2502 int
2503 main (int argc, char **argv)
2504 {
2505 int ok = 0;
2506 ${ac_c_conftest_c89_main}
2507 return ok;
2508 }
2509 "
2510
2511 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2512 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2513 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2514 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2515 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2516 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2517 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2518 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2519 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2520 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2521
2522 # Auxiliary files required by this configure script.
2523 ac_aux_files="config.guess config.sub compile missing install-sh"
2524
2525 # Locations in which to look for auxiliary files.
2526 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2527
2528 # Search for a directory containing all of the required auxiliary files,
2529 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2530 # If we don't find one directory that contains all the files we need,
2531 # we report the set of missing files from the *first* directory in
2532 # $ac_aux_dir_candidates and give up.
2533 ac_missing_aux_files=""
2534 ac_first_candidate=:
2535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 as_found=false
2538 for as_dir in $ac_aux_dir_candidates
2539 do
2540 IFS=$as_save_IFS
2541 case $as_dir in #(((
2542 '') as_dir=./ ;;
2543 */) ;;
2544 *) as_dir=$as_dir/ ;;
2545 esac
2546 as_found=:
2547
2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2549 ac_aux_dir_found=yes
2550 ac_install_sh=
2551 for ac_aux in $ac_aux_files
2552 do
2553 # As a special case, if "install-sh" is required, that requirement
2554 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2555 # and $ac_install_sh is set appropriately for whichever one is found.
2556 if test x"$ac_aux" = x"install-sh"
2557 then
2558 if test -f "${as_dir}install-sh"; then
2559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2560 ac_install_sh="${as_dir}install-sh -c"
2561 elif test -f "${as_dir}install.sh"; then
2562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2563 ac_install_sh="${as_dir}install.sh -c"
2564 elif test -f "${as_dir}shtool"; then
2565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2566 ac_install_sh="${as_dir}shtool install -c"
2567 else
2568 ac_aux_dir_found=no
2569 if $ac_first_candidate; then
2570 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2571 else
2572 break
2573 fi
2574 fi
2575 else
2576 if test -f "${as_dir}${ac_aux}"; then
2577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2578 else
2579 ac_aux_dir_found=no
2580 if $ac_first_candidate; then
2581 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2582 else
2583 break
2584 fi
2585 fi
2586 fi
2587 done
2588 if test "$ac_aux_dir_found" = yes; then
2589 ac_aux_dir="$as_dir"
2590 break
2591 fi
2592 ac_first_candidate=false
2593
2594 as_found=false
2595 done
2596 IFS=$as_save_IFS
2597 if $as_found
2598 then :
2599
2600 else $as_nop
2601 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2602 fi
2603
2604
2605 # These three variables are undocumented and unsupported,
2606 # and are intended to be withdrawn in a future Autoconf release.
2607 # They can cause serious problems if a builder's source tree is in a directory
2608 # whose full name contains unusual characters.
2609 if test -f "${ac_aux_dir}config.guess"; then
2610 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2611 fi
2612 if test -f "${ac_aux_dir}config.sub"; then
2613 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2614 fi
2615 if test -f "$ac_aux_dir/configure"; then
2616 ac_configure="$SHELL ${ac_aux_dir}configure"
2617 fi
2618
2619 # Check that the precious variables saved in the cache have kept the same
2620 # value.
2621 ac_cache_corrupted=false
2622 for ac_var in $ac_precious_vars; do
2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624 eval ac_new_set=\$ac_env_${ac_var}_set
2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626 eval ac_new_val=\$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2628 set,)
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,set)
2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,);;
2637 *)
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w=`echo x $ac_old_val`
2641 ac_new_val_w=`echo x $ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645 ac_cache_corrupted=:
2646 else
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\$ac_old_val
2650 fi
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2655 fi;;
2656 esac
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2659 case $ac_new_val in
2660 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 *) ac_arg=$ac_var=$ac_new_val ;;
2662 esac
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666 esac
2667 fi
2668 done
2669 if $ac_cache_corrupted; then
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2675 and start over" "$LINENO" 5
2676 fi
2677 ## -------------------- ##
2678 ## Main body of script. ##
2679 ## -------------------- ##
2680
2681 ac_ext=c
2682 ac_cpp='$CPP $CPPFLAGS'
2683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686
2687
2688 am__api_version='1.16'
2689
2690
2691
2692 # Find a good install program. We prefer a C program (faster),
2693 # so one script is as good as another. But avoid the broken or
2694 # incompatible versions:
2695 # SysV /etc/install, /usr/sbin/install
2696 # SunOS /usr/etc/install
2697 # IRIX /sbin/install
2698 # AIX /bin/install
2699 # AmigaOS /C/install, which installs bootblocks on floppy discs
2700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2703 # OS/2's system install, which has a completely different semantic
2704 # ./install, which can be erroneously created by make from ./install.sh.
2705 # Reject install programs that cannot install multiple files.
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2707 printf %s "checking for a BSD-compatible install... " >&6; }
2708 if test -z "$INSTALL"; then
2709 if test ${ac_cv_path_install+y}
2710 then :
2711 printf %s "(cached) " >&6
2712 else $as_nop
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 case $as_dir in #(((
2718 '') as_dir=./ ;;
2719 */) ;;
2720 *) as_dir=$as_dir/ ;;
2721 esac
2722 # Account for fact that we put trailing slashes in our PATH walk.
2723 case $as_dir in #((
2724 ./ | /[cC]/* | \
2725 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2726 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2727 /usr/ucb/* ) ;;
2728 *)
2729 # OSF1 and SCO ODT 3.0 have their own names for install.
2730 # Don't use installbsd from OSF since it installs stuff as root
2731 # by default.
2732 for ac_prog in ginstall scoinst install; do
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2735 if test $ac_prog = install &&
2736 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737 # AIX install. It has an incompatible calling convention.
2738 :
2739 elif test $ac_prog = install &&
2740 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741 # program-specific install script used by HP pwplus--don't use.
2742 :
2743 else
2744 rm -rf conftest.one conftest.two conftest.dir
2745 echo one > conftest.one
2746 echo two > conftest.two
2747 mkdir conftest.dir
2748 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2749 test -s conftest.one && test -s conftest.two &&
2750 test -s conftest.dir/conftest.one &&
2751 test -s conftest.dir/conftest.two
2752 then
2753 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2754 break 3
2755 fi
2756 fi
2757 fi
2758 done
2759 done
2760 ;;
2761 esac
2762
2763 done
2764 IFS=$as_save_IFS
2765
2766 rm -rf conftest.one conftest.two conftest.dir
2767
2768 fi
2769 if test ${ac_cv_path_install+y}; then
2770 INSTALL=$ac_cv_path_install
2771 else
2772 # As a last resort, use the slow shell script. Don't cache a
2773 # value for INSTALL within a source directory, because that will
2774 # break other packages using the cache if that directory is
2775 # removed, or if the value is a relative name.
2776 INSTALL=$ac_install_sh
2777 fi
2778 fi
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2780 printf "%s\n" "$INSTALL" >&6; }
2781
2782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2783 # It thinks the first close brace ends the variable substitution.
2784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2785
2786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2787
2788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2789
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2791 printf %s "checking whether build environment is sane... " >&6; }
2792 # Reject unsafe characters in $srcdir or the absolute working directory
2793 # name. Accept space and tab only in the latter.
2794 am_lf='
2795 '
2796 case `pwd` in
2797 *[\\\"\#\$\&\'\`$am_lf]*)
2798 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2799 esac
2800 case $srcdir in
2801 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2802 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2803 esac
2804
2805 # Do 'set' in a subshell so we don't clobber the current shell's
2806 # arguments. Must try -L first in case configure is actually a
2807 # symlink; some systems play weird games with the mod time of symlinks
2808 # (eg FreeBSD returns the mod time of the symlink's containing
2809 # directory).
2810 if (
2811 am_has_slept=no
2812 for am_try in 1 2; do
2813 echo "timestamp, slept: $am_has_slept" > conftest.file
2814 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2815 if test "$*" = "X"; then
2816 # -L didn't work.
2817 set X `ls -t "$srcdir/configure" conftest.file`
2818 fi
2819 if test "$*" != "X $srcdir/configure conftest.file" \
2820 && test "$*" != "X conftest.file $srcdir/configure"; then
2821
2822 # If neither matched, then we have a broken ls. This can happen
2823 # if, for instance, CONFIG_SHELL is bash and it inherits a
2824 # broken ls alias from the environment. This has actually
2825 # happened. Such a system could not be considered "sane".
2826 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2827 alias in your environment" "$LINENO" 5
2828 fi
2829 if test "$2" = conftest.file || test $am_try -eq 2; then
2830 break
2831 fi
2832 # Just in case.
2833 sleep 1
2834 am_has_slept=yes
2835 done
2836 test "$2" = conftest.file
2837 )
2838 then
2839 # Ok.
2840 :
2841 else
2842 as_fn_error $? "newly created file is older than distributed files!
2843 Check your system clock" "$LINENO" 5
2844 fi
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846 printf "%s\n" "yes" >&6; }
2847 # If we didn't sleep, we still need to ensure time stamps of config.status and
2848 # generated files are strictly newer.
2849 am_sleep_pid=
2850 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2851 ( sleep 1 ) &
2852 am_sleep_pid=$!
2853 fi
2854
2855 rm -f conftest.file
2856
2857 test "$program_prefix" != NONE &&
2858 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2859 # Use a double $ so make ignores it.
2860 test "$program_suffix" != NONE &&
2861 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2862 # Double any \ or $.
2863 # By default was `s,x,x', remove it if useless.
2864 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2865 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2866
2867
2868 # Expand $ac_aux_dir to an absolute path.
2869 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2870
2871
2872 if test x"${MISSING+set}" != xset; then
2873 MISSING="\${SHELL} '$am_aux_dir/missing'"
2874 fi
2875 # Use eval to expand $SHELL
2876 if eval "$MISSING --is-lightweight"; then
2877 am_missing_run="$MISSING "
2878 else
2879 am_missing_run=
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2881 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2882 fi
2883
2884 if test x"${install_sh+set}" != xset; then
2885 case $am_aux_dir in
2886 *\ * | *\ *)
2887 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2888 *)
2889 install_sh="\${SHELL} $am_aux_dir/install-sh"
2890 esac
2891 fi
2892
2893 # Installed binaries are usually stripped using 'strip' when the user
2894 # run "make install-strip". However 'strip' might not be the right
2895 # tool to use in cross-compilation environments, therefore Automake
2896 # will honor the 'STRIP' environment variable to overrule this program.
2897 if test "$cross_compiling" != no; then
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2900 set dummy ${ac_tool_prefix}strip; ac_word=$2
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 printf %s "checking for $ac_word... " >&6; }
2903 if test ${ac_cv_prog_STRIP+y}
2904 then :
2905 printf %s "(cached) " >&6
2906 else $as_nop
2907 if test -n "$STRIP"; then
2908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 case $as_dir in #(((
2915 '') as_dir=./ ;;
2916 */) ;;
2917 *) as_dir=$as_dir/ ;;
2918 esac
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 STRIP=$ac_cv_prog_STRIP
2932 if test -n "$STRIP"; then
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2934 printf "%s\n" "$STRIP" >&6; }
2935 else
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 printf "%s\n" "no" >&6; }
2938 fi
2939
2940
2941 fi
2942 if test -z "$ac_cv_prog_STRIP"; then
2943 ac_ct_STRIP=$STRIP
2944 # Extract the first word of "strip", so it can be a program name with args.
2945 set dummy strip; ac_word=$2
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 printf %s "checking for $ac_word... " >&6; }
2948 if test ${ac_cv_prog_ac_ct_STRIP+y}
2949 then :
2950 printf %s "(cached) " >&6
2951 else $as_nop
2952 if test -n "$ac_ct_STRIP"; then
2953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 case $as_dir in #(((
2960 '') as_dir=./ ;;
2961 */) ;;
2962 *) as_dir=$as_dir/ ;;
2963 esac
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_STRIP="strip"
2967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2977 if test -n "$ac_ct_STRIP"; then
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2979 printf "%s\n" "$ac_ct_STRIP" >&6; }
2980 else
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 printf "%s\n" "no" >&6; }
2983 fi
2984
2985 if test "x$ac_ct_STRIP" = x; then
2986 STRIP=":"
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994 STRIP=$ac_ct_STRIP
2995 fi
2996 else
2997 STRIP="$ac_cv_prog_STRIP"
2998 fi
2999
3000 fi
3001 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002
3003
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3005 printf %s "checking for a race-free mkdir -p... " >&6; }
3006 if test -z "$MKDIR_P"; then
3007 if test ${ac_cv_path_mkdir+y}
3008 then :
3009 printf %s "(cached) " >&6
3010 else $as_nop
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3013 do
3014 IFS=$as_save_IFS
3015 case $as_dir in #(((
3016 '') as_dir=./ ;;
3017 */) ;;
3018 *) as_dir=$as_dir/ ;;
3019 esac
3020 for ac_prog in mkdir gmkdir; do
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3023 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3024 'mkdir ('*'coreutils) '* | \
3025 'BusyBox '* | \
3026 'mkdir (fileutils) '4.1*)
3027 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3028 break 3;;
3029 esac
3030 done
3031 done
3032 done
3033 IFS=$as_save_IFS
3034
3035 fi
3036
3037 test -d ./--version && rmdir ./--version
3038 if test ${ac_cv_path_mkdir+y}; then
3039 MKDIR_P="$ac_cv_path_mkdir -p"
3040 else
3041 # As a last resort, use the slow shell script. Don't cache a
3042 # value for MKDIR_P within a source directory, because that will
3043 # break other packages using the cache if that directory is
3044 # removed, or if the value is a relative name.
3045 MKDIR_P="$ac_install_sh -d"
3046 fi
3047 fi
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3049 printf "%s\n" "$MKDIR_P" >&6; }
3050
3051 for ac_prog in gawk mawk nawk awk
3052 do
3053 # Extract the first word of "$ac_prog", so it can be a program name with args.
3054 set dummy $ac_prog; ac_word=$2
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 printf %s "checking for $ac_word... " >&6; }
3057 if test ${ac_cv_prog_AWK+y}
3058 then :
3059 printf %s "(cached) " >&6
3060 else $as_nop
3061 if test -n "$AWK"; then
3062 ac_cv_prog_AWK="$AWK" # 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 case $as_dir in #(((
3069 '') as_dir=./ ;;
3070 */) ;;
3071 *) as_dir=$as_dir/ ;;
3072 esac
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_AWK="$ac_prog"
3076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 AWK=$ac_cv_prog_AWK
3086 if test -n "$AWK"; then
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3088 printf "%s\n" "$AWK" >&6; }
3089 else
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 printf "%s\n" "no" >&6; }
3092 fi
3093
3094
3095 test -n "$AWK" && break
3096 done
3097
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3099 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3100 set x ${MAKE-make}
3101 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3102 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3103 then :
3104 printf %s "(cached) " >&6
3105 else $as_nop
3106 cat >conftest.make <<\_ACEOF
3107 SHELL = /bin/sh
3108 all:
3109 @echo '@@@%%%=$(MAKE)=@@@%%%'
3110 _ACEOF
3111 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3112 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3113 *@@@%%%=?*=@@@%%%*)
3114 eval ac_cv_prog_make_${ac_make}_set=yes;;
3115 *)
3116 eval ac_cv_prog_make_${ac_make}_set=no;;
3117 esac
3118 rm -f conftest.make
3119 fi
3120 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 printf "%s\n" "yes" >&6; }
3123 SET_MAKE=
3124 else
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 printf "%s\n" "no" >&6; }
3127 SET_MAKE="MAKE=${MAKE-make}"
3128 fi
3129
3130 rm -rf .tst 2>/dev/null
3131 mkdir .tst 2>/dev/null
3132 if test -d .tst; then
3133 am__leading_dot=.
3134 else
3135 am__leading_dot=_
3136 fi
3137 rmdir .tst 2>/dev/null
3138
3139 # Check whether --enable-silent-rules was given.
3140 if test ${enable_silent_rules+y}
3141 then :
3142 enableval=$enable_silent_rules;
3143 fi
3144
3145 case $enable_silent_rules in # (((
3146 yes) AM_DEFAULT_VERBOSITY=0;;
3147 no) AM_DEFAULT_VERBOSITY=1;;
3148 *) AM_DEFAULT_VERBOSITY=1;;
3149 esac
3150 am_make=${MAKE-make}
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3152 printf %s "checking whether $am_make supports nested variables... " >&6; }
3153 if test ${am_cv_make_support_nested_variables+y}
3154 then :
3155 printf %s "(cached) " >&6
3156 else $as_nop
3157 if printf "%s\n" 'TRUE=$(BAR$(V))
3158 BAR0=false
3159 BAR1=true
3160 V=1
3161 am__doit:
3162 @$(TRUE)
3163 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3164 am_cv_make_support_nested_variables=yes
3165 else
3166 am_cv_make_support_nested_variables=no
3167 fi
3168 fi
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3170 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3171 if test $am_cv_make_support_nested_variables = yes; then
3172 AM_V='$(V)'
3173 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3174 else
3175 AM_V=$AM_DEFAULT_VERBOSITY
3176 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3177 fi
3178 AM_BACKSLASH='\'
3179
3180 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3181 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3182 # is not polluted with repeated "-I."
3183 am__isrc=' -I$(srcdir)'
3184 # test to see if srcdir already configured
3185 if test -f $srcdir/config.status; then
3186 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187 fi
3188 fi
3189
3190 # test whether we have cygpath
3191 if test -z "$CYGPATH_W"; then
3192 if (cygpath --version) >/dev/null 2>/dev/null; then
3193 CYGPATH_W='cygpath -w'
3194 else
3195 CYGPATH_W=echo
3196 fi
3197 fi
3198
3199
3200 # Define the identity of the package.
3201 PACKAGE='xauth'
3202 VERSION='1.1.2'
3203
3204
3205 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3206
3207
3208 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3209
3210 # Some tools Automake needs.
3211
3212 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3213
3214
3215 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3216
3217
3218 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3219
3220
3221 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3222
3223
3224 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3225
3226 # For better backward compatibility. To be removed once Automake 1.9.x
3227 # dies out for good. For more background, see:
3228 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3229 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3230 mkdir_p='$(MKDIR_P)'
3231
3232 # We need awk for the "check" target (and possibly the TAP driver). The
3233 # system "awk" is bad on some platforms.
3234 # Always define AMTAR for backward compatibility. Yes, it's still used
3235 # in the wild :-( We should find a proper way to deprecate it ...
3236 AMTAR='$${TAR-tar}'
3237
3238
3239 # We'll loop over all known methods to create a tar archive until one works.
3240 _am_tools='gnutar pax cpio none'
3241
3242 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3243
3244
3245
3246
3247
3248 # Variables for tags utilities; see am/tags.am
3249 if test -z "$CTAGS"; then
3250 CTAGS=ctags
3251 fi
3252
3253 if test -z "$ETAGS"; then
3254 ETAGS=etags
3255 fi
3256
3257 if test -z "$CSCOPE"; then
3258 CSCOPE=cscope
3259 fi
3260
3261
3262
3263 # POSIX will say in a future version that running "rm -f" with no argument
3264 # is OK; and we want to be able to make that assumption in our Makefile
3265 # recipes. So use an aggressive probe to check that the usage we want is
3266 # actually supported "in the wild" to an acceptable degree.
3267 # See automake bug#10828.
3268 # To make any issue more visible, cause the running configure to be aborted
3269 # by default if the 'rm' program in use doesn't match our expectations; the
3270 # user can still override this though.
3271 if rm -f && rm -fr && rm -rf; then : OK; else
3272 cat >&2 <<'END'
3273 Oops!
3274
3275 Your 'rm' program seems unable to run without file operands specified
3276 on the command line, even when the '-f' option is present. This is contrary
3277 to the behaviour of most rm programs out there, and not conforming with
3278 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3279
3280 Please tell bug-automake@gnu.org about your system, including the value
3281 of your $PATH and any error possibly output before this message. This
3282 can help us improve future automake versions.
3283
3284 END
3285 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3286 echo 'Configuration will proceed anyway, since you have set the' >&2
3287 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3288 echo >&2
3289 else
3290 cat >&2 <<'END'
3291 Aborting the configuration process, to ensure you take notice of the issue.
3292
3293 You can download and install GNU coreutils to get an 'rm' implementation
3294 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3295
3296 If you want to complete the configuration process using your problematic
3297 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3298 to "yes", and re-run configure.
3299
3300 END
3301 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3302 fi
3303 fi
3304
3305
3306 ac_config_headers="$ac_config_headers config.h"
3307
3308
3309 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3310 # Must be called before any macros that run the compiler (like
3311 # AC_PROG_LIBTOOL) to avoid autoconf errors.
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321 DEPDIR="${am__leading_dot}deps"
3322
3323 ac_config_commands="$ac_config_commands depfiles"
3324
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3326 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3327 cat > confinc.mk << 'END'
3328 am__doit:
3329 @echo this is the am__doit target >confinc.out
3330 .PHONY: am__doit
3331 END
3332 am__include="#"
3333 am__quote=
3334 # BSD make does it like this.
3335 echo '.include "confinc.mk" # ignored' > confmf.BSD
3336 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3337 echo 'include confinc.mk # ignored' > confmf.GNU
3338 _am_result=no
3339 for s in GNU BSD; do
3340 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3341 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }
3345 case $?:`cat confinc.out 2>/dev/null` in #(
3346 '0:this is the am__doit target') :
3347 case $s in #(
3348 BSD) :
3349 am__include='.include' am__quote='"' ;; #(
3350 *) :
3351 am__include='include' am__quote='' ;;
3352 esac ;; #(
3353 *) :
3354 ;;
3355 esac
3356 if test "$am__include" != "#"; then
3357 _am_result="yes ($s style)"
3358 break
3359 fi
3360 done
3361 rm -f confinc.* confmf.*
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3363 printf "%s\n" "${_am_result}" >&6; }
3364
3365 # Check whether --enable-dependency-tracking was given.
3366 if test ${enable_dependency_tracking+y}
3367 then :
3368 enableval=$enable_dependency_tracking;
3369 fi
3370
3371 if test "x$enable_dependency_tracking" != xno; then
3372 am_depcomp="$ac_aux_dir/depcomp"
3373 AMDEPBACKSLASH='\'
3374 am__nodep='_no'
3375 fi
3376 if test "x$enable_dependency_tracking" != xno; then
3377 AMDEP_TRUE=
3378 AMDEP_FALSE='#'
3379 else
3380 AMDEP_TRUE='#'
3381 AMDEP_FALSE=
3382 fi
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 printf %s "checking for $ac_word... " >&6; }
3395 if test ${ac_cv_prog_CC+y}
3396 then :
3397 printf %s "(cached) " >&6
3398 else $as_nop
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 case $as_dir in #(((
3407 '') as_dir=./ ;;
3408 */) ;;
3409 *) as_dir=$as_dir/ ;;
3410 esac
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 printf "%s\n" "$CC" >&6; }
3427 else
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 printf "%s\n" "no" >&6; }
3430 fi
3431
3432
3433 fi
3434 if test -z "$ac_cv_prog_CC"; then
3435 ac_ct_CC=$CC
3436 # Extract the first word of "gcc", so it can be a program name with args.
3437 set dummy gcc; ac_word=$2
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 printf %s "checking for $ac_word... " >&6; }
3440 if test ${ac_cv_prog_ac_ct_CC+y}
3441 then :
3442 printf %s "(cached) " >&6
3443 else $as_nop
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 case $as_dir in #(((
3452 '') as_dir=./ ;;
3453 */) ;;
3454 *) as_dir=$as_dir/ ;;
3455 esac
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_ac_ct_CC="gcc"
3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469 if test -n "$ac_ct_CC"; then
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3471 printf "%s\n" "$ac_ct_CC" >&6; }
3472 else
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 printf "%s\n" "no" >&6; }
3475 fi
3476
3477 if test "x$ac_ct_CC" = x; then
3478 CC=""
3479 else
3480 case $cross_compiling:$ac_tool_warned in
3481 yes:)
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484 ac_tool_warned=yes ;;
3485 esac
3486 CC=$ac_ct_CC
3487 fi
3488 else
3489 CC="$ac_cv_prog_CC"
3490 fi
3491
3492 if test -z "$CC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}cc; ac_word=$2
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 printf %s "checking for $ac_word... " >&6; }
3498 if test ${ac_cv_prog_CC+y}
3499 then :
3500 printf %s "(cached) " >&6
3501 else $as_nop
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 case $as_dir in #(((
3510 '') as_dir=./ ;;
3511 */) ;;
3512 *) as_dir=$as_dir/ ;;
3513 esac
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_CC="${ac_tool_prefix}cc"
3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 printf "%s\n" "$CC" >&6; }
3530 else
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 printf "%s\n" "no" >&6; }
3533 fi
3534
3535
3536 fi
3537 fi
3538 if test -z "$CC"; then
3539 # Extract the first word of "cc", so it can be a program name with args.
3540 set dummy cc; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_prog_CC+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else $as_nop
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 ac_prog_rejected=no
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3563 ac_prog_rejected=yes
3564 continue
3565 fi
3566 ac_cv_prog_CC="cc"
3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570 done
3571 done
3572 IFS=$as_save_IFS
3573
3574 if test $ac_prog_rejected = yes; then
3575 # We found a bogon in the path, so make sure we never use it.
3576 set dummy $ac_cv_prog_CC
3577 shift
3578 if test $# != 0; then
3579 # We chose a different compiler from the bogus one.
3580 # However, it has the same basename, so the bogon will be chosen
3581 # first if we set CC to just the basename; use the full file name.
3582 shift
3583 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3584 fi
3585 fi
3586 fi
3587 fi
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 printf "%s\n" "$CC" >&6; }
3592 else
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 printf "%s\n" "no" >&6; }
3595 fi
3596
3597
3598 fi
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 for ac_prog in cl.exe
3602 do
3603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 printf %s "checking for $ac_word... " >&6; }
3607 if test ${ac_cv_prog_CC+y}
3608 then :
3609 printf %s "(cached) " >&6
3610 else $as_nop
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC="$CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 case $as_dir in #(((
3619 '') as_dir=./ ;;
3620 */) ;;
3621 *) as_dir=$as_dir/ ;;
3622 esac
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 printf "%s\n" "$CC" >&6; }
3639 else
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3642 fi
3643
3644
3645 test -n "$CC" && break
3646 done
3647 fi
3648 if test -z "$CC"; then
3649 ac_ct_CC=$CC
3650 for ac_prog in cl.exe
3651 do
3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653 set dummy $ac_prog; ac_word=$2
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 printf %s "checking for $ac_word... " >&6; }
3656 if test ${ac_cv_prog_ac_ct_CC+y}
3657 then :
3658 printf %s "(cached) " >&6
3659 else $as_nop
3660 if test -n "$ac_ct_CC"; then
3661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 case $as_dir in #(((
3668 '') as_dir=./ ;;
3669 */) ;;
3670 *) as_dir=$as_dir/ ;;
3671 esac
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_ac_ct_CC="$ac_prog"
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 fi
3683 fi
3684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685 if test -n "$ac_ct_CC"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687 printf "%s\n" "$ac_ct_CC" >&6; }
3688 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3691 fi
3692
3693
3694 test -n "$ac_ct_CC" && break
3695 done
3696
3697 if test "x$ac_ct_CC" = x; then
3698 CC=""
3699 else
3700 case $cross_compiling:$ac_tool_warned in
3701 yes:)
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704 ac_tool_warned=yes ;;
3705 esac
3706 CC=$ac_ct_CC
3707 fi
3708 fi
3709
3710 fi
3711 if test -z "$CC"; then
3712 if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}clang; ac_word=$2
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 printf %s "checking for $ac_word... " >&6; }
3717 if test ${ac_cv_prog_CC+y}
3718 then :
3719 printf %s "(cached) " >&6
3720 else $as_nop
3721 if test -n "$CC"; then
3722 ac_cv_prog_CC="$CC" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727 IFS=$as_save_IFS
3728 case $as_dir in #(((
3729 '') as_dir=./ ;;
3730 */) ;;
3731 *) as_dir=$as_dir/ ;;
3732 esac
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_CC="${ac_tool_prefix}clang"
3736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3737 break 2
3738 fi
3739 done
3740 done
3741 IFS=$as_save_IFS
3742
3743 fi
3744 fi
3745 CC=$ac_cv_prog_CC
3746 if test -n "$CC"; then
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3748 printf "%s\n" "$CC" >&6; }
3749 else
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 printf "%s\n" "no" >&6; }
3752 fi
3753
3754
3755 fi
3756 if test -z "$ac_cv_prog_CC"; then
3757 ac_ct_CC=$CC
3758 # Extract the first word of "clang", so it can be a program name with args.
3759 set dummy clang; ac_word=$2
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 printf %s "checking for $ac_word... " >&6; }
3762 if test ${ac_cv_prog_ac_ct_CC+y}
3763 then :
3764 printf %s "(cached) " >&6
3765 else $as_nop
3766 if test -n "$ac_ct_CC"; then
3767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 case $as_dir in #(((
3774 '') as_dir=./ ;;
3775 */) ;;
3776 *) as_dir=$as_dir/ ;;
3777 esac
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_ac_ct_CC="clang"
3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791 if test -n "$ac_ct_CC"; then
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793 printf "%s\n" "$ac_ct_CC" >&6; }
3794 else
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 printf "%s\n" "no" >&6; }
3797 fi
3798
3799 if test "x$ac_ct_CC" = x; then
3800 CC=""
3801 else
3802 case $cross_compiling:$ac_tool_warned in
3803 yes:)
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3805 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3806 ac_tool_warned=yes ;;
3807 esac
3808 CC=$ac_ct_CC
3809 fi
3810 else
3811 CC="$ac_cv_prog_CC"
3812 fi
3813
3814 fi
3815
3816
3817 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "no acceptable C compiler found in \$PATH
3820 See \`config.log' for more details" "$LINENO" 5; }
3821
3822 # Provide some information about the compiler.
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3824 set X $ac_compile
3825 ac_compiler=$2
3826 for ac_option in --version -v -V -qversion -version; do
3827 { { ac_try="$ac_compiler $ac_option >&5"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 printf "%s\n" "$ac_try_echo"; } >&5
3834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3835 ac_status=$?
3836 if test -s conftest.err; then
3837 sed '10a\
3838 ... rest of stderr output deleted ...
3839 10q' conftest.err >conftest.er1
3840 cat conftest.er1 >&5
3841 fi
3842 rm -f conftest.er1 conftest.err
3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }
3845 done
3846
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849
3850 int
3851 main (void)
3852 {
3853
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 ac_clean_files_save=$ac_clean_files
3859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3860 # Try to create an executable without -o first, disregard a.out.
3861 # It will help us diagnose broken compilers, and finding out an intuition
3862 # of exeext.
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3864 printf %s "checking whether the C compiler works... " >&6; }
3865 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3866
3867 # The possible output files:
3868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3869
3870 ac_rmfiles=
3871 for ac_file in $ac_files
3872 do
3873 case $ac_file in
3874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3875 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3876 esac
3877 done
3878 rm -f $ac_rmfiles
3879
3880 if { { ac_try="$ac_link_default"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 printf "%s\n" "$ac_try_echo"; } >&5
3887 (eval "$ac_link_default") 2>&5
3888 ac_status=$?
3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 then :
3892 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3893 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3894 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3895 # so that the user can short-circuit this test for compilers unknown to
3896 # Autoconf.
3897 for ac_file in $ac_files ''
3898 do
3899 test -f "$ac_file" || continue
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3902 ;;
3903 [ab].out )
3904 # We found the default executable, but exeext='' is most
3905 # certainly right.
3906 break;;
3907 *.* )
3908 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3909 then :; else
3910 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3911 fi
3912 # We set ac_cv_exeext here because the later test for it is not
3913 # safe: cross compilers may not add the suffix if given an `-o'
3914 # argument, so we may need to know it at that point already.
3915 # Even if this section looks crufty: it has the advantage of
3916 # actually working.
3917 break;;
3918 * )
3919 break;;
3920 esac
3921 done
3922 test "$ac_cv_exeext" = no && ac_cv_exeext=
3923
3924 else $as_nop
3925 ac_file=''
3926 fi
3927 if test -z "$ac_file"
3928 then :
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 printf "%s\n" "no" >&6; }
3931 printf "%s\n" "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error 77 "C compiler cannot create executables
3937 See \`config.log' for more details" "$LINENO" 5; }
3938 else $as_nop
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 printf "%s\n" "yes" >&6; }
3941 fi
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3943 printf %s "checking for C compiler default output file name... " >&6; }
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3945 printf "%s\n" "$ac_file" >&6; }
3946 ac_exeext=$ac_cv_exeext
3947
3948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3949 ac_clean_files=$ac_clean_files_save
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 printf %s "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 printf "%s\n" "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3960 ac_status=$?
3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }
3963 then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else $as_nop
3978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details" "$LINENO" 5; }
3982 fi
3983 rm -f conftest conftest$ac_cv_exeext
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 printf "%s\n" "$ac_cv_exeext" >&6; }
3986
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <stdio.h>
3993 int
3994 main (void)
3995 {
3996 FILE *f = fopen ("conftest.out", "w");
3997 return ferror (f) || fclose (f) != 0;
3998
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 ac_clean_files="$ac_clean_files conftest.out"
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4007 printf %s "checking whether we are cross compiling... " >&6; }
4008 if test "$cross_compiling" != yes; then
4009 { { ac_try="$ac_link"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 printf "%s\n" "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4017 ac_status=$?
4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 if { ac_try='./conftest$ac_cv_exeext'
4021 { { case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 printf "%s\n" "$ac_try_echo"; } >&5
4027 (eval "$ac_try") 2>&5
4028 ac_status=$?
4029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; }; then
4031 cross_compiling=no
4032 else
4033 if test "$cross_compiling" = maybe; then
4034 cross_compiling=yes
4035 else
4036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error 77 "cannot run C compiled programs.
4039 If you meant to cross compile, use \`--host'.
4040 See \`config.log' for more details" "$LINENO" 5; }
4041 fi
4042 fi
4043 fi
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4045 printf "%s\n" "$cross_compiling" >&6; }
4046
4047 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4048 ac_clean_files=$ac_clean_files_save
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050 printf %s "checking for suffix of object files... " >&6; }
4051 if test ${ac_cv_objext+y}
4052 then :
4053 printf %s "(cached) " >&6
4054 else $as_nop
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main (void)
4060 {
4061
4062 ;
4063 return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.o conftest.obj
4067 if { { ac_try="$ac_compile"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 printf "%s\n" "$ac_try_echo"; } >&5
4074 (eval "$ac_compile") 2>&5
4075 ac_status=$?
4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }
4078 then :
4079 for ac_file in conftest.o conftest.obj conftest.*; do
4080 test -f "$ac_file" || continue;
4081 case $ac_file in
4082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4083 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4084 break;;
4085 esac
4086 done
4087 else $as_nop
4088 printf "%s\n" "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4093 as_fn_error $? "cannot compute suffix of object files: cannot compile
4094 See \`config.log' for more details" "$LINENO" 5; }
4095 fi
4096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4097 fi
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4099 printf "%s\n" "$ac_cv_objext" >&6; }
4100 OBJEXT=$ac_cv_objext
4101 ac_objext=$OBJEXT
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4103 printf %s "checking whether the compiler supports GNU C... " >&6; }
4104 if test ${ac_cv_c_compiler_gnu+y}
4105 then :
4106 printf %s "(cached) " >&6
4107 else $as_nop
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main (void)
4113 {
4114 #ifndef __GNUC__
4115 choke me
4116 #endif
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"
4123 then :
4124 ac_compiler_gnu=yes
4125 else $as_nop
4126 ac_compiler_gnu=no
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4130
4131 fi
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4133 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136 if test $ac_compiler_gnu = yes; then
4137 GCC=yes
4138 else
4139 GCC=
4140 fi
4141 ac_test_CFLAGS=${CFLAGS+y}
4142 ac_save_CFLAGS=$CFLAGS
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4144 printf %s "checking whether $CC accepts -g... " >&6; }
4145 if test ${ac_cv_prog_cc_g+y}
4146 then :
4147 printf %s "(cached) " >&6
4148 else $as_nop
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 ac_cv_prog_cc_g=no
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main (void)
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"
4165 then :
4166 ac_cv_prog_cc_g=yes
4167 else $as_nop
4168 CFLAGS=""
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171
4172 int
4173 main (void)
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"
4181 then :
4182
4183 else $as_nop
4184 ac_c_werror_flag=$ac_save_c_werror_flag
4185 CFLAGS="-g"
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188
4189 int
4190 main (void)
4191 {
4192
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"
4198 then :
4199 ac_cv_prog_cc_g=yes
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4207 fi
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4210 if test $ac_test_CFLAGS; then
4211 CFLAGS=$ac_save_CFLAGS
4212 elif test $ac_cv_prog_cc_g = yes; then
4213 if test "$GCC" = yes; then
4214 CFLAGS="-g -O2"
4215 else
4216 CFLAGS="-g"
4217 fi
4218 else
4219 if test "$GCC" = yes; then
4220 CFLAGS="-O2"
4221 else
4222 CFLAGS=
4223 fi
4224 fi
4225 ac_prog_cc_stdc=no
4226 if test x$ac_prog_cc_stdc = xno
4227 then :
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4229 printf %s "checking for $CC option to enable C11 features... " >&6; }
4230 if test ${ac_cv_prog_cc_c11+y}
4231 then :
4232 printf %s "(cached) " >&6
4233 else $as_nop
4234 ac_cv_prog_cc_c11=no
4235 ac_save_CC=$CC
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 $ac_c_conftest_c11_program
4239 _ACEOF
4240 for ac_arg in '' -std=gnu11
4241 do
4242 CC="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile "$LINENO"
4244 then :
4245 ac_cv_prog_cc_c11=$ac_arg
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam
4248 test "x$ac_cv_prog_cc_c11" != "xno" && break
4249 done
4250 rm -f conftest.$ac_ext
4251 CC=$ac_save_CC
4252 fi
4253
4254 if test "x$ac_cv_prog_cc_c11" = xno
4255 then :
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257 printf "%s\n" "unsupported" >&6; }
4258 else $as_nop
4259 if test "x$ac_cv_prog_cc_c11" = x
4260 then :
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262 printf "%s\n" "none needed" >&6; }
4263 else $as_nop
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4265 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4266 CC="$CC $ac_cv_prog_cc_c11"
4267 fi
4268 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4269 ac_prog_cc_stdc=c11
4270 fi
4271 fi
4272 if test x$ac_prog_cc_stdc = xno
4273 then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4275 printf %s "checking for $CC option to enable C99 features... " >&6; }
4276 if test ${ac_cv_prog_cc_c99+y}
4277 then :
4278 printf %s "(cached) " >&6
4279 else $as_nop
4280 ac_cv_prog_cc_c99=no
4281 ac_save_CC=$CC
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 $ac_c_conftest_c99_program
4285 _ACEOF
4286 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4287 do
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"
4290 then :
4291 ac_cv_prog_cc_c99=$ac_arg
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam
4294 test "x$ac_cv_prog_cc_c99" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4298 fi
4299
4300 if test "x$ac_cv_prog_cc_c99" = xno
4301 then :
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 printf "%s\n" "unsupported" >&6; }
4304 else $as_nop
4305 if test "x$ac_cv_prog_cc_c99" = x
4306 then :
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308 printf "%s\n" "none needed" >&6; }
4309 else $as_nop
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4311 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4312 CC="$CC $ac_cv_prog_cc_c99"
4313 fi
4314 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4315 ac_prog_cc_stdc=c99
4316 fi
4317 fi
4318 if test x$ac_prog_cc_stdc = xno
4319 then :
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4321 printf %s "checking for $CC option to enable C89 features... " >&6; }
4322 if test ${ac_cv_prog_cc_c89+y}
4323 then :
4324 printf %s "(cached) " >&6
4325 else $as_nop
4326 ac_cv_prog_cc_c89=no
4327 ac_save_CC=$CC
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 $ac_c_conftest_c89_program
4331 _ACEOF
4332 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4333 do
4334 CC="$ac_save_CC $ac_arg"
4335 if ac_fn_c_try_compile "$LINENO"
4336 then :
4337 ac_cv_prog_cc_c89=$ac_arg
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam
4340 test "x$ac_cv_prog_cc_c89" != "xno" && break
4341 done
4342 rm -f conftest.$ac_ext
4343 CC=$ac_save_CC
4344 fi
4345
4346 if test "x$ac_cv_prog_cc_c89" = xno
4347 then :
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 printf "%s\n" "unsupported" >&6; }
4350 else $as_nop
4351 if test "x$ac_cv_prog_cc_c89" = x
4352 then :
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354 printf "%s\n" "none needed" >&6; }
4355 else $as_nop
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4357 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4358 CC="$CC $ac_cv_prog_cc_c89"
4359 fi
4360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4361 ac_prog_cc_stdc=c89
4362 fi
4363 fi
4364
4365 ac_ext=c
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371
4372 ac_ext=c
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4378 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4379 if test ${am_cv_prog_cc_c_o+y}
4380 then :
4381 printf %s "(cached) " >&6
4382 else $as_nop
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385
4386 int
4387 main (void)
4388 {
4389
4390 ;
4391 return 0;
4392 }
4393 _ACEOF
4394 # Make sure it works both with $CC and with simple cc.
4395 # Following AC_PROG_CC_C_O, we do the test twice because some
4396 # compilers refuse to overwrite an existing .o file with -o,
4397 # though they will create one.
4398 am_cv_prog_cc_c_o=yes
4399 for am_i in 1 2; do
4400 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4401 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } \
4405 && test -f conftest2.$ac_objext; then
4406 : OK
4407 else
4408 am_cv_prog_cc_c_o=no
4409 break
4410 fi
4411 done
4412 rm -f core conftest*
4413 unset am_i
4414 fi
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4416 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4417 if test "$am_cv_prog_cc_c_o" != yes; then
4418 # Losing compiler, so override with the script.
4419 # FIXME: It is wrong to rewrite CC.
4420 # But if we don't then we get into trouble of one sort or another.
4421 # A longer-term fix would be to have automake use am__CC in this case,
4422 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4423 CC="$am_aux_dir/compile $CC"
4424 fi
4425 ac_ext=c
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
4431
4432 depcc="$CC" am_compiler_list=
4433
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4435 printf %s "checking dependency style of $depcc... " >&6; }
4436 if test ${am_cv_CC_dependencies_compiler_type+y}
4437 then :
4438 printf %s "(cached) " >&6
4439 else $as_nop
4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441 # We make a subdir and do the tests there. Otherwise we can end up
4442 # making bogus files that we don't know about and never remove. For
4443 # instance it was reported that on HP-UX the gcc test will end up
4444 # making a dummy file named 'D' -- because '-MD' means "put the output
4445 # in D".
4446 rm -rf conftest.dir
4447 mkdir conftest.dir
4448 # Copy depcomp to subdir because otherwise we won't find it if we're
4449 # using a relative directory.
4450 cp "$am_depcomp" conftest.dir
4451 cd conftest.dir
4452 # We will build objects and dependencies in a subdirectory because
4453 # it helps to detect inapplicable dependency modes. For instance
4454 # both Tru64's cc and ICC support -MD to output dependencies as a
4455 # side effect of compilation, but ICC will put the dependencies in
4456 # the current directory while Tru64 will put them in the object
4457 # directory.
4458 mkdir sub
4459
4460 am_cv_CC_dependencies_compiler_type=none
4461 if test "$am_compiler_list" = ""; then
4462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4463 fi
4464 am__universal=false
4465 case " $depcc " in #(
4466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467 esac
4468
4469 for depmode in $am_compiler_list; do
4470 # Setup a source with many dependencies, because some compilers
4471 # like to wrap large dependency lists on column 80 (with \), and
4472 # we should not choose a depcomp mode which is confused by this.
4473 #
4474 # We need to recreate these files for each test, as the compiler may
4475 # overwrite some of them when testing with obscure command lines.
4476 # This happens at least with the AIX C compiler.
4477 : > sub/conftest.c
4478 for i in 1 2 3 4 5 6; do
4479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4481 # Solaris 10 /bin/sh.
4482 echo '/* dummy */' > sub/conftst$i.h
4483 done
4484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4485
4486 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4487 # mode. It turns out that the SunPro C++ compiler does not properly
4488 # handle '-M -o', and we need to detect this. Also, some Intel
4489 # versions had trouble with output in subdirs.
4490 am__obj=sub/conftest.${OBJEXT-o}
4491 am__minus_obj="-o $am__obj"
4492 case $depmode in
4493 gcc)
4494 # This depmode causes a compiler race in universal mode.
4495 test "$am__universal" = false || continue
4496 ;;
4497 nosideeffect)
4498 # After this tag, mechanisms are not by side-effect, so they'll
4499 # only be used when explicitly requested.
4500 if test "x$enable_dependency_tracking" = xyes; then
4501 continue
4502 else
4503 break
4504 fi
4505 ;;
4506 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4507 # This compiler won't grok '-c -o', but also, the minuso test has
4508 # not run yet. These depmodes are late enough in the game, and
4509 # so weak that their functioning should not be impacted.
4510 am__obj=conftest.${OBJEXT-o}
4511 am__minus_obj=
4512 ;;
4513 none) break ;;
4514 esac
4515 if depmode=$depmode \
4516 source=sub/conftest.c object=$am__obj \
4517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519 >/dev/null 2>conftest.err &&
4520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524 # icc doesn't choke on unknown options, it will just issue warnings
4525 # or remarks (even with -Werror). So we grep stderr for any message
4526 # that says an option was ignored or not supported.
4527 # When given -MP, icc 7.0 and 7.1 complain thusly:
4528 # icc: Command line warning: ignoring option '-M'; no argument required
4529 # The diagnosis changed in icc 8.0:
4530 # icc: Command line remark: option '-MP' not supported
4531 if (grep 'ignoring option' conftest.err ||
4532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533 am_cv_CC_dependencies_compiler_type=$depmode
4534 break
4535 fi
4536 fi
4537 done
4538
4539 cd ..
4540 rm -rf conftest.dir
4541 else
4542 am_cv_CC_dependencies_compiler_type=none
4543 fi
4544
4545 fi
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4547 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4549
4550 if
4551 test "x$enable_dependency_tracking" != xno \
4552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4553 am__fastdepCC_TRUE=
4554 am__fastdepCC_FALSE='#'
4555 else
4556 am__fastdepCC_TRUE='#'
4557 am__fastdepCC_FALSE=
4558 fi
4559
4560
4561
4562 ac_header= ac_cache=
4563 for ac_item in $ac_header_c_list
4564 do
4565 if test $ac_cache; then
4566 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4567 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4568 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4569 fi
4570 ac_header= ac_cache=
4571 elif test $ac_header; then
4572 ac_cache=$ac_item
4573 else
4574 ac_header=$ac_item
4575 fi
4576 done
4577
4578
4579
4580
4581
4582
4583
4584
4585 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4586 then :
4587
4588 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4589
4590 fi
4591
4592
4593
4594
4595
4596
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4598 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4599 if test ${ac_cv_safe_to_define___extensions__+y}
4600 then :
4601 printf %s "(cached) " >&6
4602 else $as_nop
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605
4606 # define __EXTENSIONS__ 1
4607 $ac_includes_default
4608 int
4609 main (void)
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"
4617 then :
4618 ac_cv_safe_to_define___extensions__=yes
4619 else $as_nop
4620 ac_cv_safe_to_define___extensions__=no
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4623 fi
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4625 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4626
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4628 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4629 if test ${ac_cv_should_define__xopen_source+y}
4630 then :
4631 printf %s "(cached) " >&6
4632 else $as_nop
4633 ac_cv_should_define__xopen_source=no
4634 if test $ac_cv_header_wchar_h = yes
4635 then :
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638
4639 #include <wchar.h>
4640 mbstate_t x;
4641 int
4642 main (void)
4643 {
4644
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"
4650 then :
4651
4652 else $as_nop
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655
4656 #define _XOPEN_SOURCE 500
4657 #include <wchar.h>
4658 mbstate_t x;
4659 int
4660 main (void)
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"
4668 then :
4669 ac_cv_should_define__xopen_source=yes
4670 fi
4671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4674 fi
4675 fi
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4677 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4678
4679 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4680
4681 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4682
4683 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4684
4685 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4686
4687 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4688
4689 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4690
4691 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4692
4693 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4694
4695 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4696
4697 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4698
4699 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4700
4701 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4702
4703 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4704
4705 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4706
4707 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4708
4709 if test $ac_cv_header_minix_config_h = yes
4710 then :
4711 MINIX=yes
4712 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4713
4714 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4715
4716 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4717
4718 else $as_nop
4719 MINIX=
4720 fi
4721 if test $ac_cv_safe_to_define___extensions__ = yes
4722 then :
4723 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4724
4725 fi
4726 if test $ac_cv_should_define__xopen_source = yes
4727 then :
4728 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4729
4730 fi
4731
4732
4733 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4747 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4748 if test ${ac_cv_c_undeclared_builtin_options+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else $as_nop
4752 ac_save_CFLAGS=$CFLAGS
4753 ac_cv_c_undeclared_builtin_options='cannot detect'
4754 for ac_arg in '' -fno-builtin; do
4755 CFLAGS="$ac_save_CFLAGS $ac_arg"
4756 # This test program should *not* compile successfully.
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759
4760 int
4761 main (void)
4762 {
4763 (void) strchr;
4764 ;
4765 return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_compile "$LINENO"
4769 then :
4770
4771 else $as_nop
4772 # This test program should compile successfully.
4773 # No library function is consistently available on
4774 # freestanding implementations, so test against a dummy
4775 # declaration. Include always-available headers on the
4776 # off chance that they somehow elicit warnings.
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 #include <float.h>
4780 #include <limits.h>
4781 #include <stdarg.h>
4782 #include <stddef.h>
4783 extern void ac_decl (int, char *);
4784
4785 int
4786 main (void)
4787 {
4788 (void) ac_decl (0, (char *) 0);
4789 (void) ac_decl;
4790
4791 ;
4792 return 0;
4793 }
4794 _ACEOF
4795 if ac_fn_c_try_compile "$LINENO"
4796 then :
4797 if test x"$ac_arg" = x
4798 then :
4799 ac_cv_c_undeclared_builtin_options='none needed'
4800 else $as_nop
4801 ac_cv_c_undeclared_builtin_options=$ac_arg
4802 fi
4803 break
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4808 done
4809 CFLAGS=$ac_save_CFLAGS
4810
4811 fi
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4813 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4814 case $ac_cv_c_undeclared_builtin_options in #(
4815 'cannot detect') :
4816 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4817 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4818 as_fn_error $? "cannot make $CC report undeclared builtins
4819 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4820 'none needed') :
4821 ac_c_undeclared_builtin_options='' ;; #(
4822 *) :
4823 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4824 esac
4825
4826
4827
4828
4829
4830 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4831 if test "x$ac_cv_have_decl___clang__" = xyes
4832 then :
4833 CLANGCC="yes"
4834 else $as_nop
4835 CLANGCC="no"
4836 fi
4837 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4838 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4839 then :
4840 INTELCC="yes"
4841 else $as_nop
4842 INTELCC="no"
4843 fi
4844 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4845 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4846 then :
4847 SUNCC="yes"
4848 else $as_nop
4849 SUNCC="no"
4850 fi
4851
4852
4853
4854
4855
4856
4857
4858
4859 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4860 if test -n "$ac_tool_prefix"; then
4861 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4862 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 printf %s "checking for $ac_word... " >&6; }
4865 if test ${ac_cv_path_PKG_CONFIG+y}
4866 then :
4867 printf %s "(cached) " >&6
4868 else $as_nop
4869 case $PKG_CONFIG in
4870 [\\/]* | ?:[\\/]*)
4871 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4872 ;;
4873 *)
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 case $as_dir in #(((
4879 '') as_dir=./ ;;
4880 */) ;;
4881 *) as_dir=$as_dir/ ;;
4882 esac
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4885 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893 ;;
4894 esac
4895 fi
4896 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4897 if test -n "$PKG_CONFIG"; then
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4899 printf "%s\n" "$PKG_CONFIG" >&6; }
4900 else
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 printf "%s\n" "no" >&6; }
4903 fi
4904
4905
4906 fi
4907 if test -z "$ac_cv_path_PKG_CONFIG"; then
4908 ac_pt_PKG_CONFIG=$PKG_CONFIG
4909 # Extract the first word of "pkg-config", so it can be a program name with args.
4910 set dummy pkg-config; ac_word=$2
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 printf %s "checking for $ac_word... " >&6; }
4913 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4914 then :
4915 printf %s "(cached) " >&6
4916 else $as_nop
4917 case $ac_pt_PKG_CONFIG in
4918 [\\/]* | ?:[\\/]*)
4919 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4920 ;;
4921 *)
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 case $as_dir in #(((
4927 '') as_dir=./ ;;
4928 */) ;;
4929 *) as_dir=$as_dir/ ;;
4930 esac
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4933 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4935 break 2
4936 fi
4937 done
4938 done
4939 IFS=$as_save_IFS
4940
4941 ;;
4942 esac
4943 fi
4944 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4945 if test -n "$ac_pt_PKG_CONFIG"; then
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4947 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4948 else
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 printf "%s\n" "no" >&6; }
4951 fi
4952
4953 if test "x$ac_pt_PKG_CONFIG" = x; then
4954 PKG_CONFIG=""
4955 else
4956 case $cross_compiling:$ac_tool_warned in
4957 yes:)
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4960 ac_tool_warned=yes ;;
4961 esac
4962 PKG_CONFIG=$ac_pt_PKG_CONFIG
4963 fi
4964 else
4965 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4966 fi
4967
4968 fi
4969 if test -n "$PKG_CONFIG"; then
4970 _pkg_min_version=0.9.0
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4972 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4973 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4975 printf "%s\n" "yes" >&6; }
4976 else
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 printf "%s\n" "no" >&6; }
4979 PKG_CONFIG=""
4980 fi
4981 fi
4982
4983
4984 # Make sure we can run config.sub.
4985 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4986 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4987
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4989 printf %s "checking build system type... " >&6; }
4990 if test ${ac_cv_build+y}
4991 then :
4992 printf %s "(cached) " >&6
4993 else $as_nop
4994 ac_build_alias=$build_alias
4995 test "x$ac_build_alias" = x &&
4996 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4997 test "x$ac_build_alias" = x &&
4998 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4999 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5000 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5001
5002 fi
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5004 printf "%s\n" "$ac_cv_build" >&6; }
5005 case $ac_cv_build in
5006 *-*-*) ;;
5007 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5008 esac
5009 build=$ac_cv_build
5010 ac_save_IFS=$IFS; IFS='-'
5011 set x $ac_cv_build
5012 shift
5013 build_cpu=$1
5014 build_vendor=$2
5015 shift; shift
5016 # Remember, the first character of IFS is used to create $*,
5017 # except with old shells:
5018 build_os=$*
5019 IFS=$ac_save_IFS
5020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5021
5022
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5024 printf %s "checking host system type... " >&6; }
5025 if test ${ac_cv_host+y}
5026 then :
5027 printf %s "(cached) " >&6
5028 else $as_nop
5029 if test "x$host_alias" = x; then
5030 ac_cv_host=$ac_cv_build
5031 else
5032 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5033 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5034 fi
5035
5036 fi
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5038 printf "%s\n" "$ac_cv_host" >&6; }
5039 case $ac_cv_host in
5040 *-*-*) ;;
5041 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5042 esac
5043 host=$ac_cv_host
5044 ac_save_IFS=$IFS; IFS='-'
5045 set x $ac_cv_host
5046 shift
5047 host_cpu=$1
5048 host_vendor=$2
5049 shift; shift
5050 # Remember, the first character of IFS is used to create $*,
5051 # except with old shells:
5052 host_os=$*
5053 IFS=$ac_save_IFS
5054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5055
5056
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5058 printf %s "checking for a sed that does not truncate output... " >&6; }
5059 if test ${ac_cv_path_SED+y}
5060 then :
5061 printf %s "(cached) " >&6
5062 else $as_nop
5063 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5064 for ac_i in 1 2 3 4 5 6 7; do
5065 ac_script="$ac_script$as_nl$ac_script"
5066 done
5067 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5068 { ac_script=; unset ac_script;}
5069 if test -z "$SED"; then
5070 ac_path_SED_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075 IFS=$as_save_IFS
5076 case $as_dir in #(((
5077 '') as_dir=./ ;;
5078 */) ;;
5079 *) as_dir=$as_dir/ ;;
5080 esac
5081 for ac_prog in sed gsed
5082 do
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5085 as_fn_executable_p "$ac_path_SED" || continue
5086 # Check for GNU ac_path_SED and select it if it is found.
5087 # Check for GNU $ac_path_SED
5088 case `"$ac_path_SED" --version 2>&1` in
5089 *GNU*)
5090 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5091 *)
5092 ac_count=0
5093 printf %s 0123456789 >"conftest.in"
5094 while :
5095 do
5096 cat "conftest.in" "conftest.in" >"conftest.tmp"
5097 mv "conftest.tmp" "conftest.in"
5098 cp "conftest.in" "conftest.nl"
5099 printf "%s\n" '' >> "conftest.nl"
5100 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5102 as_fn_arith $ac_count + 1 && ac_count=$as_val
5103 if test $ac_count -gt ${ac_path_SED_max-0}; then
5104 # Best one so far, save it but keep looking for a better one
5105 ac_cv_path_SED="$ac_path_SED"
5106 ac_path_SED_max=$ac_count
5107 fi
5108 # 10*(2^10) chars as input seems more than enough
5109 test $ac_count -gt 10 && break
5110 done
5111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5112 esac
5113
5114 $ac_path_SED_found && break 3
5115 done
5116 done
5117 done
5118 IFS=$as_save_IFS
5119 if test -z "$ac_cv_path_SED"; then
5120 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5121 fi
5122 else
5123 ac_cv_path_SED=$SED
5124 fi
5125
5126 fi
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5128 printf "%s\n" "$ac_cv_path_SED" >&6; }
5129 SED="$ac_cv_path_SED"
5130 rm -f conftest.sed
5131
5132
5133
5134
5135
5136
5137 # Check whether --enable-selective-werror was given.
5138 if test ${enable_selective_werror+y}
5139 then :
5140 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5141 else $as_nop
5142 SELECTIVE_WERROR=yes
5143 fi
5144
5145
5146
5147
5148
5149 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5150 if test "x$SUNCC" = "xyes"; then
5151 BASE_CFLAGS="-v"
5152 else
5153 BASE_CFLAGS=""
5154 fi
5155
5156 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 xorg_testset_save_CFLAGS="$CFLAGS"
5171
5172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5176 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5177 then :
5178 printf %s "(cached) " >&6
5179 else $as_nop
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182 int i;
5183 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"
5185 then :
5186 xorg_cv_cc_flag_unknown_warning_option=yes
5187 else $as_nop
5188 xorg_cv_cc_flag_unknown_warning_option=no
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5191 fi
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5195 CFLAGS="$xorg_testset_save_CFLAGS"
5196 fi
5197
5198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5201 fi
5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5206 then :
5207 printf %s "(cached) " >&6
5208 else $as_nop
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"
5214 then :
5215 xorg_cv_cc_flag_unused_command_line_argument=yes
5216 else $as_nop
5217 xorg_cv_cc_flag_unused_command_line_argument=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5220 fi
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225 fi
5226
5227 found="no"
5228
5229 if test $found = "no" ; then
5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232 fi
5233
5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236 fi
5237
5238 CFLAGS="$CFLAGS -Wall"
5239
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5241 printf %s "checking if $CC supports -Wall... " >&6; }
5242 cacheid=xorg_cv_cc_flag__Wall
5243 if eval test \${$cacheid+y}
5244 then :
5245 printf %s "(cached) " >&6
5246 else $as_nop
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 int i;
5250 int
5251 main (void)
5252 {
5253
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_link "$LINENO"
5259 then :
5260 eval $cacheid=yes
5261 else $as_nop
5262 eval $cacheid=no
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5265 conftest$ac_exeext conftest.$ac_ext
5266 fi
5267
5268
5269 CFLAGS="$xorg_testset_save_CFLAGS"
5270
5271 eval supported=\$$cacheid
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5273 printf "%s\n" "$supported" >&6; }
5274 if test "$supported" = "yes" ; then
5275 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5276 found="yes"
5277 fi
5278 fi
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 xorg_testset_save_CFLAGS="$CFLAGS"
5295
5296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5299 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5300 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5301 then :
5302 printf %s "(cached) " >&6
5303 else $as_nop
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 int i;
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"
5309 then :
5310 xorg_cv_cc_flag_unknown_warning_option=yes
5311 else $as_nop
5312 xorg_cv_cc_flag_unknown_warning_option=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5315 fi
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5317 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320 fi
5321
5322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325 fi
5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5328 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5329 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else $as_nop
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 int i;
5336 _ACEOF
5337 if ac_fn_c_try_compile "$LINENO"
5338 then :
5339 xorg_cv_cc_flag_unused_command_line_argument=yes
5340 else $as_nop
5341 xorg_cv_cc_flag_unused_command_line_argument=no
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5344 fi
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5346 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5348 CFLAGS="$xorg_testset_save_CFLAGS"
5349 fi
5350
5351 found="no"
5352
5353 if test $found = "no" ; then
5354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356 fi
5357
5358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5360 fi
5361
5362 CFLAGS="$CFLAGS -Wpointer-arith"
5363
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5365 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5366 cacheid=xorg_cv_cc_flag__Wpointer_arith
5367 if eval test \${$cacheid+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else $as_nop
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 int i;
5374 int
5375 main (void)
5376 {
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_link "$LINENO"
5383 then :
5384 eval $cacheid=yes
5385 else $as_nop
5386 eval $cacheid=no
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5389 conftest$ac_exeext conftest.$ac_ext
5390 fi
5391
5392
5393 CFLAGS="$xorg_testset_save_CFLAGS"
5394
5395 eval supported=\$$cacheid
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5397 printf "%s\n" "$supported" >&6; }
5398 if test "$supported" = "yes" ; then
5399 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5400 found="yes"
5401 fi
5402 fi
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 xorg_testset_save_CFLAGS="$CFLAGS"
5419
5420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5423 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5424 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5425 then :
5426 printf %s "(cached) " >&6
5427 else $as_nop
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 int i;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"
5433 then :
5434 xorg_cv_cc_flag_unknown_warning_option=yes
5435 else $as_nop
5436 xorg_cv_cc_flag_unknown_warning_option=no
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5439 fi
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5441 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5443 CFLAGS="$xorg_testset_save_CFLAGS"
5444 fi
5445
5446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449 fi
5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5452 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5453 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5454 then :
5455 printf %s "(cached) " >&6
5456 else $as_nop
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 int i;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"
5462 then :
5463 xorg_cv_cc_flag_unused_command_line_argument=yes
5464 else $as_nop
5465 xorg_cv_cc_flag_unused_command_line_argument=no
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5468 fi
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5470 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5472 CFLAGS="$xorg_testset_save_CFLAGS"
5473 fi
5474
5475 found="no"
5476
5477 if test $found = "no" ; then
5478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5480 fi
5481
5482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5484 fi
5485
5486 CFLAGS="$CFLAGS -Wmissing-declarations"
5487
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5489 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5490 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5491 if eval test \${$cacheid+y}
5492 then :
5493 printf %s "(cached) " >&6
5494 else $as_nop
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 int i;
5498 int
5499 main (void)
5500 {
5501
5502 ;
5503 return 0;
5504 }
5505 _ACEOF
5506 if ac_fn_c_try_link "$LINENO"
5507 then :
5508 eval $cacheid=yes
5509 else $as_nop
5510 eval $cacheid=no
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5513 conftest$ac_exeext conftest.$ac_ext
5514 fi
5515
5516
5517 CFLAGS="$xorg_testset_save_CFLAGS"
5518
5519 eval supported=\$$cacheid
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5521 printf "%s\n" "$supported" >&6; }
5522 if test "$supported" = "yes" ; then
5523 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5524 found="yes"
5525 fi
5526 fi
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 xorg_testset_save_CFLAGS="$CFLAGS"
5543
5544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5547 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5548 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5549 then :
5550 printf %s "(cached) " >&6
5551 else $as_nop
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 int i;
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"
5557 then :
5558 xorg_cv_cc_flag_unknown_warning_option=yes
5559 else $as_nop
5560 xorg_cv_cc_flag_unknown_warning_option=no
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5563 fi
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5565 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5567 CFLAGS="$xorg_testset_save_CFLAGS"
5568 fi
5569
5570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573 fi
5574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5576 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5577 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5578 then :
5579 printf %s "(cached) " >&6
5580 else $as_nop
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 int i;
5584 _ACEOF
5585 if ac_fn_c_try_compile "$LINENO"
5586 then :
5587 xorg_cv_cc_flag_unused_command_line_argument=yes
5588 else $as_nop
5589 xorg_cv_cc_flag_unused_command_line_argument=no
5590 fi
5591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5592 fi
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5594 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5596 CFLAGS="$xorg_testset_save_CFLAGS"
5597 fi
5598
5599 found="no"
5600
5601 if test $found = "no" ; then
5602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5604 fi
5605
5606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5608 fi
5609
5610 CFLAGS="$CFLAGS -Wformat=2"
5611
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5613 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5614 cacheid=xorg_cv_cc_flag__Wformat_2
5615 if eval test \${$cacheid+y}
5616 then :
5617 printf %s "(cached) " >&6
5618 else $as_nop
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 int i;
5622 int
5623 main (void)
5624 {
5625
5626 ;
5627 return 0;
5628 }
5629 _ACEOF
5630 if ac_fn_c_try_link "$LINENO"
5631 then :
5632 eval $cacheid=yes
5633 else $as_nop
5634 eval $cacheid=no
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5637 conftest$ac_exeext conftest.$ac_ext
5638 fi
5639
5640
5641 CFLAGS="$xorg_testset_save_CFLAGS"
5642
5643 eval supported=\$$cacheid
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5645 printf "%s\n" "$supported" >&6; }
5646 if test "$supported" = "yes" ; then
5647 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5648 found="yes"
5649 fi
5650 fi
5651
5652 if test $found = "no" ; then
5653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655 fi
5656
5657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5659 fi
5660
5661 CFLAGS="$CFLAGS -Wformat"
5662
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5664 printf %s "checking if $CC supports -Wformat... " >&6; }
5665 cacheid=xorg_cv_cc_flag__Wformat
5666 if eval test \${$cacheid+y}
5667 then :
5668 printf %s "(cached) " >&6
5669 else $as_nop
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 int i;
5673 int
5674 main (void)
5675 {
5676
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_c_try_link "$LINENO"
5682 then :
5683 eval $cacheid=yes
5684 else $as_nop
5685 eval $cacheid=no
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5688 conftest$ac_exeext conftest.$ac_ext
5689 fi
5690
5691
5692 CFLAGS="$xorg_testset_save_CFLAGS"
5693
5694 eval supported=\$$cacheid
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5696 printf "%s\n" "$supported" >&6; }
5697 if test "$supported" = "yes" ; then
5698 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5699 found="yes"
5700 fi
5701 fi
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719 xorg_testset_save_CFLAGS="$CFLAGS"
5720
5721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5724 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5725 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5726 then :
5727 printf %s "(cached) " >&6
5728 else $as_nop
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 int i;
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"
5734 then :
5735 xorg_cv_cc_flag_unknown_warning_option=yes
5736 else $as_nop
5737 xorg_cv_cc_flag_unknown_warning_option=no
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5740 fi
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5742 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5744 CFLAGS="$xorg_testset_save_CFLAGS"
5745 fi
5746
5747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5750 fi
5751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5753 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5754 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5755 then :
5756 printf %s "(cached) " >&6
5757 else $as_nop
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 int i;
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"
5763 then :
5764 xorg_cv_cc_flag_unused_command_line_argument=yes
5765 else $as_nop
5766 xorg_cv_cc_flag_unused_command_line_argument=no
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5769 fi
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5771 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5773 CFLAGS="$xorg_testset_save_CFLAGS"
5774 fi
5775
5776 found="no"
5777
5778 if test $found = "no" ; then
5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781 fi
5782
5783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785 fi
5786
5787 CFLAGS="$CFLAGS -Wstrict-prototypes"
5788
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5790 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5791 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5792 if eval test \${$cacheid+y}
5793 then :
5794 printf %s "(cached) " >&6
5795 else $as_nop
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 int i;
5799 int
5800 main (void)
5801 {
5802
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 if ac_fn_c_try_link "$LINENO"
5808 then :
5809 eval $cacheid=yes
5810 else $as_nop
5811 eval $cacheid=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5814 conftest$ac_exeext conftest.$ac_ext
5815 fi
5816
5817
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819
5820 eval supported=\$$cacheid
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822 printf "%s\n" "$supported" >&6; }
5823 if test "$supported" = "yes" ; then
5824 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5825 found="yes"
5826 fi
5827 fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 xorg_testset_save_CFLAGS="$CFLAGS"
5844
5845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5848 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5849 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else $as_nop
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"
5858 then :
5859 xorg_cv_cc_flag_unknown_warning_option=yes
5860 else $as_nop
5861 xorg_cv_cc_flag_unknown_warning_option=no
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5864 fi
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5866 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5868 CFLAGS="$xorg_testset_save_CFLAGS"
5869 fi
5870
5871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874 fi
5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5877 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5878 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5879 then :
5880 printf %s "(cached) " >&6
5881 else $as_nop
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 int i;
5885 _ACEOF
5886 if ac_fn_c_try_compile "$LINENO"
5887 then :
5888 xorg_cv_cc_flag_unused_command_line_argument=yes
5889 else $as_nop
5890 xorg_cv_cc_flag_unused_command_line_argument=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5893 fi
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5895 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5898 fi
5899
5900 found="no"
5901
5902 if test $found = "no" ; then
5903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5905 fi
5906
5907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5909 fi
5910
5911 CFLAGS="$CFLAGS -Wmissing-prototypes"
5912
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5914 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5915 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5916 if eval test \${$cacheid+y}
5917 then :
5918 printf %s "(cached) " >&6
5919 else $as_nop
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922 int i;
5923 int
5924 main (void)
5925 {
5926
5927 ;
5928 return 0;
5929 }
5930 _ACEOF
5931 if ac_fn_c_try_link "$LINENO"
5932 then :
5933 eval $cacheid=yes
5934 else $as_nop
5935 eval $cacheid=no
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5938 conftest$ac_exeext conftest.$ac_ext
5939 fi
5940
5941
5942 CFLAGS="$xorg_testset_save_CFLAGS"
5943
5944 eval supported=\$$cacheid
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5946 printf "%s\n" "$supported" >&6; }
5947 if test "$supported" = "yes" ; then
5948 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5949 found="yes"
5950 fi
5951 fi
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 xorg_testset_save_CFLAGS="$CFLAGS"
5968
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5972 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5973 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5974 then :
5975 printf %s "(cached) " >&6
5976 else $as_nop
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 int i;
5980 _ACEOF
5981 if ac_fn_c_try_compile "$LINENO"
5982 then :
5983 xorg_cv_cc_flag_unknown_warning_option=yes
5984 else $as_nop
5985 xorg_cv_cc_flag_unknown_warning_option=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 fi
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5990 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5992 CFLAGS="$xorg_testset_save_CFLAGS"
5993 fi
5994
5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998 fi
5999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6001 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6002 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6003 then :
6004 printf %s "(cached) " >&6
6005 else $as_nop
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 int i;
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"
6011 then :
6012 xorg_cv_cc_flag_unused_command_line_argument=yes
6013 else $as_nop
6014 xorg_cv_cc_flag_unused_command_line_argument=no
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6017 fi
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6019 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6021 CFLAGS="$xorg_testset_save_CFLAGS"
6022 fi
6023
6024 found="no"
6025
6026 if test $found = "no" ; then
6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 fi
6030
6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033 fi
6034
6035 CFLAGS="$CFLAGS -Wnested-externs"
6036
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6038 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6039 cacheid=xorg_cv_cc_flag__Wnested_externs
6040 if eval test \${$cacheid+y}
6041 then :
6042 printf %s "(cached) " >&6
6043 else $as_nop
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 int i;
6047 int
6048 main (void)
6049 {
6050
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_link "$LINENO"
6056 then :
6057 eval $cacheid=yes
6058 else $as_nop
6059 eval $cacheid=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6062 conftest$ac_exeext conftest.$ac_ext
6063 fi
6064
6065
6066 CFLAGS="$xorg_testset_save_CFLAGS"
6067
6068 eval supported=\$$cacheid
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6070 printf "%s\n" "$supported" >&6; }
6071 if test "$supported" = "yes" ; then
6072 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6073 found="yes"
6074 fi
6075 fi
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 xorg_testset_save_CFLAGS="$CFLAGS"
6092
6093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6096 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6097 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6098 then :
6099 printf %s "(cached) " >&6
6100 else $as_nop
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 int i;
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"
6106 then :
6107 xorg_cv_cc_flag_unknown_warning_option=yes
6108 else $as_nop
6109 xorg_cv_cc_flag_unknown_warning_option=no
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6112 fi
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6114 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6116 CFLAGS="$xorg_testset_save_CFLAGS"
6117 fi
6118
6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 fi
6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6125 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6126 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6127 then :
6128 printf %s "(cached) " >&6
6129 else $as_nop
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 int i;
6133 _ACEOF
6134 if ac_fn_c_try_compile "$LINENO"
6135 then :
6136 xorg_cv_cc_flag_unused_command_line_argument=yes
6137 else $as_nop
6138 xorg_cv_cc_flag_unused_command_line_argument=no
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6141 fi
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6145 CFLAGS="$xorg_testset_save_CFLAGS"
6146 fi
6147
6148 found="no"
6149
6150 if test $found = "no" ; then
6151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153 fi
6154
6155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6157 fi
6158
6159 CFLAGS="$CFLAGS -Wbad-function-cast"
6160
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6162 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6163 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6164 if eval test \${$cacheid+y}
6165 then :
6166 printf %s "(cached) " >&6
6167 else $as_nop
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170 int i;
6171 int
6172 main (void)
6173 {
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 if ac_fn_c_try_link "$LINENO"
6180 then :
6181 eval $cacheid=yes
6182 else $as_nop
6183 eval $cacheid=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6186 conftest$ac_exeext conftest.$ac_ext
6187 fi
6188
6189
6190 CFLAGS="$xorg_testset_save_CFLAGS"
6191
6192 eval supported=\$$cacheid
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6194 printf "%s\n" "$supported" >&6; }
6195 if test "$supported" = "yes" ; then
6196 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6197 found="yes"
6198 fi
6199 fi
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 xorg_testset_save_CFLAGS="$CFLAGS"
6216
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6221 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6222 then :
6223 printf %s "(cached) " >&6
6224 else $as_nop
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 int i;
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"
6230 then :
6231 xorg_cv_cc_flag_unknown_warning_option=yes
6232 else $as_nop
6233 xorg_cv_cc_flag_unknown_warning_option=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6236 fi
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6238 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6240 CFLAGS="$xorg_testset_save_CFLAGS"
6241 fi
6242
6243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246 fi
6247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6251 then :
6252 printf %s "(cached) " >&6
6253 else $as_nop
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 int i;
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"
6259 then :
6260 xorg_cv_cc_flag_unused_command_line_argument=yes
6261 else $as_nop
6262 xorg_cv_cc_flag_unused_command_line_argument=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6265 fi
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6267 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6269 CFLAGS="$xorg_testset_save_CFLAGS"
6270 fi
6271
6272 found="no"
6273
6274 if test $found = "no" ; then
6275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6277 fi
6278
6279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6281 fi
6282
6283 CFLAGS="$CFLAGS -Wold-style-definition"
6284
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6286 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6287 cacheid=xorg_cv_cc_flag__Wold_style_definition
6288 if eval test \${$cacheid+y}
6289 then :
6290 printf %s "(cached) " >&6
6291 else $as_nop
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 int i;
6295 int
6296 main (void)
6297 {
6298
6299 ;
6300 return 0;
6301 }
6302 _ACEOF
6303 if ac_fn_c_try_link "$LINENO"
6304 then :
6305 eval $cacheid=yes
6306 else $as_nop
6307 eval $cacheid=no
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6310 conftest$ac_exeext conftest.$ac_ext
6311 fi
6312
6313
6314 CFLAGS="$xorg_testset_save_CFLAGS"
6315
6316 eval supported=\$$cacheid
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6318 printf "%s\n" "$supported" >&6; }
6319 if test "$supported" = "yes" ; then
6320 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6321 found="yes"
6322 fi
6323 fi
6324
6325 if test $found = "no" ; then
6326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328 fi
6329
6330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6332 fi
6333
6334 CFLAGS="$CFLAGS -fd"
6335
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6337 printf %s "checking if $CC supports -fd... " >&6; }
6338 cacheid=xorg_cv_cc_flag__fd
6339 if eval test \${$cacheid+y}
6340 then :
6341 printf %s "(cached) " >&6
6342 else $as_nop
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 int
6347 main (void)
6348 {
6349
6350 ;
6351 return 0;
6352 }
6353 _ACEOF
6354 if ac_fn_c_try_link "$LINENO"
6355 then :
6356 eval $cacheid=yes
6357 else $as_nop
6358 eval $cacheid=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6361 conftest$ac_exeext conftest.$ac_ext
6362 fi
6363
6364
6365 CFLAGS="$xorg_testset_save_CFLAGS"
6366
6367 eval supported=\$$cacheid
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6369 printf "%s\n" "$supported" >&6; }
6370 if test "$supported" = "yes" ; then
6371 BASE_CFLAGS="$BASE_CFLAGS -fd"
6372 found="yes"
6373 fi
6374 fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 xorg_testset_save_CFLAGS="$CFLAGS"
6391
6392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6395 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6396 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6397 then :
6398 printf %s "(cached) " >&6
6399 else $as_nop
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 int i;
6403 _ACEOF
6404 if ac_fn_c_try_compile "$LINENO"
6405 then :
6406 xorg_cv_cc_flag_unknown_warning_option=yes
6407 else $as_nop
6408 xorg_cv_cc_flag_unknown_warning_option=no
6409 fi
6410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6411 fi
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6413 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6415 CFLAGS="$xorg_testset_save_CFLAGS"
6416 fi
6417
6418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6421 fi
6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6424 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6425 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6426 then :
6427 printf %s "(cached) " >&6
6428 else $as_nop
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 int i;
6432 _ACEOF
6433 if ac_fn_c_try_compile "$LINENO"
6434 then :
6435 xorg_cv_cc_flag_unused_command_line_argument=yes
6436 else $as_nop
6437 xorg_cv_cc_flag_unused_command_line_argument=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6440 fi
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6442 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6444 CFLAGS="$xorg_testset_save_CFLAGS"
6445 fi
6446
6447 found="no"
6448
6449 if test $found = "no" ; then
6450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452 fi
6453
6454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456 fi
6457
6458 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6459
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6461 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6462 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6463 if eval test \${$cacheid+y}
6464 then :
6465 printf %s "(cached) " >&6
6466 else $as_nop
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 int i;
6470 int
6471 main (void)
6472 {
6473
6474 ;
6475 return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_link "$LINENO"
6479 then :
6480 eval $cacheid=yes
6481 else $as_nop
6482 eval $cacheid=no
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6485 conftest$ac_exeext conftest.$ac_ext
6486 fi
6487
6488
6489 CFLAGS="$xorg_testset_save_CFLAGS"
6490
6491 eval supported=\$$cacheid
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6493 printf "%s\n" "$supported" >&6; }
6494 if test "$supported" = "yes" ; then
6495 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6496 found="yes"
6497 fi
6498 fi
6499
6500
6501
6502
6503
6504 # This chunk adds additional warnings that could catch undesired effects.
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518 xorg_testset_save_CFLAGS="$CFLAGS"
6519
6520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6523 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6524 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6525 then :
6526 printf %s "(cached) " >&6
6527 else $as_nop
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 int i;
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"
6533 then :
6534 xorg_cv_cc_flag_unknown_warning_option=yes
6535 else $as_nop
6536 xorg_cv_cc_flag_unknown_warning_option=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6539 fi
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6541 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544 fi
6545
6546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549 fi
6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6552 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6553 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6554 then :
6555 printf %s "(cached) " >&6
6556 else $as_nop
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 int i;
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"
6562 then :
6563 xorg_cv_cc_flag_unused_command_line_argument=yes
6564 else $as_nop
6565 xorg_cv_cc_flag_unused_command_line_argument=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6568 fi
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6570 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6572 CFLAGS="$xorg_testset_save_CFLAGS"
6573 fi
6574
6575 found="no"
6576
6577 if test $found = "no" ; then
6578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580 fi
6581
6582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6584 fi
6585
6586 CFLAGS="$CFLAGS -Wunused"
6587
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6589 printf %s "checking if $CC supports -Wunused... " >&6; }
6590 cacheid=xorg_cv_cc_flag__Wunused
6591 if eval test \${$cacheid+y}
6592 then :
6593 printf %s "(cached) " >&6
6594 else $as_nop
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 int i;
6598 int
6599 main (void)
6600 {
6601
6602 ;
6603 return 0;
6604 }
6605 _ACEOF
6606 if ac_fn_c_try_link "$LINENO"
6607 then :
6608 eval $cacheid=yes
6609 else $as_nop
6610 eval $cacheid=no
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6613 conftest$ac_exeext conftest.$ac_ext
6614 fi
6615
6616
6617 CFLAGS="$xorg_testset_save_CFLAGS"
6618
6619 eval supported=\$$cacheid
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6621 printf "%s\n" "$supported" >&6; }
6622 if test "$supported" = "yes" ; then
6623 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6624 found="yes"
6625 fi
6626 fi
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642 xorg_testset_save_CFLAGS="$CFLAGS"
6643
6644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6649 then :
6650 printf %s "(cached) " >&6
6651 else $as_nop
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654 int i;
6655 _ACEOF
6656 if ac_fn_c_try_compile "$LINENO"
6657 then :
6658 xorg_cv_cc_flag_unknown_warning_option=yes
6659 else $as_nop
6660 xorg_cv_cc_flag_unknown_warning_option=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6663 fi
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6665 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6676 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6677 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6678 then :
6679 printf %s "(cached) " >&6
6680 else $as_nop
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"
6686 then :
6687 xorg_cv_cc_flag_unused_command_line_argument=yes
6688 else $as_nop
6689 xorg_cv_cc_flag_unused_command_line_argument=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6692 fi
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6696 CFLAGS="$xorg_testset_save_CFLAGS"
6697 fi
6698
6699 found="no"
6700
6701 if test $found = "no" ; then
6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 fi
6705
6706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708 fi
6709
6710 CFLAGS="$CFLAGS -Wuninitialized"
6711
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6713 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6714 cacheid=xorg_cv_cc_flag__Wuninitialized
6715 if eval test \${$cacheid+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else $as_nop
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 int i;
6722 int
6723 main (void)
6724 {
6725
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 if ac_fn_c_try_link "$LINENO"
6731 then :
6732 eval $cacheid=yes
6733 else $as_nop
6734 eval $cacheid=no
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6737 conftest$ac_exeext conftest.$ac_ext
6738 fi
6739
6740
6741 CFLAGS="$xorg_testset_save_CFLAGS"
6742
6743 eval supported=\$$cacheid
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6745 printf "%s\n" "$supported" >&6; }
6746 if test "$supported" = "yes" ; then
6747 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6748 found="yes"
6749 fi
6750 fi
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766 xorg_testset_save_CFLAGS="$CFLAGS"
6767
6768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6771 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6772 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else $as_nop
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int i;
6779 _ACEOF
6780 if ac_fn_c_try_compile "$LINENO"
6781 then :
6782 xorg_cv_cc_flag_unknown_warning_option=yes
6783 else $as_nop
6784 xorg_cv_cc_flag_unknown_warning_option=no
6785 fi
6786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6787 fi
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6789 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6791 CFLAGS="$xorg_testset_save_CFLAGS"
6792 fi
6793
6794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797 fi
6798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6800 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6801 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else $as_nop
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 int i;
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"
6810 then :
6811 xorg_cv_cc_flag_unused_command_line_argument=yes
6812 else $as_nop
6813 xorg_cv_cc_flag_unused_command_line_argument=no
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6816 fi
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6818 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6820 CFLAGS="$xorg_testset_save_CFLAGS"
6821 fi
6822
6823 found="no"
6824
6825 if test $found = "no" ; then
6826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6828 fi
6829
6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832 fi
6833
6834 CFLAGS="$CFLAGS -Wshadow"
6835
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6837 printf %s "checking if $CC supports -Wshadow... " >&6; }
6838 cacheid=xorg_cv_cc_flag__Wshadow
6839 if eval test \${$cacheid+y}
6840 then :
6841 printf %s "(cached) " >&6
6842 else $as_nop
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 int i;
6846 int
6847 main (void)
6848 {
6849
6850 ;
6851 return 0;
6852 }
6853 _ACEOF
6854 if ac_fn_c_try_link "$LINENO"
6855 then :
6856 eval $cacheid=yes
6857 else $as_nop
6858 eval $cacheid=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6861 conftest$ac_exeext conftest.$ac_ext
6862 fi
6863
6864
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867 eval supported=\$$cacheid
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869 printf "%s\n" "$supported" >&6; }
6870 if test "$supported" = "yes" ; then
6871 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6872 found="yes"
6873 fi
6874 fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 xorg_testset_save_CFLAGS="$CFLAGS"
6891
6892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6895 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6896 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6897 then :
6898 printf %s "(cached) " >&6
6899 else $as_nop
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 int i;
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"
6905 then :
6906 xorg_cv_cc_flag_unknown_warning_option=yes
6907 else $as_nop
6908 xorg_cv_cc_flag_unknown_warning_option=no
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6911 fi
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6913 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6915 CFLAGS="$xorg_testset_save_CFLAGS"
6916 fi
6917
6918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921 fi
6922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6924 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6925 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6926 then :
6927 printf %s "(cached) " >&6
6928 else $as_nop
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"
6934 then :
6935 xorg_cv_cc_flag_unused_command_line_argument=yes
6936 else $as_nop
6937 xorg_cv_cc_flag_unused_command_line_argument=no
6938 fi
6939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6940 fi
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6942 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6944 CFLAGS="$xorg_testset_save_CFLAGS"
6945 fi
6946
6947 found="no"
6948
6949 if test $found = "no" ; then
6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952 fi
6953
6954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956 fi
6957
6958 CFLAGS="$CFLAGS -Wmissing-noreturn"
6959
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6961 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6962 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6963 if eval test \${$cacheid+y}
6964 then :
6965 printf %s "(cached) " >&6
6966 else $as_nop
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 int i;
6970 int
6971 main (void)
6972 {
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_link "$LINENO"
6979 then :
6980 eval $cacheid=yes
6981 else $as_nop
6982 eval $cacheid=no
6983 fi
6984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6985 conftest$ac_exeext conftest.$ac_ext
6986 fi
6987
6988
6989 CFLAGS="$xorg_testset_save_CFLAGS"
6990
6991 eval supported=\$$cacheid
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6993 printf "%s\n" "$supported" >&6; }
6994 if test "$supported" = "yes" ; then
6995 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6996 found="yes"
6997 fi
6998 fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014 xorg_testset_save_CFLAGS="$CFLAGS"
7015
7016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7020 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7021 then :
7022 printf %s "(cached) " >&6
7023 else $as_nop
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 int i;
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"
7029 then :
7030 xorg_cv_cc_flag_unknown_warning_option=yes
7031 else $as_nop
7032 xorg_cv_cc_flag_unknown_warning_option=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7035 fi
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7039 CFLAGS="$xorg_testset_save_CFLAGS"
7040 fi
7041
7042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045 fi
7046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7050 then :
7051 printf %s "(cached) " >&6
7052 else $as_nop
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 int i;
7056 _ACEOF
7057 if ac_fn_c_try_compile "$LINENO"
7058 then :
7059 xorg_cv_cc_flag_unused_command_line_argument=yes
7060 else $as_nop
7061 xorg_cv_cc_flag_unused_command_line_argument=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7064 fi
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7066 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7068 CFLAGS="$xorg_testset_save_CFLAGS"
7069 fi
7070
7071 found="no"
7072
7073 if test $found = "no" ; then
7074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076 fi
7077
7078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080 fi
7081
7082 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7083
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7085 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7086 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7087 if eval test \${$cacheid+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else $as_nop
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 int i;
7094 int
7095 main (void)
7096 {
7097
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_link "$LINENO"
7103 then :
7104 eval $cacheid=yes
7105 else $as_nop
7106 eval $cacheid=no
7107 fi
7108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7109 conftest$ac_exeext conftest.$ac_ext
7110 fi
7111
7112
7113 CFLAGS="$xorg_testset_save_CFLAGS"
7114
7115 eval supported=\$$cacheid
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7117 printf "%s\n" "$supported" >&6; }
7118 if test "$supported" = "yes" ; then
7119 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7120 found="yes"
7121 fi
7122 fi
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 xorg_testset_save_CFLAGS="$CFLAGS"
7139
7140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7145 then :
7146 printf %s "(cached) " >&6
7147 else $as_nop
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"
7153 then :
7154 xorg_cv_cc_flag_unknown_warning_option=yes
7155 else $as_nop
7156 xorg_cv_cc_flag_unknown_warning_option=no
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7159 fi
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7163 CFLAGS="$xorg_testset_save_CFLAGS"
7164 fi
7165
7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169 fi
7170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7174 then :
7175 printf %s "(cached) " >&6
7176 else $as_nop
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 int i;
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"
7182 then :
7183 xorg_cv_cc_flag_unused_command_line_argument=yes
7184 else $as_nop
7185 xorg_cv_cc_flag_unused_command_line_argument=no
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 fi
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7190 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7192 CFLAGS="$xorg_testset_save_CFLAGS"
7193 fi
7194
7195 found="no"
7196
7197 if test $found = "no" ; then
7198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200 fi
7201
7202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7204 fi
7205
7206 CFLAGS="$CFLAGS -Wredundant-decls"
7207
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7209 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7210 cacheid=xorg_cv_cc_flag__Wredundant_decls
7211 if eval test \${$cacheid+y}
7212 then :
7213 printf %s "(cached) " >&6
7214 else $as_nop
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 int i;
7218 int
7219 main (void)
7220 {
7221
7222 ;
7223 return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_link "$LINENO"
7227 then :
7228 eval $cacheid=yes
7229 else $as_nop
7230 eval $cacheid=no
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7233 conftest$ac_exeext conftest.$ac_ext
7234 fi
7235
7236
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238
7239 eval supported=\$$cacheid
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7241 printf "%s\n" "$supported" >&6; }
7242 if test "$supported" = "yes" ; then
7243 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7244 found="yes"
7245 fi
7246 fi
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262 xorg_testset_save_CFLAGS="$CFLAGS"
7263
7264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7267 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7268 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7269 then :
7270 printf %s "(cached) " >&6
7271 else $as_nop
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"
7277 then :
7278 xorg_cv_cc_flag_unknown_warning_option=yes
7279 else $as_nop
7280 xorg_cv_cc_flag_unknown_warning_option=no
7281 fi
7282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7283 fi
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7285 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7287 CFLAGS="$xorg_testset_save_CFLAGS"
7288 fi
7289
7290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7293 fi
7294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7296 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7297 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7298 then :
7299 printf %s "(cached) " >&6
7300 else $as_nop
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 int i;
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"
7306 then :
7307 xorg_cv_cc_flag_unused_command_line_argument=yes
7308 else $as_nop
7309 xorg_cv_cc_flag_unused_command_line_argument=no
7310 fi
7311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7312 fi
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7314 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7316 CFLAGS="$xorg_testset_save_CFLAGS"
7317 fi
7318
7319 found="no"
7320
7321 if test $found = "no" ; then
7322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324 fi
7325
7326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7328 fi
7329
7330 CFLAGS="$CFLAGS -Wlogical-op"
7331
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7333 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7334 cacheid=xorg_cv_cc_flag__Wlogical_op
7335 if eval test \${$cacheid+y}
7336 then :
7337 printf %s "(cached) " >&6
7338 else $as_nop
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 int i;
7342 int
7343 main (void)
7344 {
7345
7346 ;
7347 return 0;
7348 }
7349 _ACEOF
7350 if ac_fn_c_try_link "$LINENO"
7351 then :
7352 eval $cacheid=yes
7353 else $as_nop
7354 eval $cacheid=no
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7357 conftest$ac_exeext conftest.$ac_ext
7358 fi
7359
7360
7361 CFLAGS="$xorg_testset_save_CFLAGS"
7362
7363 eval supported=\$$cacheid
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7365 printf "%s\n" "$supported" >&6; }
7366 if test "$supported" = "yes" ; then
7367 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7368 found="yes"
7369 fi
7370 fi
7371
7372
7373
7374 # These are currently disabled because they are noisy. They will be enabled
7375 # in the future once the codebase is sufficiently modernized to silence
7376 # them. For now, I don't want them to drown out the other warnings.
7377 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7378 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7379 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7380
7381 # Turn some warnings into errors, so we don't accidently get successful builds
7382 # when there are problems that should be fixed.
7383
7384 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 xorg_testset_save_CFLAGS="$CFLAGS"
7399
7400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7404 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7405 then :
7406 printf %s "(cached) " >&6
7407 else $as_nop
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 int i;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"
7413 then :
7414 xorg_cv_cc_flag_unknown_warning_option=yes
7415 else $as_nop
7416 xorg_cv_cc_flag_unknown_warning_option=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7419 fi
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7423 CFLAGS="$xorg_testset_save_CFLAGS"
7424 fi
7425
7426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429 fi
7430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7434 then :
7435 printf %s "(cached) " >&6
7436 else $as_nop
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7439 int i;
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"
7442 then :
7443 xorg_cv_cc_flag_unused_command_line_argument=yes
7444 else $as_nop
7445 xorg_cv_cc_flag_unused_command_line_argument=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7448 fi
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7450 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7452 CFLAGS="$xorg_testset_save_CFLAGS"
7453 fi
7454
7455 found="no"
7456
7457 if test $found = "no" ; then
7458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460 fi
7461
7462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7464 fi
7465
7466 CFLAGS="$CFLAGS -Werror=implicit"
7467
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7469 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7470 cacheid=xorg_cv_cc_flag__Werror_implicit
7471 if eval test \${$cacheid+y}
7472 then :
7473 printf %s "(cached) " >&6
7474 else $as_nop
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 int i;
7478 int
7479 main (void)
7480 {
7481
7482 ;
7483 return 0;
7484 }
7485 _ACEOF
7486 if ac_fn_c_try_link "$LINENO"
7487 then :
7488 eval $cacheid=yes
7489 else $as_nop
7490 eval $cacheid=no
7491 fi
7492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7493 conftest$ac_exeext conftest.$ac_ext
7494 fi
7495
7496
7497 CFLAGS="$xorg_testset_save_CFLAGS"
7498
7499 eval supported=\$$cacheid
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7501 printf "%s\n" "$supported" >&6; }
7502 if test "$supported" = "yes" ; then
7503 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7504 found="yes"
7505 fi
7506 fi
7507
7508 if test $found = "no" ; then
7509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511 fi
7512
7513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7515 fi
7516
7517 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7518
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7520 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7521 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7522 if eval test \${$cacheid+y}
7523 then :
7524 printf %s "(cached) " >&6
7525 else $as_nop
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 int i;
7529 int
7530 main (void)
7531 {
7532
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_link "$LINENO"
7538 then :
7539 eval $cacheid=yes
7540 else $as_nop
7541 eval $cacheid=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7544 conftest$ac_exeext conftest.$ac_ext
7545 fi
7546
7547
7548 CFLAGS="$xorg_testset_save_CFLAGS"
7549
7550 eval supported=\$$cacheid
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7552 printf "%s\n" "$supported" >&6; }
7553 if test "$supported" = "yes" ; then
7554 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7555 found="yes"
7556 fi
7557 fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573 xorg_testset_save_CFLAGS="$CFLAGS"
7574
7575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7578 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7579 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7580 then :
7581 printf %s "(cached) " >&6
7582 else $as_nop
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int i;
7586 _ACEOF
7587 if ac_fn_c_try_compile "$LINENO"
7588 then :
7589 xorg_cv_cc_flag_unknown_warning_option=yes
7590 else $as_nop
7591 xorg_cv_cc_flag_unknown_warning_option=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7594 fi
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7596 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7598 CFLAGS="$xorg_testset_save_CFLAGS"
7599 fi
7600
7601 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604 fi
7605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7607 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7608 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7609 then :
7610 printf %s "(cached) " >&6
7611 else $as_nop
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 int i;
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"
7617 then :
7618 xorg_cv_cc_flag_unused_command_line_argument=yes
7619 else $as_nop
7620 xorg_cv_cc_flag_unused_command_line_argument=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7623 fi
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7625 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7627 CFLAGS="$xorg_testset_save_CFLAGS"
7628 fi
7629
7630 found="no"
7631
7632 if test $found = "no" ; then
7633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635 fi
7636
7637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7639 fi
7640
7641 CFLAGS="$CFLAGS -Werror=nonnull"
7642
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7644 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7645 cacheid=xorg_cv_cc_flag__Werror_nonnull
7646 if eval test \${$cacheid+y}
7647 then :
7648 printf %s "(cached) " >&6
7649 else $as_nop
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 int i;
7653 int
7654 main (void)
7655 {
7656
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_link "$LINENO"
7662 then :
7663 eval $cacheid=yes
7664 else $as_nop
7665 eval $cacheid=no
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7668 conftest$ac_exeext conftest.$ac_ext
7669 fi
7670
7671
7672 CFLAGS="$xorg_testset_save_CFLAGS"
7673
7674 eval supported=\$$cacheid
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7676 printf "%s\n" "$supported" >&6; }
7677 if test "$supported" = "yes" ; then
7678 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7679 found="yes"
7680 fi
7681 fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 xorg_testset_save_CFLAGS="$CFLAGS"
7698
7699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7703 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7704 then :
7705 printf %s "(cached) " >&6
7706 else $as_nop
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 int i;
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"
7712 then :
7713 xorg_cv_cc_flag_unknown_warning_option=yes
7714 else $as_nop
7715 xorg_cv_cc_flag_unknown_warning_option=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7718 fi
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723 fi
7724
7725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728 fi
7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7733 then :
7734 printf %s "(cached) " >&6
7735 else $as_nop
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 int i;
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"
7741 then :
7742 xorg_cv_cc_flag_unused_command_line_argument=yes
7743 else $as_nop
7744 xorg_cv_cc_flag_unused_command_line_argument=no
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7747 fi
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7751 CFLAGS="$xorg_testset_save_CFLAGS"
7752 fi
7753
7754 found="no"
7755
7756 if test $found = "no" ; then
7757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759 fi
7760
7761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763 fi
7764
7765 CFLAGS="$CFLAGS -Werror=init-self"
7766
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7768 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7769 cacheid=xorg_cv_cc_flag__Werror_init_self
7770 if eval test \${$cacheid+y}
7771 then :
7772 printf %s "(cached) " >&6
7773 else $as_nop
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 int i;
7777 int
7778 main (void)
7779 {
7780
7781 ;
7782 return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_link "$LINENO"
7786 then :
7787 eval $cacheid=yes
7788 else $as_nop
7789 eval $cacheid=no
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7792 conftest$ac_exeext conftest.$ac_ext
7793 fi
7794
7795
7796 CFLAGS="$xorg_testset_save_CFLAGS"
7797
7798 eval supported=\$$cacheid
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7800 printf "%s\n" "$supported" >&6; }
7801 if test "$supported" = "yes" ; then
7802 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7803 found="yes"
7804 fi
7805 fi
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821 xorg_testset_save_CFLAGS="$CFLAGS"
7822
7823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7827 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7828 then :
7829 printf %s "(cached) " >&6
7830 else $as_nop
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 int i;
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"
7836 then :
7837 xorg_cv_cc_flag_unknown_warning_option=yes
7838 else $as_nop
7839 xorg_cv_cc_flag_unknown_warning_option=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7842 fi
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7844 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7846 CFLAGS="$xorg_testset_save_CFLAGS"
7847 fi
7848
7849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7852 fi
7853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7855 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7856 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7857 then :
7858 printf %s "(cached) " >&6
7859 else $as_nop
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 int i;
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"
7865 then :
7866 xorg_cv_cc_flag_unused_command_line_argument=yes
7867 else $as_nop
7868 xorg_cv_cc_flag_unused_command_line_argument=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7871 fi
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7875 CFLAGS="$xorg_testset_save_CFLAGS"
7876 fi
7877
7878 found="no"
7879
7880 if test $found = "no" ; then
7881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7883 fi
7884
7885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887 fi
7888
7889 CFLAGS="$CFLAGS -Werror=main"
7890
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7892 printf %s "checking if $CC supports -Werror=main... " >&6; }
7893 cacheid=xorg_cv_cc_flag__Werror_main
7894 if eval test \${$cacheid+y}
7895 then :
7896 printf %s "(cached) " >&6
7897 else $as_nop
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int i;
7901 int
7902 main (void)
7903 {
7904
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"
7910 then :
7911 eval $cacheid=yes
7912 else $as_nop
7913 eval $cacheid=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7916 conftest$ac_exeext conftest.$ac_ext
7917 fi
7918
7919
7920 CFLAGS="$xorg_testset_save_CFLAGS"
7921
7922 eval supported=\$$cacheid
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7924 printf "%s\n" "$supported" >&6; }
7925 if test "$supported" = "yes" ; then
7926 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7927 found="yes"
7928 fi
7929 fi
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945 xorg_testset_save_CFLAGS="$CFLAGS"
7946
7947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7951 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7952 then :
7953 printf %s "(cached) " >&6
7954 else $as_nop
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 int i;
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"
7960 then :
7961 xorg_cv_cc_flag_unknown_warning_option=yes
7962 else $as_nop
7963 xorg_cv_cc_flag_unknown_warning_option=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7966 fi
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7971 fi
7972
7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7976 fi
7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7981 then :
7982 printf %s "(cached) " >&6
7983 else $as_nop
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 int i;
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"
7989 then :
7990 xorg_cv_cc_flag_unused_command_line_argument=yes
7991 else $as_nop
7992 xorg_cv_cc_flag_unused_command_line_argument=no
7993 fi
7994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7995 fi
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7997 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7999 CFLAGS="$xorg_testset_save_CFLAGS"
8000 fi
8001
8002 found="no"
8003
8004 if test $found = "no" ; then
8005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 fi
8008
8009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8011 fi
8012
8013 CFLAGS="$CFLAGS -Werror=missing-braces"
8014
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8016 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8017 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8018 if eval test \${$cacheid+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else $as_nop
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 int i;
8025 int
8026 main (void)
8027 {
8028
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 if ac_fn_c_try_link "$LINENO"
8034 then :
8035 eval $cacheid=yes
8036 else $as_nop
8037 eval $cacheid=no
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8040 conftest$ac_exeext conftest.$ac_ext
8041 fi
8042
8043
8044 CFLAGS="$xorg_testset_save_CFLAGS"
8045
8046 eval supported=\$$cacheid
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8048 printf "%s\n" "$supported" >&6; }
8049 if test "$supported" = "yes" ; then
8050 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8051 found="yes"
8052 fi
8053 fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 xorg_testset_save_CFLAGS="$CFLAGS"
8070
8071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8074 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8075 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8076 then :
8077 printf %s "(cached) " >&6
8078 else $as_nop
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 int i;
8082 _ACEOF
8083 if ac_fn_c_try_compile "$LINENO"
8084 then :
8085 xorg_cv_cc_flag_unknown_warning_option=yes
8086 else $as_nop
8087 xorg_cv_cc_flag_unknown_warning_option=no
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8090 fi
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8092 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8094 CFLAGS="$xorg_testset_save_CFLAGS"
8095 fi
8096
8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100 fi
8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8103 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8104 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8105 then :
8106 printf %s "(cached) " >&6
8107 else $as_nop
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 int i;
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"
8113 then :
8114 xorg_cv_cc_flag_unused_command_line_argument=yes
8115 else $as_nop
8116 xorg_cv_cc_flag_unused_command_line_argument=no
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8119 fi
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8121 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8123 CFLAGS="$xorg_testset_save_CFLAGS"
8124 fi
8125
8126 found="no"
8127
8128 if test $found = "no" ; then
8129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8131 fi
8132
8133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8135 fi
8136
8137 CFLAGS="$CFLAGS -Werror=sequence-point"
8138
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8140 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8141 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8142 if eval test \${$cacheid+y}
8143 then :
8144 printf %s "(cached) " >&6
8145 else $as_nop
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 int i;
8149 int
8150 main (void)
8151 {
8152
8153 ;
8154 return 0;
8155 }
8156 _ACEOF
8157 if ac_fn_c_try_link "$LINENO"
8158 then :
8159 eval $cacheid=yes
8160 else $as_nop
8161 eval $cacheid=no
8162 fi
8163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8164 conftest$ac_exeext conftest.$ac_ext
8165 fi
8166
8167
8168 CFLAGS="$xorg_testset_save_CFLAGS"
8169
8170 eval supported=\$$cacheid
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8172 printf "%s\n" "$supported" >&6; }
8173 if test "$supported" = "yes" ; then
8174 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8175 found="yes"
8176 fi
8177 fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193 xorg_testset_save_CFLAGS="$CFLAGS"
8194
8195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8198 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8199 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8200 then :
8201 printf %s "(cached) " >&6
8202 else $as_nop
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 int i;
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"
8208 then :
8209 xorg_cv_cc_flag_unknown_warning_option=yes
8210 else $as_nop
8211 xorg_cv_cc_flag_unknown_warning_option=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8214 fi
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8216 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8218 CFLAGS="$xorg_testset_save_CFLAGS"
8219 fi
8220
8221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224 fi
8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8227 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8228 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8229 then :
8230 printf %s "(cached) " >&6
8231 else $as_nop
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 int i;
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"
8237 then :
8238 xorg_cv_cc_flag_unused_command_line_argument=yes
8239 else $as_nop
8240 xorg_cv_cc_flag_unused_command_line_argument=no
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8243 fi
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8245 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8247 CFLAGS="$xorg_testset_save_CFLAGS"
8248 fi
8249
8250 found="no"
8251
8252 if test $found = "no" ; then
8253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8255 fi
8256
8257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8259 fi
8260
8261 CFLAGS="$CFLAGS -Werror=return-type"
8262
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8264 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8265 cacheid=xorg_cv_cc_flag__Werror_return_type
8266 if eval test \${$cacheid+y}
8267 then :
8268 printf %s "(cached) " >&6
8269 else $as_nop
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 int i;
8273 int
8274 main (void)
8275 {
8276
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_link "$LINENO"
8282 then :
8283 eval $cacheid=yes
8284 else $as_nop
8285 eval $cacheid=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8288 conftest$ac_exeext conftest.$ac_ext
8289 fi
8290
8291
8292 CFLAGS="$xorg_testset_save_CFLAGS"
8293
8294 eval supported=\$$cacheid
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296 printf "%s\n" "$supported" >&6; }
8297 if test "$supported" = "yes" ; then
8298 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8299 found="yes"
8300 fi
8301 fi
8302
8303 if test $found = "no" ; then
8304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306 fi
8307
8308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310 fi
8311
8312 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8313
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8315 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8316 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8317 if eval test \${$cacheid+y}
8318 then :
8319 printf %s "(cached) " >&6
8320 else $as_nop
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int i;
8324 int
8325 main (void)
8326 {
8327
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_link "$LINENO"
8333 then :
8334 eval $cacheid=yes
8335 else $as_nop
8336 eval $cacheid=no
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8339 conftest$ac_exeext conftest.$ac_ext
8340 fi
8341
8342
8343 CFLAGS="$xorg_testset_save_CFLAGS"
8344
8345 eval supported=\$$cacheid
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8347 printf "%s\n" "$supported" >&6; }
8348 if test "$supported" = "yes" ; then
8349 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8350 found="yes"
8351 fi
8352 fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368 xorg_testset_save_CFLAGS="$CFLAGS"
8369
8370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8373 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8374 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8375 then :
8376 printf %s "(cached) " >&6
8377 else $as_nop
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380 int i;
8381 _ACEOF
8382 if ac_fn_c_try_compile "$LINENO"
8383 then :
8384 xorg_cv_cc_flag_unknown_warning_option=yes
8385 else $as_nop
8386 xorg_cv_cc_flag_unknown_warning_option=no
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8389 fi
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8391 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8393 CFLAGS="$xorg_testset_save_CFLAGS"
8394 fi
8395
8396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399 fi
8400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8402 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8403 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8404 then :
8405 printf %s "(cached) " >&6
8406 else $as_nop
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 int i;
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"
8412 then :
8413 xorg_cv_cc_flag_unused_command_line_argument=yes
8414 else $as_nop
8415 xorg_cv_cc_flag_unused_command_line_argument=no
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8418 fi
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8420 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8422 CFLAGS="$xorg_testset_save_CFLAGS"
8423 fi
8424
8425 found="no"
8426
8427 if test $found = "no" ; then
8428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8430 fi
8431
8432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8434 fi
8435
8436 CFLAGS="$CFLAGS -Werror=trigraphs"
8437
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8439 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8440 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8441 if eval test \${$cacheid+y}
8442 then :
8443 printf %s "(cached) " >&6
8444 else $as_nop
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 int i;
8448 int
8449 main (void)
8450 {
8451
8452 ;
8453 return 0;
8454 }
8455 _ACEOF
8456 if ac_fn_c_try_link "$LINENO"
8457 then :
8458 eval $cacheid=yes
8459 else $as_nop
8460 eval $cacheid=no
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8463 conftest$ac_exeext conftest.$ac_ext
8464 fi
8465
8466
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8468
8469 eval supported=\$$cacheid
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8471 printf "%s\n" "$supported" >&6; }
8472 if test "$supported" = "yes" ; then
8473 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8474 found="yes"
8475 fi
8476 fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492 xorg_testset_save_CFLAGS="$CFLAGS"
8493
8494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8498 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8499 then :
8500 printf %s "(cached) " >&6
8501 else $as_nop
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 int i;
8505 _ACEOF
8506 if ac_fn_c_try_compile "$LINENO"
8507 then :
8508 xorg_cv_cc_flag_unknown_warning_option=yes
8509 else $as_nop
8510 xorg_cv_cc_flag_unknown_warning_option=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8513 fi
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8515 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8517 CFLAGS="$xorg_testset_save_CFLAGS"
8518 fi
8519
8520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523 fi
8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8526 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8527 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else $as_nop
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 int i;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"
8536 then :
8537 xorg_cv_cc_flag_unused_command_line_argument=yes
8538 else $as_nop
8539 xorg_cv_cc_flag_unused_command_line_argument=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8542 fi
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8546 CFLAGS="$xorg_testset_save_CFLAGS"
8547 fi
8548
8549 found="no"
8550
8551 if test $found = "no" ; then
8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554 fi
8555
8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558 fi
8559
8560 CFLAGS="$CFLAGS -Werror=array-bounds"
8561
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8563 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8564 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8565 if eval test \${$cacheid+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else $as_nop
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 int i;
8572 int
8573 main (void)
8574 {
8575
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_link "$LINENO"
8581 then :
8582 eval $cacheid=yes
8583 else $as_nop
8584 eval $cacheid=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8587 conftest$ac_exeext conftest.$ac_ext
8588 fi
8589
8590
8591 CFLAGS="$xorg_testset_save_CFLAGS"
8592
8593 eval supported=\$$cacheid
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8595 printf "%s\n" "$supported" >&6; }
8596 if test "$supported" = "yes" ; then
8597 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8598 found="yes"
8599 fi
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 xorg_testset_save_CFLAGS="$CFLAGS"
8617
8618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8622 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8623 then :
8624 printf %s "(cached) " >&6
8625 else $as_nop
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628 int i;
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"
8631 then :
8632 xorg_cv_cc_flag_unknown_warning_option=yes
8633 else $as_nop
8634 xorg_cv_cc_flag_unknown_warning_option=no
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8637 fi
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8639 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8641 CFLAGS="$xorg_testset_save_CFLAGS"
8642 fi
8643
8644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8647 fi
8648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8650 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8651 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8652 then :
8653 printf %s "(cached) " >&6
8654 else $as_nop
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 int i;
8658 _ACEOF
8659 if ac_fn_c_try_compile "$LINENO"
8660 then :
8661 xorg_cv_cc_flag_unused_command_line_argument=yes
8662 else $as_nop
8663 xorg_cv_cc_flag_unused_command_line_argument=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8666 fi
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8670 CFLAGS="$xorg_testset_save_CFLAGS"
8671 fi
8672
8673 found="no"
8674
8675 if test $found = "no" ; then
8676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678 fi
8679
8680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682 fi
8683
8684 CFLAGS="$CFLAGS -Werror=write-strings"
8685
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8687 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8688 cacheid=xorg_cv_cc_flag__Werror_write_strings
8689 if eval test \${$cacheid+y}
8690 then :
8691 printf %s "(cached) " >&6
8692 else $as_nop
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 int i;
8696 int
8697 main (void)
8698 {
8699
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 if ac_fn_c_try_link "$LINENO"
8705 then :
8706 eval $cacheid=yes
8707 else $as_nop
8708 eval $cacheid=no
8709 fi
8710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8711 conftest$ac_exeext conftest.$ac_ext
8712 fi
8713
8714
8715 CFLAGS="$xorg_testset_save_CFLAGS"
8716
8717 eval supported=\$$cacheid
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8719 printf "%s\n" "$supported" >&6; }
8720 if test "$supported" = "yes" ; then
8721 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8722 found="yes"
8723 fi
8724 fi
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740 xorg_testset_save_CFLAGS="$CFLAGS"
8741
8742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8746 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8747 then :
8748 printf %s "(cached) " >&6
8749 else $as_nop
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 int i;
8753 _ACEOF
8754 if ac_fn_c_try_compile "$LINENO"
8755 then :
8756 xorg_cv_cc_flag_unknown_warning_option=yes
8757 else $as_nop
8758 xorg_cv_cc_flag_unknown_warning_option=no
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8761 fi
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8765 CFLAGS="$xorg_testset_save_CFLAGS"
8766 fi
8767
8768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8771 fi
8772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8776 then :
8777 printf %s "(cached) " >&6
8778 else $as_nop
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 int i;
8782 _ACEOF
8783 if ac_fn_c_try_compile "$LINENO"
8784 then :
8785 xorg_cv_cc_flag_unused_command_line_argument=yes
8786 else $as_nop
8787 xorg_cv_cc_flag_unused_command_line_argument=no
8788 fi
8789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8790 fi
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8794 CFLAGS="$xorg_testset_save_CFLAGS"
8795 fi
8796
8797 found="no"
8798
8799 if test $found = "no" ; then
8800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802 fi
8803
8804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8806 fi
8807
8808 CFLAGS="$CFLAGS -Werror=address"
8809
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8811 printf %s "checking if $CC supports -Werror=address... " >&6; }
8812 cacheid=xorg_cv_cc_flag__Werror_address
8813 if eval test \${$cacheid+y}
8814 then :
8815 printf %s "(cached) " >&6
8816 else $as_nop
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 int i;
8820 int
8821 main (void)
8822 {
8823
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_link "$LINENO"
8829 then :
8830 eval $cacheid=yes
8831 else $as_nop
8832 eval $cacheid=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8835 conftest$ac_exeext conftest.$ac_ext
8836 fi
8837
8838
8839 CFLAGS="$xorg_testset_save_CFLAGS"
8840
8841 eval supported=\$$cacheid
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8843 printf "%s\n" "$supported" >&6; }
8844 if test "$supported" = "yes" ; then
8845 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8846 found="yes"
8847 fi
8848 fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864 xorg_testset_save_CFLAGS="$CFLAGS"
8865
8866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8869 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8870 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8871 then :
8872 printf %s "(cached) " >&6
8873 else $as_nop
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 int i;
8877 _ACEOF
8878 if ac_fn_c_try_compile "$LINENO"
8879 then :
8880 xorg_cv_cc_flag_unknown_warning_option=yes
8881 else $as_nop
8882 xorg_cv_cc_flag_unknown_warning_option=no
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8885 fi
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8887 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8889 CFLAGS="$xorg_testset_save_CFLAGS"
8890 fi
8891
8892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895 fi
8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8898 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8899 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8900 then :
8901 printf %s "(cached) " >&6
8902 else $as_nop
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 int i;
8906 _ACEOF
8907 if ac_fn_c_try_compile "$LINENO"
8908 then :
8909 xorg_cv_cc_flag_unused_command_line_argument=yes
8910 else $as_nop
8911 xorg_cv_cc_flag_unused_command_line_argument=no
8912 fi
8913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8914 fi
8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8918 CFLAGS="$xorg_testset_save_CFLAGS"
8919 fi
8920
8921 found="no"
8922
8923 if test $found = "no" ; then
8924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926 fi
8927
8928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8930 fi
8931
8932 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8933
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8935 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8936 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8937 if eval test \${$cacheid+y}
8938 then :
8939 printf %s "(cached) " >&6
8940 else $as_nop
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 int i;
8944 int
8945 main (void)
8946 {
8947
8948 ;
8949 return 0;
8950 }
8951 _ACEOF
8952 if ac_fn_c_try_link "$LINENO"
8953 then :
8954 eval $cacheid=yes
8955 else $as_nop
8956 eval $cacheid=no
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8959 conftest$ac_exeext conftest.$ac_ext
8960 fi
8961
8962
8963 CFLAGS="$xorg_testset_save_CFLAGS"
8964
8965 eval supported=\$$cacheid
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8967 printf "%s\n" "$supported" >&6; }
8968 if test "$supported" = "yes" ; then
8969 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8970 found="yes"
8971 fi
8972 fi
8973
8974 if test $found = "no" ; then
8975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977 fi
8978
8979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8981 fi
8982
8983 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8984
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8986 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8987 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8988 if eval test \${$cacheid+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else $as_nop
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 int i;
8995 int
8996 main (void)
8997 {
8998
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_link "$LINENO"
9004 then :
9005 eval $cacheid=yes
9006 else $as_nop
9007 eval $cacheid=no
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9010 conftest$ac_exeext conftest.$ac_ext
9011 fi
9012
9013
9014 CFLAGS="$xorg_testset_save_CFLAGS"
9015
9016 eval supported=\$$cacheid
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9018 printf "%s\n" "$supported" >&6; }
9019 if test "$supported" = "yes" ; then
9020 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9021 found="yes"
9022 fi
9023 fi
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039 xorg_testset_save_CFLAGS="$CFLAGS"
9040
9041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9044 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9045 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9046 then :
9047 printf %s "(cached) " >&6
9048 else $as_nop
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 int i;
9052 _ACEOF
9053 if ac_fn_c_try_compile "$LINENO"
9054 then :
9055 xorg_cv_cc_flag_unknown_warning_option=yes
9056 else $as_nop
9057 xorg_cv_cc_flag_unknown_warning_option=no
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9060 fi
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9064 CFLAGS="$xorg_testset_save_CFLAGS"
9065 fi
9066
9067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070 fi
9071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9075 then :
9076 printf %s "(cached) " >&6
9077 else $as_nop
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 int i;
9081 _ACEOF
9082 if ac_fn_c_try_compile "$LINENO"
9083 then :
9084 xorg_cv_cc_flag_unused_command_line_argument=yes
9085 else $as_nop
9086 xorg_cv_cc_flag_unused_command_line_argument=no
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9089 fi
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9093 CFLAGS="$xorg_testset_save_CFLAGS"
9094 fi
9095
9096 found="no"
9097
9098 if test $found = "no" ; then
9099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101 fi
9102
9103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9105 fi
9106
9107 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9108
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9110 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9111 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9112 if eval test \${$cacheid+y}
9113 then :
9114 printf %s "(cached) " >&6
9115 else $as_nop
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 int i;
9119 int
9120 main (void)
9121 {
9122
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 if ac_fn_c_try_link "$LINENO"
9128 then :
9129 eval $cacheid=yes
9130 else $as_nop
9131 eval $cacheid=no
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9134 conftest$ac_exeext conftest.$ac_ext
9135 fi
9136
9137
9138 CFLAGS="$xorg_testset_save_CFLAGS"
9139
9140 eval supported=\$$cacheid
9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9142 printf "%s\n" "$supported" >&6; }
9143 if test "$supported" = "yes" ; then
9144 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9145 found="yes"
9146 fi
9147 fi
9148
9149 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9150 else
9151 { printf "%s\n" "$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
9152 printf "%s\n" "$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;}
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9171 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9172 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9173 then :
9174 printf %s "(cached) " >&6
9175 else $as_nop
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 int i;
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"
9181 then :
9182 xorg_cv_cc_flag_unknown_warning_option=yes
9183 else $as_nop
9184 xorg_cv_cc_flag_unknown_warning_option=no
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9187 fi
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9189 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9191 CFLAGS="$xorg_testset_save_CFLAGS"
9192 fi
9193
9194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197 fi
9198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9200 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9201 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9202 then :
9203 printf %s "(cached) " >&6
9204 else $as_nop
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int i;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"
9210 then :
9211 xorg_cv_cc_flag_unused_command_line_argument=yes
9212 else $as_nop
9213 xorg_cv_cc_flag_unused_command_line_argument=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9216 fi
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9218 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9220 CFLAGS="$xorg_testset_save_CFLAGS"
9221 fi
9222
9223 found="no"
9224
9225 if test $found = "no" ; then
9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228 fi
9229
9230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9232 fi
9233
9234 CFLAGS="$CFLAGS -Wimplicit"
9235
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9237 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9238 cacheid=xorg_cv_cc_flag__Wimplicit
9239 if eval test \${$cacheid+y}
9240 then :
9241 printf %s "(cached) " >&6
9242 else $as_nop
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 int i;
9246 int
9247 main (void)
9248 {
9249
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 if ac_fn_c_try_link "$LINENO"
9255 then :
9256 eval $cacheid=yes
9257 else $as_nop
9258 eval $cacheid=no
9259 fi
9260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9261 conftest$ac_exeext conftest.$ac_ext
9262 fi
9263
9264
9265 CFLAGS="$xorg_testset_save_CFLAGS"
9266
9267 eval supported=\$$cacheid
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9269 printf "%s\n" "$supported" >&6; }
9270 if test "$supported" = "yes" ; then
9271 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9272 found="yes"
9273 fi
9274 fi
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290 xorg_testset_save_CFLAGS="$CFLAGS"
9291
9292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9296 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9297 then :
9298 printf %s "(cached) " >&6
9299 else $as_nop
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 int i;
9303 _ACEOF
9304 if ac_fn_c_try_compile "$LINENO"
9305 then :
9306 xorg_cv_cc_flag_unknown_warning_option=yes
9307 else $as_nop
9308 xorg_cv_cc_flag_unknown_warning_option=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9311 fi
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9313 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9315 CFLAGS="$xorg_testset_save_CFLAGS"
9316 fi
9317
9318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9321 fi
9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9324 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9325 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9326 then :
9327 printf %s "(cached) " >&6
9328 else $as_nop
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 int i;
9332 _ACEOF
9333 if ac_fn_c_try_compile "$LINENO"
9334 then :
9335 xorg_cv_cc_flag_unused_command_line_argument=yes
9336 else $as_nop
9337 xorg_cv_cc_flag_unused_command_line_argument=no
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9340 fi
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344 CFLAGS="$xorg_testset_save_CFLAGS"
9345 fi
9346
9347 found="no"
9348
9349 if test $found = "no" ; then
9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 fi
9353
9354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356 fi
9357
9358 CFLAGS="$CFLAGS -Wnonnull"
9359
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9361 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9362 cacheid=xorg_cv_cc_flag__Wnonnull
9363 if eval test \${$cacheid+y}
9364 then :
9365 printf %s "(cached) " >&6
9366 else $as_nop
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 int i;
9370 int
9371 main (void)
9372 {
9373
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 if ac_fn_c_try_link "$LINENO"
9379 then :
9380 eval $cacheid=yes
9381 else $as_nop
9382 eval $cacheid=no
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9385 conftest$ac_exeext conftest.$ac_ext
9386 fi
9387
9388
9389 CFLAGS="$xorg_testset_save_CFLAGS"
9390
9391 eval supported=\$$cacheid
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9393 printf "%s\n" "$supported" >&6; }
9394 if test "$supported" = "yes" ; then
9395 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9396 found="yes"
9397 fi
9398 fi
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414 xorg_testset_save_CFLAGS="$CFLAGS"
9415
9416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9419 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9420 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9421 then :
9422 printf %s "(cached) " >&6
9423 else $as_nop
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 int i;
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"
9429 then :
9430 xorg_cv_cc_flag_unknown_warning_option=yes
9431 else $as_nop
9432 xorg_cv_cc_flag_unknown_warning_option=no
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9435 fi
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9437 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9439 CFLAGS="$xorg_testset_save_CFLAGS"
9440 fi
9441
9442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445 fi
9446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9448 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9449 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9450 then :
9451 printf %s "(cached) " >&6
9452 else $as_nop
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 int i;
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"
9458 then :
9459 xorg_cv_cc_flag_unused_command_line_argument=yes
9460 else $as_nop
9461 xorg_cv_cc_flag_unused_command_line_argument=no
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9464 fi
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9466 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9468 CFLAGS="$xorg_testset_save_CFLAGS"
9469 fi
9470
9471 found="no"
9472
9473 if test $found = "no" ; then
9474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476 fi
9477
9478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480 fi
9481
9482 CFLAGS="$CFLAGS -Winit-self"
9483
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9485 printf %s "checking if $CC supports -Winit-self... " >&6; }
9486 cacheid=xorg_cv_cc_flag__Winit_self
9487 if eval test \${$cacheid+y}
9488 then :
9489 printf %s "(cached) " >&6
9490 else $as_nop
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 int i;
9494 int
9495 main (void)
9496 {
9497
9498 ;
9499 return 0;
9500 }
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"
9503 then :
9504 eval $cacheid=yes
9505 else $as_nop
9506 eval $cacheid=no
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9509 conftest$ac_exeext conftest.$ac_ext
9510 fi
9511
9512
9513 CFLAGS="$xorg_testset_save_CFLAGS"
9514
9515 eval supported=\$$cacheid
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9517 printf "%s\n" "$supported" >&6; }
9518 if test "$supported" = "yes" ; then
9519 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9520 found="yes"
9521 fi
9522 fi
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538 xorg_testset_save_CFLAGS="$CFLAGS"
9539
9540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9543 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9544 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9545 then :
9546 printf %s "(cached) " >&6
9547 else $as_nop
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 int i;
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"
9553 then :
9554 xorg_cv_cc_flag_unknown_warning_option=yes
9555 else $as_nop
9556 xorg_cv_cc_flag_unknown_warning_option=no
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9559 fi
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9561 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9563 CFLAGS="$xorg_testset_save_CFLAGS"
9564 fi
9565
9566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569 fi
9570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9572 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9573 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9574 then :
9575 printf %s "(cached) " >&6
9576 else $as_nop
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579 int i;
9580 _ACEOF
9581 if ac_fn_c_try_compile "$LINENO"
9582 then :
9583 xorg_cv_cc_flag_unused_command_line_argument=yes
9584 else $as_nop
9585 xorg_cv_cc_flag_unused_command_line_argument=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9588 fi
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9590 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9592 CFLAGS="$xorg_testset_save_CFLAGS"
9593 fi
9594
9595 found="no"
9596
9597 if test $found = "no" ; then
9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600 fi
9601
9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9604 fi
9605
9606 CFLAGS="$CFLAGS -Wmain"
9607
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9609 printf %s "checking if $CC supports -Wmain... " >&6; }
9610 cacheid=xorg_cv_cc_flag__Wmain
9611 if eval test \${$cacheid+y}
9612 then :
9613 printf %s "(cached) " >&6
9614 else $as_nop
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 int
9619 main (void)
9620 {
9621
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_link "$LINENO"
9627 then :
9628 eval $cacheid=yes
9629 else $as_nop
9630 eval $cacheid=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9633 conftest$ac_exeext conftest.$ac_ext
9634 fi
9635
9636
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639 eval supported=\$$cacheid
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641 printf "%s\n" "$supported" >&6; }
9642 if test "$supported" = "yes" ; then
9643 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9644 found="yes"
9645 fi
9646 fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9669 then :
9670 printf %s "(cached) " >&6
9671 else $as_nop
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9674 int i;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"
9677 then :
9678 xorg_cv_cc_flag_unknown_warning_option=yes
9679 else $as_nop
9680 xorg_cv_cc_flag_unknown_warning_option=no
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9683 fi
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9687 CFLAGS="$xorg_testset_save_CFLAGS"
9688 fi
9689
9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693 fi
9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9698 then :
9699 printf %s "(cached) " >&6
9700 else $as_nop
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 int i;
9704 _ACEOF
9705 if ac_fn_c_try_compile "$LINENO"
9706 then :
9707 xorg_cv_cc_flag_unused_command_line_argument=yes
9708 else $as_nop
9709 xorg_cv_cc_flag_unused_command_line_argument=no
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712 fi
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717 fi
9718
9719 found="no"
9720
9721 if test $found = "no" ; then
9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 fi
9725
9726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728 fi
9729
9730 CFLAGS="$CFLAGS -Wmissing-braces"
9731
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9733 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9734 cacheid=xorg_cv_cc_flag__Wmissing_braces
9735 if eval test \${$cacheid+y}
9736 then :
9737 printf %s "(cached) " >&6
9738 else $as_nop
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 int i;
9742 int
9743 main (void)
9744 {
9745
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 if ac_fn_c_try_link "$LINENO"
9751 then :
9752 eval $cacheid=yes
9753 else $as_nop
9754 eval $cacheid=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9757 conftest$ac_exeext conftest.$ac_ext
9758 fi
9759
9760
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762
9763 eval supported=\$$cacheid
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9765 printf "%s\n" "$supported" >&6; }
9766 if test "$supported" = "yes" ; then
9767 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9768 found="yes"
9769 fi
9770 fi
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 xorg_testset_save_CFLAGS="$CFLAGS"
9787
9788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9792 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9793 then :
9794 printf %s "(cached) " >&6
9795 else $as_nop
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 int i;
9799 _ACEOF
9800 if ac_fn_c_try_compile "$LINENO"
9801 then :
9802 xorg_cv_cc_flag_unknown_warning_option=yes
9803 else $as_nop
9804 xorg_cv_cc_flag_unknown_warning_option=no
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9807 fi
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9809 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9811 CFLAGS="$xorg_testset_save_CFLAGS"
9812 fi
9813
9814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817 fi
9818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9820 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9821 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9822 then :
9823 printf %s "(cached) " >&6
9824 else $as_nop
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 int i;
9828 _ACEOF
9829 if ac_fn_c_try_compile "$LINENO"
9830 then :
9831 xorg_cv_cc_flag_unused_command_line_argument=yes
9832 else $as_nop
9833 xorg_cv_cc_flag_unused_command_line_argument=no
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836 fi
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9838 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9840 CFLAGS="$xorg_testset_save_CFLAGS"
9841 fi
9842
9843 found="no"
9844
9845 if test $found = "no" ; then
9846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848 fi
9849
9850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9852 fi
9853
9854 CFLAGS="$CFLAGS -Wsequence-point"
9855
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9857 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9858 cacheid=xorg_cv_cc_flag__Wsequence_point
9859 if eval test \${$cacheid+y}
9860 then :
9861 printf %s "(cached) " >&6
9862 else $as_nop
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 int i;
9866 int
9867 main (void)
9868 {
9869
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 if ac_fn_c_try_link "$LINENO"
9875 then :
9876 eval $cacheid=yes
9877 else $as_nop
9878 eval $cacheid=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9881 conftest$ac_exeext conftest.$ac_ext
9882 fi
9883
9884
9885 CFLAGS="$xorg_testset_save_CFLAGS"
9886
9887 eval supported=\$$cacheid
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9889 printf "%s\n" "$supported" >&6; }
9890 if test "$supported" = "yes" ; then
9891 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9892 found="yes"
9893 fi
9894 fi
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910 xorg_testset_save_CFLAGS="$CFLAGS"
9911
9912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9916 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9917 then :
9918 printf %s "(cached) " >&6
9919 else $as_nop
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int i;
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"
9925 then :
9926 xorg_cv_cc_flag_unknown_warning_option=yes
9927 else $as_nop
9928 xorg_cv_cc_flag_unknown_warning_option=no
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9931 fi
9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9933 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9935 CFLAGS="$xorg_testset_save_CFLAGS"
9936 fi
9937
9938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9941 fi
9942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9944 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9945 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9946 then :
9947 printf %s "(cached) " >&6
9948 else $as_nop
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 int i;
9952 _ACEOF
9953 if ac_fn_c_try_compile "$LINENO"
9954 then :
9955 xorg_cv_cc_flag_unused_command_line_argument=yes
9956 else $as_nop
9957 xorg_cv_cc_flag_unused_command_line_argument=no
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960 fi
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965 fi
9966
9967 found="no"
9968
9969 if test $found = "no" ; then
9970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972 fi
9973
9974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9976 fi
9977
9978 CFLAGS="$CFLAGS -Wreturn-type"
9979
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9981 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9982 cacheid=xorg_cv_cc_flag__Wreturn_type
9983 if eval test \${$cacheid+y}
9984 then :
9985 printf %s "(cached) " >&6
9986 else $as_nop
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 int i;
9990 int
9991 main (void)
9992 {
9993
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 if ac_fn_c_try_link "$LINENO"
9999 then :
10000 eval $cacheid=yes
10001 else $as_nop
10002 eval $cacheid=no
10003 fi
10004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10005 conftest$ac_exeext conftest.$ac_ext
10006 fi
10007
10008
10009 CFLAGS="$xorg_testset_save_CFLAGS"
10010
10011 eval supported=\$$cacheid
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10013 printf "%s\n" "$supported" >&6; }
10014 if test "$supported" = "yes" ; then
10015 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10016 found="yes"
10017 fi
10018 fi
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034 xorg_testset_save_CFLAGS="$CFLAGS"
10035
10036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10039 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10040 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10041 then :
10042 printf %s "(cached) " >&6
10043 else $as_nop
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 int i;
10047 _ACEOF
10048 if ac_fn_c_try_compile "$LINENO"
10049 then :
10050 xorg_cv_cc_flag_unknown_warning_option=yes
10051 else $as_nop
10052 xorg_cv_cc_flag_unknown_warning_option=no
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10055 fi
10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10057 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10059 CFLAGS="$xorg_testset_save_CFLAGS"
10060 fi
10061
10062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065 fi
10066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10068 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10069 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10070 then :
10071 printf %s "(cached) " >&6
10072 else $as_nop
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10075 int i;
10076 _ACEOF
10077 if ac_fn_c_try_compile "$LINENO"
10078 then :
10079 xorg_cv_cc_flag_unused_command_line_argument=yes
10080 else $as_nop
10081 xorg_cv_cc_flag_unused_command_line_argument=no
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10084 fi
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10086 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10088 CFLAGS="$xorg_testset_save_CFLAGS"
10089 fi
10090
10091 found="no"
10092
10093 if test $found = "no" ; then
10094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10096 fi
10097
10098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10100 fi
10101
10102 CFLAGS="$CFLAGS -Wtrigraphs"
10103
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10105 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10106 cacheid=xorg_cv_cc_flag__Wtrigraphs
10107 if eval test \${$cacheid+y}
10108 then :
10109 printf %s "(cached) " >&6
10110 else $as_nop
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 int i;
10114 int
10115 main (void)
10116 {
10117
10118 ;
10119 return 0;
10120 }
10121 _ACEOF
10122 if ac_fn_c_try_link "$LINENO"
10123 then :
10124 eval $cacheid=yes
10125 else $as_nop
10126 eval $cacheid=no
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10129 conftest$ac_exeext conftest.$ac_ext
10130 fi
10131
10132
10133 CFLAGS="$xorg_testset_save_CFLAGS"
10134
10135 eval supported=\$$cacheid
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10137 printf "%s\n" "$supported" >&6; }
10138 if test "$supported" = "yes" ; then
10139 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10140 found="yes"
10141 fi
10142 fi
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158 xorg_testset_save_CFLAGS="$CFLAGS"
10159
10160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10164 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10165 then :
10166 printf %s "(cached) " >&6
10167 else $as_nop
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"
10173 then :
10174 xorg_cv_cc_flag_unknown_warning_option=yes
10175 else $as_nop
10176 xorg_cv_cc_flag_unknown_warning_option=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10179 fi
10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10181 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10183 CFLAGS="$xorg_testset_save_CFLAGS"
10184 fi
10185
10186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10189 fi
10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10194 then :
10195 printf %s "(cached) " >&6
10196 else $as_nop
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 _ACEOF
10201 if ac_fn_c_try_compile "$LINENO"
10202 then :
10203 xorg_cv_cc_flag_unused_command_line_argument=yes
10204 else $as_nop
10205 xorg_cv_cc_flag_unused_command_line_argument=no
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208 fi
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10210 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10212 CFLAGS="$xorg_testset_save_CFLAGS"
10213 fi
10214
10215 found="no"
10216
10217 if test $found = "no" ; then
10218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10220 fi
10221
10222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10224 fi
10225
10226 CFLAGS="$CFLAGS -Warray-bounds"
10227
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10229 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10230 cacheid=xorg_cv_cc_flag__Warray_bounds
10231 if eval test \${$cacheid+y}
10232 then :
10233 printf %s "(cached) " >&6
10234 else $as_nop
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10237 int i;
10238 int
10239 main (void)
10240 {
10241
10242 ;
10243 return 0;
10244 }
10245 _ACEOF
10246 if ac_fn_c_try_link "$LINENO"
10247 then :
10248 eval $cacheid=yes
10249 else $as_nop
10250 eval $cacheid=no
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10253 conftest$ac_exeext conftest.$ac_ext
10254 fi
10255
10256
10257 CFLAGS="$xorg_testset_save_CFLAGS"
10258
10259 eval supported=\$$cacheid
10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10261 printf "%s\n" "$supported" >&6; }
10262 if test "$supported" = "yes" ; then
10263 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10264 found="yes"
10265 fi
10266 fi
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282 xorg_testset_save_CFLAGS="$CFLAGS"
10283
10284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10287 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10288 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10289 then :
10290 printf %s "(cached) " >&6
10291 else $as_nop
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 int i;
10295 _ACEOF
10296 if ac_fn_c_try_compile "$LINENO"
10297 then :
10298 xorg_cv_cc_flag_unknown_warning_option=yes
10299 else $as_nop
10300 xorg_cv_cc_flag_unknown_warning_option=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10303 fi
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10305 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10307 CFLAGS="$xorg_testset_save_CFLAGS"
10308 fi
10309
10310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10313 fi
10314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10316 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10317 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10318 then :
10319 printf %s "(cached) " >&6
10320 else $as_nop
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 int i;
10324 _ACEOF
10325 if ac_fn_c_try_compile "$LINENO"
10326 then :
10327 xorg_cv_cc_flag_unused_command_line_argument=yes
10328 else $as_nop
10329 xorg_cv_cc_flag_unused_command_line_argument=no
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10332 fi
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10334 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10336 CFLAGS="$xorg_testset_save_CFLAGS"
10337 fi
10338
10339 found="no"
10340
10341 if test $found = "no" ; then
10342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344 fi
10345
10346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10348 fi
10349
10350 CFLAGS="$CFLAGS -Wwrite-strings"
10351
10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10353 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10354 cacheid=xorg_cv_cc_flag__Wwrite_strings
10355 if eval test \${$cacheid+y}
10356 then :
10357 printf %s "(cached) " >&6
10358 else $as_nop
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 int i;
10362 int
10363 main (void)
10364 {
10365
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"
10371 then :
10372 eval $cacheid=yes
10373 else $as_nop
10374 eval $cacheid=no
10375 fi
10376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10377 conftest$ac_exeext conftest.$ac_ext
10378 fi
10379
10380
10381 CFLAGS="$xorg_testset_save_CFLAGS"
10382
10383 eval supported=\$$cacheid
10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10385 printf "%s\n" "$supported" >&6; }
10386 if test "$supported" = "yes" ; then
10387 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10388 found="yes"
10389 fi
10390 fi
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406 xorg_testset_save_CFLAGS="$CFLAGS"
10407
10408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10411 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10412 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10413 then :
10414 printf %s "(cached) " >&6
10415 else $as_nop
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 int i;
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"
10421 then :
10422 xorg_cv_cc_flag_unknown_warning_option=yes
10423 else $as_nop
10424 xorg_cv_cc_flag_unknown_warning_option=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10427 fi
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10429 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10431 CFLAGS="$xorg_testset_save_CFLAGS"
10432 fi
10433
10434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10437 fi
10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10442 then :
10443 printf %s "(cached) " >&6
10444 else $as_nop
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 int i;
10448 _ACEOF
10449 if ac_fn_c_try_compile "$LINENO"
10450 then :
10451 xorg_cv_cc_flag_unused_command_line_argument=yes
10452 else $as_nop
10453 xorg_cv_cc_flag_unused_command_line_argument=no
10454 fi
10455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10456 fi
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10458 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10460 CFLAGS="$xorg_testset_save_CFLAGS"
10461 fi
10462
10463 found="no"
10464
10465 if test $found = "no" ; then
10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468 fi
10469
10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472 fi
10473
10474 CFLAGS="$CFLAGS -Waddress"
10475
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10477 printf %s "checking if $CC supports -Waddress... " >&6; }
10478 cacheid=xorg_cv_cc_flag__Waddress
10479 if eval test \${$cacheid+y}
10480 then :
10481 printf %s "(cached) " >&6
10482 else $as_nop
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 int i;
10486 int
10487 main (void)
10488 {
10489
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 if ac_fn_c_try_link "$LINENO"
10495 then :
10496 eval $cacheid=yes
10497 else $as_nop
10498 eval $cacheid=no
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10501 conftest$ac_exeext conftest.$ac_ext
10502 fi
10503
10504
10505 CFLAGS="$xorg_testset_save_CFLAGS"
10506
10507 eval supported=\$$cacheid
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10509 printf "%s\n" "$supported" >&6; }
10510 if test "$supported" = "yes" ; then
10511 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10512 found="yes"
10513 fi
10514 fi
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530 xorg_testset_save_CFLAGS="$CFLAGS"
10531
10532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10536 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else $as_nop
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 int i;
10543 _ACEOF
10544 if ac_fn_c_try_compile "$LINENO"
10545 then :
10546 xorg_cv_cc_flag_unknown_warning_option=yes
10547 else $as_nop
10548 xorg_cv_cc_flag_unknown_warning_option=no
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10551 fi
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10555 CFLAGS="$xorg_testset_save_CFLAGS"
10556 fi
10557
10558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10561 fi
10562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10566 then :
10567 printf %s "(cached) " >&6
10568 else $as_nop
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 int i;
10572 _ACEOF
10573 if ac_fn_c_try_compile "$LINENO"
10574 then :
10575 xorg_cv_cc_flag_unused_command_line_argument=yes
10576 else $as_nop
10577 xorg_cv_cc_flag_unused_command_line_argument=no
10578 fi
10579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10580 fi
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584 CFLAGS="$xorg_testset_save_CFLAGS"
10585 fi
10586
10587 found="no"
10588
10589 if test $found = "no" ; then
10590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592 fi
10593
10594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596 fi
10597
10598 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10599
10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10601 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10602 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10603 if eval test \${$cacheid+y}
10604 then :
10605 printf %s "(cached) " >&6
10606 else $as_nop
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609 int i;
10610 int
10611 main (void)
10612 {
10613
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"
10619 then :
10620 eval $cacheid=yes
10621 else $as_nop
10622 eval $cacheid=no
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10625 conftest$ac_exeext conftest.$ac_ext
10626 fi
10627
10628
10629 CFLAGS="$xorg_testset_save_CFLAGS"
10630
10631 eval supported=\$$cacheid
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10633 printf "%s\n" "$supported" >&6; }
10634 if test "$supported" = "yes" ; then
10635 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10636 found="yes"
10637 fi
10638 fi
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654 xorg_testset_save_CFLAGS="$CFLAGS"
10655
10656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10659 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10660 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10661 then :
10662 printf %s "(cached) " >&6
10663 else $as_nop
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 int i;
10667 _ACEOF
10668 if ac_fn_c_try_compile "$LINENO"
10669 then :
10670 xorg_cv_cc_flag_unknown_warning_option=yes
10671 else $as_nop
10672 xorg_cv_cc_flag_unknown_warning_option=no
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10675 fi
10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10677 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10679 CFLAGS="$xorg_testset_save_CFLAGS"
10680 fi
10681
10682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10685 fi
10686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10688 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10689 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10690 then :
10691 printf %s "(cached) " >&6
10692 else $as_nop
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 int i;
10696 _ACEOF
10697 if ac_fn_c_try_compile "$LINENO"
10698 then :
10699 xorg_cv_cc_flag_unused_command_line_argument=yes
10700 else $as_nop
10701 xorg_cv_cc_flag_unused_command_line_argument=no
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10704 fi
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10706 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10708 CFLAGS="$xorg_testset_save_CFLAGS"
10709 fi
10710
10711 found="no"
10712
10713 if test $found = "no" ; then
10714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10716 fi
10717
10718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10720 fi
10721
10722 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10723
10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10725 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10726 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10727 if eval test \${$cacheid+y}
10728 then :
10729 printf %s "(cached) " >&6
10730 else $as_nop
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 int i;
10734 int
10735 main (void)
10736 {
10737
10738 ;
10739 return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"
10743 then :
10744 eval $cacheid=yes
10745 else $as_nop
10746 eval $cacheid=no
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10749 conftest$ac_exeext conftest.$ac_ext
10750 fi
10751
10752
10753 CFLAGS="$xorg_testset_save_CFLAGS"
10754
10755 eval supported=\$$cacheid
10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10757 printf "%s\n" "$supported" >&6; }
10758 if test "$supported" = "yes" ; then
10759 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10760 found="yes"
10761 fi
10762 fi
10763
10764
10765 fi
10766
10767
10768
10769
10770
10771
10772
10773 CWARNFLAGS="$BASE_CFLAGS"
10774 if test "x$GCC" = xyes ; then
10775 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10776 fi
10777
10778
10779
10780
10781
10782
10783
10784
10785 # Check whether --enable-strict-compilation was given.
10786 if test ${enable_strict_compilation+y}
10787 then :
10788 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10789 else $as_nop
10790 STRICT_COMPILE=no
10791 fi
10792
10793
10794
10795
10796
10797
10798 STRICT_CFLAGS=""
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812 xorg_testset_save_CFLAGS="$CFLAGS"
10813
10814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10819 then :
10820 printf %s "(cached) " >&6
10821 else $as_nop
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 int i;
10825 _ACEOF
10826 if ac_fn_c_try_compile "$LINENO"
10827 then :
10828 xorg_cv_cc_flag_unknown_warning_option=yes
10829 else $as_nop
10830 xorg_cv_cc_flag_unknown_warning_option=no
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10833 fi
10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10837 CFLAGS="$xorg_testset_save_CFLAGS"
10838 fi
10839
10840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10843 fi
10844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10848 then :
10849 printf %s "(cached) " >&6
10850 else $as_nop
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853 int i;
10854 _ACEOF
10855 if ac_fn_c_try_compile "$LINENO"
10856 then :
10857 xorg_cv_cc_flag_unused_command_line_argument=yes
10858 else $as_nop
10859 xorg_cv_cc_flag_unused_command_line_argument=no
10860 fi
10861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10862 fi
10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10866 CFLAGS="$xorg_testset_save_CFLAGS"
10867 fi
10868
10869 found="no"
10870
10871 if test $found = "no" ; then
10872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10874 fi
10875
10876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10878 fi
10879
10880 CFLAGS="$CFLAGS -pedantic"
10881
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10883 printf %s "checking if $CC supports -pedantic... " >&6; }
10884 cacheid=xorg_cv_cc_flag__pedantic
10885 if eval test \${$cacheid+y}
10886 then :
10887 printf %s "(cached) " >&6
10888 else $as_nop
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 int i;
10892 int
10893 main (void)
10894 {
10895
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"
10901 then :
10902 eval $cacheid=yes
10903 else $as_nop
10904 eval $cacheid=no
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10907 conftest$ac_exeext conftest.$ac_ext
10908 fi
10909
10910
10911 CFLAGS="$xorg_testset_save_CFLAGS"
10912
10913 eval supported=\$$cacheid
10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10915 printf "%s\n" "$supported" >&6; }
10916 if test "$supported" = "yes" ; then
10917 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10918 found="yes"
10919 fi
10920 fi
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936 xorg_testset_save_CFLAGS="$CFLAGS"
10937
10938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10942 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10943 then :
10944 printf %s "(cached) " >&6
10945 else $as_nop
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 int i;
10949 _ACEOF
10950 if ac_fn_c_try_compile "$LINENO"
10951 then :
10952 xorg_cv_cc_flag_unknown_warning_option=yes
10953 else $as_nop
10954 xorg_cv_cc_flag_unknown_warning_option=no
10955 fi
10956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10957 fi
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10961 CFLAGS="$xorg_testset_save_CFLAGS"
10962 fi
10963
10964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10967 fi
10968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10972 then :
10973 printf %s "(cached) " >&6
10974 else $as_nop
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977 int i;
10978 _ACEOF
10979 if ac_fn_c_try_compile "$LINENO"
10980 then :
10981 xorg_cv_cc_flag_unused_command_line_argument=yes
10982 else $as_nop
10983 xorg_cv_cc_flag_unused_command_line_argument=no
10984 fi
10985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10986 fi
10987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10988 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10990 CFLAGS="$xorg_testset_save_CFLAGS"
10991 fi
10992
10993 found="no"
10994
10995 if test $found = "no" ; then
10996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10998 fi
10999
11000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11002 fi
11003
11004 CFLAGS="$CFLAGS -Werror"
11005
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11007 printf %s "checking if $CC supports -Werror... " >&6; }
11008 cacheid=xorg_cv_cc_flag__Werror
11009 if eval test \${$cacheid+y}
11010 then :
11011 printf %s "(cached) " >&6
11012 else $as_nop
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11015 int i;
11016 int
11017 main (void)
11018 {
11019
11020 ;
11021 return 0;
11022 }
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"
11025 then :
11026 eval $cacheid=yes
11027 else $as_nop
11028 eval $cacheid=no
11029 fi
11030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11031 conftest$ac_exeext conftest.$ac_ext
11032 fi
11033
11034
11035 CFLAGS="$xorg_testset_save_CFLAGS"
11036
11037 eval supported=\$$cacheid
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11039 printf "%s\n" "$supported" >&6; }
11040 if test "$supported" = "yes" ; then
11041 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11042 found="yes"
11043 fi
11044 fi
11045
11046 if test $found = "no" ; then
11047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11049 fi
11050
11051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11053 fi
11054
11055 CFLAGS="$CFLAGS -errwarn"
11056
11057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11058 printf %s "checking if $CC supports -errwarn... " >&6; }
11059 cacheid=xorg_cv_cc_flag__errwarn
11060 if eval test \${$cacheid+y}
11061 then :
11062 printf %s "(cached) " >&6
11063 else $as_nop
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 int i;
11067 int
11068 main (void)
11069 {
11070
11071 ;
11072 return 0;
11073 }
11074 _ACEOF
11075 if ac_fn_c_try_link "$LINENO"
11076 then :
11077 eval $cacheid=yes
11078 else $as_nop
11079 eval $cacheid=no
11080 fi
11081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11082 conftest$ac_exeext conftest.$ac_ext
11083 fi
11084
11085
11086 CFLAGS="$xorg_testset_save_CFLAGS"
11087
11088 eval supported=\$$cacheid
11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11090 printf "%s\n" "$supported" >&6; }
11091 if test "$supported" = "yes" ; then
11092 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11093 found="yes"
11094 fi
11095 fi
11096
11097
11098
11099 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11100 # activate it with -Werror, so we add it here explicitly.
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114 xorg_testset_save_CFLAGS="$CFLAGS"
11115
11116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11119 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11120 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11121 then :
11122 printf %s "(cached) " >&6
11123 else $as_nop
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126 int i;
11127 _ACEOF
11128 if ac_fn_c_try_compile "$LINENO"
11129 then :
11130 xorg_cv_cc_flag_unknown_warning_option=yes
11131 else $as_nop
11132 xorg_cv_cc_flag_unknown_warning_option=no
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11135 fi
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11137 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11139 CFLAGS="$xorg_testset_save_CFLAGS"
11140 fi
11141
11142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11145 fi
11146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11148 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11149 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11150 then :
11151 printf %s "(cached) " >&6
11152 else $as_nop
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11155 int i;
11156 _ACEOF
11157 if ac_fn_c_try_compile "$LINENO"
11158 then :
11159 xorg_cv_cc_flag_unused_command_line_argument=yes
11160 else $as_nop
11161 xorg_cv_cc_flag_unused_command_line_argument=no
11162 fi
11163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11164 fi
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11168 CFLAGS="$xorg_testset_save_CFLAGS"
11169 fi
11170
11171 found="no"
11172
11173 if test $found = "no" ; then
11174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11176 fi
11177
11178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11180 fi
11181
11182 CFLAGS="$CFLAGS -Werror=attributes"
11183
11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11185 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11186 cacheid=xorg_cv_cc_flag__Werror_attributes
11187 if eval test \${$cacheid+y}
11188 then :
11189 printf %s "(cached) " >&6
11190 else $as_nop
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193 int i;
11194 int
11195 main (void)
11196 {
11197
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"
11203 then :
11204 eval $cacheid=yes
11205 else $as_nop
11206 eval $cacheid=no
11207 fi
11208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11209 conftest$ac_exeext conftest.$ac_ext
11210 fi
11211
11212
11213 CFLAGS="$xorg_testset_save_CFLAGS"
11214
11215 eval supported=\$$cacheid
11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11217 printf "%s\n" "$supported" >&6; }
11218 if test "$supported" = "yes" ; then
11219 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11220 found="yes"
11221 fi
11222 fi
11223
11224
11225
11226 if test "x$STRICT_COMPILE" = "xyes"; then
11227 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11228 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11229 fi
11230
11231
11232
11233
11234
11235
11236 cat >>confdefs.h <<_ACEOF
11237 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11238 _ACEOF
11239
11240 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11241 if test "x$PVM" = "x"; then
11242 PVM="0"
11243 fi
11244
11245 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11246
11247 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11248 if test "x$PVP" = "x"; then
11249 PVP="0"
11250 fi
11251
11252 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11253
11254
11255
11256 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11257 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11258 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11259 touch \$(top_srcdir)/ChangeLog; \
11260 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11261
11262
11263
11264
11265 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11266 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11267 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11268 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11269 touch \$(top_srcdir)/INSTALL; \
11270 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11271
11272
11273
11274
11275
11276
11277 case $host_os in
11278 solaris*)
11279 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11280 # check for a man page file found in later versions that use
11281 # traditional section numbers instead
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11283 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11284 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11285 then :
11286 printf %s "(cached) " >&6
11287 else $as_nop
11288 test "$cross_compiling" = yes &&
11289 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11290 if test -r "/usr/share/man/man7/attributes.7"; then
11291 ac_cv_file__usr_share_man_man7_attributes_7=yes
11292 else
11293 ac_cv_file__usr_share_man_man7_attributes_7=no
11294 fi
11295 fi
11296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11297 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11298 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11299 then :
11300 SYSV_MAN_SECTIONS=false
11301 else $as_nop
11302 SYSV_MAN_SECTIONS=true
11303 fi
11304
11305 ;;
11306 *) SYSV_MAN_SECTIONS=false ;;
11307 esac
11308
11309 if test x$APP_MAN_SUFFIX = x ; then
11310 APP_MAN_SUFFIX=1
11311 fi
11312 if test x$APP_MAN_DIR = x ; then
11313 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11314 fi
11315
11316 if test x$LIB_MAN_SUFFIX = x ; then
11317 LIB_MAN_SUFFIX=3
11318 fi
11319 if test x$LIB_MAN_DIR = x ; then
11320 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11321 fi
11322
11323 if test x$FILE_MAN_SUFFIX = x ; then
11324 case $SYSV_MAN_SECTIONS in
11325 true) FILE_MAN_SUFFIX=4 ;;
11326 *) FILE_MAN_SUFFIX=5 ;;
11327 esac
11328 fi
11329 if test x$FILE_MAN_DIR = x ; then
11330 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11331 fi
11332
11333 if test x$MISC_MAN_SUFFIX = x ; then
11334 case $SYSV_MAN_SECTIONS in
11335 true) MISC_MAN_SUFFIX=5 ;;
11336 *) MISC_MAN_SUFFIX=7 ;;
11337 esac
11338 fi
11339 if test x$MISC_MAN_DIR = x ; then
11340 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11341 fi
11342
11343 if test x$DRIVER_MAN_SUFFIX = x ; then
11344 case $SYSV_MAN_SECTIONS in
11345 true) DRIVER_MAN_SUFFIX=7 ;;
11346 *) DRIVER_MAN_SUFFIX=4 ;;
11347 esac
11348 fi
11349 if test x$DRIVER_MAN_DIR = x ; then
11350 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11351 fi
11352
11353 if test x$ADMIN_MAN_SUFFIX = x ; then
11354 case $SYSV_MAN_SECTIONS in
11355 true) ADMIN_MAN_SUFFIX=1m ;;
11356 *) ADMIN_MAN_SUFFIX=8 ;;
11357 esac
11358 fi
11359 if test x$ADMIN_MAN_DIR = x ; then
11360 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11361 fi
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377 XORG_MAN_PAGE="X Version 11"
11378
11379 MAN_SUBSTS="\
11380 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11381 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11382 -e 's|__xservername__|Xorg|g' \
11383 -e 's|__xconfigfile__|xorg.conf|g' \
11384 -e 's|__projectroot__|\$(prefix)|g' \
11385 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11386 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11387 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11388 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11389 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11390 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11391 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11392
11393
11394
11395 # Check whether --enable-silent-rules was given.
11396 if test ${enable_silent_rules+y}
11397 then :
11398 enableval=$enable_silent_rules;
11399 fi
11400
11401 case $enable_silent_rules in # (((
11402 yes) AM_DEFAULT_VERBOSITY=0;;
11403 no) AM_DEFAULT_VERBOSITY=1;;
11404 *) AM_DEFAULT_VERBOSITY=0;;
11405 esac
11406 am_make=${MAKE-make}
11407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11408 printf %s "checking whether $am_make supports nested variables... " >&6; }
11409 if test ${am_cv_make_support_nested_variables+y}
11410 then :
11411 printf %s "(cached) " >&6
11412 else $as_nop
11413 if printf "%s\n" 'TRUE=$(BAR$(V))
11414 BAR0=false
11415 BAR1=true
11416 V=1
11417 am__doit:
11418 @$(TRUE)
11419 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11420 am_cv_make_support_nested_variables=yes
11421 else
11422 am_cv_make_support_nested_variables=no
11423 fi
11424 fi
11425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11426 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11427 if test $am_cv_make_support_nested_variables = yes; then
11428 AM_V='$(V)'
11429 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11430 else
11431 AM_V=$AM_DEFAULT_VERBOSITY
11432 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11433 fi
11434 AM_BACKSLASH='\'
11435
11436
11437
11438 ac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
11439 if test "x$ac_cv_header_net_errno_h" = xyes
11440 then :
11441 printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
11442
11443 fi
11444
11445
11446 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
11447 if test "x$ac_cv_func_reallocarray" = xyes
11448 then :
11449 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
11450
11451 fi
11452 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11453 if test "x$ac_cv_func_strlcpy" = xyes
11454 then :
11455 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11456
11457 fi
11458
11459
11460 # Checks for pkg-config packages
11461
11462 pkg_failed=no
11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
11464 printf %s "checking for XAUTH... " >&6; }
11465
11466 if test -n "$XAUTH_CFLAGS"; then
11467 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
11468 elif test -n "$PKG_CONFIG"; then
11469 if test -n "$PKG_CONFIG" && \
11470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11471 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11472 ac_status=$?
11473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; }; then
11475 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11476 test "x$?" != "x0" && pkg_failed=yes
11477 else
11478 pkg_failed=yes
11479 fi
11480 else
11481 pkg_failed=untried
11482 fi
11483 if test -n "$XAUTH_LIBS"; then
11484 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
11485 elif test -n "$PKG_CONFIG"; then
11486 if test -n "$PKG_CONFIG" && \
11487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11488 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11489 ac_status=$?
11490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11491 test $ac_status = 0; }; then
11492 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11493 test "x$?" != "x0" && pkg_failed=yes
11494 else
11495 pkg_failed=yes
11496 fi
11497 else
11498 pkg_failed=untried
11499 fi
11500
11501
11502
11503 if test $pkg_failed = yes; then
11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 printf "%s\n" "no" >&6; }
11506
11507 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11508 _pkg_short_errors_supported=yes
11509 else
11510 _pkg_short_errors_supported=no
11511 fi
11512 if test $_pkg_short_errors_supported = yes; then
11513 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11514 else
11515 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11516 fi
11517 # Put the nasty error message in config.log where it belongs
11518 echo "$XAUTH_PKG_ERRORS" >&5
11519
11520 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
11521
11522 $XAUTH_PKG_ERRORS
11523
11524 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11525 installed software in a non-standard prefix.
11526
11527 Alternatively, you may set the environment variables XAUTH_CFLAGS
11528 and XAUTH_LIBS to avoid the need to call pkg-config.
11529 See the pkg-config man page for more details." "$LINENO" 5
11530 elif test $pkg_failed = untried; then
11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 printf "%s\n" "no" >&6; }
11533 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11534 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11535 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11536 is in your PATH or set the PKG_CONFIG environment variable to the full
11537 path to pkg-config.
11538
11539 Alternatively, you may set the environment variables XAUTH_CFLAGS
11540 and XAUTH_LIBS to avoid the need to call pkg-config.
11541 See the pkg-config man page for more details.
11542
11543 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11544 See \`config.log' for more details" "$LINENO" 5; }
11545 else
11546 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
11547 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11549 printf "%s\n" "yes" >&6; }
11550
11551 fi
11552
11553 # Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
11554 # was not expanded, since xauth with no address support is rather broken.
11555 #
11556 # If you're seeing an error here, be sure you installed the lib/xtrans module
11557 # first and if it's not in the default location, that you set the ACLOCAL
11558 # environment variable to find it, such as:
11559 # ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
11560
11561
11562 # Transport selection macro from xtrans.m4
11563 # Needed to set *CONN defines for gethost.c & parsedpy.c
11564
11565
11566 case $host_os in
11567 mingw*) unixdef="no" ;;
11568 *) unixdef="yes" ;;
11569 esac
11570 # Check whether --enable-unix-transport was given.
11571 if test ${enable_unix_transport+y}
11572 then :
11573 enableval=$enable_unix_transport; UNIXCONN=$enableval
11574 else $as_nop
11575 UNIXCONN=$unixdef
11576 fi
11577
11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11579 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
11580 if test "$UNIXCONN" = "yes"; then
11581
11582 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
11583
11584 fi
11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11586 printf "%s\n" "$UNIXCONN" >&6; }
11587 # Check whether --enable-tcp-transport was given.
11588 if test ${enable_tcp_transport+y}
11589 then :
11590 enableval=$enable_tcp_transport; TCPCONN=$enableval
11591 else $as_nop
11592 TCPCONN=yes
11593 fi
11594
11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11596 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
11597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11598 printf "%s\n" "$TCPCONN" >&6; }
11599 if test "$TCPCONN" = "yes"; then
11600
11601 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
11602
11603
11604 # SVR4 hides these in libraries other than libc
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11606 printf %s "checking for library containing socket... " >&6; }
11607 if test ${ac_cv_search_socket+y}
11608 then :
11609 printf %s "(cached) " >&6
11610 else $as_nop
11611 ac_func_search_save_LIBS=$LIBS
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 char socket ();
11619 int
11620 main (void)
11621 {
11622 return socket ();
11623 ;
11624 return 0;
11625 }
11626 _ACEOF
11627 for ac_lib in '' socket
11628 do
11629 if test -z "$ac_lib"; then
11630 ac_res="none required"
11631 else
11632 ac_res=-l$ac_lib
11633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11634 fi
11635 if ac_fn_c_try_link "$LINENO"
11636 then :
11637 ac_cv_search_socket=$ac_res
11638 fi
11639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11640 conftest$ac_exeext
11641 if test ${ac_cv_search_socket+y}
11642 then :
11643 break
11644 fi
11645 done
11646 if test ${ac_cv_search_socket+y}
11647 then :
11648
11649 else $as_nop
11650 ac_cv_search_socket=no
11651 fi
11652 rm conftest.$ac_ext
11653 LIBS=$ac_func_search_save_LIBS
11654 fi
11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11656 printf "%s\n" "$ac_cv_search_socket" >&6; }
11657 ac_res=$ac_cv_search_socket
11658 if test "$ac_res" != no
11659 then :
11660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11661
11662 fi
11663
11664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11665 printf %s "checking for library containing gethostbyname... " >&6; }
11666 if test ${ac_cv_search_gethostbyname+y}
11667 then :
11668 printf %s "(cached) " >&6
11669 else $as_nop
11670 ac_func_search_save_LIBS=$LIBS
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11677 char gethostbyname ();
11678 int
11679 main (void)
11680 {
11681 return gethostbyname ();
11682 ;
11683 return 0;
11684 }
11685 _ACEOF
11686 for ac_lib in '' nsl
11687 do
11688 if test -z "$ac_lib"; then
11689 ac_res="none required"
11690 else
11691 ac_res=-l$ac_lib
11692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11693 fi
11694 if ac_fn_c_try_link "$LINENO"
11695 then :
11696 ac_cv_search_gethostbyname=$ac_res
11697 fi
11698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11699 conftest$ac_exeext
11700 if test ${ac_cv_search_gethostbyname+y}
11701 then :
11702 break
11703 fi
11704 done
11705 if test ${ac_cv_search_gethostbyname+y}
11706 then :
11707
11708 else $as_nop
11709 ac_cv_search_gethostbyname=no
11710 fi
11711 rm conftest.$ac_ext
11712 LIBS=$ac_func_search_save_LIBS
11713 fi
11714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11715 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
11716 ac_res=$ac_cv_search_gethostbyname
11717 if test "$ac_res" != no
11718 then :
11719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11720
11721 fi
11722
11723 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11725 printf %s "checking for main in -lws2_32... " >&6; }
11726 if test ${ac_cv_lib_ws2_32_main+y}
11727 then :
11728 printf %s "(cached) " >&6
11729 else $as_nop
11730 ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-lws2_32 $LIBS"
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11734
11735
11736 int
11737 main (void)
11738 {
11739 return main ();
11740 ;
11741 return 0;
11742 }
11743 _ACEOF
11744 if ac_fn_c_try_link "$LINENO"
11745 then :
11746 ac_cv_lib_ws2_32_main=yes
11747 else $as_nop
11748 ac_cv_lib_ws2_32_main=no
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11751 conftest$ac_exeext conftest.$ac_ext
11752 LIBS=$ac_check_lib_save_LIBS
11753 fi
11754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11755 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
11756 if test "x$ac_cv_lib_ws2_32_main" = xyes
11757 then :
11758 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
11759
11760 LIBS="-lws2_32 $LIBS"
11761
11762 fi
11763
11764 fi
11765
11766 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11767 # Check whether --enable-ipv6 was given.
11768 if test ${enable_ipv6+y}
11769 then :
11770 enableval=$enable_ipv6; IPV6CONN=$enableval
11771 else $as_nop
11772 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11773 if test "x$ac_cv_func_getaddrinfo" = xyes
11774 then :
11775 IPV6CONN=yes
11776 else $as_nop
11777 IPV6CONN=no
11778 fi
11779
11780 fi
11781
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11783 printf %s "checking if IPv6 support should be built... " >&6; }
11784 if test "$IPV6CONN" = "yes"; then
11785
11786 printf "%s\n" "#define IPv6 1" >>confdefs.h
11787
11788 fi
11789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11790 printf "%s\n" "$IPV6CONN" >&6; }
11791
11792 # 4.3BSD-Reno added a new member to struct sockaddr_in
11793 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11794 #include <sys/types.h>
11795 #include <sys/socket.h>
11796 #include <netinet/in.h>
11797
11798 "
11799 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
11800 then :
11801
11802 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
11803
11804 fi
11805
11806
11807 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11808 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11809 $ac_includes_default
11810 #include <sys/socket.h>
11811 "
11812 if test "x$ac_cv_type_socklen_t" = xyes
11813 then :
11814
11815 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11816
11817
11818 fi
11819
11820
11821 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11822 # _XOPEN_SOURCE to get it (such as on Solaris)
11823 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11824 $ac_includes_default
11825 #include <sys/socket.h>
11826
11827 "
11828 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11829 then :
11830
11831 fi
11832
11833 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11834 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11835 unset ac_cv_member_struct_msghdr_msg_control
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11837 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11838 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11839 #define _XOPEN_SOURCE 600
11840 $ac_includes_default
11841 #include <sys/socket.h>
11842
11843 "
11844 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11845 then :
11846
11847 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
11848
11849
11850 fi
11851
11852 fi
11853 # If that didn't work, fall back to XPG5/UNIX98 with C89
11854 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11855 unset ac_cv_member_struct_msghdr_msg_control
11856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11857 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11858 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11859 #define _XOPEN_SOURCE 500
11860 $ac_includes_default
11861 #include <sys/socket.h>
11862
11863 "
11864 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11865 then :
11866
11867 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
11868
11869
11870 fi
11871
11872 fi
11873
11874
11875
11876 fi
11877 case $host_os in
11878 solaris*|sco*|sysv4*) localdef="yes" ;;
11879 *) localdef="no" ;;
11880 esac
11881 # Check whether --enable-local-transport was given.
11882 if test ${enable_local_transport+y}
11883 then :
11884 enableval=$enable_local_transport; LOCALCONN=$enableval
11885 else $as_nop
11886 LOCALCONN=$localdef
11887 fi
11888
11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11890 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
11891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11892 printf "%s\n" "$LOCALCONN" >&6; }
11893 if test "$LOCALCONN" = "yes"; then
11894
11895 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
11896
11897 fi
11898
11899 # Other functions Xtrans may need
11900 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11901 if test "x$ac_cv_func_strcasecmp" = xyes
11902 then :
11903 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11904
11905 fi
11906 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11907 if test "x$ac_cv_func_strlcpy" = xyes
11908 then :
11909 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11910
11911 fi
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921 # Check whether --with-lint was given.
11922 if test ${with_lint+y}
11923 then :
11924 withval=$with_lint; use_lint=$withval
11925 else $as_nop
11926 use_lint=no
11927 fi
11928
11929
11930 # Obtain platform specific info like program name and options
11931 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11932 case $host_os in
11933 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11934 lint_name=splint
11935 lint_options="-badflag"
11936 ;;
11937 *freebsd* | *netbsd*)
11938 lint_name=lint
11939 lint_options="-u -b"
11940 ;;
11941 *solaris*)
11942 lint_name=lint
11943 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11944 ;;
11945 esac
11946
11947 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11948 if test "x$use_lint" = x"yes" ; then
11949 # Extract the first word of "$lint_name", so it can be a program name with args.
11950 set dummy $lint_name; ac_word=$2
11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 printf %s "checking for $ac_word... " >&6; }
11953 if test ${ac_cv_path_LINT+y}
11954 then :
11955 printf %s "(cached) " >&6
11956 else $as_nop
11957 case $LINT in
11958 [\\/]* | ?:[\\/]*)
11959 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11960 ;;
11961 *)
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965 IFS=$as_save_IFS
11966 case $as_dir in #(((
11967 '') as_dir=./ ;;
11968 */) ;;
11969 *) as_dir=$as_dir/ ;;
11970 esac
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11973 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977 done
11978 done
11979 IFS=$as_save_IFS
11980
11981 ;;
11982 esac
11983 fi
11984 LINT=$ac_cv_path_LINT
11985 if test -n "$LINT"; then
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11987 printf "%s\n" "$LINT" >&6; }
11988 else
11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 printf "%s\n" "no" >&6; }
11991 fi
11992
11993
11994 if test "x$LINT" = "x"; then
11995 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11996 fi
11997 elif test "x$use_lint" = x"no" ; then
11998 if test "x$LINT" != "x"; then
11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12000 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12001 fi
12002 else
12003 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12004 fi
12005
12006 # User supplied flags override default flags
12007 if test "x$LINT_FLAGS" != "x"; then
12008 lint_options=$LINT_FLAGS
12009 fi
12010
12011 LINT_FLAGS=$lint_options
12012
12013 if test "x$LINT" != x; then
12014 LINT_TRUE=
12015 LINT_FALSE='#'
12016 else
12017 LINT_TRUE='#'
12018 LINT_FALSE=
12019 fi
12020
12021
12022
12023
12024 ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
12025
12026 cat >confcache <<\_ACEOF
12027 # This file is a shell script that caches the results of configure
12028 # tests run on this system so they can be shared between configure
12029 # scripts and configure runs, see configure's option --config-cache.
12030 # It is not useful on other systems. If it contains results you don't
12031 # want to keep, you may remove or edit it.
12032 #
12033 # config.status only pays attention to the cache file if you give it
12034 # the --recheck option to rerun configure.
12035 #
12036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12038 # following values.
12039
12040 _ACEOF
12041
12042 # The following way of writing the cache mishandles newlines in values,
12043 # but we know of no workaround that is simple, portable, and efficient.
12044 # So, we kill variables containing newlines.
12045 # Ultrix sh set writes to stderr and can't be redirected directly,
12046 # and sets the high bit in the cache file unless we assign to the vars.
12047 (
12048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12049 eval ac_val=\$$ac_var
12050 case $ac_val in #(
12051 *${as_nl}*)
12052 case $ac_var in #(
12053 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12054 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12055 esac
12056 case $ac_var in #(
12057 _ | IFS | as_nl) ;; #(
12058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12059 *) { eval $ac_var=; unset $ac_var;} ;;
12060 esac ;;
12061 esac
12062 done
12063
12064 (set) 2>&1 |
12065 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12066 *${as_nl}ac_space=\ *)
12067 # `set' does not quote correctly, so add quotes: double-quote
12068 # substitution turns \\\\ into \\, and sed turns \\ into \.
12069 sed -n \
12070 "s/'/'\\\\''/g;
12071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12072 ;; #(
12073 *)
12074 # `set' quotes correctly as required by POSIX, so do not add quotes.
12075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12076 ;;
12077 esac |
12078 sort
12079 ) |
12080 sed '
12081 /^ac_cv_env_/b end
12082 t clear
12083 :clear
12084 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12085 t end
12086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12087 :end' >>confcache
12088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12089 if test -w "$cache_file"; then
12090 if test "x$cache_file" != "x/dev/null"; then
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12092 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12093 if test ! -f "$cache_file" || test -h "$cache_file"; then
12094 cat confcache >"$cache_file"
12095 else
12096 case $cache_file in #(
12097 */* | ?:*)
12098 mv -f confcache "$cache_file"$$ &&
12099 mv -f "$cache_file"$$ "$cache_file" ;; #(
12100 *)
12101 mv -f confcache "$cache_file" ;;
12102 esac
12103 fi
12104 fi
12105 else
12106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12107 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12108 fi
12109 fi
12110 rm -f confcache
12111
12112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12113 # Let make expand exec_prefix.
12114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12115
12116 DEFS=-DHAVE_CONFIG_H
12117
12118 ac_libobjs=
12119 ac_ltlibobjs=
12120 U=
12121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12122 # 1. Remove the extension, and $U if already installed.
12123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12124 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12126 # will be set to the directory where LIBOBJS objects are built.
12127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12129 done
12130 LIBOBJS=$ac_libobjs
12131
12132 LTLIBOBJS=$ac_ltlibobjs
12133
12134
12135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12136 printf %s "checking that generated files are newer than configure... " >&6; }
12137 if test -n "$am_sleep_pid"; then
12138 # Hide warnings about reused PIDs.
12139 wait $am_sleep_pid 2>/dev/null
12140 fi
12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12142 printf "%s\n" "done" >&6; }
12143 if test -n "$EXEEXT"; then
12144 am__EXEEXT_TRUE=
12145 am__EXEEXT_FALSE='#'
12146 else
12147 am__EXEEXT_TRUE='#'
12148 am__EXEEXT_FALSE=
12149 fi
12150
12151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12152 as_fn_error $? "conditional \"AMDEP\" was never defined.
12153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12154 fi
12155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12156 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12158 fi
12159 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12160 as_fn_error $? "conditional \"LINT\" was never defined.
12161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12162 fi
12163
12164 : "${CONFIG_STATUS=./config.status}"
12165 ac_write_fail=0
12166 ac_clean_files_save=$ac_clean_files
12167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12169 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12170 as_write_fail=0
12171 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12172 #! $SHELL
12173 # Generated by $as_me.
12174 # Run this file to recreate the current configuration.
12175 # Compiler output produced by configure, useful for debugging
12176 # configure, is in config.log if it exists.
12177
12178 debug=false
12179 ac_cs_recheck=false
12180 ac_cs_silent=false
12181
12182 SHELL=\${CONFIG_SHELL-$SHELL}
12183 export SHELL
12184 _ASEOF
12185 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12186 ## -------------------- ##
12187 ## M4sh Initialization. ##
12188 ## -------------------- ##
12189
12190 # Be more Bourne compatible
12191 DUALCASE=1; export DUALCASE # for MKS sh
12192 as_nop=:
12193 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12194 then :
12195 emulate sh
12196 NULLCMD=:
12197 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12198 # is contrary to our usage. Disable this feature.
12199 alias -g '${1+"$@"}'='"$@"'
12200 setopt NO_GLOB_SUBST
12201 else $as_nop
12202 case `(set -o) 2>/dev/null` in #(
12203 *posix*) :
12204 set -o posix ;; #(
12205 *) :
12206 ;;
12207 esac
12208 fi
12209
12210
12211
12212 # Reset variables that may have inherited troublesome values from
12213 # the environment.
12214
12215 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12216 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12217 # side effect of setting IFS to empty, thus disabling word splitting.)
12218 # Quoting is to prevent editors from complaining about space-tab.
12219 as_nl='
12220 '
12221 export as_nl
12222 IFS=" "" $as_nl"
12223
12224 PS1='$ '
12225 PS2='> '
12226 PS4='+ '
12227
12228 # Ensure predictable behavior from utilities with locale-dependent output.
12229 LC_ALL=C
12230 export LC_ALL
12231 LANGUAGE=C
12232 export LANGUAGE
12233
12234 # We cannot yet rely on "unset" to work, but we need these variables
12235 # to be unset--not just set to an empty or harmless value--now, to
12236 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12237 # also avoids known problems related to "unset" and subshell syntax
12238 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12239 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12240 do eval test \${$as_var+y} \
12241 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12242 done
12243
12244 # Ensure that fds 0, 1, and 2 are open.
12245 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12246 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12247 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12248
12249 # The user is always right.
12250 if ${PATH_SEPARATOR+false} :; then
12251 PATH_SEPARATOR=:
12252 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12253 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12254 PATH_SEPARATOR=';'
12255 }
12256 fi
12257
12258
12259 # Find who we are. Look in the path if we contain no directory separator.
12260 as_myself=
12261 case $0 in #((
12262 *[\\/]* ) as_myself=$0 ;;
12263 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12265 do
12266 IFS=$as_save_IFS
12267 case $as_dir in #(((
12268 '') as_dir=./ ;;
12269 */) ;;
12270 *) as_dir=$as_dir/ ;;
12271 esac
12272 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12273 done
12274 IFS=$as_save_IFS
12275
12276 ;;
12277 esac
12278 # We did not find ourselves, most probably we were run as `sh COMMAND'
12279 # in which case we are not to be found in the path.
12280 if test "x$as_myself" = x; then
12281 as_myself=$0
12282 fi
12283 if test ! -f "$as_myself"; then
12284 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12285 exit 1
12286 fi
12287
12288
12289
12290 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12291 # ----------------------------------------
12292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12294 # script with STATUS, using 1 if that was 0.
12295 as_fn_error ()
12296 {
12297 as_status=$1; test $as_status -eq 0 && as_status=1
12298 if test "$4"; then
12299 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12301 fi
12302 printf "%s\n" "$as_me: error: $2" >&2
12303 as_fn_exit $as_status
12304 } # as_fn_error
12305
12306
12307
12308 # as_fn_set_status STATUS
12309 # -----------------------
12310 # Set $? to STATUS, without forking.
12311 as_fn_set_status ()
12312 {
12313 return $1
12314 } # as_fn_set_status
12315
12316 # as_fn_exit STATUS
12317 # -----------------
12318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12319 as_fn_exit ()
12320 {
12321 set +e
12322 as_fn_set_status $1
12323 exit $1
12324 } # as_fn_exit
12325
12326 # as_fn_unset VAR
12327 # ---------------
12328 # Portably unset VAR.
12329 as_fn_unset ()
12330 {
12331 { eval $1=; unset $1;}
12332 }
12333 as_unset=as_fn_unset
12334
12335 # as_fn_append VAR VALUE
12336 # ----------------------
12337 # Append the text in VALUE to the end of the definition contained in VAR. Take
12338 # advantage of any shell optimizations that allow amortized linear growth over
12339 # repeated appends, instead of the typical quadratic growth present in naive
12340 # implementations.
12341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12342 then :
12343 eval 'as_fn_append ()
12344 {
12345 eval $1+=\$2
12346 }'
12347 else $as_nop
12348 as_fn_append ()
12349 {
12350 eval $1=\$$1\$2
12351 }
12352 fi # as_fn_append
12353
12354 # as_fn_arith ARG...
12355 # ------------------
12356 # Perform arithmetic evaluation on the ARGs, and store the result in the
12357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12358 # must be portable across $(()) and expr.
12359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12360 then :
12361 eval 'as_fn_arith ()
12362 {
12363 as_val=$(( $* ))
12364 }'
12365 else $as_nop
12366 as_fn_arith ()
12367 {
12368 as_val=`expr "$@" || test $? -eq 1`
12369 }
12370 fi # as_fn_arith
12371
12372
12373 if expr a : '\(a\)' >/dev/null 2>&1 &&
12374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12375 as_expr=expr
12376 else
12377 as_expr=false
12378 fi
12379
12380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12381 as_basename=basename
12382 else
12383 as_basename=false
12384 fi
12385
12386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12387 as_dirname=dirname
12388 else
12389 as_dirname=false
12390 fi
12391
12392 as_me=`$as_basename -- "$0" ||
12393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12394 X"$0" : 'X\(//\)$' \| \
12395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12396 printf "%s\n" X/"$0" |
12397 sed '/^.*\/\([^/][^/]*\)\/*$/{
12398 s//\1/
12399 q
12400 }
12401 /^X\/\(\/\/\)$/{
12402 s//\1/
12403 q
12404 }
12405 /^X\/\(\/\).*/{
12406 s//\1/
12407 q
12408 }
12409 s/.*/./; q'`
12410
12411 # Avoid depending upon Character Ranges.
12412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12415 as_cr_digits='0123456789'
12416 as_cr_alnum=$as_cr_Letters$as_cr_digits
12417
12418
12419 # Determine whether it's possible to make 'echo' print without a newline.
12420 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12421 # for compatibility with existing Makefiles.
12422 ECHO_C= ECHO_N= ECHO_T=
12423 case `echo -n x` in #(((((
12424 -n*)
12425 case `echo 'xy\c'` in
12426 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12427 xy) ECHO_C='\c';;
12428 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12429 ECHO_T=' ';;
12430 esac;;
12431 *)
12432 ECHO_N='-n';;
12433 esac
12434
12435 # For backward compatibility with old third-party macros, we provide
12436 # the shell variables $as_echo and $as_echo_n. New code should use
12437 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12438 as_echo='printf %s\n'
12439 as_echo_n='printf %s'
12440
12441 rm -f conf$$ conf$$.exe conf$$.file
12442 if test -d conf$$.dir; then
12443 rm -f conf$$.dir/conf$$.file
12444 else
12445 rm -f conf$$.dir
12446 mkdir conf$$.dir 2>/dev/null
12447 fi
12448 if (echo >conf$$.file) 2>/dev/null; then
12449 if ln -s conf$$.file conf$$ 2>/dev/null; then
12450 as_ln_s='ln -s'
12451 # ... but there are two gotchas:
12452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12454 # In both cases, we have to default to `cp -pR'.
12455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12456 as_ln_s='cp -pR'
12457 elif ln conf$$.file conf$$ 2>/dev/null; then
12458 as_ln_s=ln
12459 else
12460 as_ln_s='cp -pR'
12461 fi
12462 else
12463 as_ln_s='cp -pR'
12464 fi
12465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12466 rmdir conf$$.dir 2>/dev/null
12467
12468
12469 # as_fn_mkdir_p
12470 # -------------
12471 # Create "$as_dir" as a directory, including parents if necessary.
12472 as_fn_mkdir_p ()
12473 {
12474
12475 case $as_dir in #(
12476 -*) as_dir=./$as_dir;;
12477 esac
12478 test -d "$as_dir" || eval $as_mkdir_p || {
12479 as_dirs=
12480 while :; do
12481 case $as_dir in #(
12482 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12483 *) as_qdir=$as_dir;;
12484 esac
12485 as_dirs="'$as_qdir' $as_dirs"
12486 as_dir=`$as_dirname -- "$as_dir" ||
12487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488 X"$as_dir" : 'X\(//\)[^/]' \| \
12489 X"$as_dir" : 'X\(//\)$' \| \
12490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12491 printf "%s\n" X"$as_dir" |
12492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493 s//\1/
12494 q
12495 }
12496 /^X\(\/\/\)[^/].*/{
12497 s//\1/
12498 q
12499 }
12500 /^X\(\/\/\)$/{
12501 s//\1/
12502 q
12503 }
12504 /^X\(\/\).*/{
12505 s//\1/
12506 q
12507 }
12508 s/.*/./; q'`
12509 test -d "$as_dir" && break
12510 done
12511 test -z "$as_dirs" || eval "mkdir $as_dirs"
12512 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12513
12514
12515 } # as_fn_mkdir_p
12516 if mkdir -p . 2>/dev/null; then
12517 as_mkdir_p='mkdir -p "$as_dir"'
12518 else
12519 test -d ./-p && rmdir ./-p
12520 as_mkdir_p=false
12521 fi
12522
12523
12524 # as_fn_executable_p FILE
12525 # -----------------------
12526 # Test if FILE is an executable regular file.
12527 as_fn_executable_p ()
12528 {
12529 test -f "$1" && test -x "$1"
12530 } # as_fn_executable_p
12531 as_test_x='test -x'
12532 as_executable_p=as_fn_executable_p
12533
12534 # Sed expression to map a string onto a valid CPP name.
12535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12536
12537 # Sed expression to map a string onto a valid variable name.
12538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12539
12540
12541 exec 6>&1
12542 ## ----------------------------------- ##
12543 ## Main body of $CONFIG_STATUS script. ##
12544 ## ----------------------------------- ##
12545 _ASEOF
12546 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12547
12548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12549 # Save the log message, to keep $0 and so on meaningful, and to
12550 # report actual input values of CONFIG_FILES etc. instead of their
12551 # values after options handling.
12552 ac_log="
12553 This file was extended by xauth $as_me 1.1.2, which was
12554 generated by GNU Autoconf 2.71. Invocation command line was
12555
12556 CONFIG_FILES = $CONFIG_FILES
12557 CONFIG_HEADERS = $CONFIG_HEADERS
12558 CONFIG_LINKS = $CONFIG_LINKS
12559 CONFIG_COMMANDS = $CONFIG_COMMANDS
12560 $ $0 $@
12561
12562 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12563 "
12564
12565 _ACEOF
12566
12567 case $ac_config_files in *"
12568 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12569 esac
12570
12571 case $ac_config_headers in *"
12572 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12573 esac
12574
12575
12576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577 # Files that config.status was made for.
12578 config_files="$ac_config_files"
12579 config_headers="$ac_config_headers"
12580 config_commands="$ac_config_commands"
12581
12582 _ACEOF
12583
12584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585 ac_cs_usage="\
12586 \`$as_me' instantiates files and other configuration actions
12587 from templates according to the current configuration. Unless the files
12588 and actions are specified as TAGs, all are instantiated by default.
12589
12590 Usage: $0 [OPTION]... [TAG]...
12591
12592 -h, --help print this help, then exit
12593 -V, --version print version number and configuration settings, then exit
12594 --config print configuration, then exit
12595 -q, --quiet, --silent
12596 do not print progress messages
12597 -d, --debug don't remove temporary files
12598 --recheck update $as_me by reconfiguring in the same conditions
12599 --file=FILE[:TEMPLATE]
12600 instantiate the configuration file FILE
12601 --header=FILE[:TEMPLATE]
12602 instantiate the configuration header FILE
12603
12604 Configuration files:
12605 $config_files
12606
12607 Configuration headers:
12608 $config_headers
12609
12610 Configuration commands:
12611 $config_commands
12612
12613 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>."
12614
12615 _ACEOF
12616 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12617 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12619 ac_cs_config='$ac_cs_config_escaped'
12620 ac_cs_version="\\
12621 xauth config.status 1.1.2
12622 configured by $0, generated by GNU Autoconf 2.71,
12623 with options \\"\$ac_cs_config\\"
12624
12625 Copyright (C) 2021 Free Software Foundation, Inc.
12626 This config.status script is free software; the Free Software Foundation
12627 gives unlimited permission to copy, distribute and modify it."
12628
12629 ac_pwd='$ac_pwd'
12630 srcdir='$srcdir'
12631 INSTALL='$INSTALL'
12632 MKDIR_P='$MKDIR_P'
12633 AWK='$AWK'
12634 test -n "\$AWK" || AWK=awk
12635 _ACEOF
12636
12637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12638 # The default lists apply if the user does not specify any file.
12639 ac_need_defaults=:
12640 while test $# != 0
12641 do
12642 case $1 in
12643 --*=?*)
12644 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12645 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12646 ac_shift=:
12647 ;;
12648 --*=)
12649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12650 ac_optarg=
12651 ac_shift=:
12652 ;;
12653 *)
12654 ac_option=$1
12655 ac_optarg=$2
12656 ac_shift=shift
12657 ;;
12658 esac
12659
12660 case $ac_option in
12661 # Handling of the options.
12662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12663 ac_cs_recheck=: ;;
12664 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12665 printf "%s\n" "$ac_cs_version"; exit ;;
12666 --config | --confi | --conf | --con | --co | --c )
12667 printf "%s\n" "$ac_cs_config"; exit ;;
12668 --debug | --debu | --deb | --de | --d | -d )
12669 debug=: ;;
12670 --file | --fil | --fi | --f )
12671 $ac_shift
12672 case $ac_optarg in
12673 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12674 '') as_fn_error $? "missing file argument" ;;
12675 esac
12676 as_fn_append CONFIG_FILES " '$ac_optarg'"
12677 ac_need_defaults=false;;
12678 --header | --heade | --head | --hea )
12679 $ac_shift
12680 case $ac_optarg in
12681 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12682 esac
12683 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12684 ac_need_defaults=false;;
12685 --he | --h)
12686 # Conflict between --help and --header
12687 as_fn_error $? "ambiguous option: \`$1'
12688 Try \`$0 --help' for more information.";;
12689 --help | --hel | -h )
12690 printf "%s\n" "$ac_cs_usage"; exit ;;
12691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12692 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12693 ac_cs_silent=: ;;
12694
12695 # This is an error.
12696 -*) as_fn_error $? "unrecognized option: \`$1'
12697 Try \`$0 --help' for more information." ;;
12698
12699 *) as_fn_append ac_config_targets " $1"
12700 ac_need_defaults=false ;;
12701
12702 esac
12703 shift
12704 done
12705
12706 ac_configure_extra_args=
12707
12708 if $ac_cs_silent; then
12709 exec 6>/dev/null
12710 ac_configure_extra_args="$ac_configure_extra_args --silent"
12711 fi
12712
12713 _ACEOF
12714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715 if \$ac_cs_recheck; then
12716 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12717 shift
12718 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12719 CONFIG_SHELL='$SHELL'
12720 export CONFIG_SHELL
12721 exec "\$@"
12722 fi
12723
12724 _ACEOF
12725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12726 exec 5>>config.log
12727 {
12728 echo
12729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12730 ## Running $as_me. ##
12731 _ASBOX
12732 printf "%s\n" "$ac_log"
12733 } >&5
12734
12735 _ACEOF
12736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12737 #
12738 # INIT-COMMANDS
12739 #
12740 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12741
12742 _ACEOF
12743
12744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12745
12746 # Handling of arguments.
12747 for ac_config_target in $ac_config_targets
12748 do
12749 case $ac_config_target in
12750 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12751 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12752 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12753 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12754 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12755
12756 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12757 esac
12758 done
12759
12760
12761 # If the user did not use the arguments to specify the items to instantiate,
12762 # then the envvar interface is used. Set only those that are not.
12763 # We use the long form for the default assignment because of an extremely
12764 # bizarre bug on SunOS 4.1.3.
12765 if $ac_need_defaults; then
12766 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12767 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12768 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12769 fi
12770
12771 # Have a temporary directory for convenience. Make it in the build tree
12772 # simply because there is no reason against having it here, and in addition,
12773 # creating and moving files from /tmp can sometimes cause problems.
12774 # Hook for its removal unless debugging.
12775 # Note that there is a small window in which the directory will not be cleaned:
12776 # after its creation but before its name has been assigned to `$tmp'.
12777 $debug ||
12778 {
12779 tmp= ac_tmp=
12780 trap 'exit_status=$?
12781 : "${ac_tmp:=$tmp}"
12782 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12783 ' 0
12784 trap 'as_fn_exit 1' 1 2 13 15
12785 }
12786 # Create a (secure) tmp directory for tmp files.
12787
12788 {
12789 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12790 test -d "$tmp"
12791 } ||
12792 {
12793 tmp=./conf$$-$RANDOM
12794 (umask 077 && mkdir "$tmp")
12795 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12796 ac_tmp=$tmp
12797
12798 # Set up the scripts for CONFIG_FILES section.
12799 # No need to generate them if there are no CONFIG_FILES.
12800 # This happens for instance with `./config.status config.h'.
12801 if test -n "$CONFIG_FILES"; then
12802
12803
12804 ac_cr=`echo X | tr X '\015'`
12805 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12806 # But we know of no other shell where ac_cr would be empty at this
12807 # point, so we can use a bashism as a fallback.
12808 if test "x$ac_cr" = x; then
12809 eval ac_cr=\$\'\\r\'
12810 fi
12811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12813 ac_cs_awk_cr='\\r'
12814 else
12815 ac_cs_awk_cr=$ac_cr
12816 fi
12817
12818 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12819 _ACEOF
12820
12821
12822 {
12823 echo "cat >conf$$subs.awk <<_ACEOF" &&
12824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12825 echo "_ACEOF"
12826 } >conf$$subs.sh ||
12827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12828 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12829 ac_delim='%!_!# '
12830 for ac_last_try in false false false false false :; do
12831 . ./conf$$subs.sh ||
12832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12833
12834 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12835 if test $ac_delim_n = $ac_delim_num; then
12836 break
12837 elif $ac_last_try; then
12838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12839 else
12840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12841 fi
12842 done
12843 rm -f conf$$subs.sh
12844
12845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12846 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12847 _ACEOF
12848 sed -n '
12849 h
12850 s/^/S["/; s/!.*/"]=/
12851 p
12852 g
12853 s/^[^!]*!//
12854 :repl
12855 t repl
12856 s/'"$ac_delim"'$//
12857 t delim
12858 :nl
12859 h
12860 s/\(.\{148\}\)..*/\1/
12861 t more1
12862 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12863 p
12864 n
12865 b repl
12866 :more1
12867 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12868 p
12869 g
12870 s/.\{148\}//
12871 t nl
12872 :delim
12873 h
12874 s/\(.\{148\}\)..*/\1/
12875 t more2
12876 s/["\\]/\\&/g; s/^/"/; s/$/"/
12877 p
12878 b
12879 :more2
12880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12881 p
12882 g
12883 s/.\{148\}//
12884 t delim
12885 ' <conf$$subs.awk | sed '
12886 /^[^""]/{
12887 N
12888 s/\n//
12889 }
12890 ' >>$CONFIG_STATUS || ac_write_fail=1
12891 rm -f conf$$subs.awk
12892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12893 _ACAWK
12894 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12895 for (key in S) S_is_set[key] = 1
12896 FS = ""
12897
12898 }
12899 {
12900 line = $ 0
12901 nfields = split(line, field, "@")
12902 substed = 0
12903 len = length(field[1])
12904 for (i = 2; i < nfields; i++) {
12905 key = field[i]
12906 keylen = length(key)
12907 if (S_is_set[key]) {
12908 value = S[key]
12909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12910 len += length(value) + length(field[++i])
12911 substed = 1
12912 } else
12913 len += 1 + keylen
12914 }
12915
12916 print line
12917 }
12918
12919 _ACAWK
12920 _ACEOF
12921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12922 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12923 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12924 else
12925 cat
12926 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12927 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12928 _ACEOF
12929
12930 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12931 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12932 # trailing colons and then remove the whole line if VPATH becomes empty
12933 # (actually we leave an empty line to preserve line numbers).
12934 if test "x$srcdir" = x.; then
12935 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12936 h
12937 s///
12938 s/^/:/
12939 s/[ ]*$/:/
12940 s/:\$(srcdir):/:/g
12941 s/:\${srcdir}:/:/g
12942 s/:@srcdir@:/:/g
12943 s/^:*//
12944 s/:*$//
12945 x
12946 s/\(=[ ]*\).*/\1/
12947 G
12948 s/\n//
12949 s/^[^=]*=[ ]*$//
12950 }'
12951 fi
12952
12953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12954 fi # test -n "$CONFIG_FILES"
12955
12956 # Set up the scripts for CONFIG_HEADERS section.
12957 # No need to generate them if there are no CONFIG_HEADERS.
12958 # This happens for instance with `./config.status Makefile'.
12959 if test -n "$CONFIG_HEADERS"; then
12960 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12961 BEGIN {
12962 _ACEOF
12963
12964 # Transform confdefs.h into an awk script `defines.awk', embedded as
12965 # here-document in config.status, that substitutes the proper values into
12966 # config.h.in to produce config.h.
12967
12968 # Create a delimiter string that does not exist in confdefs.h, to ease
12969 # handling of long lines.
12970 ac_delim='%!_!# '
12971 for ac_last_try in false false :; do
12972 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12973 if test -z "$ac_tt"; then
12974 break
12975 elif $ac_last_try; then
12976 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12977 else
12978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12979 fi
12980 done
12981
12982 # For the awk script, D is an array of macro values keyed by name,
12983 # likewise P contains macro parameters if any. Preserve backslash
12984 # newline sequences.
12985
12986 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12987 sed -n '
12988 s/.\{148\}/&'"$ac_delim"'/g
12989 t rset
12990 :rset
12991 s/^[ ]*#[ ]*define[ ][ ]*/ /
12992 t def
12993 d
12994 :def
12995 s/\\$//
12996 t bsnl
12997 s/["\\]/\\&/g
12998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12999 D["\1"]=" \3"/p
13000 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13001 d
13002 :bsnl
13003 s/["\\]/\\&/g
13004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13005 D["\1"]=" \3\\\\\\n"\\/p
13006 t cont
13007 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13008 t cont
13009 d
13010 :cont
13011 n
13012 s/.\{148\}/&'"$ac_delim"'/g
13013 t clear
13014 :clear
13015 s/\\$//
13016 t bsnlc
13017 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13018 d
13019 :bsnlc
13020 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13021 b cont
13022 ' <confdefs.h | sed '
13023 s/'"$ac_delim"'/"\\\
13024 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13025
13026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027 for (key in D) D_is_set[key] = 1
13028 FS = ""
13029 }
13030 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13031 line = \$ 0
13032 split(line, arg, " ")
13033 if (arg[1] == "#") {
13034 defundef = arg[2]
13035 mac1 = arg[3]
13036 } else {
13037 defundef = substr(arg[1], 2)
13038 mac1 = arg[2]
13039 }
13040 split(mac1, mac2, "(") #)
13041 macro = mac2[1]
13042 prefix = substr(line, 1, index(line, defundef) - 1)
13043 if (D_is_set[macro]) {
13044 # Preserve the white space surrounding the "#".
13045 print prefix "define", macro P[macro] D[macro]
13046 next
13047 } else {
13048 # Replace #undef with comments. This is necessary, for example,
13049 # in the case of _POSIX_SOURCE, which is predefined and required
13050 # on some systems where configure will not decide to define it.
13051 if (defundef == "undef") {
13052 print "/*", prefix defundef, macro, "*/"
13053 next
13054 }
13055 }
13056 }
13057 { print }
13058 _ACAWK
13059 _ACEOF
13060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13061 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13062 fi # test -n "$CONFIG_HEADERS"
13063
13064
13065 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13066 shift
13067 for ac_tag
13068 do
13069 case $ac_tag in
13070 :[FHLC]) ac_mode=$ac_tag; continue;;
13071 esac
13072 case $ac_mode$ac_tag in
13073 :[FHL]*:*);;
13074 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13075 :[FH]-) ac_tag=-:-;;
13076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13077 esac
13078 ac_save_IFS=$IFS
13079 IFS=:
13080 set x $ac_tag
13081 IFS=$ac_save_IFS
13082 shift
13083 ac_file=$1
13084 shift
13085
13086 case $ac_mode in
13087 :L) ac_source=$1;;
13088 :[FH])
13089 ac_file_inputs=
13090 for ac_f
13091 do
13092 case $ac_f in
13093 -) ac_f="$ac_tmp/stdin";;
13094 *) # Look for the file first in the build tree, then in the source tree
13095 # (if the path is not absolute). The absolute path cannot be DOS-style,
13096 # because $ac_f cannot contain `:'.
13097 test -f "$ac_f" ||
13098 case $ac_f in
13099 [\\/$]*) false;;
13100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13101 esac ||
13102 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13103 esac
13104 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13105 as_fn_append ac_file_inputs " '$ac_f'"
13106 done
13107
13108 # Let's still pretend it is `configure' which instantiates (i.e., don't
13109 # use $as_me), people would be surprised to read:
13110 # /* config.h. Generated by config.status. */
13111 configure_input='Generated from '`
13112 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13113 `' by configure.'
13114 if test x"$ac_file" != x-; then
13115 configure_input="$ac_file. $configure_input"
13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13117 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13118 fi
13119 # Neutralize special characters interpreted by sed in replacement strings.
13120 case $configure_input in #(
13121 *\&* | *\|* | *\\* )
13122 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13123 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13124 *) ac_sed_conf_input=$configure_input;;
13125 esac
13126
13127 case $ac_tag in
13128 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13130 esac
13131 ;;
13132 esac
13133
13134 ac_dir=`$as_dirname -- "$ac_file" ||
13135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13136 X"$ac_file" : 'X\(//\)[^/]' \| \
13137 X"$ac_file" : 'X\(//\)$' \| \
13138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13139 printf "%s\n" X"$ac_file" |
13140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13141 s//\1/
13142 q
13143 }
13144 /^X\(\/\/\)[^/].*/{
13145 s//\1/
13146 q
13147 }
13148 /^X\(\/\/\)$/{
13149 s//\1/
13150 q
13151 }
13152 /^X\(\/\).*/{
13153 s//\1/
13154 q
13155 }
13156 s/.*/./; q'`
13157 as_dir="$ac_dir"; as_fn_mkdir_p
13158 ac_builddir=.
13159
13160 case "$ac_dir" in
13161 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13162 *)
13163 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13164 # A ".." for each directory in $ac_dir_suffix.
13165 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13166 case $ac_top_builddir_sub in
13167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13169 esac ;;
13170 esac
13171 ac_abs_top_builddir=$ac_pwd
13172 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13173 # for backward compatibility:
13174 ac_top_builddir=$ac_top_build_prefix
13175
13176 case $srcdir in
13177 .) # We are building in place.
13178 ac_srcdir=.
13179 ac_top_srcdir=$ac_top_builddir_sub
13180 ac_abs_top_srcdir=$ac_pwd ;;
13181 [\\/]* | ?:[\\/]* ) # Absolute name.
13182 ac_srcdir=$srcdir$ac_dir_suffix;
13183 ac_top_srcdir=$srcdir
13184 ac_abs_top_srcdir=$srcdir ;;
13185 *) # Relative name.
13186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13187 ac_top_srcdir=$ac_top_build_prefix$srcdir
13188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13189 esac
13190 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13191
13192
13193 case $ac_mode in
13194 :F)
13195 #
13196 # CONFIG_FILE
13197 #
13198
13199 case $INSTALL in
13200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13201 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13202 esac
13203 ac_MKDIR_P=$MKDIR_P
13204 case $MKDIR_P in
13205 [\\/$]* | ?:[\\/]* ) ;;
13206 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13207 esac
13208 _ACEOF
13209
13210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13211 # If the template does not know about datarootdir, expand it.
13212 # FIXME: This hack should be removed a few years after 2.60.
13213 ac_datarootdir_hack=; ac_datarootdir_seen=
13214 ac_sed_dataroot='
13215 /datarootdir/ {
13216 p
13217 q
13218 }
13219 /@datadir@/p
13220 /@docdir@/p
13221 /@infodir@/p
13222 /@localedir@/p
13223 /@mandir@/p'
13224 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13225 *datarootdir*) ac_datarootdir_seen=yes;;
13226 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13228 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13229 _ACEOF
13230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13231 ac_datarootdir_hack='
13232 s&@datadir@&$datadir&g
13233 s&@docdir@&$docdir&g
13234 s&@infodir@&$infodir&g
13235 s&@localedir@&$localedir&g
13236 s&@mandir@&$mandir&g
13237 s&\\\${datarootdir}&$datarootdir&g' ;;
13238 esac
13239 _ACEOF
13240
13241 # Neutralize VPATH when `$srcdir' = `.'.
13242 # Shell code in configure.ac might set extrasub.
13243 # FIXME: do we really want to maintain this feature?
13244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13245 ac_sed_extra="$ac_vpsub
13246 $extrasub
13247 _ACEOF
13248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13249 :t
13250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13251 s|@configure_input@|$ac_sed_conf_input|;t t
13252 s&@top_builddir@&$ac_top_builddir_sub&;t t
13253 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13254 s&@srcdir@&$ac_srcdir&;t t
13255 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13256 s&@top_srcdir@&$ac_top_srcdir&;t t
13257 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13258 s&@builddir@&$ac_builddir&;t t
13259 s&@abs_builddir@&$ac_abs_builddir&;t t
13260 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13261 s&@INSTALL@&$ac_INSTALL&;t t
13262 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13263 $ac_datarootdir_hack
13264 "
13265 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13266 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13267
13268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13269 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13270 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13271 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13273 which seems to be undefined. Please make sure it is defined" >&5
13274 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13275 which seems to be undefined. Please make sure it is defined" >&2;}
13276
13277 rm -f "$ac_tmp/stdin"
13278 case $ac_file in
13279 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13280 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13281 esac \
13282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13283 ;;
13284 :H)
13285 #
13286 # CONFIG_HEADER
13287 #
13288 if test x"$ac_file" != x-; then
13289 {
13290 printf "%s\n" "/* $configure_input */" >&1 \
13291 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13292 } >"$ac_tmp/config.h" \
13293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13294 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13296 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13297 else
13298 rm -f "$ac_file"
13299 mv "$ac_tmp/config.h" "$ac_file" \
13300 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13301 fi
13302 else
13303 printf "%s\n" "/* $configure_input */" >&1 \
13304 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13305 || as_fn_error $? "could not create -" "$LINENO" 5
13306 fi
13307 # Compute "$ac_file"'s index in $config_headers.
13308 _am_arg="$ac_file"
13309 _am_stamp_count=1
13310 for _am_header in $config_headers :; do
13311 case $_am_header in
13312 $_am_arg | $_am_arg:* )
13313 break ;;
13314 * )
13315 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13316 esac
13317 done
13318 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13319 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13320 X"$_am_arg" : 'X\(//\)[^/]' \| \
13321 X"$_am_arg" : 'X\(//\)$' \| \
13322 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13323 printf "%s\n" X"$_am_arg" |
13324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13325 s//\1/
13326 q
13327 }
13328 /^X\(\/\/\)[^/].*/{
13329 s//\1/
13330 q
13331 }
13332 /^X\(\/\/\)$/{
13333 s//\1/
13334 q
13335 }
13336 /^X\(\/\).*/{
13337 s//\1/
13338 q
13339 }
13340 s/.*/./; q'`/stamp-h$_am_stamp_count
13341 ;;
13342
13343 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13344 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13345 ;;
13346 esac
13347
13348
13349 case $ac_file$ac_mode in
13350 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13351 # Older Autoconf quotes --file arguments for eval, but not when files
13352 # are listed without --file. Let's play safe and only enable the eval
13353 # if we detect the quoting.
13354 # TODO: see whether this extra hack can be removed once we start
13355 # requiring Autoconf 2.70 or later.
13356 case $CONFIG_FILES in #(
13357 *\'*) :
13358 eval set x "$CONFIG_FILES" ;; #(
13359 *) :
13360 set x $CONFIG_FILES ;; #(
13361 *) :
13362 ;;
13363 esac
13364 shift
13365 # Used to flag and report bootstrapping failures.
13366 am_rc=0
13367 for am_mf
13368 do
13369 # Strip MF so we end up with the name of the file.
13370 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13371 # Check whether this is an Automake generated Makefile which includes
13372 # dependency-tracking related rules and includes.
13373 # Grep'ing the whole file directly is not great: AIX grep has a line
13374 # limit of 2048, but all sed's we know have understand at least 4000.
13375 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13376 || continue
13377 am_dirpart=`$as_dirname -- "$am_mf" ||
13378 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13379 X"$am_mf" : 'X\(//\)[^/]' \| \
13380 X"$am_mf" : 'X\(//\)$' \| \
13381 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13382 printf "%s\n" X"$am_mf" |
13383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13384 s//\1/
13385 q
13386 }
13387 /^X\(\/\/\)[^/].*/{
13388 s//\1/
13389 q
13390 }
13391 /^X\(\/\/\)$/{
13392 s//\1/
13393 q
13394 }
13395 /^X\(\/\).*/{
13396 s//\1/
13397 q
13398 }
13399 s/.*/./; q'`
13400 am_filepart=`$as_basename -- "$am_mf" ||
13401 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13402 X"$am_mf" : 'X\(//\)$' \| \
13403 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13404 printf "%s\n" X/"$am_mf" |
13405 sed '/^.*\/\([^/][^/]*\)\/*$/{
13406 s//\1/
13407 q
13408 }
13409 /^X\/\(\/\/\)$/{
13410 s//\1/
13411 q
13412 }
13413 /^X\/\(\/\).*/{
13414 s//\1/
13415 q
13416 }
13417 s/.*/./; q'`
13418 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13419 && sed -e '/# am--include-marker/d' "$am_filepart" \
13420 | $MAKE -f - am--depfiles" >&5
13421 (cd "$am_dirpart" \
13422 && sed -e '/# am--include-marker/d' "$am_filepart" \
13423 | $MAKE -f - am--depfiles) >&5 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } || am_rc=$?
13427 done
13428 if test $am_rc -ne 0; then
13429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13430 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13431 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13432 for automatic dependency tracking. If GNU make was not used, consider
13433 re-running the configure script with MAKE=\"gmake\" (or whatever is
13434 necessary). You can also try re-running configure with the
13435 '--disable-dependency-tracking' option to at least be able to build
13436 the package (albeit without support for automatic dependency tracking).
13437 See \`config.log' for more details" "$LINENO" 5; }
13438 fi
13439 { am_dirpart=; unset am_dirpart;}
13440 { am_filepart=; unset am_filepart;}
13441 { am_mf=; unset am_mf;}
13442 { am_rc=; unset am_rc;}
13443 rm -f conftest-deps.mk
13444 }
13445 ;;
13446
13447 esac
13448 done # for ac_tag
13449
13450
13451 as_fn_exit 0
13452 _ACEOF
13453 ac_clean_files=$ac_clean_files_save
13454
13455 test $ac_write_fail = 0 ||
13456 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13457
13458
13459 # configure is writing to config.log, and then calls config.status.
13460 # config.status does its own redirection, appending to config.log.
13461 # Unfortunately, on DOS this fails, as config.log is still kept open
13462 # by configure, so config.status won't be able to write to it; its
13463 # output is simply discarded. So we exec the FD to /dev/null,
13464 # effectively closing config.log, so it can be properly (re)opened and
13465 # appended to by config.status. When coming back to configure, we
13466 # need to make the FD available again.
13467 if test "$no_create" != yes; then
13468 ac_cs_success=:
13469 ac_config_status_args=
13470 test "$silent" = yes &&
13471 ac_config_status_args="$ac_config_status_args --quiet"
13472 exec 5>/dev/null
13473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13474 exec 5>>config.log
13475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13476 # would make configure fail if this is the last instruction.
13477 $ac_cs_success || as_fn_exit 1
13478 fi
13479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13481 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13482 fi
13483
13484
13485