configure revision 1.1.1.13 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xauth 1.1.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/xauth/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='xauth'
607 PACKAGE_TARNAME='xauth'
608 PACKAGE_VERSION='1.1.4'
609 PACKAGE_STRING='xauth 1.1.4'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="xauth.c"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 LINT_FALSE
652 LINT_TRUE
653 LINT_FLAGS
654 LINT
655 XAUTH_LIBS
656 XAUTH_CFLAGS
657 MAN_SUBSTS
658 XORG_MAN_PAGE
659 ADMIN_MAN_DIR
660 DRIVER_MAN_DIR
661 MISC_MAN_DIR
662 FILE_MAN_DIR
663 LIB_MAN_DIR
664 APP_MAN_DIR
665 ADMIN_MAN_SUFFIX
666 DRIVER_MAN_SUFFIX
667 MISC_MAN_SUFFIX
668 FILE_MAN_SUFFIX
669 LIB_MAN_SUFFIX
670 APP_MAN_SUFFIX
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 INSTALL_CMD
681 PKG_CONFIG_LIBDIR
682 PKG_CONFIG_PATH
683 PKG_CONFIG
684 CHANGELOG_CMD
685 STRICT_CFLAGS
686 CWARNFLAGS
687 BASE_CFLAGS
688 am__xargs_n
689 am__rm_f_notfound
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 CSCOPE
695 ETAGS
696 CTAGS
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__include
705 DEPDIR
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_dependency_tracking
780 enable_silent_rules
781 enable_selective_werror
782 enable_strict_compilation
783 enable_largefile
784 enable_unix_transport
785 enable_tcp_transport
786 enable_ipv6
787 enable_local_transport
788 with_lint
789 enable_year2038
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 PKG_CONFIG
800 PKG_CONFIG_PATH
801 PKG_CONFIG_LIBDIR
802 XAUTH_CFLAGS
803 XAUTH_LIBS
804 LINT
805 LINT_FLAGS'
806
807
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
829
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 runstatedir='${localstatedir}/run'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 case $ac_dashdash$ac_option in
875 --)
876 ac_dashdash=yes ;;
877
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
882
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
887
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
894
895 --config-cache | -C)
896 cache_file=config.cache ;;
897
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
902
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
909
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: '$ac_useropt'"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
935
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: '$ac_useropt'"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -runstatedir | --runstatedir | --runstatedi | --runstated \
1096 | --runstate | --runstat | --runsta | --runst | --runs \
1097 | --run | --ru | --r)
1098 ac_prev=runstatedir ;;
1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101 | --run=* | --ru=* | --r=*)
1102 runstatedir=$ac_optarg ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: '$ac_useropt'"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: '$ac_useropt'"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error $? "unrecognized option: '$ac_option'
1200 Try '$0 --help' for more information"
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir runstatedir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: '$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 printf "%s\n" X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319 else
1320 ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 'configure' configures xauth 1.1.4 to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print 'checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for '--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or '..']
1373
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1379
1380 By default, 'make install' will install all the files in
1381 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than '$ac_default_prefix' using '--prefix',
1383 for instance '--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/xauth]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1409
1410 cat <<\_ACEOF
1411
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of xauth 1.1.4:";;
1426 esac
1427 cat <<\_ACEOF
1428
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-dependency-tracking
1434 do not reject slow dependency extractors
1435 --disable-dependency-tracking
1436 speeds up one-time build
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --disable-selective-werror
1440 Turn off selective compiler errors. (default:
1441 enabled)
1442 --enable-strict-compilation
1443 Enable all warnings from compiler and make them
1444 errors (default: disabled)
1445 --disable-largefile omit support for large files
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 --enable-year2038 support timestamps after 2038
1452
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-lint Use a lint-style source code checker (default:
1457 disabled)
1458
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 PKG_CONFIG path to pkg-config utility
1468 PKG_CONFIG_PATH
1469 directories to add to pkg-config's search path
1470 PKG_CONFIG_LIBDIR
1471 path overriding pkg-config's built-in search path
1472 XAUTH_CFLAGS
1473 C compiler flags for XAUTH, overriding pkg-config
1474 XAUTH_LIBS linker flags for XAUTH, overriding pkg-config
1475 LINT Path to a lint-style command
1476 LINT_FLAGS Flags for the lint-style command
1477
1478 Use these variables to override the choices made by 'configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for configure.gnu first; this name is used for a wrapper for
1528 # Metaconfig's "Configure" on case-insensitive file systems.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1535 else
1536 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1539 done
1540 fi
1541
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544 cat <<\_ACEOF
1545 xauth configure 1.1.4
1546 generated by GNU Autoconf 2.72
1547
1548 Copyright (C) 2023 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551 _ACEOF
1552 exit
1553 fi
1554
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1558
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest.beam
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 printf "%s\n" "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext
1585 then :
1586 ac_retval=0
1587 else case e in #(
1588 e) printf "%s\n" "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1 ;;
1592 esac
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_compile
1598
1599 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists and can be compiled using the include files in
1602 # INCLUDES, setting the cache variable VAR accordingly.
1603 ac_fn_c_check_header_compile ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 printf %s "checking for $2... " >&6; }
1608 if eval test \${$3+y}
1609 then :
1610 printf %s "(cached) " >&6
1611 else case e in #(
1612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1614 $4
1615 #include <$2>
1616 _ACEOF
1617 if ac_fn_c_try_compile "$LINENO"
1618 then :
1619 eval "$3=yes"
1620 else case e in #(
1621 e) eval "$3=no" ;;
1622 esac
1623 fi
1624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1625 esac
1626 fi
1627 eval ac_res=\$$3
1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 printf "%s\n" "$ac_res" >&6; }
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632 } # ac_fn_c_check_header_compile
1633
1634 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1635 # ------------------------------------------------------------------
1636 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1637 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1638 ac_fn_check_decl ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 as_decl_name=`echo $2|sed 's/ *(.*//'`
1642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1643 printf %s "checking whether $as_decl_name is declared... " >&6; }
1644 if eval test \${$3+y}
1645 then :
1646 printf %s "(cached) " >&6
1647 else case e in #(
1648 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1649 eval ac_save_FLAGS=\$$6
1650 as_fn_append $6 " $5"
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 int
1655 main (void)
1656 {
1657 #ifndef $as_decl_name
1658 #ifdef __cplusplus
1659 (void) $as_decl_use;
1660 #else
1661 (void) $as_decl_name;
1662 #endif
1663 #endif
1664
1665 ;
1666 return 0;
1667 }
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"
1670 then :
1671 eval "$3=yes"
1672 else case e in #(
1673 e) eval "$3=no" ;;
1674 esac
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1677 eval $6=\$ac_save_FLAGS
1678 ;;
1679 esac
1680 fi
1681 eval ac_res=\$$3
1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 printf "%s\n" "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_check_decl
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 printf "%s\n" "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 test -x conftest$ac_exeext
1716 }
1717 then :
1718 ac_retval=0
1719 else case e in #(
1720 e) printf "%s\n" "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1 ;;
1724 esac
1725 fi
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_link
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 printf %s "checking for $2... " >&6; }
1744 if eval test \${$3+y}
1745 then :
1746 printf %s "(cached) " >&6
1747 else case e in #(
1748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (void); below. */
1756
1757 #include <limits.h>
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 (void);
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main (void)
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"
1783 then :
1784 eval "$3=yes"
1785 else case e in #(
1786 e) eval "$3=no" ;;
1787 esac
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1790 conftest$ac_exeext conftest.$ac_ext ;;
1791 esac
1792 fi
1793 eval ac_res=\$$3
1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 printf "%s\n" "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_func
1799
1800 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1801 # ----------------------------------------------------
1802 # Tries to find if the field MEMBER exists in type AGGR, after including
1803 # INCLUDES, setting cache variable VAR accordingly.
1804 ac_fn_c_check_member ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1808 printf %s "checking for $2.$3... " >&6; }
1809 if eval test \${$4+y}
1810 then :
1811 printf %s "(cached) " >&6
1812 else case e in #(
1813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $5
1816 int
1817 main (void)
1818 {
1819 static $2 ac_aggr;
1820 if (ac_aggr.$3)
1821 return 0;
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"
1827 then :
1828 eval "$4=yes"
1829 else case e in #(
1830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 $5
1833 int
1834 main (void)
1835 {
1836 static $2 ac_aggr;
1837 if (sizeof ac_aggr.$3)
1838 return 0;
1839 ;
1840 return 0;
1841 }
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"
1844 then :
1845 eval "$4=yes"
1846 else case e in #(
1847 e) eval "$4=no" ;;
1848 esac
1849 fi
1850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1851 esac
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1854 esac
1855 fi
1856 eval ac_res=\$$4
1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 printf "%s\n" "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_c_check_member
1862
1863 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1864 # -------------------------------------------
1865 # Tests whether TYPE exists after having included INCLUDES, setting cache
1866 # variable VAR accordingly.
1867 ac_fn_c_check_type ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 printf %s "checking for $2... " >&6; }
1872 if eval test \${$3+y}
1873 then :
1874 printf %s "(cached) " >&6
1875 else case e in #(
1876 e) eval "$3=no"
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 int
1881 main (void)
1882 {
1883 if (sizeof ($2))
1884 return 0;
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"
1890 then :
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 $4
1894 int
1895 main (void)
1896 {
1897 if (sizeof (($2)))
1898 return 0;
1899 ;
1900 return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"
1904 then :
1905
1906 else case e in #(
1907 e) eval "$3=yes" ;;
1908 esac
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1913 esac
1914 fi
1915 eval ac_res=\$$3
1916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 printf "%s\n" "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_type
1921 ac_configure_args_raw=
1922 for ac_arg
1923 do
1924 case $ac_arg in
1925 *\'*)
1926 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 esac
1928 as_fn_append ac_configure_args_raw " '$ac_arg'"
1929 done
1930
1931 case $ac_configure_args_raw in
1932 *$as_nl*)
1933 ac_safe_unquote= ;;
1934 *)
1935 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1936 ac_unsafe_a="$ac_unsafe_z#~"
1937 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1938 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1939 esac
1940
1941 cat >config.log <<_ACEOF
1942 This file contains any messages produced by compilers while
1943 running configure, to aid debugging if configure makes a mistake.
1944
1945 It was created by xauth $as_me 1.1.4, which was
1946 generated by GNU Autoconf 2.72. Invocation command line was
1947
1948 $ $0$ac_configure_args_raw
1949
1950 _ACEOF
1951 exec 5>>config.log
1952 {
1953 cat <<_ASUNAME
1954 ## --------- ##
1955 ## Platform. ##
1956 ## --------- ##
1957
1958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963
1964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1966
1967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1974
1975 _ASUNAME
1976
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980 IFS=$as_save_IFS
1981 case $as_dir in #(((
1982 '') as_dir=./ ;;
1983 */) ;;
1984 *) as_dir=$as_dir/ ;;
1985 esac
1986 printf "%s\n" "PATH: $as_dir"
1987 done
1988 IFS=$as_save_IFS
1989
1990 } >&5
1991
1992 cat >&5 <<_ACEOF
1993
1994
1995 ## ----------- ##
1996 ## Core tests. ##
1997 ## ----------- ##
1998
1999 _ACEOF
2000
2001
2002 # Keep a trace of the command line.
2003 # Strip out --no-create and --no-recursion so they do not pile up.
2004 # Strip out --silent because we don't want to record it for future runs.
2005 # Also quote any args containing shell meta-characters.
2006 # Make two passes to allow for proper duplicate-argument suppression.
2007 ac_configure_args=
2008 ac_configure_args0=
2009 ac_configure_args1=
2010 ac_must_keep_next=false
2011 for ac_pass in 1 2
2012 do
2013 for ac_arg
2014 do
2015 case $ac_arg in
2016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2018 | -silent | --silent | --silen | --sile | --sil)
2019 continue ;;
2020 *\'*)
2021 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2022 esac
2023 case $ac_pass in
2024 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2025 2)
2026 as_fn_append ac_configure_args1 " '$ac_arg'"
2027 if test $ac_must_keep_next = true; then
2028 ac_must_keep_next=false # Got value, back to normal.
2029 else
2030 case $ac_arg in
2031 *=* | --config-cache | -C | -disable-* | --disable-* \
2032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2034 | -with-* | --with-* | -without-* | --without-* | --x)
2035 case "$ac_configure_args0 " in
2036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2037 esac
2038 ;;
2039 -* ) ac_must_keep_next=true ;;
2040 esac
2041 fi
2042 as_fn_append ac_configure_args " '$ac_arg'"
2043 ;;
2044 esac
2045 done
2046 done
2047 { ac_configure_args0=; unset ac_configure_args0;}
2048 { ac_configure_args1=; unset ac_configure_args1;}
2049
2050 # When interrupted or exit'd, cleanup temporary files, and complete
2051 # config.log. We remove comments because anyway the quotes in there
2052 # would cause problems or look ugly.
2053 # WARNING: Use '\'' to represent an apostrophe within the trap.
2054 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2055 trap 'exit_status=$?
2056 # Sanitize IFS.
2057 IFS=" "" $as_nl"
2058 # Save into config.log some information that might help in debugging.
2059 {
2060 echo
2061
2062 printf "%s\n" "## ---------------- ##
2063 ## Cache variables. ##
2064 ## ---------------- ##"
2065 echo
2066 # The following way of writing the cache mishandles newlines in values,
2067 (
2068 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in #(
2071 *${as_nl}*)
2072 case $ac_var in #(
2073 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2074 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2075 esac
2076 case $ac_var in #(
2077 _ | IFS | as_nl) ;; #(
2078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2079 *) { eval $ac_var=; unset $ac_var;} ;;
2080 esac ;;
2081 esac
2082 done
2083 (set) 2>&1 |
2084 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2085 *${as_nl}ac_space=\ *)
2086 sed -n \
2087 "s/'\''/'\''\\\\'\'''\''/g;
2088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2089 ;; #(
2090 *)
2091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2092 ;;
2093 esac |
2094 sort
2095 )
2096 echo
2097
2098 printf "%s\n" "## ----------------- ##
2099 ## Output variables. ##
2100 ## ----------------- ##"
2101 echo
2102 for ac_var in $ac_subst_vars
2103 do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 printf "%s\n" "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111
2112 if test -n "$ac_subst_files"; then
2113 printf "%s\n" "## ------------------- ##
2114 ## File substitutions. ##
2115 ## ------------------- ##"
2116 echo
2117 for ac_var in $ac_subst_files
2118 do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 printf "%s\n" "$ac_var='\''$ac_val'\''"
2124 done | sort
2125 echo
2126 fi
2127
2128 if test -s confdefs.h; then
2129 printf "%s\n" "## ----------- ##
2130 ## confdefs.h. ##
2131 ## ----------- ##"
2132 echo
2133 cat confdefs.h
2134 echo
2135 fi
2136 test "$ac_signal" != 0 &&
2137 printf "%s\n" "$as_me: caught signal $ac_signal"
2138 printf "%s\n" "$as_me: exit $exit_status"
2139 } >&5
2140 rm -f core *.core core.conftest.* &&
2141 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2142 exit $exit_status
2143 ' 0
2144 for ac_signal in 1 2 13 15; do
2145 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2146 done
2147 ac_signal=0
2148
2149 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2150 rm -f -r conftest* confdefs.h
2151
2152 printf "%s\n" "/* confdefs.h */" > confdefs.h
2153
2154 # Predefined preprocessor variables.
2155
2156 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2157
2158 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2159
2160 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2161
2162 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2163
2164 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2165
2166 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2167
2168
2169 # Let the site file select an alternate cache file if it wants to.
2170 # Prefer an explicitly selected file to automatically selected ones.
2171 if test -n "$CONFIG_SITE"; then
2172 ac_site_files="$CONFIG_SITE"
2173 elif test "x$prefix" != xNONE; then
2174 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2175 else
2176 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2177 fi
2178
2179 for ac_site_file in $ac_site_files
2180 do
2181 case $ac_site_file in #(
2182 */*) :
2183 ;; #(
2184 *) :
2185 ac_site_file=./$ac_site_file ;;
2186 esac
2187 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2190 sed 's/^/| /' "$ac_site_file" >&5
2191 . "$ac_site_file" \
2192 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2193 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2194 as_fn_error $? "failed to load site script $ac_site_file
2195 See 'config.log' for more details" "$LINENO" 5; }
2196 fi
2197 done
2198
2199 if test -r "$cache_file"; then
2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2205 case $cache_file in
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
2208 esac
2209 fi
2210 else
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2213 >$cache_file
2214 fi
2215
2216 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2217 # Test code for whether the C compiler supports C89 (global declarations)
2218 ac_c_conftest_c89_globals='
2219 /* Does the compiler advertise C89 conformance?
2220 Do not test the value of __STDC__, because some compilers set it to 0
2221 while being otherwise adequately conformant. */
2222 #if !defined __STDC__
2223 # error "Compiler does not advertise C89 conformance"
2224 #endif
2225
2226 #include <stddef.h>
2227 #include <stdarg.h>
2228 struct stat;
2229 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2230 struct buf { int x; };
2231 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2232 static char *e (char **p, int i)
2233 {
2234 return p[i];
2235 }
2236 static char *f (char * (*g) (char **, int), char **p, ...)
2237 {
2238 char *s;
2239 va_list v;
2240 va_start (v,p);
2241 s = g (p, va_arg (v,int));
2242 va_end (v);
2243 return s;
2244 }
2245
2246 /* C89 style stringification. */
2247 #define noexpand_stringify(a) #a
2248 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2249
2250 /* C89 style token pasting. Exercises some of the corner cases that
2251 e.g. old MSVC gets wrong, but not very hard. */
2252 #define noexpand_concat(a,b) a##b
2253 #define expand_concat(a,b) noexpand_concat(a,b)
2254 extern int vA;
2255 extern int vbee;
2256 #define aye A
2257 #define bee B
2258 int *pvA = &expand_concat(v,aye);
2259 int *pvbee = &noexpand_concat(v,bee);
2260
2261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2262 function prototypes and stuff, but not \xHH hex character constants.
2263 These do not provoke an error unfortunately, instead are silently treated
2264 as an "x". The following induces an error, until -std is added to get
2265 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2266 array size at least. It is necessary to write \x00 == 0 to get something
2267 that is true only with -std. */
2268 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2269
2270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2271 inside strings and character constants. */
2272 #define FOO(x) '\''x'\''
2273 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2274
2275 int test (int i, double x);
2276 struct s1 {int (*f) (int a);};
2277 struct s2 {int (*f) (double a);};
2278 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2279 int, int);'
2280
2281 # Test code for whether the C compiler supports C89 (body of main).
2282 ac_c_conftest_c89_main='
2283 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2284 '
2285
2286 # Test code for whether the C compiler supports C99 (global declarations)
2287 ac_c_conftest_c99_globals='
2288 /* Does the compiler advertise C99 conformance? */
2289 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2290 # error "Compiler does not advertise C99 conformance"
2291 #endif
2292
2293 // See if C++-style comments work.
2294
2295 #include <stdbool.h>
2296 extern int puts (const char *);
2297 extern int printf (const char *, ...);
2298 extern int dprintf (int, const char *, ...);
2299 extern void *malloc (size_t);
2300 extern void free (void *);
2301
2302 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2303 // dprintf is used instead of fprintf to avoid needing to declare
2304 // FILE and stderr.
2305 #define debug(...) dprintf (2, __VA_ARGS__)
2306 #define showlist(...) puts (#__VA_ARGS__)
2307 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2308 static void
2309 test_varargs_macros (void)
2310 {
2311 int x = 1234;
2312 int y = 5678;
2313 debug ("Flag");
2314 debug ("X = %d\n", x);
2315 showlist (The first, second, and third items.);
2316 report (x>y, "x is %d but y is %d", x, y);
2317 }
2318
2319 // Check long long types.
2320 #define BIG64 18446744073709551615ull
2321 #define BIG32 4294967295ul
2322 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2323 #if !BIG_OK
2324 #error "your preprocessor is broken"
2325 #endif
2326 #if BIG_OK
2327 #else
2328 #error "your preprocessor is broken"
2329 #endif
2330 static long long int bignum = -9223372036854775807LL;
2331 static unsigned long long int ubignum = BIG64;
2332
2333 struct incomplete_array
2334 {
2335 int datasize;
2336 double data[];
2337 };
2338
2339 struct named_init {
2340 int number;
2341 const wchar_t *name;
2342 double average;
2343 };
2344
2345 typedef const char *ccp;
2346
2347 static inline int
2348 test_restrict (ccp restrict text)
2349 {
2350 // Iterate through items via the restricted pointer.
2351 // Also check for declarations in for loops.
2352 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2353 continue;
2354 return 0;
2355 }
2356
2357 // Check varargs and va_copy.
2358 static bool
2359 test_varargs (const char *format, ...)
2360 {
2361 va_list args;
2362 va_start (args, format);
2363 va_list args_copy;
2364 va_copy (args_copy, args);
2365
2366 const char *str = "";
2367 int number = 0;
2368 float fnumber = 0;
2369
2370 while (*format)
2371 {
2372 switch (*format++)
2373 {
2374 case '\''s'\'': // string
2375 str = va_arg (args_copy, const char *);
2376 break;
2377 case '\''d'\'': // int
2378 number = va_arg (args_copy, int);
2379 break;
2380 case '\''f'\'': // float
2381 fnumber = va_arg (args_copy, double);
2382 break;
2383 default:
2384 break;
2385 }
2386 }
2387 va_end (args_copy);
2388 va_end (args);
2389
2390 return *str && number && fnumber;
2391 }
2392 '
2393
2394 # Test code for whether the C compiler supports C99 (body of main).
2395 ac_c_conftest_c99_main='
2396 // Check bool.
2397 _Bool success = false;
2398 success |= (argc != 0);
2399
2400 // Check restrict.
2401 if (test_restrict ("String literal") == 0)
2402 success = true;
2403 char *restrict newvar = "Another string";
2404
2405 // Check varargs.
2406 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2407 test_varargs_macros ();
2408
2409 // Check flexible array members.
2410 struct incomplete_array *ia =
2411 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2412 ia->datasize = 10;
2413 for (int i = 0; i < ia->datasize; ++i)
2414 ia->data[i] = i * 1.234;
2415 // Work around memory leak warnings.
2416 free (ia);
2417
2418 // Check named initializers.
2419 struct named_init ni = {
2420 .number = 34,
2421 .name = L"Test wide string",
2422 .average = 543.34343,
2423 };
2424
2425 ni.number = 58;
2426
2427 int dynamic_array[ni.number];
2428 dynamic_array[0] = argv[0][0];
2429 dynamic_array[ni.number - 1] = 543;
2430
2431 // work around unused variable warnings
2432 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2433 || dynamic_array[ni.number - 1] != 543);
2434 '
2435
2436 # Test code for whether the C compiler supports C11 (global declarations)
2437 ac_c_conftest_c11_globals='
2438 /* Does the compiler advertise C11 conformance? */
2439 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2440 # error "Compiler does not advertise C11 conformance"
2441 #endif
2442
2443 // Check _Alignas.
2444 char _Alignas (double) aligned_as_double;
2445 char _Alignas (0) no_special_alignment;
2446 extern char aligned_as_int;
2447 char _Alignas (0) _Alignas (int) aligned_as_int;
2448
2449 // Check _Alignof.
2450 enum
2451 {
2452 int_alignment = _Alignof (int),
2453 int_array_alignment = _Alignof (int[100]),
2454 char_alignment = _Alignof (char)
2455 };
2456 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2457
2458 // Check _Noreturn.
2459 int _Noreturn does_not_return (void) { for (;;) continue; }
2460
2461 // Check _Static_assert.
2462 struct test_static_assert
2463 {
2464 int x;
2465 _Static_assert (sizeof (int) <= sizeof (long int),
2466 "_Static_assert does not work in struct");
2467 long int y;
2468 };
2469
2470 // Check UTF-8 literals.
2471 #define u8 syntax error!
2472 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2473
2474 // Check duplicate typedefs.
2475 typedef long *long_ptr;
2476 typedef long int *long_ptr;
2477 typedef long_ptr long_ptr;
2478
2479 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2480 struct anonymous
2481 {
2482 union {
2483 struct { int i; int j; };
2484 struct { int k; long int l; } w;
2485 };
2486 int m;
2487 } v1;
2488 '
2489
2490 # Test code for whether the C compiler supports C11 (body of main).
2491 ac_c_conftest_c11_main='
2492 _Static_assert ((offsetof (struct anonymous, i)
2493 == offsetof (struct anonymous, w.k)),
2494 "Anonymous union alignment botch");
2495 v1.i = 2;
2496 v1.w.k = 5;
2497 ok |= v1.i != 5;
2498 '
2499
2500 # Test code for whether the C compiler supports C11 (complete).
2501 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2502 ${ac_c_conftest_c99_globals}
2503 ${ac_c_conftest_c11_globals}
2504
2505 int
2506 main (int argc, char **argv)
2507 {
2508 int ok = 0;
2509 ${ac_c_conftest_c89_main}
2510 ${ac_c_conftest_c99_main}
2511 ${ac_c_conftest_c11_main}
2512 return ok;
2513 }
2514 "
2515
2516 # Test code for whether the C compiler supports C99 (complete).
2517 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2518 ${ac_c_conftest_c99_globals}
2519
2520 int
2521 main (int argc, char **argv)
2522 {
2523 int ok = 0;
2524 ${ac_c_conftest_c89_main}
2525 ${ac_c_conftest_c99_main}
2526 return ok;
2527 }
2528 "
2529
2530 # Test code for whether the C compiler supports C89 (complete).
2531 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2532
2533 int
2534 main (int argc, char **argv)
2535 {
2536 int ok = 0;
2537 ${ac_c_conftest_c89_main}
2538 return ok;
2539 }
2540 "
2541
2542 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2543 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2544 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2545 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2546 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2547 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2548 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2549 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2550 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2551 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2552
2553 # Auxiliary files required by this configure script.
2554 ac_aux_files="config.guess config.sub missing install-sh compile"
2555
2556 # Locations in which to look for auxiliary files.
2557 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2558
2559 # Search for a directory containing all of the required auxiliary files,
2560 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2561 # If we don't find one directory that contains all the files we need,
2562 # we report the set of missing files from the *first* directory in
2563 # $ac_aux_dir_candidates and give up.
2564 ac_missing_aux_files=""
2565 ac_first_candidate=:
2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 as_found=false
2569 for as_dir in $ac_aux_dir_candidates
2570 do
2571 IFS=$as_save_IFS
2572 case $as_dir in #(((
2573 '') as_dir=./ ;;
2574 */) ;;
2575 *) as_dir=$as_dir/ ;;
2576 esac
2577 as_found=:
2578
2579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2580 ac_aux_dir_found=yes
2581 ac_install_sh=
2582 for ac_aux in $ac_aux_files
2583 do
2584 # As a special case, if "install-sh" is required, that requirement
2585 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2586 # and $ac_install_sh is set appropriately for whichever one is found.
2587 if test x"$ac_aux" = x"install-sh"
2588 then
2589 if test -f "${as_dir}install-sh"; then
2590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2591 ac_install_sh="${as_dir}install-sh -c"
2592 elif test -f "${as_dir}install.sh"; then
2593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2594 ac_install_sh="${as_dir}install.sh -c"
2595 elif test -f "${as_dir}shtool"; then
2596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2597 ac_install_sh="${as_dir}shtool install -c"
2598 else
2599 ac_aux_dir_found=no
2600 if $ac_first_candidate; then
2601 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2602 else
2603 break
2604 fi
2605 fi
2606 else
2607 if test -f "${as_dir}${ac_aux}"; then
2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2609 else
2610 ac_aux_dir_found=no
2611 if $ac_first_candidate; then
2612 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2613 else
2614 break
2615 fi
2616 fi
2617 fi
2618 done
2619 if test "$ac_aux_dir_found" = yes; then
2620 ac_aux_dir="$as_dir"
2621 break
2622 fi
2623 ac_first_candidate=false
2624
2625 as_found=false
2626 done
2627 IFS=$as_save_IFS
2628 if $as_found
2629 then :
2630
2631 else case e in #(
2632 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2633 esac
2634 fi
2635
2636
2637 # These three variables are undocumented and unsupported,
2638 # and are intended to be withdrawn in a future Autoconf release.
2639 # They can cause serious problems if a builder's source tree is in a directory
2640 # whose full name contains unusual characters.
2641 if test -f "${ac_aux_dir}config.guess"; then
2642 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2643 fi
2644 if test -f "${ac_aux_dir}config.sub"; then
2645 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2646 fi
2647 if test -f "$ac_aux_dir/configure"; then
2648 ac_configure="$SHELL ${ac_aux_dir}configure"
2649 fi
2650
2651 # Check that the precious variables saved in the cache have kept the same
2652 # value.
2653 ac_cache_corrupted=false
2654 for ac_var in $ac_precious_vars; do
2655 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656 eval ac_new_set=\$ac_env_${ac_var}_set
2657 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658 eval ac_new_val=\$ac_env_${ac_var}_value
2659 case $ac_old_set,$ac_new_set in
2660 set,)
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2662 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2663 ac_cache_corrupted=: ;;
2664 ,set)
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2666 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2668 ,);;
2669 *)
2670 if test "x$ac_old_val" != "x$ac_new_val"; then
2671 # differences in whitespace do not lead to failure.
2672 ac_old_val_w=`echo x $ac_old_val`
2673 ac_new_val_w=`echo x $ac_new_val`
2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2676 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2677 ac_cache_corrupted=:
2678 else
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2680 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2681 eval $ac_var=\$ac_old_val
2682 fi
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2684 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2686 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2687 fi;;
2688 esac
2689 # Pass precious variables to config.status.
2690 if test "$ac_new_set" = set; then
2691 case $ac_new_val in
2692 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 *) ac_arg=$ac_var=$ac_new_val ;;
2694 esac
2695 case " $ac_configure_args " in
2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2697 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2698 esac
2699 fi
2700 done
2701 if $ac_cache_corrupted; then
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2703 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2706 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2707 and start over" "$LINENO" 5
2708 fi
2709 ## -------------------- ##
2710 ## Main body of script. ##
2711 ## -------------------- ##
2712
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718
2719
2720
2721 ac_config_headers="$ac_config_headers config.h"
2722
2723
2724 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2725 # Must be called before any macros that run the compiler (like
2726 # AC_PROG_LIBTOOL) to avoid autoconf errors.
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738 # Expand $ac_aux_dir to an absolute path.
2739 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2740
2741 ac_ext=c
2742 ac_cpp='$CPP $CPPFLAGS'
2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 printf %s "checking for $ac_word... " >&6; }
2751 if test ${ac_cv_prog_CC+y}
2752 then :
2753 printf %s "(cached) " >&6
2754 else case e in #(
2755 e) if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 case $as_dir in #(((
2763 '') as_dir=./ ;;
2764 */) ;;
2765 *) as_dir=$as_dir/ ;;
2766 esac
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773 done
2774 done
2775 IFS=$as_save_IFS
2776
2777 fi ;;
2778 esac
2779 fi
2780 CC=$ac_cv_prog_CC
2781 if test -n "$CC"; then
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783 printf "%s\n" "$CC" >&6; }
2784 else
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 printf "%s\n" "no" >&6; }
2787 fi
2788
2789
2790 fi
2791 if test -z "$ac_cv_prog_CC"; then
2792 ac_ct_CC=$CC
2793 # Extract the first word of "gcc", so it can be a program name with args.
2794 set dummy gcc; ac_word=$2
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 printf %s "checking for $ac_word... " >&6; }
2797 if test ${ac_cv_prog_ac_ct_CC+y}
2798 then :
2799 printf %s "(cached) " >&6
2800 else case e in #(
2801 e) if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 case $as_dir in #(((
2809 '') as_dir=./ ;;
2810 */) ;;
2811 *) as_dir=$as_dir/ ;;
2812 esac
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_ac_ct_CC="gcc"
2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi ;;
2824 esac
2825 fi
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 printf "%s\n" "$ac_ct_CC" >&6; }
2830 else
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 printf "%s\n" "no" >&6; }
2833 fi
2834
2835 if test "x$ac_ct_CC" = x; then
2836 CC=""
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 CC=$ac_ct_CC
2845 fi
2846 else
2847 CC="$ac_cv_prog_CC"
2848 fi
2849
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}cc; ac_word=$2
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 printf %s "checking for $ac_word... " >&6; }
2856 if test ${ac_cv_prog_CC+y}
2857 then :
2858 printf %s "(cached) " >&6
2859 else case e in #(
2860 e) if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 case $as_dir in #(((
2868 '') as_dir=./ ;;
2869 */) ;;
2870 *) as_dir=$as_dir/ ;;
2871 esac
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi ;;
2883 esac
2884 fi
2885 CC=$ac_cv_prog_CC
2886 if test -n "$CC"; then
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 printf "%s\n" "$CC" >&6; }
2889 else
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 printf "%s\n" "no" >&6; }
2892 fi
2893
2894
2895 fi
2896 fi
2897 if test -z "$CC"; then
2898 # Extract the first word of "cc", so it can be a program name with args.
2899 set dummy cc; ac_word=$2
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 printf %s "checking for $ac_word... " >&6; }
2902 if test ${ac_cv_prog_CC+y}
2903 then :
2904 printf %s "(cached) " >&6
2905 else case e in #(
2906 e) if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909 ac_prog_rejected=no
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 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2922 ac_prog_rejected=yes
2923 continue
2924 fi
2925 ac_cv_prog_CC="cc"
2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 if test $ac_prog_rejected = yes; then
2934 # We found a bogon in the path, so make sure we never use it.
2935 set dummy $ac_cv_prog_CC
2936 shift
2937 if test $# != 0; then
2938 # We chose a different compiler from the bogus one.
2939 # However, it has the same basename, so the bogon will be chosen
2940 # first if we set CC to just the basename; use the full file name.
2941 shift
2942 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2943 fi
2944 fi
2945 fi ;;
2946 esac
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 printf "%s\n" "$CC" >&6; }
2952 else
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 printf "%s\n" "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 for ac_prog in cl.exe
2962 do
2963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 printf %s "checking for $ac_word... " >&6; }
2967 if test ${ac_cv_prog_CC+y}
2968 then :
2969 printf %s "(cached) " >&6
2970 else case e in #(
2971 e) if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 case $as_dir in #(((
2979 '') as_dir=./ ;;
2980 */) ;;
2981 *) as_dir=$as_dir/ ;;
2982 esac
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi ;;
2994 esac
2995 fi
2996 CC=$ac_cv_prog_CC
2997 if test -n "$CC"; then
2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999 printf "%s\n" "$CC" >&6; }
3000 else
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 printf "%s\n" "no" >&6; }
3003 fi
3004
3005
3006 test -n "$CC" && break
3007 done
3008 fi
3009 if test -z "$CC"; then
3010 ac_ct_CC=$CC
3011 for ac_prog in cl.exe
3012 do
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 printf %s "checking for $ac_word... " >&6; }
3017 if test ${ac_cv_prog_ac_ct_CC+y}
3018 then :
3019 printf %s "(cached) " >&6
3020 else case e in #(
3021 e) if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 case $as_dir in #(((
3029 '') as_dir=./ ;;
3030 */) ;;
3031 *) as_dir=$as_dir/ ;;
3032 esac
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_ac_ct_CC="$ac_prog"
3036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi ;;
3044 esac
3045 fi
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 printf "%s\n" "$ac_ct_CC" >&6; }
3050 else
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 printf "%s\n" "no" >&6; }
3053 fi
3054
3055
3056 test -n "$ac_ct_CC" && break
3057 done
3058
3059 if test "x$ac_ct_CC" = x; then
3060 CC=""
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063 yes:)
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3067 esac
3068 CC=$ac_ct_CC
3069 fi
3070 fi
3071
3072 fi
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}clang; ac_word=$2
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 printf %s "checking for $ac_word... " >&6; }
3079 if test ${ac_cv_prog_CC+y}
3080 then :
3081 printf %s "(cached) " >&6
3082 else case e in #(
3083 e) if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 case $as_dir in #(((
3091 '') as_dir=./ ;;
3092 */) ;;
3093 *) as_dir=$as_dir/ ;;
3094 esac
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_CC="${ac_tool_prefix}clang"
3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 fi ;;
3106 esac
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 printf "%s\n" "$CC" >&6; }
3112 else
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 printf "%s\n" "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "clang", so it can be a program name with args.
3122 set dummy clang; ac_word=$2
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 printf %s "checking for $ac_word... " >&6; }
3125 if test ${ac_cv_prog_ac_ct_CC+y}
3126 then :
3127 printf %s "(cached) " >&6
3128 else case e in #(
3129 e) if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135 IFS=$as_save_IFS
3136 case $as_dir in #(((
3137 '') as_dir=./ ;;
3138 */) ;;
3139 *) as_dir=$as_dir/ ;;
3140 esac
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_CC="clang"
3144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi ;;
3152 esac
3153 fi
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 printf "%s\n" "$ac_ct_CC" >&6; }
3158 else
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 printf "%s\n" "no" >&6; }
3161 fi
3162
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172 CC=$ac_ct_CC
3173 fi
3174 else
3175 CC="$ac_cv_prog_CC"
3176 fi
3177
3178 fi
3179
3180
3181 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3182 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3183 as_fn_error $? "no acceptable C compiler found in \$PATH
3184 See 'config.log' for more details" "$LINENO" 5; }
3185
3186 # Provide some information about the compiler.
3187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3188 set X $ac_compile
3189 ac_compiler=$2
3190 for ac_option in --version -v -V -qversion -version; do
3191 { { ac_try="$ac_compiler $ac_option >&5"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 printf "%s\n" "$ac_try_echo"; } >&5
3198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3199 ac_status=$?
3200 if test -s conftest.err; then
3201 sed '10a\
3202 ... rest of stderr output deleted ...
3203 10q' conftest.err >conftest.er1
3204 cat conftest.er1 >&5
3205 fi
3206 rm -f conftest.er1 conftest.err
3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208 test $ac_status = 0; }
3209 done
3210
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3213
3214 int
3215 main (void)
3216 {
3217
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 ac_clean_files_save=$ac_clean_files
3223 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3224 # Try to create an executable without -o first, disregard a.out.
3225 # It will help us diagnose broken compilers, and finding out an intuition
3226 # of exeext.
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3228 printf %s "checking whether the C compiler works... " >&6; }
3229 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3230
3231 # The possible output files:
3232 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3233
3234 ac_rmfiles=
3235 for ac_file in $ac_files
3236 do
3237 case $ac_file in
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3240 esac
3241 done
3242 rm -f $ac_rmfiles
3243
3244 if { { ac_try="$ac_link_default"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 printf "%s\n" "$ac_try_echo"; } >&5
3251 (eval "$ac_link_default") 2>&5
3252 ac_status=$?
3253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }
3255 then :
3256 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3257 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3258 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3260 # Autoconf.
3261 for ac_file in $ac_files ''
3262 do
3263 test -f "$ac_file" || continue
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3266 ;;
3267 [ab].out )
3268 # We found the default executable, but exeext='' is most
3269 # certainly right.
3270 break;;
3271 *.* )
3272 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3273 then :; else
3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 fi
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an '-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3280 # actually working.
3281 break;;
3282 * )
3283 break;;
3284 esac
3285 done
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
3288 else case e in #(
3289 e) ac_file='' ;;
3290 esac
3291 fi
3292 if test -z "$ac_file"
3293 then :
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 printf "%s\n" "no" >&6; }
3296 printf "%s\n" "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3300 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3301 as_fn_error 77 "C compiler cannot create executables
3302 See 'config.log' for more details" "$LINENO" 5; }
3303 else case e in #(
3304 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 printf "%s\n" "yes" >&6; } ;;
3306 esac
3307 fi
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3309 printf %s "checking for C compiler default output file name... " >&6; }
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3311 printf "%s\n" "$ac_file" >&6; }
3312 ac_exeext=$ac_cv_exeext
3313
3314 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3315 ac_clean_files=$ac_clean_files_save
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3317 printf %s "checking for suffix of executables... " >&6; }
3318 if { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 printf "%s\n" "$ac_try_echo"; } >&5
3325 (eval "$ac_link") 2>&5
3326 ac_status=$?
3327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3329 then :
3330 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3331 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3332 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3333 # 'rm'.
3334 for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 break;;
3340 * ) break;;
3341 esac
3342 done
3343 else case e in #(
3344 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3345 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3347 See 'config.log' for more details" "$LINENO" 5; } ;;
3348 esac
3349 fi
3350 rm -f conftest conftest$ac_cv_exeext
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3352 printf "%s\n" "$ac_cv_exeext" >&6; }
3353
3354 rm -f conftest.$ac_ext
3355 EXEEXT=$ac_cv_exeext
3356 ac_exeext=$EXEEXT
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #include <stdio.h>
3360 int
3361 main (void)
3362 {
3363 FILE *f = fopen ("conftest.out", "w");
3364 if (!f)
3365 return 1;
3366 return ferror (f) || fclose (f) != 0;
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 ac_clean_files="$ac_clean_files conftest.out"
3373 # Check that the compiler produces executables we can run. If not, either
3374 # the compiler is broken, or we cross compile.
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376 printf %s "checking whether we are cross compiling... " >&6; }
3377 if test "$cross_compiling" != yes; then
3378 { { ac_try="$ac_link"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 printf "%s\n" "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3386 ac_status=$?
3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3389 if { ac_try='./conftest$ac_cv_exeext'
3390 { { case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 printf "%s\n" "$ac_try_echo"; } >&5
3396 (eval "$ac_try") 2>&5
3397 ac_status=$?
3398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; }; then
3400 cross_compiling=no
3401 else
3402 if test "$cross_compiling" = maybe; then
3403 cross_compiling=yes
3404 else
3405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3406 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3407 as_fn_error 77 "cannot run C compiled programs.
3408 If you meant to cross compile, use '--host'.
3409 See 'config.log' for more details" "$LINENO" 5; }
3410 fi
3411 fi
3412 fi
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414 printf "%s\n" "$cross_compiling" >&6; }
3415
3416 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3417 conftest.o conftest.obj conftest.out
3418 ac_clean_files=$ac_clean_files_save
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3420 printf %s "checking for suffix of object files... " >&6; }
3421 if test ${ac_cv_objext+y}
3422 then :
3423 printf %s "(cached) " >&6
3424 else case e in #(
3425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427
3428 int
3429 main (void)
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.o conftest.obj
3437 if { { ac_try="$ac_compile"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 printf "%s\n" "$ac_try_echo"; } >&5
3444 (eval "$ac_compile") 2>&5
3445 ac_status=$?
3446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 then :
3449 for ac_file in conftest.o conftest.obj conftest.*; do
3450 test -f "$ac_file" || continue;
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454 break;;
3455 esac
3456 done
3457 else case e in #(
3458 e) printf "%s\n" "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3462 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3463 as_fn_error $? "cannot compute suffix of object files: cannot compile
3464 See 'config.log' for more details" "$LINENO" 5; } ;;
3465 esac
3466 fi
3467 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3468 esac
3469 fi
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471 printf "%s\n" "$ac_cv_objext" >&6; }
3472 OBJEXT=$ac_cv_objext
3473 ac_objext=$OBJEXT
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3475 printf %s "checking whether the compiler supports GNU C... " >&6; }
3476 if test ${ac_cv_c_compiler_gnu+y}
3477 then :
3478 printf %s "(cached) " >&6
3479 else case e in #(
3480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main (void)
3485 {
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"
3495 then :
3496 ac_compiler_gnu=yes
3497 else case e in #(
3498 e) ac_compiler_gnu=no ;;
3499 esac
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503 ;;
3504 esac
3505 fi
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3507 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510 if test $ac_compiler_gnu = yes; then
3511 GCC=yes
3512 else
3513 GCC=
3514 fi
3515 ac_test_CFLAGS=${CFLAGS+y}
3516 ac_save_CFLAGS=$CFLAGS
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3518 printf %s "checking whether $CC accepts -g... " >&6; }
3519 if test ${ac_cv_prog_cc_g+y}
3520 then :
3521 printf %s "(cached) " >&6
3522 else case e in #(
3523 e) ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3525 ac_cv_prog_cc_g=no
3526 CFLAGS="-g"
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529
3530 int
3531 main (void)
3532 {
3533
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"
3539 then :
3540 ac_cv_prog_cc_g=yes
3541 else case e in #(
3542 e) CFLAGS=""
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545
3546 int
3547 main (void)
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"
3555 then :
3556
3557 else case e in #(
3558 e) ac_c_werror_flag=$ac_save_c_werror_flag
3559 CFLAGS="-g"
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main (void)
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"
3572 then :
3573 ac_cv_prog_cc_g=yes
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3576 esac
3577 fi
3578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3579 esac
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3582 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3583 esac
3584 fi
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3586 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3587 if test $ac_test_CFLAGS; then
3588 CFLAGS=$ac_save_CFLAGS
3589 elif test $ac_cv_prog_cc_g = yes; then
3590 if test "$GCC" = yes; then
3591 CFLAGS="-g -O2"
3592 else
3593 CFLAGS="-g"
3594 fi
3595 else
3596 if test "$GCC" = yes; then
3597 CFLAGS="-O2"
3598 else
3599 CFLAGS=
3600 fi
3601 fi
3602 ac_prog_cc_stdc=no
3603 if test x$ac_prog_cc_stdc = xno
3604 then :
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3606 printf %s "checking for $CC option to enable C11 features... " >&6; }
3607 if test ${ac_cv_prog_cc_c11+y}
3608 then :
3609 printf %s "(cached) " >&6
3610 else case e in #(
3611 e) ac_cv_prog_cc_c11=no
3612 ac_save_CC=$CC
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615 $ac_c_conftest_c11_program
3616 _ACEOF
3617 for ac_arg in '' -std=gnu11
3618 do
3619 CC="$ac_save_CC $ac_arg"
3620 if ac_fn_c_try_compile "$LINENO"
3621 then :
3622 ac_cv_prog_cc_c11=$ac_arg
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.beam
3625 test "x$ac_cv_prog_cc_c11" != "xno" && break
3626 done
3627 rm -f conftest.$ac_ext
3628 CC=$ac_save_CC ;;
3629 esac
3630 fi
3631
3632 if test "x$ac_cv_prog_cc_c11" = xno
3633 then :
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635 printf "%s\n" "unsupported" >&6; }
3636 else case e in #(
3637 e) if test "x$ac_cv_prog_cc_c11" = x
3638 then :
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3640 printf "%s\n" "none needed" >&6; }
3641 else case e in #(
3642 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3643 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3644 CC="$CC $ac_cv_prog_cc_c11" ;;
3645 esac
3646 fi
3647 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3648 ac_prog_cc_stdc=c11 ;;
3649 esac
3650 fi
3651 fi
3652 if test x$ac_prog_cc_stdc = xno
3653 then :
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3655 printf %s "checking for $CC option to enable C99 features... " >&6; }
3656 if test ${ac_cv_prog_cc_c99+y}
3657 then :
3658 printf %s "(cached) " >&6
3659 else case e in #(
3660 e) ac_cv_prog_cc_c99=no
3661 ac_save_CC=$CC
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664 $ac_c_conftest_c99_program
3665 _ACEOF
3666 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3667 do
3668 CC="$ac_save_CC $ac_arg"
3669 if ac_fn_c_try_compile "$LINENO"
3670 then :
3671 ac_cv_prog_cc_c99=$ac_arg
3672 fi
3673 rm -f core conftest.err conftest.$ac_objext conftest.beam
3674 test "x$ac_cv_prog_cc_c99" != "xno" && break
3675 done
3676 rm -f conftest.$ac_ext
3677 CC=$ac_save_CC ;;
3678 esac
3679 fi
3680
3681 if test "x$ac_cv_prog_cc_c99" = xno
3682 then :
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3684 printf "%s\n" "unsupported" >&6; }
3685 else case e in #(
3686 e) if test "x$ac_cv_prog_cc_c99" = x
3687 then :
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3689 printf "%s\n" "none needed" >&6; }
3690 else case e in #(
3691 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3692 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3693 CC="$CC $ac_cv_prog_cc_c99" ;;
3694 esac
3695 fi
3696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3697 ac_prog_cc_stdc=c99 ;;
3698 esac
3699 fi
3700 fi
3701 if test x$ac_prog_cc_stdc = xno
3702 then :
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3704 printf %s "checking for $CC option to enable C89 features... " >&6; }
3705 if test ${ac_cv_prog_cc_c89+y}
3706 then :
3707 printf %s "(cached) " >&6
3708 else case e in #(
3709 e) ac_cv_prog_cc_c89=no
3710 ac_save_CC=$CC
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 $ac_c_conftest_c89_program
3714 _ACEOF
3715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 do
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"
3719 then :
3720 ac_cv_prog_cc_c89=$ac_arg
3721 fi
3722 rm -f core conftest.err conftest.$ac_objext conftest.beam
3723 test "x$ac_cv_prog_cc_c89" != "xno" && break
3724 done
3725 rm -f conftest.$ac_ext
3726 CC=$ac_save_CC ;;
3727 esac
3728 fi
3729
3730 if test "x$ac_cv_prog_cc_c89" = xno
3731 then :
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733 printf "%s\n" "unsupported" >&6; }
3734 else case e in #(
3735 e) if test "x$ac_cv_prog_cc_c89" = x
3736 then :
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3738 printf "%s\n" "none needed" >&6; }
3739 else case e in #(
3740 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3741 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3742 CC="$CC $ac_cv_prog_cc_c89" ;;
3743 esac
3744 fi
3745 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3746 ac_prog_cc_stdc=c89 ;;
3747 esac
3748 fi
3749 fi
3750
3751 ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757
3758 ac_ext=c
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3764 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3765 if test ${am_cv_prog_cc_c_o+y}
3766 then :
3767 printf %s "(cached) " >&6
3768 else case e in #(
3769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 int
3773 main (void)
3774 {
3775
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 # Make sure it works both with $CC and with simple cc.
3781 # Following AC_PROG_CC_C_O, we do the test twice because some
3782 # compilers refuse to overwrite an existing .o file with -o,
3783 # though they will create one.
3784 am_cv_prog_cc_c_o=yes
3785 for am_i in 1 2; do
3786 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3787 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } \
3791 && test -f conftest2.$ac_objext; then
3792 : OK
3793 else
3794 am_cv_prog_cc_c_o=no
3795 break
3796 fi
3797 done
3798 rm -f core conftest*
3799 unset am_i ;;
3800 esac
3801 fi
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3803 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3804 if test "$am_cv_prog_cc_c_o" != yes; then
3805 # Losing compiler, so override with the script.
3806 # FIXME: It is wrong to rewrite CC.
3807 # But if we don't then we get into trouble of one sort or another.
3808 # A longer-term fix would be to have automake use am__CC in this case,
3809 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3810 CC="$am_aux_dir/compile $CC"
3811 fi
3812 ac_ext=c
3813 ac_cpp='$CPP $CPPFLAGS'
3814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817
3818
3819
3820 ac_header= ac_cache=
3821 for ac_item in $ac_header_c_list
3822 do
3823 if test $ac_cache; then
3824 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3825 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3826 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3827 fi
3828 ac_header= ac_cache=
3829 elif test $ac_header; then
3830 ac_cache=$ac_item
3831 else
3832 ac_header=$ac_item
3833 fi
3834 done
3835
3836
3837
3838
3839
3840
3841
3842
3843 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3844 then :
3845
3846 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3847
3848 fi
3849
3850
3851
3852
3853
3854
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3856 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3857 if test ${ac_cv_safe_to_define___extensions__+y}
3858 then :
3859 printf %s "(cached) " >&6
3860 else case e in #(
3861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863
3864 # define __EXTENSIONS__ 1
3865 $ac_includes_default
3866 int
3867 main (void)
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 if ac_fn_c_try_compile "$LINENO"
3875 then :
3876 ac_cv_safe_to_define___extensions__=yes
3877 else case e in #(
3878 e) ac_cv_safe_to_define___extensions__=no ;;
3879 esac
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3882 esac
3883 fi
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3885 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3886
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3888 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3889 if test ${ac_cv_should_define__xopen_source+y}
3890 then :
3891 printf %s "(cached) " >&6
3892 else case e in #(
3893 e) ac_cv_should_define__xopen_source=no
3894 if test $ac_cv_header_wchar_h = yes
3895 then :
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 #include <wchar.h>
3900 mbstate_t x;
3901 int
3902 main (void)
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"
3910 then :
3911
3912 else case e in #(
3913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915
3916 #define _XOPEN_SOURCE 500
3917 #include <wchar.h>
3918 mbstate_t x;
3919 int
3920 main (void)
3921 {
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"
3928 then :
3929 ac_cv_should_define__xopen_source=yes
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3932 esac
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3935 fi ;;
3936 esac
3937 fi
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3939 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3940
3941 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3942
3943 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3944
3945 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3946
3947 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3948
3949 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3950
3951 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3952
3953 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3954
3955 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3956
3957 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3958
3959 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3960
3961 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3962
3963 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3964
3965 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3966
3967 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3968
3969 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3970
3971 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3972
3973 if test $ac_cv_header_minix_config_h = yes
3974 then :
3975 MINIX=yes
3976 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3977
3978 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3979
3980 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3981
3982 else case e in #(
3983 e) MINIX= ;;
3984 esac
3985 fi
3986 if test $ac_cv_safe_to_define___extensions__ = yes
3987 then :
3988 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3989
3990 fi
3991 if test $ac_cv_should_define__xopen_source = yes
3992 then :
3993 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3994
3995 fi
3996
3997
3998 # Initialize Automake
3999 am__api_version='1.17'
4000
4001
4002 # Find a good install program. We prefer a C program (faster),
4003 # so one script is as good as another. But avoid the broken or
4004 # incompatible versions:
4005 # SysV /etc/install, /usr/sbin/install
4006 # SunOS /usr/etc/install
4007 # IRIX /sbin/install
4008 # AIX /bin/install
4009 # AmigaOS /C/install, which installs bootblocks on floppy discs
4010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4013 # OS/2's system install, which has a completely different semantic
4014 # ./install, which can be erroneously created by make from ./install.sh.
4015 # Reject install programs that cannot install multiple files.
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4017 printf %s "checking for a BSD-compatible install... " >&6; }
4018 if test -z "$INSTALL"; then
4019 if test ${ac_cv_path_install+y}
4020 then :
4021 printf %s "(cached) " >&6
4022 else case e in #(
4023 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026 IFS=$as_save_IFS
4027 case $as_dir in #(((
4028 '') as_dir=./ ;;
4029 */) ;;
4030 *) as_dir=$as_dir/ ;;
4031 esac
4032 # Account for fact that we put trailing slashes in our PATH walk.
4033 case $as_dir in #((
4034 ./ | /[cC]/* | \
4035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4036 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4037 /usr/ucb/* ) ;;
4038 *)
4039 # OSF1 and SCO ODT 3.0 have their own names for install.
4040 # Don't use installbsd from OSF since it installs stuff as root
4041 # by default.
4042 for ac_prog in ginstall scoinst install; do
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4045 if test $ac_prog = install &&
4046 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047 # AIX install. It has an incompatible calling convention.
4048 :
4049 elif test $ac_prog = install &&
4050 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4051 # program-specific install script used by HP pwplus--don't use.
4052 :
4053 else
4054 rm -rf conftest.one conftest.two conftest.dir
4055 echo one > conftest.one
4056 echo two > conftest.two
4057 mkdir conftest.dir
4058 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4059 test -s conftest.one && test -s conftest.two &&
4060 test -s conftest.dir/conftest.one &&
4061 test -s conftest.dir/conftest.two
4062 then
4063 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4064 break 3
4065 fi
4066 fi
4067 fi
4068 done
4069 done
4070 ;;
4071 esac
4072
4073 done
4074 IFS=$as_save_IFS
4075
4076 rm -rf conftest.one conftest.two conftest.dir
4077 ;;
4078 esac
4079 fi
4080 if test ${ac_cv_path_install+y}; then
4081 INSTALL=$ac_cv_path_install
4082 else
4083 # As a last resort, use the slow shell script. Don't cache a
4084 # value for INSTALL within a source directory, because that will
4085 # break other packages using the cache if that directory is
4086 # removed, or if the value is a relative name.
4087 INSTALL=$ac_install_sh
4088 fi
4089 fi
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4091 printf "%s\n" "$INSTALL" >&6; }
4092
4093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4094 # It thinks the first close brace ends the variable substitution.
4095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4096
4097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4098
4099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4100
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4102 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4103 if test ${am_cv_sleep_fractional_seconds+y}
4104 then :
4105 printf %s "(cached) " >&6
4106 else case e in #(
4107 e) if sleep 0.001 2>/dev/null
4108 then :
4109 am_cv_sleep_fractional_seconds=yes
4110 else case e in #(
4111 e) am_cv_sleep_fractional_seconds=no ;;
4112 esac
4113 fi
4114 ;;
4115 esac
4116 fi
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4118 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4119
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4121 printf %s "checking filesystem timestamp resolution... " >&6; }
4122 if test ${am_cv_filesystem_timestamp_resolution+y}
4123 then :
4124 printf %s "(cached) " >&6
4125 else case e in #(
4126 e) # Default to the worst case.
4127 am_cv_filesystem_timestamp_resolution=2
4128
4129 # Only try to go finer than 1 sec if sleep can do it.
4130 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4131 # - 1 sec is not much of a win compared to 2 sec, and
4132 # - it takes 2 seconds to perform the test whether 1 sec works.
4133 #
4134 # Instead, just use the default 2s on platforms that have 1s resolution,
4135 # accept the extra 1s delay when using $sleep in the Automake tests, in
4136 # exchange for not incurring the 2s delay for running the test for all
4137 # packages.
4138 #
4139 am_try_resolutions=
4140 if test "$am_cv_sleep_fractional_seconds" = yes; then
4141 # Even a millisecond often causes a bunch of false positives,
4142 # so just try a hundredth of a second. The time saved between .001 and
4143 # .01 is not terribly consequential.
4144 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4145 fi
4146
4147 # In order to catch current-generation FAT out, we must *modify* files
4148 # that already exist; the *creation* timestamp is finer. Use names
4149 # that make ls -t sort them differently when they have equal
4150 # timestamps than when they have distinct timestamps, keeping
4151 # in mind that ls -t prints the *newest* file first.
4152 rm -f conftest.ts?
4153 : > conftest.ts1
4154 : > conftest.ts2
4155 : > conftest.ts3
4156
4157 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4158 # clobber the current shell's arguments. (Outer-level square brackets
4159 # are removed by m4; they're present so that m4 does not expand
4160 # <dollar><star>; be careful, easy to get confused.)
4161 if (
4162 set X `ls -t conftest.ts[12]` &&
4163 {
4164 test "$*" != "X conftest.ts1 conftest.ts2" ||
4165 test "$*" != "X conftest.ts2 conftest.ts1";
4166 }
4167 ); then :; else
4168 # If neither matched, then we have a broken ls. This can happen
4169 # if, for instance, CONFIG_SHELL is bash and it inherits a
4170 # broken ls alias from the environment. This has actually
4171 # happened. Such a system could not be considered "sane".
4172 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4174 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4175 as_fn_error $? "ls -t produces unexpected output.
4176 Make sure there is not a broken ls alias in your environment.
4177 See 'config.log' for more details" "$LINENO" 5; }
4178 fi
4179
4180 for am_try_res in $am_try_resolutions; do
4181 # Any one fine-grained sleep might happen to cross the boundary
4182 # between two values of a coarser actual resolution, but if we do
4183 # two fine-grained sleeps in a row, at least one of them will fall
4184 # entirely within a coarse interval.
4185 echo alpha > conftest.ts1
4186 sleep $am_try_res
4187 echo beta > conftest.ts2
4188 sleep $am_try_res
4189 echo gamma > conftest.ts3
4190
4191 # We assume that 'ls -t' will make use of high-resolution
4192 # timestamps if the operating system supports them at all.
4193 if (set X `ls -t conftest.ts?` &&
4194 test "$2" = conftest.ts3 &&
4195 test "$3" = conftest.ts2 &&
4196 test "$4" = conftest.ts1); then
4197 #
4198 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4199 # because we don't need to test make.
4200 make_ok=true
4201 if test $am_try_res != 1; then
4202 # But if we've succeeded so far with a subsecond resolution, we
4203 # have one more thing to check: make. It can happen that
4204 # everything else supports the subsecond mtimes, but make doesn't;
4205 # notably on macOS, which ships make 3.81 from 2006 (the last one
4206 # released under GPLv2). https://bugs.gnu.org/68808
4207 #
4208 # We test $MAKE if it is defined in the environment, else "make".
4209 # It might get overridden later, but our hope is that in practice
4210 # it does not matter: it is the system "make" which is (by far)
4211 # the most likely to be broken, whereas if the user overrides it,
4212 # probably they did so with a better, or at least not worse, make.
4213 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4214 #
4215 # Create a Makefile (real tab character here):
4216 rm -f conftest.mk
4217 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4218 echo ' touch conftest.ts2' >>conftest.mk
4219 #
4220 # Now, running
4221 # touch conftest.ts1; touch conftest.ts2; make
4222 # should touch ts1 because ts2 is newer. This could happen by luck,
4223 # but most often, it will fail if make's support is insufficient. So
4224 # test for several consecutive successes.
4225 #
4226 # (We reuse conftest.ts[12] because we still want to modify existing
4227 # files, not create new ones, per above.)
4228 n=0
4229 make=${MAKE-make}
4230 until test $n -eq 3; do
4231 echo one > conftest.ts1
4232 sleep $am_try_res
4233 echo two > conftest.ts2 # ts2 should now be newer than ts1
4234 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4235 make_ok=false
4236 break # out of $n loop
4237 fi
4238 n=`expr $n + 1`
4239 done
4240 fi
4241 #
4242 if $make_ok; then
4243 # Everything we know to check worked out, so call this resolution good.
4244 am_cv_filesystem_timestamp_resolution=$am_try_res
4245 break # out of $am_try_res loop
4246 fi
4247 # Otherwise, we'll go on to check the next resolution.
4248 fi
4249 done
4250 rm -f conftest.ts?
4251 # (end _am_filesystem_timestamp_resolution)
4252 ;;
4253 esac
4254 fi
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4256 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4257
4258 # This check should not be cached, as it may vary across builds of
4259 # different projects.
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4261 printf %s "checking whether build environment is sane... " >&6; }
4262 # Reject unsafe characters in $srcdir or the absolute working directory
4263 # name. Accept space and tab only in the latter.
4264 am_lf='
4265 '
4266 case `pwd` in
4267 *[\\\"\#\$\&\'\`$am_lf]*)
4268 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4269 esac
4270 case $srcdir in
4271 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4272 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4273 esac
4274
4275 # Do 'set' in a subshell so we don't clobber the current shell's
4276 # arguments. Must try -L first in case configure is actually a
4277 # symlink; some systems play weird games with the mod time of symlinks
4278 # (eg FreeBSD returns the mod time of the symlink's containing
4279 # directory).
4280 am_build_env_is_sane=no
4281 am_has_slept=no
4282 rm -f conftest.file
4283 for am_try in 1 2; do
4284 echo "timestamp, slept: $am_has_slept" > conftest.file
4285 if (
4286 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4287 if test "$*" = "X"; then
4288 # -L didn't work.
4289 set X `ls -t "$srcdir/configure" conftest.file`
4290 fi
4291 test "$2" = conftest.file
4292 ); then
4293 am_build_env_is_sane=yes
4294 break
4295 fi
4296 # Just in case.
4297 sleep "$am_cv_filesystem_timestamp_resolution"
4298 am_has_slept=yes
4299 done
4300
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4302 printf "%s\n" "$am_build_env_is_sane" >&6; }
4303 if test "$am_build_env_is_sane" = no; then
4304 as_fn_error $? "newly created file is older than distributed files!
4305 Check your system clock" "$LINENO" 5
4306 fi
4307
4308 # If we didn't sleep, we still need to ensure time stamps of config.status and
4309 # generated files are strictly newer.
4310 am_sleep_pid=
4311 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4312 then :
4313
4314 else case e in #(
4315 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4316 am_sleep_pid=$!
4317 ;;
4318 esac
4319 fi
4320
4321 rm -f conftest.file
4322
4323 test "$program_prefix" != NONE &&
4324 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4325 # Use a double $ so make ignores it.
4326 test "$program_suffix" != NONE &&
4327 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4328 # Double any \ or $.
4329 # By default was 's,x,x', remove it if useless.
4330 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4331 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4332
4333
4334 if test x"${MISSING+set}" != xset; then
4335 MISSING="\${SHELL} '$am_aux_dir/missing'"
4336 fi
4337 # Use eval to expand $SHELL
4338 if eval "$MISSING --is-lightweight"; then
4339 am_missing_run="$MISSING "
4340 else
4341 am_missing_run=
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4343 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4344 fi
4345
4346 if test x"${install_sh+set}" != xset; then
4347 case $am_aux_dir in
4348 *\ * | *\ *)
4349 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4350 *)
4351 install_sh="\${SHELL} $am_aux_dir/install-sh"
4352 esac
4353 fi
4354
4355 # Installed binaries are usually stripped using 'strip' when the user
4356 # run "make install-strip". However 'strip' might not be the right
4357 # tool to use in cross-compilation environments, therefore Automake
4358 # will honor the 'STRIP' environment variable to overrule this program.
4359 if test "$cross_compiling" != no; then
4360 if test -n "$ac_tool_prefix"; then
4361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4362 set dummy ${ac_tool_prefix}strip; ac_word=$2
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 printf %s "checking for $ac_word... " >&6; }
4365 if test ${ac_cv_prog_STRIP+y}
4366 then :
4367 printf %s "(cached) " >&6
4368 else case e in #(
4369 e) if test -n "$STRIP"; then
4370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 case $as_dir in #(((
4377 '') as_dir=./ ;;
4378 */) ;;
4379 *) as_dir=$as_dir/ ;;
4380 esac
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387 done
4388 done
4389 IFS=$as_save_IFS
4390
4391 fi ;;
4392 esac
4393 fi
4394 STRIP=$ac_cv_prog_STRIP
4395 if test -n "$STRIP"; then
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4397 printf "%s\n" "$STRIP" >&6; }
4398 else
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 printf "%s\n" "no" >&6; }
4401 fi
4402
4403
4404 fi
4405 if test -z "$ac_cv_prog_STRIP"; then
4406 ac_ct_STRIP=$STRIP
4407 # Extract the first word of "strip", so it can be a program name with args.
4408 set dummy strip; ac_word=$2
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 printf %s "checking for $ac_word... " >&6; }
4411 if test ${ac_cv_prog_ac_ct_STRIP+y}
4412 then :
4413 printf %s "(cached) " >&6
4414 else case e in #(
4415 e) if test -n "$ac_ct_STRIP"; then
4416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421 IFS=$as_save_IFS
4422 case $as_dir in #(((
4423 '') as_dir=./ ;;
4424 */) ;;
4425 *) as_dir=$as_dir/ ;;
4426 esac
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_ac_ct_STRIP="strip"
4430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437 fi ;;
4438 esac
4439 fi
4440 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4441 if test -n "$ac_ct_STRIP"; then
4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4443 printf "%s\n" "$ac_ct_STRIP" >&6; }
4444 else
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 printf "%s\n" "no" >&6; }
4447 fi
4448
4449 if test "x$ac_ct_STRIP" = x; then
4450 STRIP=":"
4451 else
4452 case $cross_compiling:$ac_tool_warned in
4453 yes:)
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4455 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4456 ac_tool_warned=yes ;;
4457 esac
4458 STRIP=$ac_ct_STRIP
4459 fi
4460 else
4461 STRIP="$ac_cv_prog_STRIP"
4462 fi
4463
4464 fi
4465 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4466
4467
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4469 printf %s "checking for a race-free mkdir -p... " >&6; }
4470 if test -z "$MKDIR_P"; then
4471 if test ${ac_cv_path_mkdir+y}
4472 then :
4473 printf %s "(cached) " >&6
4474 else case e in #(
4475 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4477 do
4478 IFS=$as_save_IFS
4479 case $as_dir in #(((
4480 '') as_dir=./ ;;
4481 */) ;;
4482 *) as_dir=$as_dir/ ;;
4483 esac
4484 for ac_prog in mkdir gmkdir; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4487 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4488 'mkdir ('*'coreutils) '* | \
4489 *'BusyBox '* | \
4490 'mkdir (fileutils) '4.1*)
4491 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4492 break 3;;
4493 esac
4494 done
4495 done
4496 done
4497 IFS=$as_save_IFS
4498 ;;
4499 esac
4500 fi
4501
4502 test -d ./--version && rmdir ./--version
4503 if test ${ac_cv_path_mkdir+y}; then
4504 MKDIR_P="$ac_cv_path_mkdir -p"
4505 else
4506 # As a last resort, use plain mkdir -p,
4507 # in the hope it doesn't have the bugs of ancient mkdir.
4508 MKDIR_P='mkdir -p'
4509 fi
4510 fi
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4512 printf "%s\n" "$MKDIR_P" >&6; }
4513
4514 for ac_prog in gawk mawk nawk awk
4515 do
4516 # Extract the first word of "$ac_prog", so it can be a program name with args.
4517 set dummy $ac_prog; ac_word=$2
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 printf %s "checking for $ac_word... " >&6; }
4520 if test ${ac_cv_prog_AWK+y}
4521 then :
4522 printf %s "(cached) " >&6
4523 else case e in #(
4524 e) if test -n "$AWK"; then
4525 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 case $as_dir in #(((
4532 '') as_dir=./ ;;
4533 */) ;;
4534 *) as_dir=$as_dir/ ;;
4535 esac
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4538 ac_cv_prog_AWK="$ac_prog"
4539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4545
4546 fi ;;
4547 esac
4548 fi
4549 AWK=$ac_cv_prog_AWK
4550 if test -n "$AWK"; then
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4552 printf "%s\n" "$AWK" >&6; }
4553 else
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 printf "%s\n" "no" >&6; }
4556 fi
4557
4558
4559 test -n "$AWK" && break
4560 done
4561
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4563 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4564 set x ${MAKE-make}
4565 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4566 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4567 then :
4568 printf %s "(cached) " >&6
4569 else case e in #(
4570 e) cat >conftest.make <<\_ACEOF
4571 SHELL = /bin/sh
4572 all:
4573 @echo '@@@%%%=$(MAKE)=@@@%%%'
4574 _ACEOF
4575 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4576 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4577 *@@@%%%=?*=@@@%%%*)
4578 eval ac_cv_prog_make_${ac_make}_set=yes;;
4579 *)
4580 eval ac_cv_prog_make_${ac_make}_set=no;;
4581 esac
4582 rm -f conftest.make ;;
4583 esac
4584 fi
4585 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587 printf "%s\n" "yes" >&6; }
4588 SET_MAKE=
4589 else
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 printf "%s\n" "no" >&6; }
4592 SET_MAKE="MAKE=${MAKE-make}"
4593 fi
4594
4595 rm -rf .tst 2>/dev/null
4596 mkdir .tst 2>/dev/null
4597 if test -d .tst; then
4598 am__leading_dot=.
4599 else
4600 am__leading_dot=_
4601 fi
4602 rmdir .tst 2>/dev/null
4603
4604 DEPDIR="${am__leading_dot}deps"
4605
4606 ac_config_commands="$ac_config_commands depfiles"
4607
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4609 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4610 cat > confinc.mk << 'END'
4611 am__doit:
4612 @echo this is the am__doit target >confinc.out
4613 .PHONY: am__doit
4614 END
4615 am__include="#"
4616 am__quote=
4617 # BSD make does it like this.
4618 echo '.include "confinc.mk" # ignored' > confmf.BSD
4619 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4620 echo 'include confinc.mk # ignored' > confmf.GNU
4621 _am_result=no
4622 for s in GNU BSD; do
4623 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4624 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }
4628 case $?:`cat confinc.out 2>/dev/null` in #(
4629 '0:this is the am__doit target') :
4630 case $s in #(
4631 BSD) :
4632 am__include='.include' am__quote='"' ;; #(
4633 *) :
4634 am__include='include' am__quote='' ;;
4635 esac ;; #(
4636 *) :
4637 ;;
4638 esac
4639 if test "$am__include" != "#"; then
4640 _am_result="yes ($s style)"
4641 break
4642 fi
4643 done
4644 rm -f confinc.* confmf.*
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4646 printf "%s\n" "${_am_result}" >&6; }
4647
4648 # Check whether --enable-dependency-tracking was given.
4649 if test ${enable_dependency_tracking+y}
4650 then :
4651 enableval=$enable_dependency_tracking;
4652 fi
4653
4654 if test "x$enable_dependency_tracking" != xno; then
4655 am_depcomp="$ac_aux_dir/depcomp"
4656 AMDEPBACKSLASH='\'
4657 am__nodep='_no'
4658 fi
4659 if test "x$enable_dependency_tracking" != xno; then
4660 AMDEP_TRUE=
4661 AMDEP_FALSE='#'
4662 else
4663 AMDEP_TRUE='#'
4664 AMDEP_FALSE=
4665 fi
4666
4667
4668 AM_DEFAULT_VERBOSITY=1
4669 # Check whether --enable-silent-rules was given.
4670 if test ${enable_silent_rules+y}
4671 then :
4672 enableval=$enable_silent_rules;
4673 fi
4674
4675 am_make=${MAKE-make}
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4677 printf %s "checking whether $am_make supports nested variables... " >&6; }
4678 if test ${am_cv_make_support_nested_variables+y}
4679 then :
4680 printf %s "(cached) " >&6
4681 else case e in #(
4682 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4683 BAR0=false
4684 BAR1=true
4685 V=1
4686 am__doit:
4687 @$(TRUE)
4688 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4689 am_cv_make_support_nested_variables=yes
4690 else
4691 am_cv_make_support_nested_variables=no
4692 fi ;;
4693 esac
4694 fi
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4696 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4697 AM_BACKSLASH='\'
4698
4699 am__rm_f_notfound=
4700 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4701 then :
4702
4703 else case e in #(
4704 e) am__rm_f_notfound='""' ;;
4705 esac
4706 fi
4707
4708
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4710 printf %s "checking xargs -n works... " >&6; }
4711 if test ${am_cv_xargs_n_works+y}
4712 then :
4713 printf %s "(cached) " >&6
4714 else case e in #(
4715 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4716 3"
4717 then :
4718 am_cv_xargs_n_works=yes
4719 else case e in #(
4720 e) am_cv_xargs_n_works=no ;;
4721 esac
4722 fi ;;
4723 esac
4724 fi
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4726 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4727 if test "$am_cv_xargs_n_works" = yes
4728 then :
4729 am__xargs_n='xargs -n'
4730 else case e in #(
4731 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4732 ;;
4733 esac
4734 fi
4735
4736 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4737 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4738 # is not polluted with repeated "-I."
4739 am__isrc=' -I$(srcdir)'
4740 # test to see if srcdir already configured
4741 if test -f $srcdir/config.status; then
4742 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4743 fi
4744 fi
4745
4746 # test whether we have cygpath
4747 if test -z "$CYGPATH_W"; then
4748 if (cygpath --version) >/dev/null 2>/dev/null; then
4749 CYGPATH_W='cygpath -w'
4750 else
4751 CYGPATH_W=echo
4752 fi
4753 fi
4754
4755
4756 # Define the identity of the package.
4757 PACKAGE='xauth'
4758 VERSION='1.1.4'
4759
4760
4761 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4762
4763
4764 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4765
4766 # Some tools Automake needs.
4767
4768 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4769
4770
4771 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4772
4773
4774 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4775
4776
4777 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4778
4779
4780 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4781
4782 # For better backward compatibility. To be removed once Automake 1.9.x
4783 # dies out for good. For more background, see:
4784 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4785 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4786 mkdir_p='$(MKDIR_P)'
4787
4788 # We need awk for the "check" target (and possibly the TAP driver). The
4789 # system "awk" is bad on some platforms.
4790 # Always define AMTAR for backward compatibility. Yes, it's still used
4791 # in the wild :-( We should find a proper way to deprecate it ...
4792 AMTAR='$${TAR-tar}'
4793
4794
4795 # We'll loop over all known methods to create a tar archive until one works.
4796 _am_tools='gnutar pax cpio none'
4797
4798 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4799
4800
4801
4802
4803
4804 depcc="$CC" am_compiler_list=
4805
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4807 printf %s "checking dependency style of $depcc... " >&6; }
4808 if test ${am_cv_CC_dependencies_compiler_type+y}
4809 then :
4810 printf %s "(cached) " >&6
4811 else case e in #(
4812 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4813 # We make a subdir and do the tests there. Otherwise we can end up
4814 # making bogus files that we don't know about and never remove. For
4815 # instance it was reported that on HP-UX the gcc test will end up
4816 # making a dummy file named 'D' -- because '-MD' means "put the output
4817 # in D".
4818 rm -rf conftest.dir
4819 mkdir conftest.dir
4820 # Copy depcomp to subdir because otherwise we won't find it if we're
4821 # using a relative directory.
4822 cp "$am_depcomp" conftest.dir
4823 cd conftest.dir
4824 # We will build objects and dependencies in a subdirectory because
4825 # it helps to detect inapplicable dependency modes. For instance
4826 # both Tru64's cc and ICC support -MD to output dependencies as a
4827 # side effect of compilation, but ICC will put the dependencies in
4828 # the current directory while Tru64 will put them in the object
4829 # directory.
4830 mkdir sub
4831
4832 am_cv_CC_dependencies_compiler_type=none
4833 if test "$am_compiler_list" = ""; then
4834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4835 fi
4836 am__universal=false
4837 case " $depcc " in #(
4838 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4839 esac
4840
4841 for depmode in $am_compiler_list; do
4842 # Setup a source with many dependencies, because some compilers
4843 # like to wrap large dependency lists on column 80 (with \), and
4844 # we should not choose a depcomp mode which is confused by this.
4845 #
4846 # We need to recreate these files for each test, as the compiler may
4847 # overwrite some of them when testing with obscure command lines.
4848 # This happens at least with the AIX C compiler.
4849 : > sub/conftest.c
4850 for i in 1 2 3 4 5 6; do
4851 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4852 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4853 # Solaris 10 /bin/sh.
4854 echo '/* dummy */' > sub/conftst$i.h
4855 done
4856 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4857
4858 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4859 # mode. It turns out that the SunPro C++ compiler does not properly
4860 # handle '-M -o', and we need to detect this. Also, some Intel
4861 # versions had trouble with output in subdirs.
4862 am__obj=sub/conftest.${OBJEXT-o}
4863 am__minus_obj="-o $am__obj"
4864 case $depmode in
4865 gcc)
4866 # This depmode causes a compiler race in universal mode.
4867 test "$am__universal" = false || continue
4868 ;;
4869 nosideeffect)
4870 # After this tag, mechanisms are not by side-effect, so they'll
4871 # only be used when explicitly requested.
4872 if test "x$enable_dependency_tracking" = xyes; then
4873 continue
4874 else
4875 break
4876 fi
4877 ;;
4878 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4879 # This compiler won't grok '-c -o', but also, the minuso test has
4880 # not run yet. These depmodes are late enough in the game, and
4881 # so weak that their functioning should not be impacted.
4882 am__obj=conftest.${OBJEXT-o}
4883 am__minus_obj=
4884 ;;
4885 none) break ;;
4886 esac
4887 if depmode=$depmode \
4888 source=sub/conftest.c object=$am__obj \
4889 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4890 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4891 >/dev/null 2>conftest.err &&
4892 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4893 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4894 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4895 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4896 # icc doesn't choke on unknown options, it will just issue warnings
4897 # or remarks (even with -Werror). So we grep stderr for any message
4898 # that says an option was ignored or not supported.
4899 # When given -MP, icc 7.0 and 7.1 complain thus:
4900 # icc: Command line warning: ignoring option '-M'; no argument required
4901 # The diagnosis changed in icc 8.0:
4902 # icc: Command line remark: option '-MP' not supported
4903 if (grep 'ignoring option' conftest.err ||
4904 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4905 am_cv_CC_dependencies_compiler_type=$depmode
4906 break
4907 fi
4908 fi
4909 done
4910
4911 cd ..
4912 rm -rf conftest.dir
4913 else
4914 am_cv_CC_dependencies_compiler_type=none
4915 fi
4916 ;;
4917 esac
4918 fi
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4920 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4921 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4922
4923 if
4924 test "x$enable_dependency_tracking" != xno \
4925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4926 am__fastdepCC_TRUE=
4927 am__fastdepCC_FALSE='#'
4928 else
4929 am__fastdepCC_TRUE='#'
4930 am__fastdepCC_FALSE=
4931 fi
4932
4933
4934 # Variables for tags utilities; see am/tags.am
4935 if test -z "$CTAGS"; then
4936 CTAGS=ctags
4937 fi
4938
4939 if test -z "$ETAGS"; then
4940 ETAGS=etags
4941 fi
4942
4943 if test -z "$CSCOPE"; then
4944 CSCOPE=cscope
4945 fi
4946
4947
4948
4949
4950
4951
4952
4953
4954 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4967 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4968 if test ${ac_cv_c_undeclared_builtin_options+y}
4969 then :
4970 printf %s "(cached) " >&6
4971 else case e in #(
4972 e) ac_save_CFLAGS=$CFLAGS
4973 ac_cv_c_undeclared_builtin_options='cannot detect'
4974 for ac_arg in '' -fno-builtin; do
4975 CFLAGS="$ac_save_CFLAGS $ac_arg"
4976 # This test program should *not* compile successfully.
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979
4980 int
4981 main (void)
4982 {
4983 (void) strchr;
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 if ac_fn_c_try_compile "$LINENO"
4989 then :
4990
4991 else case e in #(
4992 e) # This test program should compile successfully.
4993 # No library function is consistently available on
4994 # freestanding implementations, so test against a dummy
4995 # declaration. Include always-available headers on the
4996 # off chance that they somehow elicit warnings.
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 #include <float.h>
5000 #include <limits.h>
5001 #include <stdarg.h>
5002 #include <stddef.h>
5003 extern void ac_decl (int, char *);
5004
5005 int
5006 main (void)
5007 {
5008 (void) ac_decl (0, (char *) 0);
5009 (void) ac_decl;
5010
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"
5016 then :
5017 if test x"$ac_arg" = x
5018 then :
5019 ac_cv_c_undeclared_builtin_options='none needed'
5020 else case e in #(
5021 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5022 esac
5023 fi
5024 break
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5027 esac
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5030 done
5031 CFLAGS=$ac_save_CFLAGS
5032 ;;
5033 esac
5034 fi
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5036 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5037 case $ac_cv_c_undeclared_builtin_options in #(
5038 'cannot detect') :
5039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5040 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5041 as_fn_error $? "cannot make $CC report undeclared builtins
5042 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5043 'none needed') :
5044 ac_c_undeclared_builtin_options='' ;; #(
5045 *) :
5046 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5047 esac
5048
5049
5050
5051
5052
5053 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5054 if test "x$ac_cv_have_decl___clang__" = xyes
5055 then :
5056 CLANGCC="yes"
5057 else case e in #(
5058 e) CLANGCC="no" ;;
5059 esac
5060 fi
5061 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5062 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5063 then :
5064 INTELCC="yes"
5065 else case e in #(
5066 e) INTELCC="no" ;;
5067 esac
5068 fi
5069 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5070 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5071 then :
5072 SUNCC="yes"
5073 else case e in #(
5074 e) SUNCC="no" ;;
5075 esac
5076 fi
5077
5078
5079
5080
5081
5082
5083
5084
5085 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 printf %s "checking for $ac_word... " >&6; }
5091 if test ${ac_cv_path_PKG_CONFIG+y}
5092 then :
5093 printf %s "(cached) " >&6
5094 else case e in #(
5095 e) case $PKG_CONFIG in
5096 [\\/]* | ?:[\\/]*)
5097 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5098 ;;
5099 *)
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103 IFS=$as_save_IFS
5104 case $as_dir in #(((
5105 '') as_dir=./ ;;
5106 */) ;;
5107 *) as_dir=$as_dir/ ;;
5108 esac
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5111 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119 ;;
5120 esac ;;
5121 esac
5122 fi
5123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5124 if test -n "$PKG_CONFIG"; then
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5126 printf "%s\n" "$PKG_CONFIG" >&6; }
5127 else
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 printf "%s\n" "no" >&6; }
5130 fi
5131
5132
5133 fi
5134 if test -z "$ac_cv_path_PKG_CONFIG"; then
5135 ac_pt_PKG_CONFIG=$PKG_CONFIG
5136 # Extract the first word of "pkg-config", so it can be a program name with args.
5137 set dummy pkg-config; ac_word=$2
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 printf %s "checking for $ac_word... " >&6; }
5140 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5141 then :
5142 printf %s "(cached) " >&6
5143 else case e in #(
5144 e) case $ac_pt_PKG_CONFIG in
5145 [\\/]* | ?:[\\/]*)
5146 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5147 ;;
5148 *)
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 case $as_dir in #(((
5154 '') as_dir=./ ;;
5155 */) ;;
5156 *) as_dir=$as_dir/ ;;
5157 esac
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5160 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166 IFS=$as_save_IFS
5167
5168 ;;
5169 esac ;;
5170 esac
5171 fi
5172 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5173 if test -n "$ac_pt_PKG_CONFIG"; then
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5175 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5176 else
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 printf "%s\n" "no" >&6; }
5179 fi
5180
5181 if test "x$ac_pt_PKG_CONFIG" = x; then
5182 PKG_CONFIG=""
5183 else
5184 case $cross_compiling:$ac_tool_warned in
5185 yes:)
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5188 ac_tool_warned=yes ;;
5189 esac
5190 PKG_CONFIG=$ac_pt_PKG_CONFIG
5191 fi
5192 else
5193 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5194 fi
5195
5196 fi
5197 if test -n "$PKG_CONFIG"; then
5198 _pkg_min_version=0.9.0
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5200 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5201 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5203 printf "%s\n" "yes" >&6; }
5204 else
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 printf "%s\n" "no" >&6; }
5207 PKG_CONFIG=""
5208 fi
5209 fi
5210
5211
5212 # Make sure we can run config.sub.
5213 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5214 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5215
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5217 printf %s "checking build system type... " >&6; }
5218 if test ${ac_cv_build+y}
5219 then :
5220 printf %s "(cached) " >&6
5221 else case e in #(
5222 e) ac_build_alias=$build_alias
5223 test "x$ac_build_alias" = x &&
5224 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5225 test "x$ac_build_alias" = x &&
5226 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5227 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5228 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5229 ;;
5230 esac
5231 fi
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5233 printf "%s\n" "$ac_cv_build" >&6; }
5234 case $ac_cv_build in
5235 *-*-*) ;;
5236 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5237 esac
5238 build=$ac_cv_build
5239 ac_save_IFS=$IFS; IFS='-'
5240 set x $ac_cv_build
5241 shift
5242 build_cpu=$1
5243 build_vendor=$2
5244 shift; shift
5245 # Remember, the first character of IFS is used to create $*,
5246 # except with old shells:
5247 build_os=$*
5248 IFS=$ac_save_IFS
5249 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5250
5251
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5253 printf %s "checking host system type... " >&6; }
5254 if test ${ac_cv_host+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else case e in #(
5258 e) if test "x$host_alias" = x; then
5259 ac_cv_host=$ac_cv_build
5260 else
5261 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5262 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5263 fi
5264 ;;
5265 esac
5266 fi
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5268 printf "%s\n" "$ac_cv_host" >&6; }
5269 case $ac_cv_host in
5270 *-*-*) ;;
5271 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5272 esac
5273 host=$ac_cv_host
5274 ac_save_IFS=$IFS; IFS='-'
5275 set x $ac_cv_host
5276 shift
5277 host_cpu=$1
5278 host_vendor=$2
5279 shift; shift
5280 # Remember, the first character of IFS is used to create $*,
5281 # except with old shells:
5282 host_os=$*
5283 IFS=$ac_save_IFS
5284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5285
5286
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5288 printf %s "checking for a sed that does not truncate output... " >&6; }
5289 if test ${ac_cv_path_SED+y}
5290 then :
5291 printf %s "(cached) " >&6
5292 else case e in #(
5293 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5294 for ac_i in 1 2 3 4 5 6 7; do
5295 ac_script="$ac_script$as_nl$ac_script"
5296 done
5297 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5298 { ac_script=; unset ac_script;}
5299 if test -z "$SED"; then
5300 ac_path_SED_found=false
5301 # Loop through the user's path and test for each of PROGNAME-LIST
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 case $as_dir in #(((
5307 '') as_dir=./ ;;
5308 */) ;;
5309 *) as_dir=$as_dir/ ;;
5310 esac
5311 for ac_prog in sed gsed
5312 do
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5315 as_fn_executable_p "$ac_path_SED" || continue
5316 # Check for GNU ac_path_SED and select it if it is found.
5317 # Check for GNU $ac_path_SED
5318 case `"$ac_path_SED" --version 2>&1` in #(
5319 *GNU*)
5320 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5321 #(
5322 *)
5323 ac_count=0
5324 printf %s 0123456789 >"conftest.in"
5325 while :
5326 do
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 printf "%s\n" '' >> "conftest.nl"
5331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333 as_fn_arith $ac_count + 1 && ac_count=$as_val
5334 if test $ac_count -gt ${ac_path_SED_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_SED="$ac_path_SED"
5337 ac_path_SED_max=$ac_count
5338 fi
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5341 done
5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 esac
5344
5345 $ac_path_SED_found && break 3
5346 done
5347 done
5348 done
5349 IFS=$as_save_IFS
5350 if test -z "$ac_cv_path_SED"; then
5351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5352 fi
5353 else
5354 ac_cv_path_SED=$SED
5355 fi
5356 ;;
5357 esac
5358 fi
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5360 printf "%s\n" "$ac_cv_path_SED" >&6; }
5361 SED="$ac_cv_path_SED"
5362 rm -f conftest.sed
5363
5364
5365
5366
5367
5368
5369 # Check whether --enable-selective-werror was given.
5370 if test ${enable_selective_werror+y}
5371 then :
5372 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5373 else case e in #(
5374 e) SELECTIVE_WERROR=yes ;;
5375 esac
5376 fi
5377
5378
5379
5380
5381
5382 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5383 if test "x$SUNCC" = "xyes"; then
5384 BASE_CFLAGS="-v"
5385 else
5386 BASE_CFLAGS=""
5387 fi
5388
5389 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 xorg_testset_save_CFLAGS="$CFLAGS"
5404
5405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5408 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5409 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5410 then :
5411 printf %s "(cached) " >&6
5412 else case e in #(
5413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 int i;
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"
5418 then :
5419 xorg_cv_cc_flag_unknown_warning_option=yes
5420 else case e in #(
5421 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5422 esac
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5425 esac
5426 fi
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5428 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5430 CFLAGS="$xorg_testset_save_CFLAGS"
5431 fi
5432
5433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436 fi
5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5441 then :
5442 printf %s "(cached) " >&6
5443 else case e in #(
5444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 int i;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"
5449 then :
5450 xorg_cv_cc_flag_unused_command_line_argument=yes
5451 else case e in #(
5452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5453 esac
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5456 esac
5457 fi
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5459 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5461 CFLAGS="$xorg_testset_save_CFLAGS"
5462 fi
5463
5464 found="no"
5465
5466 if test $found = "no" ; then
5467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469 fi
5470
5471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473 fi
5474
5475 CFLAGS="$CFLAGS -Wall"
5476
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5478 printf %s "checking if $CC supports -Wall... " >&6; }
5479 cacheid=xorg_cv_cc_flag__Wall
5480 if eval test \${$cacheid+y}
5481 then :
5482 printf %s "(cached) " >&6
5483 else case e in #(
5484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 int i;
5487 int
5488 main (void)
5489 {
5490
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_link "$LINENO"
5496 then :
5497 eval $cacheid=yes
5498 else case e in #(
5499 e) eval $cacheid=no ;;
5500 esac
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5503 conftest$ac_exeext conftest.$ac_ext ;;
5504 esac
5505 fi
5506
5507
5508 CFLAGS="$xorg_testset_save_CFLAGS"
5509
5510 eval supported=\$$cacheid
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5512 printf "%s\n" "$supported" >&6; }
5513 if test "$supported" = "yes" ; then
5514 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5515 found="yes"
5516 fi
5517 fi
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533 xorg_testset_save_CFLAGS="$CFLAGS"
5534
5535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5539 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5540 then :
5541 printf %s "(cached) " >&6
5542 else case e in #(
5543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 int i;
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"
5548 then :
5549 xorg_cv_cc_flag_unknown_warning_option=yes
5550 else case e in #(
5551 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5552 esac
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5555 esac
5556 fi
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5560 CFLAGS="$xorg_testset_save_CFLAGS"
5561 fi
5562
5563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566 fi
5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else case e in #(
5574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 int i;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"
5579 then :
5580 xorg_cv_cc_flag_unused_command_line_argument=yes
5581 else case e in #(
5582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5583 esac
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5586 esac
5587 fi
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5591 CFLAGS="$xorg_testset_save_CFLAGS"
5592 fi
5593
5594 found="no"
5595
5596 if test $found = "no" ; then
5597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5599 fi
5600
5601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5603 fi
5604
5605 CFLAGS="$CFLAGS -Wpointer-arith"
5606
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5608 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5609 cacheid=xorg_cv_cc_flag__Wpointer_arith
5610 if eval test \${$cacheid+y}
5611 then :
5612 printf %s "(cached) " >&6
5613 else case e in #(
5614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 int i;
5617 int
5618 main (void)
5619 {
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_link "$LINENO"
5626 then :
5627 eval $cacheid=yes
5628 else case e in #(
5629 e) eval $cacheid=no ;;
5630 esac
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5633 conftest$ac_exeext conftest.$ac_ext ;;
5634 esac
5635 fi
5636
5637
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639
5640 eval supported=\$$cacheid
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5642 printf "%s\n" "$supported" >&6; }
5643 if test "$supported" = "yes" ; then
5644 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5645 found="yes"
5646 fi
5647 fi
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 xorg_testset_save_CFLAGS="$CFLAGS"
5664
5665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5669 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5670 then :
5671 printf %s "(cached) " >&6
5672 else case e in #(
5673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 int i;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"
5678 then :
5679 xorg_cv_cc_flag_unknown_warning_option=yes
5680 else case e in #(
5681 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5682 esac
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5685 esac
5686 fi
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5688 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5690 CFLAGS="$xorg_testset_save_CFLAGS"
5691 fi
5692
5693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5696 fi
5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5701 then :
5702 printf %s "(cached) " >&6
5703 else case e in #(
5704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 int i;
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"
5709 then :
5710 xorg_cv_cc_flag_unused_command_line_argument=yes
5711 else case e in #(
5712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5713 esac
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5716 esac
5717 fi
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 found="no"
5725
5726 if test $found = "no" ; then
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 fi
5730
5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 fi
5734
5735 CFLAGS="$CFLAGS -Wmissing-declarations"
5736
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5738 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5739 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5740 if eval test \${$cacheid+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else case e in #(
5744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 int i;
5747 int
5748 main (void)
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"
5756 then :
5757 eval $cacheid=yes
5758 else case e in #(
5759 e) eval $cacheid=no ;;
5760 esac
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5763 conftest$ac_exeext conftest.$ac_ext ;;
5764 esac
5765 fi
5766
5767
5768 CFLAGS="$xorg_testset_save_CFLAGS"
5769
5770 eval supported=\$$cacheid
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5772 printf "%s\n" "$supported" >&6; }
5773 if test "$supported" = "yes" ; then
5774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5775 found="yes"
5776 fi
5777 fi
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 xorg_testset_save_CFLAGS="$CFLAGS"
5794
5795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5799 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5800 then :
5801 printf %s "(cached) " >&6
5802 else case e in #(
5803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 int i;
5806 _ACEOF
5807 if ac_fn_c_try_compile "$LINENO"
5808 then :
5809 xorg_cv_cc_flag_unknown_warning_option=yes
5810 else case e in #(
5811 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5812 esac
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5815 esac
5816 fi
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5820 CFLAGS="$xorg_testset_save_CFLAGS"
5821 fi
5822
5823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826 fi
5827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else case e in #(
5834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 int i;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"
5839 then :
5840 xorg_cv_cc_flag_unused_command_line_argument=yes
5841 else case e in #(
5842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5843 esac
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5846 esac
5847 fi
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5849 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5851 CFLAGS="$xorg_testset_save_CFLAGS"
5852 fi
5853
5854 found="no"
5855
5856 if test $found = "no" ; then
5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859 fi
5860
5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5863 fi
5864
5865 CFLAGS="$CFLAGS -Wformat=2"
5866
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5868 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5869 cacheid=xorg_cv_cc_flag__Wformat_2
5870 if eval test \${$cacheid+y}
5871 then :
5872 printf %s "(cached) " >&6
5873 else case e in #(
5874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 int i;
5877 int
5878 main (void)
5879 {
5880
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_link "$LINENO"
5886 then :
5887 eval $cacheid=yes
5888 else case e in #(
5889 e) eval $cacheid=no ;;
5890 esac
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5893 conftest$ac_exeext conftest.$ac_ext ;;
5894 esac
5895 fi
5896
5897
5898 CFLAGS="$xorg_testset_save_CFLAGS"
5899
5900 eval supported=\$$cacheid
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5902 printf "%s\n" "$supported" >&6; }
5903 if test "$supported" = "yes" ; then
5904 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5905 found="yes"
5906 fi
5907 fi
5908
5909 if test $found = "no" ; then
5910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5912 fi
5913
5914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916 fi
5917
5918 CFLAGS="$CFLAGS -Wformat"
5919
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5921 printf %s "checking if $CC supports -Wformat... " >&6; }
5922 cacheid=xorg_cv_cc_flag__Wformat
5923 if eval test \${$cacheid+y}
5924 then :
5925 printf %s "(cached) " >&6
5926 else case e in #(
5927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 int i;
5930 int
5931 main (void)
5932 {
5933
5934 ;
5935 return 0;
5936 }
5937 _ACEOF
5938 if ac_fn_c_try_link "$LINENO"
5939 then :
5940 eval $cacheid=yes
5941 else case e in #(
5942 e) eval $cacheid=no ;;
5943 esac
5944 fi
5945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5946 conftest$ac_exeext conftest.$ac_ext ;;
5947 esac
5948 fi
5949
5950
5951 CFLAGS="$xorg_testset_save_CFLAGS"
5952
5953 eval supported=\$$cacheid
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5955 printf "%s\n" "$supported" >&6; }
5956 if test "$supported" = "yes" ; then
5957 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5958 found="yes"
5959 fi
5960 fi
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 xorg_testset_save_CFLAGS="$CFLAGS"
5979
5980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5984 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5985 then :
5986 printf %s "(cached) " >&6
5987 else case e in #(
5988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 int i;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"
5993 then :
5994 xorg_cv_cc_flag_unknown_warning_option=yes
5995 else case e in #(
5996 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5997 esac
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6000 esac
6001 fi
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6003 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6005 CFLAGS="$xorg_testset_save_CFLAGS"
6006 fi
6007
6008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6011 fi
6012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6014 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6015 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6016 then :
6017 printf %s "(cached) " >&6
6018 else case e in #(
6019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 int i;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"
6024 then :
6025 xorg_cv_cc_flag_unused_command_line_argument=yes
6026 else case e in #(
6027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6028 esac
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6031 esac
6032 fi
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6036 CFLAGS="$xorg_testset_save_CFLAGS"
6037 fi
6038
6039 found="no"
6040
6041 if test $found = "no" ; then
6042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044 fi
6045
6046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6048 fi
6049
6050 CFLAGS="$CFLAGS -Wstrict-prototypes"
6051
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6053 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6054 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6055 if eval test \${$cacheid+y}
6056 then :
6057 printf %s "(cached) " >&6
6058 else case e in #(
6059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 int i;
6062 int
6063 main (void)
6064 {
6065
6066 ;
6067 return 0;
6068 }
6069 _ACEOF
6070 if ac_fn_c_try_link "$LINENO"
6071 then :
6072 eval $cacheid=yes
6073 else case e in #(
6074 e) eval $cacheid=no ;;
6075 esac
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6078 conftest$ac_exeext conftest.$ac_ext ;;
6079 esac
6080 fi
6081
6082
6083 CFLAGS="$xorg_testset_save_CFLAGS"
6084
6085 eval supported=\$$cacheid
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6087 printf "%s\n" "$supported" >&6; }
6088 if test "$supported" = "yes" ; then
6089 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6090 found="yes"
6091 fi
6092 fi
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108 xorg_testset_save_CFLAGS="$CFLAGS"
6109
6110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6114 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6115 then :
6116 printf %s "(cached) " >&6
6117 else case e in #(
6118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 int i;
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"
6123 then :
6124 xorg_cv_cc_flag_unknown_warning_option=yes
6125 else case e in #(
6126 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6127 esac
6128 fi
6129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6130 esac
6131 fi
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6133 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6135 CFLAGS="$xorg_testset_save_CFLAGS"
6136 fi
6137
6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141 fi
6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6146 then :
6147 printf %s "(cached) " >&6
6148 else case e in #(
6149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 int i;
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"
6154 then :
6155 xorg_cv_cc_flag_unused_command_line_argument=yes
6156 else case e in #(
6157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6158 esac
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6161 esac
6162 fi
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6164 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6166 CFLAGS="$xorg_testset_save_CFLAGS"
6167 fi
6168
6169 found="no"
6170
6171 if test $found = "no" ; then
6172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174 fi
6175
6176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6178 fi
6179
6180 CFLAGS="$CFLAGS -Wmissing-prototypes"
6181
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6183 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6184 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6185 if eval test \${$cacheid+y}
6186 then :
6187 printf %s "(cached) " >&6
6188 else case e in #(
6189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 int i;
6192 int
6193 main (void)
6194 {
6195
6196 ;
6197 return 0;
6198 }
6199 _ACEOF
6200 if ac_fn_c_try_link "$LINENO"
6201 then :
6202 eval $cacheid=yes
6203 else case e in #(
6204 e) eval $cacheid=no ;;
6205 esac
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6208 conftest$ac_exeext conftest.$ac_ext ;;
6209 esac
6210 fi
6211
6212
6213 CFLAGS="$xorg_testset_save_CFLAGS"
6214
6215 eval supported=\$$cacheid
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6217 printf "%s\n" "$supported" >&6; }
6218 if test "$supported" = "yes" ; then
6219 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6220 found="yes"
6221 fi
6222 fi
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238 xorg_testset_save_CFLAGS="$CFLAGS"
6239
6240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6245 then :
6246 printf %s "(cached) " >&6
6247 else case e in #(
6248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 int i;
6251 _ACEOF
6252 if ac_fn_c_try_compile "$LINENO"
6253 then :
6254 xorg_cv_cc_flag_unknown_warning_option=yes
6255 else case e in #(
6256 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6257 esac
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6260 esac
6261 fi
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6263 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6265 CFLAGS="$xorg_testset_save_CFLAGS"
6266 fi
6267
6268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271 fi
6272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6274 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6275 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6276 then :
6277 printf %s "(cached) " >&6
6278 else case e in #(
6279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 int i;
6282 _ACEOF
6283 if ac_fn_c_try_compile "$LINENO"
6284 then :
6285 xorg_cv_cc_flag_unused_command_line_argument=yes
6286 else case e in #(
6287 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6288 esac
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6291 esac
6292 fi
6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6296 CFLAGS="$xorg_testset_save_CFLAGS"
6297 fi
6298
6299 found="no"
6300
6301 if test $found = "no" ; then
6302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 fi
6305
6306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6308 fi
6309
6310 CFLAGS="$CFLAGS -Wnested-externs"
6311
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6313 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6314 cacheid=xorg_cv_cc_flag__Wnested_externs
6315 if eval test \${$cacheid+y}
6316 then :
6317 printf %s "(cached) " >&6
6318 else case e in #(
6319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 int i;
6322 int
6323 main (void)
6324 {
6325
6326 ;
6327 return 0;
6328 }
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"
6331 then :
6332 eval $cacheid=yes
6333 else case e in #(
6334 e) eval $cacheid=no ;;
6335 esac
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6338 conftest$ac_exeext conftest.$ac_ext ;;
6339 esac
6340 fi
6341
6342
6343 CFLAGS="$xorg_testset_save_CFLAGS"
6344
6345 eval supported=\$$cacheid
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6347 printf "%s\n" "$supported" >&6; }
6348 if test "$supported" = "yes" ; then
6349 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6350 found="yes"
6351 fi
6352 fi
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368 xorg_testset_save_CFLAGS="$CFLAGS"
6369
6370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6373 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6374 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6375 then :
6376 printf %s "(cached) " >&6
6377 else case e in #(
6378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 int i;
6381 _ACEOF
6382 if ac_fn_c_try_compile "$LINENO"
6383 then :
6384 xorg_cv_cc_flag_unknown_warning_option=yes
6385 else case e in #(
6386 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6387 esac
6388 fi
6389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6390 esac
6391 fi
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6393 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6395 CFLAGS="$xorg_testset_save_CFLAGS"
6396 fi
6397
6398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401 fi
6402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6406 then :
6407 printf %s "(cached) " >&6
6408 else case e in #(
6409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 int i;
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"
6414 then :
6415 xorg_cv_cc_flag_unused_command_line_argument=yes
6416 else case e in #(
6417 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6418 esac
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6421 esac
6422 fi
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6424 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6426 CFLAGS="$xorg_testset_save_CFLAGS"
6427 fi
6428
6429 found="no"
6430
6431 if test $found = "no" ; then
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 fi
6435
6436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6438 fi
6439
6440 CFLAGS="$CFLAGS -Wbad-function-cast"
6441
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6443 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6444 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6445 if eval test \${$cacheid+y}
6446 then :
6447 printf %s "(cached) " >&6
6448 else case e in #(
6449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 int i;
6452 int
6453 main (void)
6454 {
6455
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_link "$LINENO"
6461 then :
6462 eval $cacheid=yes
6463 else case e in #(
6464 e) eval $cacheid=no ;;
6465 esac
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6468 conftest$ac_exeext conftest.$ac_ext ;;
6469 esac
6470 fi
6471
6472
6473 CFLAGS="$xorg_testset_save_CFLAGS"
6474
6475 eval supported=\$$cacheid
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6477 printf "%s\n" "$supported" >&6; }
6478 if test "$supported" = "yes" ; then
6479 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6480 found="yes"
6481 fi
6482 fi
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498 xorg_testset_save_CFLAGS="$CFLAGS"
6499
6500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6503 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6504 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6505 then :
6506 printf %s "(cached) " >&6
6507 else case e in #(
6508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int i;
6511 _ACEOF
6512 if ac_fn_c_try_compile "$LINENO"
6513 then :
6514 xorg_cv_cc_flag_unknown_warning_option=yes
6515 else case e in #(
6516 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6517 esac
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6520 esac
6521 fi
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6523 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6525 CFLAGS="$xorg_testset_save_CFLAGS"
6526 fi
6527
6528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531 fi
6532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6536 then :
6537 printf %s "(cached) " >&6
6538 else case e in #(
6539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"
6544 then :
6545 xorg_cv_cc_flag_unused_command_line_argument=yes
6546 else case e in #(
6547 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6548 esac
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6551 esac
6552 fi
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6554 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6556 CFLAGS="$xorg_testset_save_CFLAGS"
6557 fi
6558
6559 found="no"
6560
6561 if test $found = "no" ; then
6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564 fi
6565
6566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6568 fi
6569
6570 CFLAGS="$CFLAGS -Wold-style-definition"
6571
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6573 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6574 cacheid=xorg_cv_cc_flag__Wold_style_definition
6575 if eval test \${$cacheid+y}
6576 then :
6577 printf %s "(cached) " >&6
6578 else case e in #(
6579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 int i;
6582 int
6583 main (void)
6584 {
6585
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_link "$LINENO"
6591 then :
6592 eval $cacheid=yes
6593 else case e in #(
6594 e) eval $cacheid=no ;;
6595 esac
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6598 conftest$ac_exeext conftest.$ac_ext ;;
6599 esac
6600 fi
6601
6602
6603 CFLAGS="$xorg_testset_save_CFLAGS"
6604
6605 eval supported=\$$cacheid
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6607 printf "%s\n" "$supported" >&6; }
6608 if test "$supported" = "yes" ; then
6609 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6610 found="yes"
6611 fi
6612 fi
6613
6614 if test $found = "no" ; then
6615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6617 fi
6618
6619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621 fi
6622
6623 CFLAGS="$CFLAGS -fd"
6624
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6626 printf %s "checking if $CC supports -fd... " >&6; }
6627 cacheid=xorg_cv_cc_flag__fd
6628 if eval test \${$cacheid+y}
6629 then :
6630 printf %s "(cached) " >&6
6631 else case e in #(
6632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634 int i;
6635 int
6636 main (void)
6637 {
6638
6639 ;
6640 return 0;
6641 }
6642 _ACEOF
6643 if ac_fn_c_try_link "$LINENO"
6644 then :
6645 eval $cacheid=yes
6646 else case e in #(
6647 e) eval $cacheid=no ;;
6648 esac
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6651 conftest$ac_exeext conftest.$ac_ext ;;
6652 esac
6653 fi
6654
6655
6656 CFLAGS="$xorg_testset_save_CFLAGS"
6657
6658 eval supported=\$$cacheid
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6660 printf "%s\n" "$supported" >&6; }
6661 if test "$supported" = "yes" ; then
6662 BASE_CFLAGS="$BASE_CFLAGS -fd"
6663 found="yes"
6664 fi
6665 fi
6666
6667
6668
6669
6670
6671 # This chunk adds additional warnings that could catch undesired effects.
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685 xorg_testset_save_CFLAGS="$CFLAGS"
6686
6687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6690 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6691 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6692 then :
6693 printf %s "(cached) " >&6
6694 else case e in #(
6695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 int i;
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"
6700 then :
6701 xorg_cv_cc_flag_unknown_warning_option=yes
6702 else case e in #(
6703 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6704 esac
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6707 esac
6708 fi
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6710 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6712 CFLAGS="$xorg_testset_save_CFLAGS"
6713 fi
6714
6715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 fi
6719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6721 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6722 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6723 then :
6724 printf %s "(cached) " >&6
6725 else case e in #(
6726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 int i;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"
6731 then :
6732 xorg_cv_cc_flag_unused_command_line_argument=yes
6733 else case e in #(
6734 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6735 esac
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6738 esac
6739 fi
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6741 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6743 CFLAGS="$xorg_testset_save_CFLAGS"
6744 fi
6745
6746 found="no"
6747
6748 if test $found = "no" ; then
6749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751 fi
6752
6753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6755 fi
6756
6757 CFLAGS="$CFLAGS -Wunused"
6758
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6760 printf %s "checking if $CC supports -Wunused... " >&6; }
6761 cacheid=xorg_cv_cc_flag__Wunused
6762 if eval test \${$cacheid+y}
6763 then :
6764 printf %s "(cached) " >&6
6765 else case e in #(
6766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 int i;
6769 int
6770 main (void)
6771 {
6772
6773 ;
6774 return 0;
6775 }
6776 _ACEOF
6777 if ac_fn_c_try_link "$LINENO"
6778 then :
6779 eval $cacheid=yes
6780 else case e in #(
6781 e) eval $cacheid=no ;;
6782 esac
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6785 conftest$ac_exeext conftest.$ac_ext ;;
6786 esac
6787 fi
6788
6789
6790 CFLAGS="$xorg_testset_save_CFLAGS"
6791
6792 eval supported=\$$cacheid
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6794 printf "%s\n" "$supported" >&6; }
6795 if test "$supported" = "yes" ; then
6796 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6797 found="yes"
6798 fi
6799 fi
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 xorg_testset_save_CFLAGS="$CFLAGS"
6816
6817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6821 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6822 then :
6823 printf %s "(cached) " >&6
6824 else case e in #(
6825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 int i;
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"
6830 then :
6831 xorg_cv_cc_flag_unknown_warning_option=yes
6832 else case e in #(
6833 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6834 esac
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6837 esac
6838 fi
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6840 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6842 CFLAGS="$xorg_testset_save_CFLAGS"
6843 fi
6844
6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848 fi
6849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6851 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6852 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else case e in #(
6856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 int i;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"
6861 then :
6862 xorg_cv_cc_flag_unused_command_line_argument=yes
6863 else case e in #(
6864 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6865 esac
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6868 esac
6869 fi
6870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6871 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6873 CFLAGS="$xorg_testset_save_CFLAGS"
6874 fi
6875
6876 found="no"
6877
6878 if test $found = "no" ; then
6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6881 fi
6882
6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6885 fi
6886
6887 CFLAGS="$CFLAGS -Wuninitialized"
6888
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6890 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6891 cacheid=xorg_cv_cc_flag__Wuninitialized
6892 if eval test \${$cacheid+y}
6893 then :
6894 printf %s "(cached) " >&6
6895 else case e in #(
6896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 int i;
6899 int
6900 main (void)
6901 {
6902
6903 ;
6904 return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_link "$LINENO"
6908 then :
6909 eval $cacheid=yes
6910 else case e in #(
6911 e) eval $cacheid=no ;;
6912 esac
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6915 conftest$ac_exeext conftest.$ac_ext ;;
6916 esac
6917 fi
6918
6919
6920 CFLAGS="$xorg_testset_save_CFLAGS"
6921
6922 eval supported=\$$cacheid
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6924 printf "%s\n" "$supported" >&6; }
6925 if test "$supported" = "yes" ; then
6926 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6927 found="yes"
6928 fi
6929 fi
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 xorg_testset_save_CFLAGS="$CFLAGS"
6946
6947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6951 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6952 then :
6953 printf %s "(cached) " >&6
6954 else case e in #(
6955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 int i;
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"
6960 then :
6961 xorg_cv_cc_flag_unknown_warning_option=yes
6962 else case e in #(
6963 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6964 esac
6965 fi
6966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6967 esac
6968 fi
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6972 CFLAGS="$xorg_testset_save_CFLAGS"
6973 fi
6974
6975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6978 fi
6979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6983 then :
6984 printf %s "(cached) " >&6
6985 else case e in #(
6986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988 int i;
6989 _ACEOF
6990 if ac_fn_c_try_compile "$LINENO"
6991 then :
6992 xorg_cv_cc_flag_unused_command_line_argument=yes
6993 else case e in #(
6994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6995 esac
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6998 esac
6999 fi
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7001 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7003 CFLAGS="$xorg_testset_save_CFLAGS"
7004 fi
7005
7006 found="no"
7007
7008 if test $found = "no" ; then
7009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011 fi
7012
7013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7015 fi
7016
7017 CFLAGS="$CFLAGS -Wshadow"
7018
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7020 printf %s "checking if $CC supports -Wshadow... " >&6; }
7021 cacheid=xorg_cv_cc_flag__Wshadow
7022 if eval test \${$cacheid+y}
7023 then :
7024 printf %s "(cached) " >&6
7025 else case e in #(
7026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 int i;
7029 int
7030 main (void)
7031 {
7032
7033 ;
7034 return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"
7038 then :
7039 eval $cacheid=yes
7040 else case e in #(
7041 e) eval $cacheid=no ;;
7042 esac
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7045 conftest$ac_exeext conftest.$ac_ext ;;
7046 esac
7047 fi
7048
7049
7050 CFLAGS="$xorg_testset_save_CFLAGS"
7051
7052 eval supported=\$$cacheid
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7054 printf "%s\n" "$supported" >&6; }
7055 if test "$supported" = "yes" ; then
7056 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7057 found="yes"
7058 fi
7059 fi
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075 xorg_testset_save_CFLAGS="$CFLAGS"
7076
7077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7081 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7082 then :
7083 printf %s "(cached) " >&6
7084 else case e in #(
7085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 int i;
7088 _ACEOF
7089 if ac_fn_c_try_compile "$LINENO"
7090 then :
7091 xorg_cv_cc_flag_unknown_warning_option=yes
7092 else case e in #(
7093 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7094 esac
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7097 esac
7098 fi
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7100 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7102 CFLAGS="$xorg_testset_save_CFLAGS"
7103 fi
7104
7105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7108 fi
7109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7111 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7112 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7113 then :
7114 printf %s "(cached) " >&6
7115 else case e in #(
7116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 int i;
7119 _ACEOF
7120 if ac_fn_c_try_compile "$LINENO"
7121 then :
7122 xorg_cv_cc_flag_unused_command_line_argument=yes
7123 else case e in #(
7124 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7125 esac
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7128 esac
7129 fi
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7134 fi
7135
7136 found="no"
7137
7138 if test $found = "no" ; then
7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141 fi
7142
7143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145 fi
7146
7147 CFLAGS="$CFLAGS -Wmissing-noreturn"
7148
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7150 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7151 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7152 if eval test \${$cacheid+y}
7153 then :
7154 printf %s "(cached) " >&6
7155 else case e in #(
7156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 int i;
7159 int
7160 main (void)
7161 {
7162
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"
7168 then :
7169 eval $cacheid=yes
7170 else case e in #(
7171 e) eval $cacheid=no ;;
7172 esac
7173 fi
7174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7175 conftest$ac_exeext conftest.$ac_ext ;;
7176 esac
7177 fi
7178
7179
7180 CFLAGS="$xorg_testset_save_CFLAGS"
7181
7182 eval supported=\$$cacheid
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184 printf "%s\n" "$supported" >&6; }
7185 if test "$supported" = "yes" ; then
7186 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7187 found="yes"
7188 fi
7189 fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 xorg_testset_save_CFLAGS="$CFLAGS"
7206
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7212 then :
7213 printf %s "(cached) " >&6
7214 else case e in #(
7215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 int i;
7218 _ACEOF
7219 if ac_fn_c_try_compile "$LINENO"
7220 then :
7221 xorg_cv_cc_flag_unknown_warning_option=yes
7222 else case e in #(
7223 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7224 esac
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7227 esac
7228 fi
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7232 CFLAGS="$xorg_testset_save_CFLAGS"
7233 fi
7234
7235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238 fi
7239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7243 then :
7244 printf %s "(cached) " >&6
7245 else case e in #(
7246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 int i;
7249 _ACEOF
7250 if ac_fn_c_try_compile "$LINENO"
7251 then :
7252 xorg_cv_cc_flag_unused_command_line_argument=yes
7253 else case e in #(
7254 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7255 esac
7256 fi
7257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7258 esac
7259 fi
7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7263 CFLAGS="$xorg_testset_save_CFLAGS"
7264 fi
7265
7266 found="no"
7267
7268 if test $found = "no" ; then
7269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7271 fi
7272
7273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275 fi
7276
7277 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7278
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7280 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7281 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7282 if eval test \${$cacheid+y}
7283 then :
7284 printf %s "(cached) " >&6
7285 else case e in #(
7286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 int i;
7289 int
7290 main (void)
7291 {
7292
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 if ac_fn_c_try_link "$LINENO"
7298 then :
7299 eval $cacheid=yes
7300 else case e in #(
7301 e) eval $cacheid=no ;;
7302 esac
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7305 conftest$ac_exeext conftest.$ac_ext ;;
7306 esac
7307 fi
7308
7309
7310 CFLAGS="$xorg_testset_save_CFLAGS"
7311
7312 eval supported=\$$cacheid
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314 printf "%s\n" "$supported" >&6; }
7315 if test "$supported" = "yes" ; then
7316 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7317 found="yes"
7318 fi
7319 fi
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335 xorg_testset_save_CFLAGS="$CFLAGS"
7336
7337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7341 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7342 then :
7343 printf %s "(cached) " >&6
7344 else case e in #(
7345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 int i;
7348 _ACEOF
7349 if ac_fn_c_try_compile "$LINENO"
7350 then :
7351 xorg_cv_cc_flag_unknown_warning_option=yes
7352 else case e in #(
7353 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7354 esac
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7357 esac
7358 fi
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7360 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7362 CFLAGS="$xorg_testset_save_CFLAGS"
7363 fi
7364
7365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368 fi
7369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7373 then :
7374 printf %s "(cached) " >&6
7375 else case e in #(
7376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7378 int i;
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"
7381 then :
7382 xorg_cv_cc_flag_unused_command_line_argument=yes
7383 else case e in #(
7384 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7385 esac
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7388 esac
7389 fi
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7391 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7393 CFLAGS="$xorg_testset_save_CFLAGS"
7394 fi
7395
7396 found="no"
7397
7398 if test $found = "no" ; then
7399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401 fi
7402
7403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7405 fi
7406
7407 CFLAGS="$CFLAGS -Wredundant-decls"
7408
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7410 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7411 cacheid=xorg_cv_cc_flag__Wredundant_decls
7412 if eval test \${$cacheid+y}
7413 then :
7414 printf %s "(cached) " >&6
7415 else case e in #(
7416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 int i;
7419 int
7420 main (void)
7421 {
7422
7423 ;
7424 return 0;
7425 }
7426 _ACEOF
7427 if ac_fn_c_try_link "$LINENO"
7428 then :
7429 eval $cacheid=yes
7430 else case e in #(
7431 e) eval $cacheid=no ;;
7432 esac
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7435 conftest$ac_exeext conftest.$ac_ext ;;
7436 esac
7437 fi
7438
7439
7440 CFLAGS="$xorg_testset_save_CFLAGS"
7441
7442 eval supported=\$$cacheid
7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7444 printf "%s\n" "$supported" >&6; }
7445 if test "$supported" = "yes" ; then
7446 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7447 found="yes"
7448 fi
7449 fi
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465 xorg_testset_save_CFLAGS="$CFLAGS"
7466
7467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7471 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7472 then :
7473 printf %s "(cached) " >&6
7474 else case e in #(
7475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 int i;
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"
7480 then :
7481 xorg_cv_cc_flag_unknown_warning_option=yes
7482 else case e in #(
7483 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7484 esac
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7487 esac
7488 fi
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7490 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7492 CFLAGS="$xorg_testset_save_CFLAGS"
7493 fi
7494
7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498 fi
7499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7503 then :
7504 printf %s "(cached) " >&6
7505 else case e in #(
7506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 int i;
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"
7511 then :
7512 xorg_cv_cc_flag_unused_command_line_argument=yes
7513 else case e in #(
7514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7515 esac
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7518 esac
7519 fi
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7523 CFLAGS="$xorg_testset_save_CFLAGS"
7524 fi
7525
7526 found="no"
7527
7528 if test $found = "no" ; then
7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7531 fi
7532
7533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7535 fi
7536
7537 CFLAGS="$CFLAGS -Wlogical-op"
7538
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7540 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7541 cacheid=xorg_cv_cc_flag__Wlogical_op
7542 if eval test \${$cacheid+y}
7543 then :
7544 printf %s "(cached) " >&6
7545 else case e in #(
7546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 int i;
7549 int
7550 main (void)
7551 {
7552
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_link "$LINENO"
7558 then :
7559 eval $cacheid=yes
7560 else case e in #(
7561 e) eval $cacheid=no ;;
7562 esac
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7565 conftest$ac_exeext conftest.$ac_ext ;;
7566 esac
7567 fi
7568
7569
7570 CFLAGS="$xorg_testset_save_CFLAGS"
7571
7572 eval supported=\$$cacheid
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574 printf "%s\n" "$supported" >&6; }
7575 if test "$supported" = "yes" ; then
7576 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7577 found="yes"
7578 fi
7579 fi
7580
7581
7582
7583 # These are currently disabled because they are noisy. They will be enabled
7584 # in the future once the codebase is sufficiently modernized to silence
7585 # them. For now, I don't want them to drown out the other warnings.
7586 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7587 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7588 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7589
7590 # Turn some warnings into errors, so we don't accidentally get successful builds
7591 # when there are problems that should be fixed.
7592
7593 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607 xorg_testset_save_CFLAGS="$CFLAGS"
7608
7609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else case e in #(
7617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 int i;
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"
7622 then :
7623 xorg_cv_cc_flag_unknown_warning_option=yes
7624 else case e in #(
7625 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7626 esac
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7629 esac
7630 fi
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7632 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7634 CFLAGS="$xorg_testset_save_CFLAGS"
7635 fi
7636
7637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640 fi
7641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7645 then :
7646 printf %s "(cached) " >&6
7647 else case e in #(
7648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 int i;
7651 _ACEOF
7652 if ac_fn_c_try_compile "$LINENO"
7653 then :
7654 xorg_cv_cc_flag_unused_command_line_argument=yes
7655 else case e in #(
7656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7657 esac
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7660 esac
7661 fi
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7663 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7665 CFLAGS="$xorg_testset_save_CFLAGS"
7666 fi
7667
7668 found="no"
7669
7670 if test $found = "no" ; then
7671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7673 fi
7674
7675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7677 fi
7678
7679 CFLAGS="$CFLAGS -Werror=implicit"
7680
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7682 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7683 cacheid=xorg_cv_cc_flag__Werror_implicit
7684 if eval test \${$cacheid+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else case e in #(
7688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 int
7692 main (void)
7693 {
7694
7695 ;
7696 return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"
7700 then :
7701 eval $cacheid=yes
7702 else case e in #(
7703 e) eval $cacheid=no ;;
7704 esac
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7707 conftest$ac_exeext conftest.$ac_ext ;;
7708 esac
7709 fi
7710
7711
7712 CFLAGS="$xorg_testset_save_CFLAGS"
7713
7714 eval supported=\$$cacheid
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7716 printf "%s\n" "$supported" >&6; }
7717 if test "$supported" = "yes" ; then
7718 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7719 found="yes"
7720 fi
7721 fi
7722
7723 if test $found = "no" ; then
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726 fi
7727
7728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730 fi
7731
7732 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7733
7734 { 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
7735 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7736 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7737 if eval test \${$cacheid+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else case e in #(
7741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 int i;
7744 int
7745 main (void)
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"
7753 then :
7754 eval $cacheid=yes
7755 else case e in #(
7756 e) eval $cacheid=no ;;
7757 esac
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7760 conftest$ac_exeext conftest.$ac_ext ;;
7761 esac
7762 fi
7763
7764
7765 CFLAGS="$xorg_testset_save_CFLAGS"
7766
7767 eval supported=\$$cacheid
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7769 printf "%s\n" "$supported" >&6; }
7770 if test "$supported" = "yes" ; then
7771 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7772 found="yes"
7773 fi
7774 fi
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790 xorg_testset_save_CFLAGS="$CFLAGS"
7791
7792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7795 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7796 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7797 then :
7798 printf %s "(cached) " >&6
7799 else case e in #(
7800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 int i;
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"
7805 then :
7806 xorg_cv_cc_flag_unknown_warning_option=yes
7807 else case e in #(
7808 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7809 esac
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7812 esac
7813 fi
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7817 CFLAGS="$xorg_testset_save_CFLAGS"
7818 fi
7819
7820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 fi
7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7828 then :
7829 printf %s "(cached) " >&6
7830 else case e in #(
7831 e) 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_unused_command_line_argument=yes
7838 else case e in #(
7839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7840 esac
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7843 esac
7844 fi
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7846 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7848 CFLAGS="$xorg_testset_save_CFLAGS"
7849 fi
7850
7851 found="no"
7852
7853 if test $found = "no" ; then
7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856 fi
7857
7858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860 fi
7861
7862 CFLAGS="$CFLAGS -Werror=nonnull"
7863
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7865 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7866 cacheid=xorg_cv_cc_flag__Werror_nonnull
7867 if eval test \${$cacheid+y}
7868 then :
7869 printf %s "(cached) " >&6
7870 else case e in #(
7871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 int i;
7874 int
7875 main (void)
7876 {
7877
7878 ;
7879 return 0;
7880 }
7881 _ACEOF
7882 if ac_fn_c_try_link "$LINENO"
7883 then :
7884 eval $cacheid=yes
7885 else case e in #(
7886 e) eval $cacheid=no ;;
7887 esac
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7890 conftest$ac_exeext conftest.$ac_ext ;;
7891 esac
7892 fi
7893
7894
7895 CFLAGS="$xorg_testset_save_CFLAGS"
7896
7897 eval supported=\$$cacheid
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7899 printf "%s\n" "$supported" >&6; }
7900 if test "$supported" = "yes" ; then
7901 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7902 found="yes"
7903 fi
7904 fi
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920 xorg_testset_save_CFLAGS="$CFLAGS"
7921
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7925 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7926 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7927 then :
7928 printf %s "(cached) " >&6
7929 else case e in #(
7930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932 int i;
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"
7935 then :
7936 xorg_cv_cc_flag_unknown_warning_option=yes
7937 else case e in #(
7938 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7939 esac
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7942 esac
7943 fi
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7945 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7947 CFLAGS="$xorg_testset_save_CFLAGS"
7948 fi
7949
7950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7953 fi
7954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7956 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7957 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7958 then :
7959 printf %s "(cached) " >&6
7960 else case e in #(
7961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 int i;
7964 _ACEOF
7965 if ac_fn_c_try_compile "$LINENO"
7966 then :
7967 xorg_cv_cc_flag_unused_command_line_argument=yes
7968 else case e in #(
7969 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7970 esac
7971 fi
7972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7973 esac
7974 fi
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7976 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7978 CFLAGS="$xorg_testset_save_CFLAGS"
7979 fi
7980
7981 found="no"
7982
7983 if test $found = "no" ; then
7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986 fi
7987
7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7990 fi
7991
7992 CFLAGS="$CFLAGS -Werror=init-self"
7993
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7995 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7996 cacheid=xorg_cv_cc_flag__Werror_init_self
7997 if eval test \${$cacheid+y}
7998 then :
7999 printf %s "(cached) " >&6
8000 else case e in #(
8001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003 int i;
8004 int
8005 main (void)
8006 {
8007
8008 ;
8009 return 0;
8010 }
8011 _ACEOF
8012 if ac_fn_c_try_link "$LINENO"
8013 then :
8014 eval $cacheid=yes
8015 else case e in #(
8016 e) eval $cacheid=no ;;
8017 esac
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8020 conftest$ac_exeext conftest.$ac_ext ;;
8021 esac
8022 fi
8023
8024
8025 CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027 eval supported=\$$cacheid
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029 printf "%s\n" "$supported" >&6; }
8030 if test "$supported" = "yes" ; then
8031 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8032 found="yes"
8033 fi
8034 fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 xorg_testset_save_CFLAGS="$CFLAGS"
8051
8052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8055 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8056 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8057 then :
8058 printf %s "(cached) " >&6
8059 else case e in #(
8060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 int i;
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"
8065 then :
8066 xorg_cv_cc_flag_unknown_warning_option=yes
8067 else case e in #(
8068 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8069 esac
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8072 esac
8073 fi
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8075 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8077 CFLAGS="$xorg_testset_save_CFLAGS"
8078 fi
8079
8080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 fi
8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8086 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8087 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8088 then :
8089 printf %s "(cached) " >&6
8090 else case e in #(
8091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 int i;
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"
8096 then :
8097 xorg_cv_cc_flag_unused_command_line_argument=yes
8098 else case e in #(
8099 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8100 esac
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8103 esac
8104 fi
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8106 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8108 CFLAGS="$xorg_testset_save_CFLAGS"
8109 fi
8110
8111 found="no"
8112
8113 if test $found = "no" ; then
8114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8116 fi
8117
8118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8120 fi
8121
8122 CFLAGS="$CFLAGS -Werror=main"
8123
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8125 printf %s "checking if $CC supports -Werror=main... " >&6; }
8126 cacheid=xorg_cv_cc_flag__Werror_main
8127 if eval test \${$cacheid+y}
8128 then :
8129 printf %s "(cached) " >&6
8130 else case e in #(
8131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133 int i;
8134 int
8135 main (void)
8136 {
8137
8138 ;
8139 return 0;
8140 }
8141 _ACEOF
8142 if ac_fn_c_try_link "$LINENO"
8143 then :
8144 eval $cacheid=yes
8145 else case e in #(
8146 e) eval $cacheid=no ;;
8147 esac
8148 fi
8149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8150 conftest$ac_exeext conftest.$ac_ext ;;
8151 esac
8152 fi
8153
8154
8155 CFLAGS="$xorg_testset_save_CFLAGS"
8156
8157 eval supported=\$$cacheid
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159 printf "%s\n" "$supported" >&6; }
8160 if test "$supported" = "yes" ; then
8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8162 found="yes"
8163 fi
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180 xorg_testset_save_CFLAGS="$CFLAGS"
8181
8182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8187 then :
8188 printf %s "(cached) " >&6
8189 else case e in #(
8190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 int i;
8193 _ACEOF
8194 if ac_fn_c_try_compile "$LINENO"
8195 then :
8196 xorg_cv_cc_flag_unknown_warning_option=yes
8197 else case e in #(
8198 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8199 esac
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8202 esac
8203 fi
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8205 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8207 CFLAGS="$xorg_testset_save_CFLAGS"
8208 fi
8209
8210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213 fi
8214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8216 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8217 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8218 then :
8219 printf %s "(cached) " >&6
8220 else case e in #(
8221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 int i;
8224 _ACEOF
8225 if ac_fn_c_try_compile "$LINENO"
8226 then :
8227 xorg_cv_cc_flag_unused_command_line_argument=yes
8228 else case e in #(
8229 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8230 esac
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8233 esac
8234 fi
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8236 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8238 CFLAGS="$xorg_testset_save_CFLAGS"
8239 fi
8240
8241 found="no"
8242
8243 if test $found = "no" ; then
8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246 fi
8247
8248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8250 fi
8251
8252 CFLAGS="$CFLAGS -Werror=missing-braces"
8253
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8255 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8256 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8257 if eval test \${$cacheid+y}
8258 then :
8259 printf %s "(cached) " >&6
8260 else case e in #(
8261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 int i;
8264 int
8265 main (void)
8266 {
8267
8268 ;
8269 return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"
8273 then :
8274 eval $cacheid=yes
8275 else case e in #(
8276 e) eval $cacheid=no ;;
8277 esac
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8280 conftest$ac_exeext conftest.$ac_ext ;;
8281 esac
8282 fi
8283
8284
8285 CFLAGS="$xorg_testset_save_CFLAGS"
8286
8287 eval supported=\$$cacheid
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8289 printf "%s\n" "$supported" >&6; }
8290 if test "$supported" = "yes" ; then
8291 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8292 found="yes"
8293 fi
8294 fi
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310 xorg_testset_save_CFLAGS="$CFLAGS"
8311
8312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8315 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8316 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8317 then :
8318 printf %s "(cached) " >&6
8319 else case e in #(
8320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 int i;
8323 _ACEOF
8324 if ac_fn_c_try_compile "$LINENO"
8325 then :
8326 xorg_cv_cc_flag_unknown_warning_option=yes
8327 else case e in #(
8328 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8329 esac
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8332 esac
8333 fi
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8335 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8337 CFLAGS="$xorg_testset_save_CFLAGS"
8338 fi
8339
8340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 fi
8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8346 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8347 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8348 then :
8349 printf %s "(cached) " >&6
8350 else case e in #(
8351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 int i;
8354 _ACEOF
8355 if ac_fn_c_try_compile "$LINENO"
8356 then :
8357 xorg_cv_cc_flag_unused_command_line_argument=yes
8358 else case e in #(
8359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8360 esac
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8363 esac
8364 fi
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8366 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8368 CFLAGS="$xorg_testset_save_CFLAGS"
8369 fi
8370
8371 found="no"
8372
8373 if test $found = "no" ; then
8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376 fi
8377
8378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8380 fi
8381
8382 CFLAGS="$CFLAGS -Werror=sequence-point"
8383
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8385 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8386 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8387 if eval test \${$cacheid+y}
8388 then :
8389 printf %s "(cached) " >&6
8390 else case e in #(
8391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 int
8395 main (void)
8396 {
8397
8398 ;
8399 return 0;
8400 }
8401 _ACEOF
8402 if ac_fn_c_try_link "$LINENO"
8403 then :
8404 eval $cacheid=yes
8405 else case e in #(
8406 e) eval $cacheid=no ;;
8407 esac
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8410 conftest$ac_exeext conftest.$ac_ext ;;
8411 esac
8412 fi
8413
8414
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417 eval supported=\$$cacheid
8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419 printf "%s\n" "$supported" >&6; }
8420 if test "$supported" = "yes" ; then
8421 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8422 found="yes"
8423 fi
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else case e in #(
8450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 int i;
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"
8455 then :
8456 xorg_cv_cc_flag_unknown_warning_option=yes
8457 else case e in #(
8458 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8459 esac
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8462 esac
8463 fi
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8465 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8468 fi
8469
8470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473 fi
8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8476 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8477 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8478 then :
8479 printf %s "(cached) " >&6
8480 else case e in #(
8481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 int i;
8484 _ACEOF
8485 if ac_fn_c_try_compile "$LINENO"
8486 then :
8487 xorg_cv_cc_flag_unused_command_line_argument=yes
8488 else case e in #(
8489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8490 esac
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8493 esac
8494 fi
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8496 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8498 CFLAGS="$xorg_testset_save_CFLAGS"
8499 fi
8500
8501 found="no"
8502
8503 if test $found = "no" ; then
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 fi
8507
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510 fi
8511
8512 CFLAGS="$CFLAGS -Werror=return-type"
8513
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8515 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8516 cacheid=xorg_cv_cc_flag__Werror_return_type
8517 if eval test \${$cacheid+y}
8518 then :
8519 printf %s "(cached) " >&6
8520 else case e in #(
8521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 int i;
8524 int
8525 main (void)
8526 {
8527
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"
8533 then :
8534 eval $cacheid=yes
8535 else case e in #(
8536 e) eval $cacheid=no ;;
8537 esac
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8540 conftest$ac_exeext conftest.$ac_ext ;;
8541 esac
8542 fi
8543
8544
8545 CFLAGS="$xorg_testset_save_CFLAGS"
8546
8547 eval supported=\$$cacheid
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8549 printf "%s\n" "$supported" >&6; }
8550 if test "$supported" = "yes" ; then
8551 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8552 found="yes"
8553 fi
8554 fi
8555
8556 if test $found = "no" ; then
8557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559 fi
8560
8561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8563 fi
8564
8565 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8566
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8568 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8569 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8570 if eval test \${$cacheid+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else case e in #(
8574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 int i;
8577 int
8578 main (void)
8579 {
8580
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 if ac_fn_c_try_link "$LINENO"
8586 then :
8587 eval $cacheid=yes
8588 else case e in #(
8589 e) eval $cacheid=no ;;
8590 esac
8591 fi
8592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8593 conftest$ac_exeext conftest.$ac_ext ;;
8594 esac
8595 fi
8596
8597
8598 CFLAGS="$xorg_testset_save_CFLAGS"
8599
8600 eval supported=\$$cacheid
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8602 printf "%s\n" "$supported" >&6; }
8603 if test "$supported" = "yes" ; then
8604 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8605 found="yes"
8606 fi
8607 fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623 xorg_testset_save_CFLAGS="$CFLAGS"
8624
8625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8630 then :
8631 printf %s "(cached) " >&6
8632 else case e in #(
8633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 int i;
8636 _ACEOF
8637 if ac_fn_c_try_compile "$LINENO"
8638 then :
8639 xorg_cv_cc_flag_unknown_warning_option=yes
8640 else case e in #(
8641 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8642 esac
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8645 esac
8646 fi
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8650 CFLAGS="$xorg_testset_save_CFLAGS"
8651 fi
8652
8653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8656 fi
8657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8661 then :
8662 printf %s "(cached) " >&6
8663 else case e in #(
8664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 int i;
8667 _ACEOF
8668 if ac_fn_c_try_compile "$LINENO"
8669 then :
8670 xorg_cv_cc_flag_unused_command_line_argument=yes
8671 else case e in #(
8672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8673 esac
8674 fi
8675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8676 esac
8677 fi
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8679 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8681 CFLAGS="$xorg_testset_save_CFLAGS"
8682 fi
8683
8684 found="no"
8685
8686 if test $found = "no" ; then
8687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8689 fi
8690
8691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8693 fi
8694
8695 CFLAGS="$CFLAGS -Werror=trigraphs"
8696
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8698 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8699 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8700 if eval test \${$cacheid+y}
8701 then :
8702 printf %s "(cached) " >&6
8703 else case e in #(
8704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706 int i;
8707 int
8708 main (void)
8709 {
8710
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 if ac_fn_c_try_link "$LINENO"
8716 then :
8717 eval $cacheid=yes
8718 else case e in #(
8719 e) eval $cacheid=no ;;
8720 esac
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8723 conftest$ac_exeext conftest.$ac_ext ;;
8724 esac
8725 fi
8726
8727
8728 CFLAGS="$xorg_testset_save_CFLAGS"
8729
8730 eval supported=\$$cacheid
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8732 printf "%s\n" "$supported" >&6; }
8733 if test "$supported" = "yes" ; then
8734 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8735 found="yes"
8736 fi
8737 fi
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753 xorg_testset_save_CFLAGS="$CFLAGS"
8754
8755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8759 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8760 then :
8761 printf %s "(cached) " >&6
8762 else case e in #(
8763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 int i;
8766 _ACEOF
8767 if ac_fn_c_try_compile "$LINENO"
8768 then :
8769 xorg_cv_cc_flag_unknown_warning_option=yes
8770 else case e in #(
8771 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8772 esac
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8775 esac
8776 fi
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8778 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8780 CFLAGS="$xorg_testset_save_CFLAGS"
8781 fi
8782
8783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786 fi
8787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else case e in #(
8794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 _ACEOF
8798 if ac_fn_c_try_compile "$LINENO"
8799 then :
8800 xorg_cv_cc_flag_unused_command_line_argument=yes
8801 else case e in #(
8802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8803 esac
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8806 esac
8807 fi
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8811 CFLAGS="$xorg_testset_save_CFLAGS"
8812 fi
8813
8814 found="no"
8815
8816 if test $found = "no" ; then
8817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819 fi
8820
8821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8823 fi
8824
8825 CFLAGS="$CFLAGS -Werror=array-bounds"
8826
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8828 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8829 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8830 if eval test \${$cacheid+y}
8831 then :
8832 printf %s "(cached) " >&6
8833 else case e in #(
8834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 int i;
8837 int
8838 main (void)
8839 {
8840
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"
8846 then :
8847 eval $cacheid=yes
8848 else case e in #(
8849 e) eval $cacheid=no ;;
8850 esac
8851 fi
8852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8853 conftest$ac_exeext conftest.$ac_ext ;;
8854 esac
8855 fi
8856
8857
8858 CFLAGS="$xorg_testset_save_CFLAGS"
8859
8860 eval supported=\$$cacheid
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8862 printf "%s\n" "$supported" >&6; }
8863 if test "$supported" = "yes" ; then
8864 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8865 found="yes"
8866 fi
8867 fi
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883 xorg_testset_save_CFLAGS="$CFLAGS"
8884
8885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8889 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8890 then :
8891 printf %s "(cached) " >&6
8892 else case e in #(
8893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 int i;
8896 _ACEOF
8897 if ac_fn_c_try_compile "$LINENO"
8898 then :
8899 xorg_cv_cc_flag_unknown_warning_option=yes
8900 else case e in #(
8901 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8902 esac
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8905 esac
8906 fi
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8908 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8910 CFLAGS="$xorg_testset_save_CFLAGS"
8911 fi
8912
8913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916 fi
8917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8921 then :
8922 printf %s "(cached) " >&6
8923 else case e in #(
8924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 int i;
8927 _ACEOF
8928 if ac_fn_c_try_compile "$LINENO"
8929 then :
8930 xorg_cv_cc_flag_unused_command_line_argument=yes
8931 else case e in #(
8932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8933 esac
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8936 esac
8937 fi
8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8941 CFLAGS="$xorg_testset_save_CFLAGS"
8942 fi
8943
8944 found="no"
8945
8946 if test $found = "no" ; then
8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8949 fi
8950
8951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8953 fi
8954
8955 CFLAGS="$CFLAGS -Werror=write-strings"
8956
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8958 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8959 cacheid=xorg_cv_cc_flag__Werror_write_strings
8960 if eval test \${$cacheid+y}
8961 then :
8962 printf %s "(cached) " >&6
8963 else case e in #(
8964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 int i;
8967 int
8968 main (void)
8969 {
8970
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 if ac_fn_c_try_link "$LINENO"
8976 then :
8977 eval $cacheid=yes
8978 else case e in #(
8979 e) eval $cacheid=no ;;
8980 esac
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8983 conftest$ac_exeext conftest.$ac_ext ;;
8984 esac
8985 fi
8986
8987
8988 CFLAGS="$xorg_testset_save_CFLAGS"
8989
8990 eval supported=\$$cacheid
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8992 printf "%s\n" "$supported" >&6; }
8993 if test "$supported" = "yes" ; then
8994 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8995 found="yes"
8996 fi
8997 fi
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013 xorg_testset_save_CFLAGS="$CFLAGS"
9014
9015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9018 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9019 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9020 then :
9021 printf %s "(cached) " >&6
9022 else case e in #(
9023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025 int i;
9026 _ACEOF
9027 if ac_fn_c_try_compile "$LINENO"
9028 then :
9029 xorg_cv_cc_flag_unknown_warning_option=yes
9030 else case e in #(
9031 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9032 esac
9033 fi
9034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9035 esac
9036 fi
9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9040 CFLAGS="$xorg_testset_save_CFLAGS"
9041 fi
9042
9043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046 fi
9047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9051 then :
9052 printf %s "(cached) " >&6
9053 else case e in #(
9054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 int i;
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"
9059 then :
9060 xorg_cv_cc_flag_unused_command_line_argument=yes
9061 else case e in #(
9062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9063 esac
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9066 esac
9067 fi
9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9071 CFLAGS="$xorg_testset_save_CFLAGS"
9072 fi
9073
9074 found="no"
9075
9076 if test $found = "no" ; then
9077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079 fi
9080
9081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9083 fi
9084
9085 CFLAGS="$CFLAGS -Werror=address"
9086
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9088 printf %s "checking if $CC supports -Werror=address... " >&6; }
9089 cacheid=xorg_cv_cc_flag__Werror_address
9090 if eval test \${$cacheid+y}
9091 then :
9092 printf %s "(cached) " >&6
9093 else case e in #(
9094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int i;
9097 int
9098 main (void)
9099 {
9100
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"
9106 then :
9107 eval $cacheid=yes
9108 else case e in #(
9109 e) eval $cacheid=no ;;
9110 esac
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9113 conftest$ac_exeext conftest.$ac_ext ;;
9114 esac
9115 fi
9116
9117
9118 CFLAGS="$xorg_testset_save_CFLAGS"
9119
9120 eval supported=\$$cacheid
9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9122 printf "%s\n" "$supported" >&6; }
9123 if test "$supported" = "yes" ; then
9124 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9125 found="yes"
9126 fi
9127 fi
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143 xorg_testset_save_CFLAGS="$CFLAGS"
9144
9145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9148 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9149 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9150 then :
9151 printf %s "(cached) " >&6
9152 else case e in #(
9153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 int i;
9156 _ACEOF
9157 if ac_fn_c_try_compile "$LINENO"
9158 then :
9159 xorg_cv_cc_flag_unknown_warning_option=yes
9160 else case e in #(
9161 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9162 esac
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9165 esac
9166 fi
9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9171 fi
9172
9173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176 fi
9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9181 then :
9182 printf %s "(cached) " >&6
9183 else case e in #(
9184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 int i;
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"
9189 then :
9190 xorg_cv_cc_flag_unused_command_line_argument=yes
9191 else case e in #(
9192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9193 esac
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9196 esac
9197 fi
9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201 CFLAGS="$xorg_testset_save_CFLAGS"
9202 fi
9203
9204 found="no"
9205
9206 if test $found = "no" ; then
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 fi
9210
9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213 fi
9214
9215 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9216
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9218 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9219 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9220 if eval test \${$cacheid+y}
9221 then :
9222 printf %s "(cached) " >&6
9223 else case e in #(
9224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 int
9228 main (void)
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"
9236 then :
9237 eval $cacheid=yes
9238 else case e in #(
9239 e) eval $cacheid=no ;;
9240 esac
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9243 conftest$ac_exeext conftest.$ac_ext ;;
9244 esac
9245 fi
9246
9247
9248 CFLAGS="$xorg_testset_save_CFLAGS"
9249
9250 eval supported=\$$cacheid
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9252 printf "%s\n" "$supported" >&6; }
9253 if test "$supported" = "yes" ; then
9254 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9255 found="yes"
9256 fi
9257 fi
9258
9259 if test $found = "no" ; then
9260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262 fi
9263
9264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9266 fi
9267
9268 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9269
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9271 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9272 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9273 if eval test \${$cacheid+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else case e in #(
9277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 int
9281 main (void)
9282 {
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"
9289 then :
9290 eval $cacheid=yes
9291 else case e in #(
9292 e) eval $cacheid=no ;;
9293 esac
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9296 conftest$ac_exeext conftest.$ac_ext ;;
9297 esac
9298 fi
9299
9300
9301 CFLAGS="$xorg_testset_save_CFLAGS"
9302
9303 eval supported=\$$cacheid
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9305 printf "%s\n" "$supported" >&6; }
9306 if test "$supported" = "yes" ; then
9307 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9308 found="yes"
9309 fi
9310 fi
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326 xorg_testset_save_CFLAGS="$CFLAGS"
9327
9328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9331 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9332 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9333 then :
9334 printf %s "(cached) " >&6
9335 else case e in #(
9336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 int i;
9339 _ACEOF
9340 if ac_fn_c_try_compile "$LINENO"
9341 then :
9342 xorg_cv_cc_flag_unknown_warning_option=yes
9343 else case e in #(
9344 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9345 esac
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9348 esac
9349 fi
9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9351 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9353 CFLAGS="$xorg_testset_save_CFLAGS"
9354 fi
9355
9356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359 fi
9360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9362 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9363 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9364 then :
9365 printf %s "(cached) " >&6
9366 else case e in #(
9367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 int i;
9370 _ACEOF
9371 if ac_fn_c_try_compile "$LINENO"
9372 then :
9373 xorg_cv_cc_flag_unused_command_line_argument=yes
9374 else case e in #(
9375 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9376 esac
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9379 esac
9380 fi
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9382 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9384 CFLAGS="$xorg_testset_save_CFLAGS"
9385 fi
9386
9387 found="no"
9388
9389 if test $found = "no" ; then
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 fi
9393
9394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9396 fi
9397
9398 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9399
9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9401 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9402 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9403 if eval test \${$cacheid+y}
9404 then :
9405 printf %s "(cached) " >&6
9406 else case e in #(
9407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 int i;
9410 int
9411 main (void)
9412 {
9413
9414 ;
9415 return 0;
9416 }
9417 _ACEOF
9418 if ac_fn_c_try_link "$LINENO"
9419 then :
9420 eval $cacheid=yes
9421 else case e in #(
9422 e) eval $cacheid=no ;;
9423 esac
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9426 conftest$ac_exeext conftest.$ac_ext ;;
9427 esac
9428 fi
9429
9430
9431 CFLAGS="$xorg_testset_save_CFLAGS"
9432
9433 eval supported=\$$cacheid
9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9435 printf "%s\n" "$supported" >&6; }
9436 if test "$supported" = "yes" ; then
9437 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9438 found="yes"
9439 fi
9440 fi
9441
9442 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9443 else
9444 { 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
9445 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;}
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459 xorg_testset_save_CFLAGS="$CFLAGS"
9460
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9466 then :
9467 printf %s "(cached) " >&6
9468 else case e in #(
9469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"
9474 then :
9475 xorg_cv_cc_flag_unknown_warning_option=yes
9476 else case e in #(
9477 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9478 esac
9479 fi
9480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9481 esac
9482 fi
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9486 CFLAGS="$xorg_testset_save_CFLAGS"
9487 fi
9488
9489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9492 fi
9493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9497 then :
9498 printf %s "(cached) " >&6
9499 else case e in #(
9500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 int i;
9503 _ACEOF
9504 if ac_fn_c_try_compile "$LINENO"
9505 then :
9506 xorg_cv_cc_flag_unused_command_line_argument=yes
9507 else case e in #(
9508 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9509 esac
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9512 esac
9513 fi
9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9517 CFLAGS="$xorg_testset_save_CFLAGS"
9518 fi
9519
9520 found="no"
9521
9522 if test $found = "no" ; then
9523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525 fi
9526
9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9529 fi
9530
9531 CFLAGS="$CFLAGS -Wimplicit"
9532
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9534 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9535 cacheid=xorg_cv_cc_flag__Wimplicit
9536 if eval test \${$cacheid+y}
9537 then :
9538 printf %s "(cached) " >&6
9539 else case e in #(
9540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int i;
9543 int
9544 main (void)
9545 {
9546
9547 ;
9548 return 0;
9549 }
9550 _ACEOF
9551 if ac_fn_c_try_link "$LINENO"
9552 then :
9553 eval $cacheid=yes
9554 else case e in #(
9555 e) eval $cacheid=no ;;
9556 esac
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9559 conftest$ac_exeext conftest.$ac_ext ;;
9560 esac
9561 fi
9562
9563
9564 CFLAGS="$xorg_testset_save_CFLAGS"
9565
9566 eval supported=\$$cacheid
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9568 printf "%s\n" "$supported" >&6; }
9569 if test "$supported" = "yes" ; then
9570 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9571 found="yes"
9572 fi
9573 fi
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589 xorg_testset_save_CFLAGS="$CFLAGS"
9590
9591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9594 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9595 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9596 then :
9597 printf %s "(cached) " >&6
9598 else case e in #(
9599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 int i;
9602 _ACEOF
9603 if ac_fn_c_try_compile "$LINENO"
9604 then :
9605 xorg_cv_cc_flag_unknown_warning_option=yes
9606 else case e in #(
9607 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9608 esac
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9611 esac
9612 fi
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9614 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9616 CFLAGS="$xorg_testset_save_CFLAGS"
9617 fi
9618
9619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622 fi
9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9625 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9626 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9627 then :
9628 printf %s "(cached) " >&6
9629 else case e in #(
9630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 int i;
9633 _ACEOF
9634 if ac_fn_c_try_compile "$LINENO"
9635 then :
9636 xorg_cv_cc_flag_unused_command_line_argument=yes
9637 else case e in #(
9638 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9639 esac
9640 fi
9641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9642 esac
9643 fi
9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9645 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9647 CFLAGS="$xorg_testset_save_CFLAGS"
9648 fi
9649
9650 found="no"
9651
9652 if test $found = "no" ; then
9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9655 fi
9656
9657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9659 fi
9660
9661 CFLAGS="$CFLAGS -Wnonnull"
9662
9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9664 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9665 cacheid=xorg_cv_cc_flag__Wnonnull
9666 if eval test \${$cacheid+y}
9667 then :
9668 printf %s "(cached) " >&6
9669 else case e in #(
9670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 int i;
9673 int
9674 main (void)
9675 {
9676
9677 ;
9678 return 0;
9679 }
9680 _ACEOF
9681 if ac_fn_c_try_link "$LINENO"
9682 then :
9683 eval $cacheid=yes
9684 else case e in #(
9685 e) eval $cacheid=no ;;
9686 esac
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9689 conftest$ac_exeext conftest.$ac_ext ;;
9690 esac
9691 fi
9692
9693
9694 CFLAGS="$xorg_testset_save_CFLAGS"
9695
9696 eval supported=\$$cacheid
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9698 printf "%s\n" "$supported" >&6; }
9699 if test "$supported" = "yes" ; then
9700 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9701 found="yes"
9702 fi
9703 fi
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719 xorg_testset_save_CFLAGS="$CFLAGS"
9720
9721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9724 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9725 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9726 then :
9727 printf %s "(cached) " >&6
9728 else case e in #(
9729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731 int i;
9732 _ACEOF
9733 if ac_fn_c_try_compile "$LINENO"
9734 then :
9735 xorg_cv_cc_flag_unknown_warning_option=yes
9736 else case e in #(
9737 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9738 esac
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9741 esac
9742 fi
9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9744 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9746 CFLAGS="$xorg_testset_save_CFLAGS"
9747 fi
9748
9749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752 fi
9753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9755 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9756 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9757 then :
9758 printf %s "(cached) " >&6
9759 else case e in #(
9760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 int i;
9763 _ACEOF
9764 if ac_fn_c_try_compile "$LINENO"
9765 then :
9766 xorg_cv_cc_flag_unused_command_line_argument=yes
9767 else case e in #(
9768 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9769 esac
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9772 esac
9773 fi
9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9775 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9777 CFLAGS="$xorg_testset_save_CFLAGS"
9778 fi
9779
9780 found="no"
9781
9782 if test $found = "no" ; then
9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 fi
9786
9787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789 fi
9790
9791 CFLAGS="$CFLAGS -Winit-self"
9792
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9794 printf %s "checking if $CC supports -Winit-self... " >&6; }
9795 cacheid=xorg_cv_cc_flag__Winit_self
9796 if eval test \${$cacheid+y}
9797 then :
9798 printf %s "(cached) " >&6
9799 else case e in #(
9800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 int i;
9803 int
9804 main (void)
9805 {
9806
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"
9812 then :
9813 eval $cacheid=yes
9814 else case e in #(
9815 e) eval $cacheid=no ;;
9816 esac
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9819 conftest$ac_exeext conftest.$ac_ext ;;
9820 esac
9821 fi
9822
9823
9824 CFLAGS="$xorg_testset_save_CFLAGS"
9825
9826 eval supported=\$$cacheid
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9828 printf "%s\n" "$supported" >&6; }
9829 if test "$supported" = "yes" ; then
9830 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9831 found="yes"
9832 fi
9833 fi
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849 xorg_testset_save_CFLAGS="$CFLAGS"
9850
9851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9854 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9855 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9856 then :
9857 printf %s "(cached) " >&6
9858 else case e in #(
9859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int i;
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"
9864 then :
9865 xorg_cv_cc_flag_unknown_warning_option=yes
9866 else case e in #(
9867 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9868 esac
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9871 esac
9872 fi
9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9874 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9876 CFLAGS="$xorg_testset_save_CFLAGS"
9877 fi
9878
9879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9882 fi
9883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9885 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9886 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9887 then :
9888 printf %s "(cached) " >&6
9889 else case e in #(
9890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 int i;
9893 _ACEOF
9894 if ac_fn_c_try_compile "$LINENO"
9895 then :
9896 xorg_cv_cc_flag_unused_command_line_argument=yes
9897 else case e in #(
9898 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9899 esac
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9902 esac
9903 fi
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9905 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9907 CFLAGS="$xorg_testset_save_CFLAGS"
9908 fi
9909
9910 found="no"
9911
9912 if test $found = "no" ; then
9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9915 fi
9916
9917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9919 fi
9920
9921 CFLAGS="$CFLAGS -Wmain"
9922
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9924 printf %s "checking if $CC supports -Wmain... " >&6; }
9925 cacheid=xorg_cv_cc_flag__Wmain
9926 if eval test \${$cacheid+y}
9927 then :
9928 printf %s "(cached) " >&6
9929 else case e in #(
9930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9932 int i;
9933 int
9934 main (void)
9935 {
9936
9937 ;
9938 return 0;
9939 }
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"
9942 then :
9943 eval $cacheid=yes
9944 else case e in #(
9945 e) eval $cacheid=no ;;
9946 esac
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9949 conftest$ac_exeext conftest.$ac_ext ;;
9950 esac
9951 fi
9952
9953
9954 CFLAGS="$xorg_testset_save_CFLAGS"
9955
9956 eval supported=\$$cacheid
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9958 printf "%s\n" "$supported" >&6; }
9959 if test "$supported" = "yes" ; then
9960 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9961 found="yes"
9962 fi
9963 fi
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979 xorg_testset_save_CFLAGS="$CFLAGS"
9980
9981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9985 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9986 then :
9987 printf %s "(cached) " >&6
9988 else case e in #(
9989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 int i;
9992 _ACEOF
9993 if ac_fn_c_try_compile "$LINENO"
9994 then :
9995 xorg_cv_cc_flag_unknown_warning_option=yes
9996 else case e in #(
9997 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9998 esac
9999 fi
10000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10001 esac
10002 fi
10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10004 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10006 CFLAGS="$xorg_testset_save_CFLAGS"
10007 fi
10008
10009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012 fi
10013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10017 then :
10018 printf %s "(cached) " >&6
10019 else case e in #(
10020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10022 int i;
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"
10025 then :
10026 xorg_cv_cc_flag_unused_command_line_argument=yes
10027 else case e in #(
10028 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10029 esac
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10032 esac
10033 fi
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10035 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10037 CFLAGS="$xorg_testset_save_CFLAGS"
10038 fi
10039
10040 found="no"
10041
10042 if test $found = "no" ; then
10043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045 fi
10046
10047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10049 fi
10050
10051 CFLAGS="$CFLAGS -Wmissing-braces"
10052
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10054 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10055 cacheid=xorg_cv_cc_flag__Wmissing_braces
10056 if eval test \${$cacheid+y}
10057 then :
10058 printf %s "(cached) " >&6
10059 else case e in #(
10060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10062 int i;
10063 int
10064 main (void)
10065 {
10066
10067 ;
10068 return 0;
10069 }
10070 _ACEOF
10071 if ac_fn_c_try_link "$LINENO"
10072 then :
10073 eval $cacheid=yes
10074 else case e in #(
10075 e) eval $cacheid=no ;;
10076 esac
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10079 conftest$ac_exeext conftest.$ac_ext ;;
10080 esac
10081 fi
10082
10083
10084 CFLAGS="$xorg_testset_save_CFLAGS"
10085
10086 eval supported=\$$cacheid
10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10088 printf "%s\n" "$supported" >&6; }
10089 if test "$supported" = "yes" ; then
10090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10091 found="yes"
10092 fi
10093 fi
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109 xorg_testset_save_CFLAGS="$CFLAGS"
10110
10111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10116 then :
10117 printf %s "(cached) " >&6
10118 else case e in #(
10119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121 int i;
10122 _ACEOF
10123 if ac_fn_c_try_compile "$LINENO"
10124 then :
10125 xorg_cv_cc_flag_unknown_warning_option=yes
10126 else case e in #(
10127 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10128 esac
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10131 esac
10132 fi
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10134 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10136 CFLAGS="$xorg_testset_save_CFLAGS"
10137 fi
10138
10139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142 fi
10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10147 then :
10148 printf %s "(cached) " >&6
10149 else case e in #(
10150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 int i;
10153 _ACEOF
10154 if ac_fn_c_try_compile "$LINENO"
10155 then :
10156 xorg_cv_cc_flag_unused_command_line_argument=yes
10157 else case e in #(
10158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10159 esac
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10162 esac
10163 fi
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10167 CFLAGS="$xorg_testset_save_CFLAGS"
10168 fi
10169
10170 found="no"
10171
10172 if test $found = "no" ; then
10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 fi
10176
10177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10179 fi
10180
10181 CFLAGS="$CFLAGS -Wsequence-point"
10182
10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10184 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10185 cacheid=xorg_cv_cc_flag__Wsequence_point
10186 if eval test \${$cacheid+y}
10187 then :
10188 printf %s "(cached) " >&6
10189 else case e in #(
10190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 int i;
10193 int
10194 main (void)
10195 {
10196
10197 ;
10198 return 0;
10199 }
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"
10202 then :
10203 eval $cacheid=yes
10204 else case e in #(
10205 e) eval $cacheid=no ;;
10206 esac
10207 fi
10208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10209 conftest$ac_exeext conftest.$ac_ext ;;
10210 esac
10211 fi
10212
10213
10214 CFLAGS="$xorg_testset_save_CFLAGS"
10215
10216 eval supported=\$$cacheid
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10218 printf "%s\n" "$supported" >&6; }
10219 if test "$supported" = "yes" ; then
10220 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10221 found="yes"
10222 fi
10223 fi
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239 xorg_testset_save_CFLAGS="$CFLAGS"
10240
10241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10245 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10246 then :
10247 printf %s "(cached) " >&6
10248 else case e in #(
10249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251 int i;
10252 _ACEOF
10253 if ac_fn_c_try_compile "$LINENO"
10254 then :
10255 xorg_cv_cc_flag_unknown_warning_option=yes
10256 else case e in #(
10257 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10258 esac
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10261 esac
10262 fi
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10266 CFLAGS="$xorg_testset_save_CFLAGS"
10267 fi
10268
10269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 fi
10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10277 then :
10278 printf %s "(cached) " >&6
10279 else case e in #(
10280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 int i;
10283 _ACEOF
10284 if ac_fn_c_try_compile "$LINENO"
10285 then :
10286 xorg_cv_cc_flag_unused_command_line_argument=yes
10287 else case e in #(
10288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10289 esac
10290 fi
10291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10292 esac
10293 fi
10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10297 CFLAGS="$xorg_testset_save_CFLAGS"
10298 fi
10299
10300 found="no"
10301
10302 if test $found = "no" ; then
10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305 fi
10306
10307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10309 fi
10310
10311 CFLAGS="$CFLAGS -Wreturn-type"
10312
10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10314 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10315 cacheid=xorg_cv_cc_flag__Wreturn_type
10316 if eval test \${$cacheid+y}
10317 then :
10318 printf %s "(cached) " >&6
10319 else case e in #(
10320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10322 int i;
10323 int
10324 main (void)
10325 {
10326
10327 ;
10328 return 0;
10329 }
10330 _ACEOF
10331 if ac_fn_c_try_link "$LINENO"
10332 then :
10333 eval $cacheid=yes
10334 else case e in #(
10335 e) eval $cacheid=no ;;
10336 esac
10337 fi
10338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10339 conftest$ac_exeext conftest.$ac_ext ;;
10340 esac
10341 fi
10342
10343
10344 CFLAGS="$xorg_testset_save_CFLAGS"
10345
10346 eval supported=\$$cacheid
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10348 printf "%s\n" "$supported" >&6; }
10349 if test "$supported" = "yes" ; then
10350 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10351 found="yes"
10352 fi
10353 fi
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 xorg_testset_save_CFLAGS="$CFLAGS"
10370
10371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10375 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10376 then :
10377 printf %s "(cached) " >&6
10378 else case e in #(
10379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 int i;
10382 _ACEOF
10383 if ac_fn_c_try_compile "$LINENO"
10384 then :
10385 xorg_cv_cc_flag_unknown_warning_option=yes
10386 else case e in #(
10387 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10388 esac
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10391 esac
10392 fi
10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10396 CFLAGS="$xorg_testset_save_CFLAGS"
10397 fi
10398
10399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402 fi
10403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10407 then :
10408 printf %s "(cached) " >&6
10409 else case e in #(
10410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10412 int i;
10413 _ACEOF
10414 if ac_fn_c_try_compile "$LINENO"
10415 then :
10416 xorg_cv_cc_flag_unused_command_line_argument=yes
10417 else case e in #(
10418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10419 esac
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10422 esac
10423 fi
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10427 CFLAGS="$xorg_testset_save_CFLAGS"
10428 fi
10429
10430 found="no"
10431
10432 if test $found = "no" ; then
10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435 fi
10436
10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439 fi
10440
10441 CFLAGS="$CFLAGS -Wtrigraphs"
10442
10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10444 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10445 cacheid=xorg_cv_cc_flag__Wtrigraphs
10446 if eval test \${$cacheid+y}
10447 then :
10448 printf %s "(cached) " >&6
10449 else case e in #(
10450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 int i;
10453 int
10454 main (void)
10455 {
10456
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_link "$LINENO"
10462 then :
10463 eval $cacheid=yes
10464 else case e in #(
10465 e) eval $cacheid=no ;;
10466 esac
10467 fi
10468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10469 conftest$ac_exeext conftest.$ac_ext ;;
10470 esac
10471 fi
10472
10473
10474 CFLAGS="$xorg_testset_save_CFLAGS"
10475
10476 eval supported=\$$cacheid
10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10478 printf "%s\n" "$supported" >&6; }
10479 if test "$supported" = "yes" ; then
10480 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10481 found="yes"
10482 fi
10483 fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499 xorg_testset_save_CFLAGS="$CFLAGS"
10500
10501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10506 then :
10507 printf %s "(cached) " >&6
10508 else case e in #(
10509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510 /* end confdefs.h. */
10511 int i;
10512 _ACEOF
10513 if ac_fn_c_try_compile "$LINENO"
10514 then :
10515 xorg_cv_cc_flag_unknown_warning_option=yes
10516 else case e in #(
10517 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10518 esac
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10521 esac
10522 fi
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10526 CFLAGS="$xorg_testset_save_CFLAGS"
10527 fi
10528
10529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10532 fi
10533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else case e in #(
10540 e) 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_unused_command_line_argument=yes
10547 else case e in #(
10548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10549 esac
10550 fi
10551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10552 esac
10553 fi
10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10555 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10557 CFLAGS="$xorg_testset_save_CFLAGS"
10558 fi
10559
10560 found="no"
10561
10562 if test $found = "no" ; then
10563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10565 fi
10566
10567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10569 fi
10570
10571 CFLAGS="$CFLAGS -Warray-bounds"
10572
10573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10574 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10575 cacheid=xorg_cv_cc_flag__Warray_bounds
10576 if eval test \${$cacheid+y}
10577 then :
10578 printf %s "(cached) " >&6
10579 else case e in #(
10580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582 int i;
10583 int
10584 main (void)
10585 {
10586
10587 ;
10588 return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"
10592 then :
10593 eval $cacheid=yes
10594 else case e in #(
10595 e) eval $cacheid=no ;;
10596 esac
10597 fi
10598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10599 conftest$ac_exeext conftest.$ac_ext ;;
10600 esac
10601 fi
10602
10603
10604 CFLAGS="$xorg_testset_save_CFLAGS"
10605
10606 eval supported=\$$cacheid
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10608 printf "%s\n" "$supported" >&6; }
10609 if test "$supported" = "yes" ; then
10610 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10611 found="yes"
10612 fi
10613 fi
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629 xorg_testset_save_CFLAGS="$CFLAGS"
10630
10631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10635 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10636 then :
10637 printf %s "(cached) " >&6
10638 else case e in #(
10639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641 int i;
10642 _ACEOF
10643 if ac_fn_c_try_compile "$LINENO"
10644 then :
10645 xorg_cv_cc_flag_unknown_warning_option=yes
10646 else case e in #(
10647 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10648 esac
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10651 esac
10652 fi
10653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10654 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10656 CFLAGS="$xorg_testset_save_CFLAGS"
10657 fi
10658
10659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10662 fi
10663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10667 then :
10668 printf %s "(cached) " >&6
10669 else case e in #(
10670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 int i;
10673 _ACEOF
10674 if ac_fn_c_try_compile "$LINENO"
10675 then :
10676 xorg_cv_cc_flag_unused_command_line_argument=yes
10677 else case e in #(
10678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10679 esac
10680 fi
10681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10682 esac
10683 fi
10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10687 CFLAGS="$xorg_testset_save_CFLAGS"
10688 fi
10689
10690 found="no"
10691
10692 if test $found = "no" ; then
10693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10695 fi
10696
10697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10699 fi
10700
10701 CFLAGS="$CFLAGS -Wwrite-strings"
10702
10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10704 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10705 cacheid=xorg_cv_cc_flag__Wwrite_strings
10706 if eval test \${$cacheid+y}
10707 then :
10708 printf %s "(cached) " >&6
10709 else case e in #(
10710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 int i;
10713 int
10714 main (void)
10715 {
10716
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"
10722 then :
10723 eval $cacheid=yes
10724 else case e in #(
10725 e) eval $cacheid=no ;;
10726 esac
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10729 conftest$ac_exeext conftest.$ac_ext ;;
10730 esac
10731 fi
10732
10733
10734 CFLAGS="$xorg_testset_save_CFLAGS"
10735
10736 eval supported=\$$cacheid
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10738 printf "%s\n" "$supported" >&6; }
10739 if test "$supported" = "yes" ; then
10740 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10741 found="yes"
10742 fi
10743 fi
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759 xorg_testset_save_CFLAGS="$CFLAGS"
10760
10761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10764 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10765 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10766 then :
10767 printf %s "(cached) " >&6
10768 else case e in #(
10769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771 int i;
10772 _ACEOF
10773 if ac_fn_c_try_compile "$LINENO"
10774 then :
10775 xorg_cv_cc_flag_unknown_warning_option=yes
10776 else case e in #(
10777 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10778 esac
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10781 esac
10782 fi
10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10784 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10786 CFLAGS="$xorg_testset_save_CFLAGS"
10787 fi
10788
10789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10792 fi
10793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10795 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10796 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10797 then :
10798 printf %s "(cached) " >&6
10799 else case e in #(
10800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10802 int i;
10803 _ACEOF
10804 if ac_fn_c_try_compile "$LINENO"
10805 then :
10806 xorg_cv_cc_flag_unused_command_line_argument=yes
10807 else case e in #(
10808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10809 esac
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10812 esac
10813 fi
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10815 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10817 CFLAGS="$xorg_testset_save_CFLAGS"
10818 fi
10819
10820 found="no"
10821
10822 if test $found = "no" ; then
10823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10825 fi
10826
10827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10829 fi
10830
10831 CFLAGS="$CFLAGS -Waddress"
10832
10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10834 printf %s "checking if $CC supports -Waddress... " >&6; }
10835 cacheid=xorg_cv_cc_flag__Waddress
10836 if eval test \${$cacheid+y}
10837 then :
10838 printf %s "(cached) " >&6
10839 else case e in #(
10840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10842 int i;
10843 int
10844 main (void)
10845 {
10846
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"
10852 then :
10853 eval $cacheid=yes
10854 else case e in #(
10855 e) eval $cacheid=no ;;
10856 esac
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10859 conftest$ac_exeext conftest.$ac_ext ;;
10860 esac
10861 fi
10862
10863
10864 CFLAGS="$xorg_testset_save_CFLAGS"
10865
10866 eval supported=\$$cacheid
10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10868 printf "%s\n" "$supported" >&6; }
10869 if test "$supported" = "yes" ; then
10870 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10871 found="yes"
10872 fi
10873 fi
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889 xorg_testset_save_CFLAGS="$CFLAGS"
10890
10891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10894 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10895 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10896 then :
10897 printf %s "(cached) " >&6
10898 else case e in #(
10899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901 int i;
10902 _ACEOF
10903 if ac_fn_c_try_compile "$LINENO"
10904 then :
10905 xorg_cv_cc_flag_unknown_warning_option=yes
10906 else case e in #(
10907 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10908 esac
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10911 esac
10912 fi
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10914 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10916 CFLAGS="$xorg_testset_save_CFLAGS"
10917 fi
10918
10919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10922 fi
10923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10927 then :
10928 printf %s "(cached) " >&6
10929 else case e in #(
10930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10932 int i;
10933 _ACEOF
10934 if ac_fn_c_try_compile "$LINENO"
10935 then :
10936 xorg_cv_cc_flag_unused_command_line_argument=yes
10937 else case e in #(
10938 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10939 esac
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10942 esac
10943 fi
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10947 CFLAGS="$xorg_testset_save_CFLAGS"
10948 fi
10949
10950 found="no"
10951
10952 if test $found = "no" ; then
10953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10955 fi
10956
10957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10959 fi
10960
10961 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10962
10963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10964 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10965 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10966 if eval test \${$cacheid+y}
10967 then :
10968 printf %s "(cached) " >&6
10969 else case e in #(
10970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10972 int i;
10973 int
10974 main (void)
10975 {
10976
10977 ;
10978 return 0;
10979 }
10980 _ACEOF
10981 if ac_fn_c_try_link "$LINENO"
10982 then :
10983 eval $cacheid=yes
10984 else case e in #(
10985 e) eval $cacheid=no ;;
10986 esac
10987 fi
10988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10989 conftest$ac_exeext conftest.$ac_ext ;;
10990 esac
10991 fi
10992
10993
10994 CFLAGS="$xorg_testset_save_CFLAGS"
10995
10996 eval supported=\$$cacheid
10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10998 printf "%s\n" "$supported" >&6; }
10999 if test "$supported" = "yes" ; then
11000 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11001 found="yes"
11002 fi
11003 fi
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 xorg_testset_save_CFLAGS="$CFLAGS"
11020
11021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11024 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11025 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11026 then :
11027 printf %s "(cached) " >&6
11028 else case e in #(
11029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031 int i;
11032 _ACEOF
11033 if ac_fn_c_try_compile "$LINENO"
11034 then :
11035 xorg_cv_cc_flag_unknown_warning_option=yes
11036 else case e in #(
11037 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11038 esac
11039 fi
11040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11041 esac
11042 fi
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11046 CFLAGS="$xorg_testset_save_CFLAGS"
11047 fi
11048
11049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11052 fi
11053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11057 then :
11058 printf %s "(cached) " >&6
11059 else case e in #(
11060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11062 int i;
11063 _ACEOF
11064 if ac_fn_c_try_compile "$LINENO"
11065 then :
11066 xorg_cv_cc_flag_unused_command_line_argument=yes
11067 else case e in #(
11068 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11069 esac
11070 fi
11071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11072 esac
11073 fi
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11075 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11077 CFLAGS="$xorg_testset_save_CFLAGS"
11078 fi
11079
11080 found="no"
11081
11082 if test $found = "no" ; then
11083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11085 fi
11086
11087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11089 fi
11090
11091 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11092
11093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11094 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11095 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11096 if eval test \${$cacheid+y}
11097 then :
11098 printf %s "(cached) " >&6
11099 else case e in #(
11100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 int i;
11103 int
11104 main (void)
11105 {
11106
11107 ;
11108 return 0;
11109 }
11110 _ACEOF
11111 if ac_fn_c_try_link "$LINENO"
11112 then :
11113 eval $cacheid=yes
11114 else case e in #(
11115 e) eval $cacheid=no ;;
11116 esac
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11119 conftest$ac_exeext conftest.$ac_ext ;;
11120 esac
11121 fi
11122
11123
11124 CFLAGS="$xorg_testset_save_CFLAGS"
11125
11126 eval supported=\$$cacheid
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11128 printf "%s\n" "$supported" >&6; }
11129 if test "$supported" = "yes" ; then
11130 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11131 found="yes"
11132 fi
11133 fi
11134
11135
11136 fi
11137
11138
11139
11140
11141
11142
11143
11144 CWARNFLAGS="$BASE_CFLAGS"
11145 if test "x$GCC" = xyes ; then
11146 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11147 fi
11148
11149
11150
11151
11152
11153
11154
11155
11156 # Check whether --enable-strict-compilation was given.
11157 if test ${enable_strict_compilation+y}
11158 then :
11159 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11160 else case e in #(
11161 e) STRICT_COMPILE=no ;;
11162 esac
11163 fi
11164
11165
11166
11167
11168
11169
11170 STRICT_CFLAGS=""
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184 xorg_testset_save_CFLAGS="$CFLAGS"
11185
11186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11189 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11190 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11191 then :
11192 printf %s "(cached) " >&6
11193 else case e in #(
11194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11196 int i;
11197 _ACEOF
11198 if ac_fn_c_try_compile "$LINENO"
11199 then :
11200 xorg_cv_cc_flag_unknown_warning_option=yes
11201 else case e in #(
11202 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11203 esac
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11206 esac
11207 fi
11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11209 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11211 CFLAGS="$xorg_testset_save_CFLAGS"
11212 fi
11213
11214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11217 fi
11218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11222 then :
11223 printf %s "(cached) " >&6
11224 else case e in #(
11225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 int i;
11228 _ACEOF
11229 if ac_fn_c_try_compile "$LINENO"
11230 then :
11231 xorg_cv_cc_flag_unused_command_line_argument=yes
11232 else case e in #(
11233 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11234 esac
11235 fi
11236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11237 esac
11238 fi
11239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11240 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11242 CFLAGS="$xorg_testset_save_CFLAGS"
11243 fi
11244
11245 found="no"
11246
11247 if test $found = "no" ; then
11248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11250 fi
11251
11252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11254 fi
11255
11256 CFLAGS="$CFLAGS -pedantic"
11257
11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11259 printf %s "checking if $CC supports -pedantic... " >&6; }
11260 cacheid=xorg_cv_cc_flag__pedantic
11261 if eval test \${$cacheid+y}
11262 then :
11263 printf %s "(cached) " >&6
11264 else case e in #(
11265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11267 int i;
11268 int
11269 main (void)
11270 {
11271
11272 ;
11273 return 0;
11274 }
11275 _ACEOF
11276 if ac_fn_c_try_link "$LINENO"
11277 then :
11278 eval $cacheid=yes
11279 else case e in #(
11280 e) eval $cacheid=no ;;
11281 esac
11282 fi
11283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11284 conftest$ac_exeext conftest.$ac_ext ;;
11285 esac
11286 fi
11287
11288
11289 CFLAGS="$xorg_testset_save_CFLAGS"
11290
11291 eval supported=\$$cacheid
11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11293 printf "%s\n" "$supported" >&6; }
11294 if test "$supported" = "yes" ; then
11295 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11296 found="yes"
11297 fi
11298 fi
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314 xorg_testset_save_CFLAGS="$CFLAGS"
11315
11316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11319 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11320 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11321 then :
11322 printf %s "(cached) " >&6
11323 else case e in #(
11324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11326 int i;
11327 _ACEOF
11328 if ac_fn_c_try_compile "$LINENO"
11329 then :
11330 xorg_cv_cc_flag_unknown_warning_option=yes
11331 else case e in #(
11332 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11333 esac
11334 fi
11335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11336 esac
11337 fi
11338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11341 CFLAGS="$xorg_testset_save_CFLAGS"
11342 fi
11343
11344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11347 fi
11348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11352 then :
11353 printf %s "(cached) " >&6
11354 else case e in #(
11355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 int i;
11358 _ACEOF
11359 if ac_fn_c_try_compile "$LINENO"
11360 then :
11361 xorg_cv_cc_flag_unused_command_line_argument=yes
11362 else case e in #(
11363 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11364 esac
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11367 esac
11368 fi
11369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11370 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11372 CFLAGS="$xorg_testset_save_CFLAGS"
11373 fi
11374
11375 found="no"
11376
11377 if test $found = "no" ; then
11378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11380 fi
11381
11382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11384 fi
11385
11386 CFLAGS="$CFLAGS -Werror"
11387
11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11389 printf %s "checking if $CC supports -Werror... " >&6; }
11390 cacheid=xorg_cv_cc_flag__Werror
11391 if eval test \${$cacheid+y}
11392 then :
11393 printf %s "(cached) " >&6
11394 else case e in #(
11395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 int i;
11398 int
11399 main (void)
11400 {
11401
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"
11407 then :
11408 eval $cacheid=yes
11409 else case e in #(
11410 e) eval $cacheid=no ;;
11411 esac
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11414 conftest$ac_exeext conftest.$ac_ext ;;
11415 esac
11416 fi
11417
11418
11419 CFLAGS="$xorg_testset_save_CFLAGS"
11420
11421 eval supported=\$$cacheid
11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11423 printf "%s\n" "$supported" >&6; }
11424 if test "$supported" = "yes" ; then
11425 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11426 found="yes"
11427 fi
11428 fi
11429
11430 if test $found = "no" ; then
11431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11433 fi
11434
11435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11437 fi
11438
11439 CFLAGS="$CFLAGS -errwarn"
11440
11441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11442 printf %s "checking if $CC supports -errwarn... " >&6; }
11443 cacheid=xorg_cv_cc_flag__errwarn
11444 if eval test \${$cacheid+y}
11445 then :
11446 printf %s "(cached) " >&6
11447 else case e in #(
11448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450 int i;
11451 int
11452 main (void)
11453 {
11454
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_link "$LINENO"
11460 then :
11461 eval $cacheid=yes
11462 else case e in #(
11463 e) eval $cacheid=no ;;
11464 esac
11465 fi
11466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11467 conftest$ac_exeext conftest.$ac_ext ;;
11468 esac
11469 fi
11470
11471
11472 CFLAGS="$xorg_testset_save_CFLAGS"
11473
11474 eval supported=\$$cacheid
11475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11476 printf "%s\n" "$supported" >&6; }
11477 if test "$supported" = "yes" ; then
11478 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11479 found="yes"
11480 fi
11481 fi
11482
11483
11484
11485 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11486 # activate it with -Werror, so we add it here explicitly.
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500 xorg_testset_save_CFLAGS="$CFLAGS"
11501
11502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11506 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11507 then :
11508 printf %s "(cached) " >&6
11509 else case e in #(
11510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512 int i;
11513 _ACEOF
11514 if ac_fn_c_try_compile "$LINENO"
11515 then :
11516 xorg_cv_cc_flag_unknown_warning_option=yes
11517 else case e in #(
11518 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11519 esac
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11522 esac
11523 fi
11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11525 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11527 CFLAGS="$xorg_testset_save_CFLAGS"
11528 fi
11529
11530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11533 fi
11534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11536 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11537 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11538 then :
11539 printf %s "(cached) " >&6
11540 else case e in #(
11541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 int i;
11544 _ACEOF
11545 if ac_fn_c_try_compile "$LINENO"
11546 then :
11547 xorg_cv_cc_flag_unused_command_line_argument=yes
11548 else case e in #(
11549 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11550 esac
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11553 esac
11554 fi
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11556 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11558 CFLAGS="$xorg_testset_save_CFLAGS"
11559 fi
11560
11561 found="no"
11562
11563 if test $found = "no" ; then
11564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11566 fi
11567
11568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11570 fi
11571
11572 CFLAGS="$CFLAGS -Werror=attributes"
11573
11574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11575 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11576 cacheid=xorg_cv_cc_flag__Werror_attributes
11577 if eval test \${$cacheid+y}
11578 then :
11579 printf %s "(cached) " >&6
11580 else case e in #(
11581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583 int i;
11584 int
11585 main (void)
11586 {
11587
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"
11593 then :
11594 eval $cacheid=yes
11595 else case e in #(
11596 e) eval $cacheid=no ;;
11597 esac
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11600 conftest$ac_exeext conftest.$ac_ext ;;
11601 esac
11602 fi
11603
11604
11605 CFLAGS="$xorg_testset_save_CFLAGS"
11606
11607 eval supported=\$$cacheid
11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11609 printf "%s\n" "$supported" >&6; }
11610 if test "$supported" = "yes" ; then
11611 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11612 found="yes"
11613 fi
11614 fi
11615
11616
11617
11618 if test "x$STRICT_COMPILE" = "xyes"; then
11619 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11620 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11621 fi
11622
11623
11624
11625
11626
11627
11628
11629
11630 cat >>confdefs.h <<_ACEOF
11631 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11632 _ACEOF
11633
11634 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11635 if test "x$PVM" = "x"; then
11636 PVM="0"
11637 fi
11638
11639 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11640
11641 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11642 if test "x$PVP" = "x"; then
11643 PVP="0"
11644 fi
11645
11646 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11647
11648
11649
11650 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11651 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11652 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11653 touch \$(top_srcdir)/ChangeLog; \
11654 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11655
11656
11657
11658
11659 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11660 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11661 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11662 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11663 touch \$(top_srcdir)/INSTALL; \
11664 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11665
11666
11667
11668
11669
11670
11671 case $host_os in
11672 solaris*)
11673 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11674 # check for a man page file found in later versions that use
11675 # traditional section numbers instead
11676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11677 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11678 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11679 then :
11680 printf %s "(cached) " >&6
11681 else case e in #(
11682 e) test "$cross_compiling" = yes &&
11683 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11684 if test -r "/usr/share/man/man7/attributes.7"; then
11685 ac_cv_file__usr_share_man_man7_attributes_7=yes
11686 else
11687 ac_cv_file__usr_share_man_man7_attributes_7=no
11688 fi ;;
11689 esac
11690 fi
11691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11692 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11693 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11694 then :
11695 SYSV_MAN_SECTIONS=false
11696 else case e in #(
11697 e) SYSV_MAN_SECTIONS=true ;;
11698 esac
11699 fi
11700
11701 ;;
11702 *) SYSV_MAN_SECTIONS=false ;;
11703 esac
11704
11705 if test x$APP_MAN_SUFFIX = x ; then
11706 APP_MAN_SUFFIX=1
11707 fi
11708 if test x$APP_MAN_DIR = x ; then
11709 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11710 fi
11711
11712 if test x$LIB_MAN_SUFFIX = x ; then
11713 LIB_MAN_SUFFIX=3
11714 fi
11715 if test x$LIB_MAN_DIR = x ; then
11716 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11717 fi
11718
11719 if test x$FILE_MAN_SUFFIX = x ; then
11720 case $SYSV_MAN_SECTIONS in
11721 true) FILE_MAN_SUFFIX=4 ;;
11722 *) FILE_MAN_SUFFIX=5 ;;
11723 esac
11724 fi
11725 if test x$FILE_MAN_DIR = x ; then
11726 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11727 fi
11728
11729 if test x$MISC_MAN_SUFFIX = x ; then
11730 case $SYSV_MAN_SECTIONS in
11731 true) MISC_MAN_SUFFIX=5 ;;
11732 *) MISC_MAN_SUFFIX=7 ;;
11733 esac
11734 fi
11735 if test x$MISC_MAN_DIR = x ; then
11736 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11737 fi
11738
11739 if test x$DRIVER_MAN_SUFFIX = x ; then
11740 case $SYSV_MAN_SECTIONS in
11741 true) DRIVER_MAN_SUFFIX=7 ;;
11742 *) DRIVER_MAN_SUFFIX=4 ;;
11743 esac
11744 fi
11745 if test x$DRIVER_MAN_DIR = x ; then
11746 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11747 fi
11748
11749 if test x$ADMIN_MAN_SUFFIX = x ; then
11750 case $SYSV_MAN_SECTIONS in
11751 true) ADMIN_MAN_SUFFIX=1m ;;
11752 *) ADMIN_MAN_SUFFIX=8 ;;
11753 esac
11754 fi
11755 if test x$ADMIN_MAN_DIR = x ; then
11756 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11757 fi
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773 XORG_MAN_PAGE="X Version 11"
11774
11775 MAN_SUBSTS="\
11776 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11777 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11778 -e 's|__xservername__|Xorg|g' \
11779 -e 's|__xconfigfile__|xorg.conf|g' \
11780 -e 's|__projectroot__|\$(prefix)|g' \
11781 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11782 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11783 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11784 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11785 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11786 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11787 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11788
11789
11790
11791
11792 AM_DEFAULT_VERBOSITY=0
11793
11794
11795
11796 # Checks for header files.
11797 ac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
11798 if test "x$ac_cv_header_net_errno_h" = xyes
11799 then :
11800 printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
11801
11802 fi
11803
11804
11805 # Checks for typedefs, structures, and compiler characteristics.
11806 # Check whether --enable-largefile was given.
11807 if test ${enable_largefile+y}
11808 then :
11809 enableval=$enable_largefile;
11810 fi
11811 if test "$enable_largefile,$enable_year2038" != no,no
11812 then :
11813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11814 printf %s "checking for $CC option to enable large file support... " >&6; }
11815 if test ${ac_cv_sys_largefile_opts+y}
11816 then :
11817 printf %s "(cached) " >&6
11818 else case e in #(
11819 e) ac_save_CC="$CC"
11820 ac_opt_found=no
11821 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11822 if test x"$ac_opt" != x"none needed"
11823 then :
11824 CC="$ac_save_CC $ac_opt"
11825 fi
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11828 #include <sys/types.h>
11829 #ifndef FTYPE
11830 # define FTYPE off_t
11831 #endif
11832 /* Check that FTYPE can represent 2**63 - 1 correctly.
11833 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11834 since some C++ compilers masquerading as C compilers
11835 incorrectly reject 9223372036854775807. */
11836 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11837 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11838 && LARGE_FTYPE % 2147483647 == 1)
11839 ? 1 : -1];
11840 int
11841 main (void)
11842 {
11843
11844 ;
11845 return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_compile "$LINENO"
11849 then :
11850 if test x"$ac_opt" = x"none needed"
11851 then :
11852 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11853 CC="$CC -DFTYPE=ino_t"
11854 if ac_fn_c_try_compile "$LINENO"
11855 then :
11856
11857 else case e in #(
11858 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11859 if ac_fn_c_try_compile "$LINENO"
11860 then :
11861 ac_opt='-D_FILE_OFFSET_BITS=64'
11862 fi
11863 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11864 esac
11865 fi
11866 rm -f core conftest.err conftest.$ac_objext conftest.beam
11867 fi
11868 ac_cv_sys_largefile_opts=$ac_opt
11869 ac_opt_found=yes
11870 fi
11871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11872 test $ac_opt_found = no || break
11873 done
11874 CC="$ac_save_CC"
11875
11876 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11877 esac
11878 fi
11879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11880 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11881
11882 ac_have_largefile=yes
11883 case $ac_cv_sys_largefile_opts in #(
11884 "none needed") :
11885 ;; #(
11886 "supported through gnulib") :
11887 ;; #(
11888 "support not detected") :
11889 ac_have_largefile=no ;; #(
11890 "-D_FILE_OFFSET_BITS=64") :
11891
11892 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11893 ;; #(
11894 "-D_LARGE_FILES=1") :
11895
11896 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11897 ;; #(
11898 "-n32") :
11899 CC="$CC -n32" ;; #(
11900 *) :
11901 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11902 esac
11903
11904 if test "$enable_year2038" != no
11905 then :
11906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11907 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11908 if test ${ac_cv_sys_year2038_opts+y}
11909 then :
11910 printf %s "(cached) " >&6
11911 else case e in #(
11912 e) ac_save_CPPFLAGS="$CPPFLAGS"
11913 ac_opt_found=no
11914 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11915 if test x"$ac_opt" != x"none needed"
11916 then :
11917 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11918 fi
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11921
11922 #include <time.h>
11923 /* Check that time_t can represent 2**32 - 1 correctly. */
11924 #define LARGE_TIME_T \\
11925 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11926 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11927 && LARGE_TIME_T % 65537 == 0)
11928 ? 1 : -1];
11929
11930 int
11931 main (void)
11932 {
11933
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_c_try_compile "$LINENO"
11939 then :
11940 ac_cv_sys_year2038_opts="$ac_opt"
11941 ac_opt_found=yes
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11944 test $ac_opt_found = no || break
11945 done
11946 CPPFLAGS="$ac_save_CPPFLAGS"
11947 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11948 esac
11949 fi
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11951 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11952
11953 ac_have_year2038=yes
11954 case $ac_cv_sys_year2038_opts in #(
11955 "none needed") :
11956 ;; #(
11957 "support not detected") :
11958 ac_have_year2038=no ;; #(
11959 "-D_TIME_BITS=64") :
11960
11961 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11962 ;; #(
11963 "-D__MINGW_USE_VC2005_COMPAT") :
11964
11965 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11966 ;; #(
11967 "-U_USE_32_BIT_TIME_T"*) :
11968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11969 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11970 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11971 will stop working after mid-January 2038. Remove
11972 _USE_32BIT_TIME_T from the compiler flags.
11973 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11974 *) :
11975 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11976 esac
11977
11978 fi
11979
11980 fi
11981
11982 # Checks for pkg-config packages
11983
11984 pkg_failed=no
11985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
11986 printf %s "checking for XAUTH... " >&6; }
11987
11988 if test -n "$XAUTH_CFLAGS"; then
11989 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
11990 elif test -n "$PKG_CONFIG"; then
11991 if test -n "$PKG_CONFIG" && \
11992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11993 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11994 ac_status=$?
11995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11996 test $ac_status = 0; }; then
11997 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11998 test "x$?" != "x0" && pkg_failed=yes
11999 else
12000 pkg_failed=yes
12001 fi
12002 else
12003 pkg_failed=untried
12004 fi
12005 if test -n "$XAUTH_LIBS"; then
12006 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
12007 elif test -n "$PKG_CONFIG"; then
12008 if test -n "$PKG_CONFIG" && \
12009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
12010 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
12011 ac_status=$?
12012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013 test $ac_status = 0; }; then
12014 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
12015 test "x$?" != "x0" && pkg_failed=yes
12016 else
12017 pkg_failed=yes
12018 fi
12019 else
12020 pkg_failed=untried
12021 fi
12022
12023
12024
12025 if test $pkg_failed = yes; then
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 printf "%s\n" "no" >&6; }
12028
12029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12030 _pkg_short_errors_supported=yes
12031 else
12032 _pkg_short_errors_supported=no
12033 fi
12034 if test $_pkg_short_errors_supported = yes; then
12035 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
12036 else
12037 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
12038 fi
12039 # Put the nasty error message in config.log where it belongs
12040 echo "$XAUTH_PKG_ERRORS" >&5
12041
12042 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
12043
12044 $XAUTH_PKG_ERRORS
12045
12046 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12047 installed software in a non-standard prefix.
12048
12049 Alternatively, you may set the environment variables XAUTH_CFLAGS
12050 and XAUTH_LIBS to avoid the need to call pkg-config.
12051 See the pkg-config man page for more details." "$LINENO" 5
12052 elif test $pkg_failed = untried; then
12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 printf "%s\n" "no" >&6; }
12055 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12056 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12057 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12058 is in your PATH or set the PKG_CONFIG environment variable to the full
12059 path to pkg-config.
12060
12061 Alternatively, you may set the environment variables XAUTH_CFLAGS
12062 and XAUTH_LIBS to avoid the need to call pkg-config.
12063 See the pkg-config man page for more details.
12064
12065 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12066 See 'config.log' for more details" "$LINENO" 5; }
12067 else
12068 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
12069 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12071 printf "%s\n" "yes" >&6; }
12072
12073 fi
12074
12075 # Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
12076 # was not expanded, since xauth with no address support is rather broken.
12077 #
12078 # If you're seeing an error here, be sure you installed the lib/xtrans module
12079 # first and if it's not in the default location, that you set the ACLOCAL
12080 # environment variable to find it, such as:
12081 # ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
12082
12083
12084 # Transport selection macro from xtrans.m4
12085 # Needed to set *CONN defines for gethost.c & parsedpy.c
12086
12087
12088 case $host_os in
12089 mingw*) unixdef="no" ;;
12090 *) unixdef="yes" ;;
12091 esac
12092 # Check whether --enable-unix-transport was given.
12093 if test ${enable_unix_transport+y}
12094 then :
12095 enableval=$enable_unix_transport; UNIXCONN=$enableval
12096 else case e in #(
12097 e) UNIXCONN=$unixdef ;;
12098 esac
12099 fi
12100
12101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
12102 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
12103 if test "$UNIXCONN" = "yes"; then
12104
12105 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
12106
12107 fi
12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
12109 printf "%s\n" "$UNIXCONN" >&6; }
12110 # Check whether --enable-tcp-transport was given.
12111 if test ${enable_tcp_transport+y}
12112 then :
12113 enableval=$enable_tcp_transport; TCPCONN=$enableval
12114 else case e in #(
12115 e) TCPCONN=yes ;;
12116 esac
12117 fi
12118
12119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
12120 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
12121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
12122 printf "%s\n" "$TCPCONN" >&6; }
12123 if test "$TCPCONN" = "yes"; then
12124
12125 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
12126
12127
12128 # SVR4 hides these in libraries other than libc
12129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12130 printf %s "checking for library containing socket... " >&6; }
12131 if test ${ac_cv_search_socket+y}
12132 then :
12133 printf %s "(cached) " >&6
12134 else case e in #(
12135 e) ac_func_search_save_LIBS=$LIBS
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138
12139 /* Override any GCC internal prototype to avoid an error.
12140 Use char because int might match the return type of a GCC
12141 builtin and then its argument prototype would still apply.
12142 The 'extern "C"' is for builds by C++ compilers;
12143 although this is not generally supported in C code supporting it here
12144 has little cost and some practical benefit (sr 110532). */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char socket (void);
12149 int
12150 main (void)
12151 {
12152 return socket ();
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 for ac_lib in '' socket
12158 do
12159 if test -z "$ac_lib"; then
12160 ac_res="none required"
12161 else
12162 ac_res=-l$ac_lib
12163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12164 fi
12165 if ac_fn_c_try_link "$LINENO"
12166 then :
12167 ac_cv_search_socket=$ac_res
12168 fi
12169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12170 conftest$ac_exeext
12171 if test ${ac_cv_search_socket+y}
12172 then :
12173 break
12174 fi
12175 done
12176 if test ${ac_cv_search_socket+y}
12177 then :
12178
12179 else case e in #(
12180 e) ac_cv_search_socket=no ;;
12181 esac
12182 fi
12183 rm conftest.$ac_ext
12184 LIBS=$ac_func_search_save_LIBS ;;
12185 esac
12186 fi
12187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12188 printf "%s\n" "$ac_cv_search_socket" >&6; }
12189 ac_res=$ac_cv_search_socket
12190 if test "$ac_res" != no
12191 then :
12192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12193
12194 fi
12195
12196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12197 printf %s "checking for library containing gethostbyname... " >&6; }
12198 if test ${ac_cv_search_gethostbyname+y}
12199 then :
12200 printf %s "(cached) " >&6
12201 else case e in #(
12202 e) ac_func_search_save_LIBS=$LIBS
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205
12206 /* Override any GCC internal prototype to avoid an error.
12207 Use char because int might match the return type of a GCC
12208 builtin and then its argument prototype would still apply.
12209 The 'extern "C"' is for builds by C++ compilers;
12210 although this is not generally supported in C code supporting it here
12211 has little cost and some practical benefit (sr 110532). */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char gethostbyname (void);
12216 int
12217 main (void)
12218 {
12219 return gethostbyname ();
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 for ac_lib in '' nsl
12225 do
12226 if test -z "$ac_lib"; then
12227 ac_res="none required"
12228 else
12229 ac_res=-l$ac_lib
12230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12231 fi
12232 if ac_fn_c_try_link "$LINENO"
12233 then :
12234 ac_cv_search_gethostbyname=$ac_res
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12237 conftest$ac_exeext
12238 if test ${ac_cv_search_gethostbyname+y}
12239 then :
12240 break
12241 fi
12242 done
12243 if test ${ac_cv_search_gethostbyname+y}
12244 then :
12245
12246 else case e in #(
12247 e) ac_cv_search_gethostbyname=no ;;
12248 esac
12249 fi
12250 rm conftest.$ac_ext
12251 LIBS=$ac_func_search_save_LIBS ;;
12252 esac
12253 fi
12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12255 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
12256 ac_res=$ac_cv_search_gethostbyname
12257 if test "$ac_res" != no
12258 then :
12259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12260
12261 fi
12262
12263 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12265 printf %s "checking for main in -lws2_32... " >&6; }
12266 if test ${ac_cv_lib_ws2_32_main+y}
12267 then :
12268 printf %s "(cached) " >&6
12269 else case e in #(
12270 e) ac_check_lib_save_LIBS=$LIBS
12271 LIBS="-lws2_32 $LIBS"
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274
12275
12276 int
12277 main (void)
12278 {
12279 return main ();
12280 ;
12281 return 0;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_link "$LINENO"
12285 then :
12286 ac_cv_lib_ws2_32_main=yes
12287 else case e in #(
12288 e) ac_cv_lib_ws2_32_main=no ;;
12289 esac
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS ;;
12294 esac
12295 fi
12296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12297 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
12298 if test "x$ac_cv_lib_ws2_32_main" = xyes
12299 then :
12300 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
12301
12302 LIBS="-lws2_32 $LIBS"
12303
12304 fi
12305
12306 fi
12307
12308 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12309 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12310 if test "x$ac_cv_func_getaddrinfo" = xyes
12311 then :
12312 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
12313
12314 fi
12315 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
12316 if test "x$ac_cv_func_inet_ntop" = xyes
12317 then :
12318 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
12319
12320 fi
12321
12322
12323 # Check whether --enable-ipv6 was given.
12324 if test ${enable_ipv6+y}
12325 then :
12326 enableval=$enable_ipv6; IPV6CONN=$enableval
12327 else case e in #(
12328 e) IPV6CONN=$ac_cv_func_getaddrinfo ;;
12329 esac
12330 fi
12331
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12333 printf %s "checking if IPv6 support should be built... " >&6; }
12334 if test "$IPV6CONN" = "yes"; then
12335
12336 printf "%s\n" "#define IPv6 1" >>confdefs.h
12337
12338 fi
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12340 printf "%s\n" "$IPV6CONN" >&6; }
12341
12342 # 4.3BSD-Reno added a new member to struct sockaddr_in
12343 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12344 #include <sys/types.h>
12345 #include <sys/socket.h>
12346 #include <netinet/in.h>
12347
12348 "
12349 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
12350 then :
12351
12352 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
12353
12354 fi
12355
12356
12357 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12358 # and added a type defined to be large enough to hold any sockaddr format.
12359 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12360 $ac_includes_default
12361 #include <sys/socket.h>
12362
12363 "
12364 if test "x$ac_cv_type_socklen_t" = xyes
12365 then :
12366
12367 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
12368
12369
12370 fi
12371 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12372 $ac_includes_default
12373 #include <sys/socket.h>
12374
12375 "
12376 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
12377 then :
12378
12379 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12380
12381
12382 fi
12383
12384
12385 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
12386 # _XOPEN_SOURCE to get it (such as on Solaris)
12387 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12388 $ac_includes_default
12389 #include <sys/socket.h>
12390
12391 "
12392 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12393 then :
12394
12395 fi
12396
12397 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
12398 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12399 unset ac_cv_member_struct_msghdr_msg_control
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
12401 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
12402 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12403 #define _XOPEN_SOURCE 600
12404 $ac_includes_default
12405 #include <sys/socket.h>
12406
12407 "
12408 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12409 then :
12410
12411 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
12412
12413
12414 fi
12415
12416 fi
12417 # If that didn't work, fall back to XPG5/UNIX98 with C89
12418 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12419 unset ac_cv_member_struct_msghdr_msg_control
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
12421 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
12422 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12423 #define _XOPEN_SOURCE 500
12424 $ac_includes_default
12425 #include <sys/socket.h>
12426
12427 "
12428 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12429 then :
12430
12431 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
12432
12433
12434 fi
12435
12436 fi
12437
12438
12439
12440 fi
12441 case $host_os in
12442 solaris*) localdef="yes" ;;
12443 *) localdef="no" ;;
12444 esac
12445 # Check whether --enable-local-transport was given.
12446 if test ${enable_local_transport+y}
12447 then :
12448 enableval=$enable_local_transport; LOCALCONN=$enableval
12449 else case e in #(
12450 e) LOCALCONN=$localdef ;;
12451 esac
12452 fi
12453
12454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12455 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
12456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12457 printf "%s\n" "$LOCALCONN" >&6; }
12458 if test "$LOCALCONN" = "yes"; then
12459
12460 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
12461
12462 fi
12463
12464 # Other functions Xtrans may need
12465 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
12466 if test "x$ac_cv_func_strcasecmp" = xyes
12467 then :
12468 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
12469
12470 fi
12471 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12472 if test "x$ac_cv_func_strlcpy" = xyes
12473 then :
12474 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
12475
12476 fi
12477
12478
12479
12480
12481 # Checks for library functions.
12482 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12483 if test "x$ac_cv_func_getaddrinfo" = xyes
12484 then :
12485 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
12486
12487 fi
12488 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
12489 if test "x$ac_cv_func_inet_ntop" = xyes
12490 then :
12491 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
12492
12493 fi
12494 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
12495 if test "x$ac_cv_func_reallocarray" = xyes
12496 then :
12497 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
12498
12499 fi
12500 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12501 if test "x$ac_cv_func_strlcpy" = xyes
12502 then :
12503 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
12504
12505 fi
12506
12507
12508
12509
12510
12511
12512
12513 # Check whether --with-lint was given.
12514 if test ${with_lint+y}
12515 then :
12516 withval=$with_lint; use_lint=$withval
12517 else case e in #(
12518 e) use_lint=no ;;
12519 esac
12520 fi
12521
12522
12523 # Obtain platform specific info like program name and options
12524 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
12525 case $host_os in
12526 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12527 lint_name=splint
12528 lint_options="-badflag"
12529 ;;
12530 *freebsd* | *netbsd*)
12531 lint_name=lint
12532 lint_options="-u -b"
12533 ;;
12534 *solaris*)
12535 lint_name=lint
12536 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12537 ;;
12538 esac
12539
12540 # Test for the presence of the program (either guessed by the code or spelled out by the user)
12541 if test "x$use_lint" = x"yes" ; then
12542 # Extract the first word of "$lint_name", so it can be a program name with args.
12543 set dummy $lint_name; ac_word=$2
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 printf %s "checking for $ac_word... " >&6; }
12546 if test ${ac_cv_path_LINT+y}
12547 then :
12548 printf %s "(cached) " >&6
12549 else case e in #(
12550 e) case $LINT in
12551 [\\/]* | ?:[\\/]*)
12552 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12553 ;;
12554 *)
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12557 do
12558 IFS=$as_save_IFS
12559 case $as_dir in #(((
12560 '') as_dir=./ ;;
12561 */) ;;
12562 *) as_dir=$as_dir/ ;;
12563 esac
12564 for ac_exec_ext in '' $ac_executable_extensions; do
12565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12566 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12568 break 2
12569 fi
12570 done
12571 done
12572 IFS=$as_save_IFS
12573
12574 ;;
12575 esac ;;
12576 esac
12577 fi
12578 LINT=$ac_cv_path_LINT
12579 if test -n "$LINT"; then
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12581 printf "%s\n" "$LINT" >&6; }
12582 else
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 printf "%s\n" "no" >&6; }
12585 fi
12586
12587
12588 if test "x$LINT" = "x"; then
12589 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12590 fi
12591 elif test "x$use_lint" = x"no" ; then
12592 if test "x$LINT" != "x"; then
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12594 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12595 fi
12596 else
12597 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12598 fi
12599
12600 # User supplied flags override default flags
12601 if test "x$LINT_FLAGS" != "x"; then
12602 lint_options=$LINT_FLAGS
12603 fi
12604
12605 LINT_FLAGS=$lint_options
12606
12607 if test "x$LINT" != x; then
12608 LINT_TRUE=
12609 LINT_FALSE='#'
12610 else
12611 LINT_TRUE='#'
12612 LINT_FALSE=
12613 fi
12614
12615
12616
12617
12618 ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
12619
12620 cat >confcache <<\_ACEOF
12621 # This file is a shell script that caches the results of configure
12622 # tests run on this system so they can be shared between configure
12623 # scripts and configure runs, see configure's option --config-cache.
12624 # It is not useful on other systems. If it contains results you don't
12625 # want to keep, you may remove or edit it.
12626 #
12627 # config.status only pays attention to the cache file if you give it
12628 # the --recheck option to rerun configure.
12629 #
12630 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12631 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12632 # following values.
12633
12634 _ACEOF
12635
12636 # The following way of writing the cache mishandles newlines in values,
12637 # but we know of no workaround that is simple, portable, and efficient.
12638 # So, we kill variables containing newlines.
12639 # Ultrix sh set writes to stderr and can't be redirected directly,
12640 # and sets the high bit in the cache file unless we assign to the vars.
12641 (
12642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12643 eval ac_val=\$$ac_var
12644 case $ac_val in #(
12645 *${as_nl}*)
12646 case $ac_var in #(
12647 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12648 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12649 esac
12650 case $ac_var in #(
12651 _ | IFS | as_nl) ;; #(
12652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12653 *) { eval $ac_var=; unset $ac_var;} ;;
12654 esac ;;
12655 esac
12656 done
12657
12658 (set) 2>&1 |
12659 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12660 *${as_nl}ac_space=\ *)
12661 # 'set' does not quote correctly, so add quotes: double-quote
12662 # substitution turns \\\\ into \\, and sed turns \\ into \.
12663 sed -n \
12664 "s/'/'\\\\''/g;
12665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12666 ;; #(
12667 *)
12668 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12670 ;;
12671 esac |
12672 sort
12673 ) |
12674 sed '
12675 /^ac_cv_env_/b end
12676 t clear
12677 :clear
12678 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12679 t end
12680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12681 :end' >>confcache
12682 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12683 if test -w "$cache_file"; then
12684 if test "x$cache_file" != "x/dev/null"; then
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12686 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12687 if test ! -f "$cache_file" || test -h "$cache_file"; then
12688 cat confcache >"$cache_file"
12689 else
12690 case $cache_file in #(
12691 */* | ?:*)
12692 mv -f confcache "$cache_file"$$ &&
12693 mv -f "$cache_file"$$ "$cache_file" ;; #(
12694 *)
12695 mv -f confcache "$cache_file" ;;
12696 esac
12697 fi
12698 fi
12699 else
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12701 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12702 fi
12703 fi
12704 rm -f confcache
12705
12706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12707 # Let make expand exec_prefix.
12708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12709
12710 DEFS=-DHAVE_CONFIG_H
12711
12712 ac_libobjs=
12713 ac_ltlibobjs=
12714 U=
12715 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12716 # 1. Remove the extension, and $U if already installed.
12717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12718 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12720 # will be set to the directory where LIBOBJS objects are built.
12721 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12722 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12723 done
12724 LIBOBJS=$ac_libobjs
12725
12726 LTLIBOBJS=$ac_ltlibobjs
12727
12728
12729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12730 printf %s "checking that generated files are newer than configure... " >&6; }
12731 if test -n "$am_sleep_pid"; then
12732 # Hide warnings about reused PIDs.
12733 wait $am_sleep_pid 2>/dev/null
12734 fi
12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12736 printf "%s\n" "done" >&6; }
12737 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12738 as_fn_error $? "conditional \"AMDEP\" was never defined.
12739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12740 fi
12741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12742 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12744 fi
12745 case $enable_silent_rules in # (((
12746 yes) AM_DEFAULT_VERBOSITY=0;;
12747 no) AM_DEFAULT_VERBOSITY=1;;
12748 esac
12749 if test $am_cv_make_support_nested_variables = yes; then
12750 AM_V='$(V)'
12751 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12752 else
12753 AM_V=$AM_DEFAULT_VERBOSITY
12754 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12755 fi
12756
12757 if test -n "$EXEEXT"; then
12758 am__EXEEXT_TRUE=
12759 am__EXEEXT_FALSE='#'
12760 else
12761 am__EXEEXT_TRUE='#'
12762 am__EXEEXT_FALSE=
12763 fi
12764
12765 # Check whether --enable-year2038 was given.
12766 if test ${enable_year2038+y}
12767 then :
12768 enableval=$enable_year2038;
12769 fi
12770
12771 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12772 as_fn_error $? "conditional \"LINT\" was never defined.
12773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12774 fi
12775
12776 : "${CONFIG_STATUS=./config.status}"
12777 ac_write_fail=0
12778 ac_clean_files_save=$ac_clean_files
12779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12781 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12782 as_write_fail=0
12783 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12784 #! $SHELL
12785 # Generated by $as_me.
12786 # Run this file to recreate the current configuration.
12787 # Compiler output produced by configure, useful for debugging
12788 # configure, is in config.log if it exists.
12789
12790 debug=false
12791 ac_cs_recheck=false
12792 ac_cs_silent=false
12793
12794 SHELL=\${CONFIG_SHELL-$SHELL}
12795 export SHELL
12796 _ASEOF
12797 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12798 ## -------------------- ##
12799 ## M4sh Initialization. ##
12800 ## -------------------- ##
12801
12802 # Be more Bourne compatible
12803 DUALCASE=1; export DUALCASE # for MKS sh
12804 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12805 then :
12806 emulate sh
12807 NULLCMD=:
12808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12809 # is contrary to our usage. Disable this feature.
12810 alias -g '${1+"$@"}'='"$@"'
12811 setopt NO_GLOB_SUBST
12812 else case e in #(
12813 e) case `(set -o) 2>/dev/null` in #(
12814 *posix*) :
12815 set -o posix ;; #(
12816 *) :
12817 ;;
12818 esac ;;
12819 esac
12820 fi
12821
12822
12823
12824 # Reset variables that may have inherited troublesome values from
12825 # the environment.
12826
12827 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12828 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12829 # side effect of setting IFS to empty, thus disabling word splitting.)
12830 # Quoting is to prevent editors from complaining about space-tab.
12831 as_nl='
12832 '
12833 export as_nl
12834 IFS=" "" $as_nl"
12835
12836 PS1='$ '
12837 PS2='> '
12838 PS4='+ '
12839
12840 # Ensure predictable behavior from utilities with locale-dependent output.
12841 LC_ALL=C
12842 export LC_ALL
12843 LANGUAGE=C
12844 export LANGUAGE
12845
12846 # We cannot yet rely on "unset" to work, but we need these variables
12847 # to be unset--not just set to an empty or harmless value--now, to
12848 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12849 # also avoids known problems related to "unset" and subshell syntax
12850 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12851 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12852 do eval test \${$as_var+y} \
12853 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12854 done
12855
12856 # Ensure that fds 0, 1, and 2 are open.
12857 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12858 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12859 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12860
12861 # The user is always right.
12862 if ${PATH_SEPARATOR+false} :; then
12863 PATH_SEPARATOR=:
12864 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12865 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12866 PATH_SEPARATOR=';'
12867 }
12868 fi
12869
12870
12871 # Find who we are. Look in the path if we contain no directory separator.
12872 as_myself=
12873 case $0 in #((
12874 *[\\/]* ) as_myself=$0 ;;
12875 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876 for as_dir in $PATH
12877 do
12878 IFS=$as_save_IFS
12879 case $as_dir in #(((
12880 '') as_dir=./ ;;
12881 */) ;;
12882 *) as_dir=$as_dir/ ;;
12883 esac
12884 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12885 done
12886 IFS=$as_save_IFS
12887
12888 ;;
12889 esac
12890 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12891 # in which case we are not to be found in the path.
12892 if test "x$as_myself" = x; then
12893 as_myself=$0
12894 fi
12895 if test ! -f "$as_myself"; then
12896 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12897 exit 1
12898 fi
12899
12900
12901
12902 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12903 # ----------------------------------------
12904 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12905 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12906 # script with STATUS, using 1 if that was 0.
12907 as_fn_error ()
12908 {
12909 as_status=$1; test $as_status -eq 0 && as_status=1
12910 if test "$4"; then
12911 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12913 fi
12914 printf "%s\n" "$as_me: error: $2" >&2
12915 as_fn_exit $as_status
12916 } # as_fn_error
12917
12918
12919 # as_fn_set_status STATUS
12920 # -----------------------
12921 # Set $? to STATUS, without forking.
12922 as_fn_set_status ()
12923 {
12924 return $1
12925 } # as_fn_set_status
12926
12927 # as_fn_exit STATUS
12928 # -----------------
12929 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12930 as_fn_exit ()
12931 {
12932 set +e
12933 as_fn_set_status $1
12934 exit $1
12935 } # as_fn_exit
12936
12937 # as_fn_unset VAR
12938 # ---------------
12939 # Portably unset VAR.
12940 as_fn_unset ()
12941 {
12942 { eval $1=; unset $1;}
12943 }
12944 as_unset=as_fn_unset
12945
12946 # as_fn_append VAR VALUE
12947 # ----------------------
12948 # Append the text in VALUE to the end of the definition contained in VAR. Take
12949 # advantage of any shell optimizations that allow amortized linear growth over
12950 # repeated appends, instead of the typical quadratic growth present in naive
12951 # implementations.
12952 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12953 then :
12954 eval 'as_fn_append ()
12955 {
12956 eval $1+=\$2
12957 }'
12958 else case e in #(
12959 e) as_fn_append ()
12960 {
12961 eval $1=\$$1\$2
12962 } ;;
12963 esac
12964 fi # as_fn_append
12965
12966 # as_fn_arith ARG...
12967 # ------------------
12968 # Perform arithmetic evaluation on the ARGs, and store the result in the
12969 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12970 # must be portable across $(()) and expr.
12971 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12972 then :
12973 eval 'as_fn_arith ()
12974 {
12975 as_val=$(( $* ))
12976 }'
12977 else case e in #(
12978 e) as_fn_arith ()
12979 {
12980 as_val=`expr "$@" || test $? -eq 1`
12981 } ;;
12982 esac
12983 fi # as_fn_arith
12984
12985
12986 if expr a : '\(a\)' >/dev/null 2>&1 &&
12987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12988 as_expr=expr
12989 else
12990 as_expr=false
12991 fi
12992
12993 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12994 as_basename=basename
12995 else
12996 as_basename=false
12997 fi
12998
12999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13000 as_dirname=dirname
13001 else
13002 as_dirname=false
13003 fi
13004
13005 as_me=`$as_basename -- "$0" ||
13006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13007 X"$0" : 'X\(//\)$' \| \
13008 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13009 printf "%s\n" X/"$0" |
13010 sed '/^.*\/\([^/][^/]*\)\/*$/{
13011 s//\1/
13012 q
13013 }
13014 /^X\/\(\/\/\)$/{
13015 s//\1/
13016 q
13017 }
13018 /^X\/\(\/\).*/{
13019 s//\1/
13020 q
13021 }
13022 s/.*/./; q'`
13023
13024 # Avoid depending upon Character Ranges.
13025 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13026 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13027 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13028 as_cr_digits='0123456789'
13029 as_cr_alnum=$as_cr_Letters$as_cr_digits
13030
13031
13032 # Determine whether it's possible to make 'echo' print without a newline.
13033 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13034 # for compatibility with existing Makefiles.
13035 ECHO_C= ECHO_N= ECHO_T=
13036 case `echo -n x` in #(((((
13037 -n*)
13038 case `echo 'xy\c'` in
13039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13040 xy) ECHO_C='\c';;
13041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13042 ECHO_T=' ';;
13043 esac;;
13044 *)
13045 ECHO_N='-n';;
13046 esac
13047
13048 # For backward compatibility with old third-party macros, we provide
13049 # the shell variables $as_echo and $as_echo_n. New code should use
13050 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13051 as_echo='printf %s\n'
13052 as_echo_n='printf %s'
13053
13054 rm -f conf$$ conf$$.exe conf$$.file
13055 if test -d conf$$.dir; then
13056 rm -f conf$$.dir/conf$$.file
13057 else
13058 rm -f conf$$.dir
13059 mkdir conf$$.dir 2>/dev/null
13060 fi
13061 if (echo >conf$$.file) 2>/dev/null; then
13062 if ln -s conf$$.file conf$$ 2>/dev/null; then
13063 as_ln_s='ln -s'
13064 # ... but there are two gotchas:
13065 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13066 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13067 # In both cases, we have to default to 'cp -pR'.
13068 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13069 as_ln_s='cp -pR'
13070 elif ln conf$$.file conf$$ 2>/dev/null; then
13071 as_ln_s=ln
13072 else
13073 as_ln_s='cp -pR'
13074 fi
13075 else
13076 as_ln_s='cp -pR'
13077 fi
13078 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13079 rmdir conf$$.dir 2>/dev/null
13080
13081
13082 # as_fn_mkdir_p
13083 # -------------
13084 # Create "$as_dir" as a directory, including parents if necessary.
13085 as_fn_mkdir_p ()
13086 {
13087
13088 case $as_dir in #(
13089 -*) as_dir=./$as_dir;;
13090 esac
13091 test -d "$as_dir" || eval $as_mkdir_p || {
13092 as_dirs=
13093 while :; do
13094 case $as_dir in #(
13095 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13096 *) as_qdir=$as_dir;;
13097 esac
13098 as_dirs="'$as_qdir' $as_dirs"
13099 as_dir=`$as_dirname -- "$as_dir" ||
13100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13101 X"$as_dir" : 'X\(//\)[^/]' \| \
13102 X"$as_dir" : 'X\(//\)$' \| \
13103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13104 printf "%s\n" X"$as_dir" |
13105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13106 s//\1/
13107 q
13108 }
13109 /^X\(\/\/\)[^/].*/{
13110 s//\1/
13111 q
13112 }
13113 /^X\(\/\/\)$/{
13114 s//\1/
13115 q
13116 }
13117 /^X\(\/\).*/{
13118 s//\1/
13119 q
13120 }
13121 s/.*/./; q'`
13122 test -d "$as_dir" && break
13123 done
13124 test -z "$as_dirs" || eval "mkdir $as_dirs"
13125 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13126
13127
13128 } # as_fn_mkdir_p
13129 if mkdir -p . 2>/dev/null; then
13130 as_mkdir_p='mkdir -p "$as_dir"'
13131 else
13132 test -d ./-p && rmdir ./-p
13133 as_mkdir_p=false
13134 fi
13135
13136
13137 # as_fn_executable_p FILE
13138 # -----------------------
13139 # Test if FILE is an executable regular file.
13140 as_fn_executable_p ()
13141 {
13142 test -f "$1" && test -x "$1"
13143 } # as_fn_executable_p
13144 as_test_x='test -x'
13145 as_executable_p=as_fn_executable_p
13146
13147 # Sed expression to map a string onto a valid CPP name.
13148 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13149 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13150
13151 # Sed expression to map a string onto a valid variable name.
13152 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13153 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13154
13155
13156 exec 6>&1
13157 ## ----------------------------------- ##
13158 ## Main body of $CONFIG_STATUS script. ##
13159 ## ----------------------------------- ##
13160 _ASEOF
13161 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13162
13163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13164 # Save the log message, to keep $0 and so on meaningful, and to
13165 # report actual input values of CONFIG_FILES etc. instead of their
13166 # values after options handling.
13167 ac_log="
13168 This file was extended by xauth $as_me 1.1.4, which was
13169 generated by GNU Autoconf 2.72. Invocation command line was
13170
13171 CONFIG_FILES = $CONFIG_FILES
13172 CONFIG_HEADERS = $CONFIG_HEADERS
13173 CONFIG_LINKS = $CONFIG_LINKS
13174 CONFIG_COMMANDS = $CONFIG_COMMANDS
13175 $ $0 $@
13176
13177 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13178 "
13179
13180 _ACEOF
13181
13182 case $ac_config_files in *"
13183 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13184 esac
13185
13186 case $ac_config_headers in *"
13187 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13188 esac
13189
13190
13191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13192 # Files that config.status was made for.
13193 config_files="$ac_config_files"
13194 config_headers="$ac_config_headers"
13195 config_commands="$ac_config_commands"
13196
13197 _ACEOF
13198
13199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13200 ac_cs_usage="\
13201 '$as_me' instantiates files and other configuration actions
13202 from templates according to the current configuration. Unless the files
13203 and actions are specified as TAGs, all are instantiated by default.
13204
13205 Usage: $0 [OPTION]... [TAG]...
13206
13207 -h, --help print this help, then exit
13208 -V, --version print version number and configuration settings, then exit
13209 --config print configuration, then exit
13210 -q, --quiet, --silent
13211 do not print progress messages
13212 -d, --debug don't remove temporary files
13213 --recheck update $as_me by reconfiguring in the same conditions
13214 --file=FILE[:TEMPLATE]
13215 instantiate the configuration file FILE
13216 --header=FILE[:TEMPLATE]
13217 instantiate the configuration header FILE
13218
13219 Configuration files:
13220 $config_files
13221
13222 Configuration headers:
13223 $config_headers
13224
13225 Configuration commands:
13226 $config_commands
13227
13228 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>."
13229
13230 _ACEOF
13231 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13232 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13234 ac_cs_config='$ac_cs_config_escaped'
13235 ac_cs_version="\\
13236 xauth config.status 1.1.4
13237 configured by $0, generated by GNU Autoconf 2.72,
13238 with options \\"\$ac_cs_config\\"
13239
13240 Copyright (C) 2023 Free Software Foundation, Inc.
13241 This config.status script is free software; the Free Software Foundation
13242 gives unlimited permission to copy, distribute and modify it."
13243
13244 ac_pwd='$ac_pwd'
13245 srcdir='$srcdir'
13246 INSTALL='$INSTALL'
13247 MKDIR_P='$MKDIR_P'
13248 AWK='$AWK'
13249 test -n "\$AWK" || AWK=awk
13250 _ACEOF
13251
13252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13253 # The default lists apply if the user does not specify any file.
13254 ac_need_defaults=:
13255 while test $# != 0
13256 do
13257 case $1 in
13258 --*=?*)
13259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13261 ac_shift=:
13262 ;;
13263 --*=)
13264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13265 ac_optarg=
13266 ac_shift=:
13267 ;;
13268 *)
13269 ac_option=$1
13270 ac_optarg=$2
13271 ac_shift=shift
13272 ;;
13273 esac
13274
13275 case $ac_option in
13276 # Handling of the options.
13277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13278 ac_cs_recheck=: ;;
13279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13280 printf "%s\n" "$ac_cs_version"; exit ;;
13281 --config | --confi | --conf | --con | --co | --c )
13282 printf "%s\n" "$ac_cs_config"; exit ;;
13283 --debug | --debu | --deb | --de | --d | -d )
13284 debug=: ;;
13285 --file | --fil | --fi | --f )
13286 $ac_shift
13287 case $ac_optarg in
13288 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13289 '') as_fn_error $? "missing file argument" ;;
13290 esac
13291 as_fn_append CONFIG_FILES " '$ac_optarg'"
13292 ac_need_defaults=false;;
13293 --header | --heade | --head | --hea )
13294 $ac_shift
13295 case $ac_optarg in
13296 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13297 esac
13298 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13299 ac_need_defaults=false;;
13300 --he | --h)
13301 # Conflict between --help and --header
13302 as_fn_error $? "ambiguous option: '$1'
13303 Try '$0 --help' for more information.";;
13304 --help | --hel | -h )
13305 printf "%s\n" "$ac_cs_usage"; exit ;;
13306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13307 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13308 ac_cs_silent=: ;;
13309
13310 # This is an error.
13311 -*) as_fn_error $? "unrecognized option: '$1'
13312 Try '$0 --help' for more information." ;;
13313
13314 *) as_fn_append ac_config_targets " $1"
13315 ac_need_defaults=false ;;
13316
13317 esac
13318 shift
13319 done
13320
13321 ac_configure_extra_args=
13322
13323 if $ac_cs_silent; then
13324 exec 6>/dev/null
13325 ac_configure_extra_args="$ac_configure_extra_args --silent"
13326 fi
13327
13328 _ACEOF
13329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13330 if \$ac_cs_recheck; then
13331 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13332 shift
13333 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13334 CONFIG_SHELL='$SHELL'
13335 export CONFIG_SHELL
13336 exec "\$@"
13337 fi
13338
13339 _ACEOF
13340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341 exec 5>>config.log
13342 {
13343 echo
13344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13345 ## Running $as_me. ##
13346 _ASBOX
13347 printf "%s\n" "$ac_log"
13348 } >&5
13349
13350 _ACEOF
13351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13352 #
13353 # INIT-COMMANDS
13354 #
13355 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13356
13357 _ACEOF
13358
13359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13360
13361 # Handling of arguments.
13362 for ac_config_target in $ac_config_targets
13363 do
13364 case $ac_config_target in
13365 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13366 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13367 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13368 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13369 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13370
13371 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13372 esac
13373 done
13374
13375
13376 # If the user did not use the arguments to specify the items to instantiate,
13377 # then the envvar interface is used. Set only those that are not.
13378 # We use the long form for the default assignment because of an extremely
13379 # bizarre bug on SunOS 4.1.3.
13380 if $ac_need_defaults; then
13381 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13382 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13383 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13384 fi
13385
13386 # Have a temporary directory for convenience. Make it in the build tree
13387 # simply because there is no reason against having it here, and in addition,
13388 # creating and moving files from /tmp can sometimes cause problems.
13389 # Hook for its removal unless debugging.
13390 # Note that there is a small window in which the directory will not be cleaned:
13391 # after its creation but before its name has been assigned to '$tmp'.
13392 $debug ||
13393 {
13394 tmp= ac_tmp=
13395 trap 'exit_status=$?
13396 : "${ac_tmp:=$tmp}"
13397 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13398 ' 0
13399 trap 'as_fn_exit 1' 1 2 13 15
13400 }
13401 # Create a (secure) tmp directory for tmp files.
13402
13403 {
13404 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13405 test -d "$tmp"
13406 } ||
13407 {
13408 tmp=./conf$$-$RANDOM
13409 (umask 077 && mkdir "$tmp")
13410 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13411 ac_tmp=$tmp
13412
13413 # Set up the scripts for CONFIG_FILES section.
13414 # No need to generate them if there are no CONFIG_FILES.
13415 # This happens for instance with './config.status config.h'.
13416 if test -n "$CONFIG_FILES"; then
13417
13418
13419 ac_cr=`echo X | tr X '\015'`
13420 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13421 # But we know of no other shell where ac_cr would be empty at this
13422 # point, so we can use a bashism as a fallback.
13423 if test "x$ac_cr" = x; then
13424 eval ac_cr=\$\'\\r\'
13425 fi
13426 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13427 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13428 ac_cs_awk_cr='\\r'
13429 else
13430 ac_cs_awk_cr=$ac_cr
13431 fi
13432
13433 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13434 _ACEOF
13435
13436
13437 {
13438 echo "cat >conf$$subs.awk <<_ACEOF" &&
13439 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13440 echo "_ACEOF"
13441 } >conf$$subs.sh ||
13442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13443 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13444 ac_delim='%!_!# '
13445 for ac_last_try in false false false false false :; do
13446 . ./conf$$subs.sh ||
13447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13448
13449 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13450 if test $ac_delim_n = $ac_delim_num; then
13451 break
13452 elif $ac_last_try; then
13453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13454 else
13455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13456 fi
13457 done
13458 rm -f conf$$subs.sh
13459
13460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13461 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13462 _ACEOF
13463 sed -n '
13464 h
13465 s/^/S["/; s/!.*/"]=/
13466 p
13467 g
13468 s/^[^!]*!//
13469 :repl
13470 t repl
13471 s/'"$ac_delim"'$//
13472 t delim
13473 :nl
13474 h
13475 s/\(.\{148\}\)..*/\1/
13476 t more1
13477 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13478 p
13479 n
13480 b repl
13481 :more1
13482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13483 p
13484 g
13485 s/.\{148\}//
13486 t nl
13487 :delim
13488 h
13489 s/\(.\{148\}\)..*/\1/
13490 t more2
13491 s/["\\]/\\&/g; s/^/"/; s/$/"/
13492 p
13493 b
13494 :more2
13495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13496 p
13497 g
13498 s/.\{148\}//
13499 t delim
13500 ' <conf$$subs.awk | sed '
13501 /^[^""]/{
13502 N
13503 s/\n//
13504 }
13505 ' >>$CONFIG_STATUS || ac_write_fail=1
13506 rm -f conf$$subs.awk
13507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508 _ACAWK
13509 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13510 for (key in S) S_is_set[key] = 1
13511 FS = ""
13512
13513 }
13514 {
13515 line = $ 0
13516 nfields = split(line, field, "@")
13517 substed = 0
13518 len = length(field[1])
13519 for (i = 2; i < nfields; i++) {
13520 key = field[i]
13521 keylen = length(key)
13522 if (S_is_set[key]) {
13523 value = S[key]
13524 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13525 len += length(value) + length(field[++i])
13526 substed = 1
13527 } else
13528 len += 1 + keylen
13529 }
13530
13531 print line
13532 }
13533
13534 _ACAWK
13535 _ACEOF
13536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13537 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13539 else
13540 cat
13541 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13542 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13543 _ACEOF
13544
13545 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13546 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13547 # trailing colons and then remove the whole line if VPATH becomes empty
13548 # (actually we leave an empty line to preserve line numbers).
13549 if test "x$srcdir" = x.; then
13550 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13551 h
13552 s///
13553 s/^/:/
13554 s/[ ]*$/:/
13555 s/:\$(srcdir):/:/g
13556 s/:\${srcdir}:/:/g
13557 s/:@srcdir@:/:/g
13558 s/^:*//
13559 s/:*$//
13560 x
13561 s/\(=[ ]*\).*/\1/
13562 G
13563 s/\n//
13564 s/^[^=]*=[ ]*$//
13565 }'
13566 fi
13567
13568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13569 fi # test -n "$CONFIG_FILES"
13570
13571 # Set up the scripts for CONFIG_HEADERS section.
13572 # No need to generate them if there are no CONFIG_HEADERS.
13573 # This happens for instance with './config.status Makefile'.
13574 if test -n "$CONFIG_HEADERS"; then
13575 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13576 BEGIN {
13577 _ACEOF
13578
13579 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13580 # here-document in config.status, that substitutes the proper values into
13581 # config.h.in to produce config.h.
13582
13583 # Create a delimiter string that does not exist in confdefs.h, to ease
13584 # handling of long lines.
13585 ac_delim='%!_!# '
13586 for ac_last_try in false false :; do
13587 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13588 if test -z "$ac_tt"; then
13589 break
13590 elif $ac_last_try; then
13591 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13592 else
13593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13594 fi
13595 done
13596
13597 # For the awk script, D is an array of macro values keyed by name,
13598 # likewise P contains macro parameters if any. Preserve backslash
13599 # newline sequences.
13600
13601 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13602 sed -n '
13603 s/.\{148\}/&'"$ac_delim"'/g
13604 t rset
13605 :rset
13606 s/^[ ]*#[ ]*define[ ][ ]*/ /
13607 t def
13608 d
13609 :def
13610 s/\\$//
13611 t bsnl
13612 s/["\\]/\\&/g
13613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13614 D["\1"]=" \3"/p
13615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13616 d
13617 :bsnl
13618 s/["\\]/\\&/g
13619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13620 D["\1"]=" \3\\\\\\n"\\/p
13621 t cont
13622 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13623 t cont
13624 d
13625 :cont
13626 n
13627 s/.\{148\}/&'"$ac_delim"'/g
13628 t clear
13629 :clear
13630 s/\\$//
13631 t bsnlc
13632 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13633 d
13634 :bsnlc
13635 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13636 b cont
13637 ' <confdefs.h | sed '
13638 s/'"$ac_delim"'/"\\\
13639 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13640
13641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13642 for (key in D) D_is_set[key] = 1
13643 FS = ""
13644 }
13645 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13646 line = \$ 0
13647 split(line, arg, " ")
13648 if (arg[1] == "#") {
13649 defundef = arg[2]
13650 mac1 = arg[3]
13651 } else {
13652 defundef = substr(arg[1], 2)
13653 mac1 = arg[2]
13654 }
13655 split(mac1, mac2, "(") #)
13656 macro = mac2[1]
13657 prefix = substr(line, 1, index(line, defundef) - 1)
13658 if (D_is_set[macro]) {
13659 # Preserve the white space surrounding the "#".
13660 print prefix "define", macro P[macro] D[macro]
13661 next
13662 } else {
13663 # Replace #undef with comments. This is necessary, for example,
13664 # in the case of _POSIX_SOURCE, which is predefined and required
13665 # on some systems where configure will not decide to define it.
13666 if (defundef == "undef") {
13667 print "/*", prefix defundef, macro, "*/"
13668 next
13669 }
13670 }
13671 }
13672 { print }
13673 _ACAWK
13674 _ACEOF
13675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13676 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13677 fi # test -n "$CONFIG_HEADERS"
13678
13679
13680 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13681 shift
13682 for ac_tag
13683 do
13684 case $ac_tag in
13685 :[FHLC]) ac_mode=$ac_tag; continue;;
13686 esac
13687 case $ac_mode$ac_tag in
13688 :[FHL]*:*);;
13689 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13690 :[FH]-) ac_tag=-:-;;
13691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13692 esac
13693 ac_save_IFS=$IFS
13694 IFS=:
13695 set x $ac_tag
13696 IFS=$ac_save_IFS
13697 shift
13698 ac_file=$1
13699 shift
13700
13701 case $ac_mode in
13702 :L) ac_source=$1;;
13703 :[FH])
13704 ac_file_inputs=
13705 for ac_f
13706 do
13707 case $ac_f in
13708 -) ac_f="$ac_tmp/stdin";;
13709 *) # Look for the file first in the build tree, then in the source tree
13710 # (if the path is not absolute). The absolute path cannot be DOS-style,
13711 # because $ac_f cannot contain ':'.
13712 test -f "$ac_f" ||
13713 case $ac_f in
13714 [\\/$]*) false;;
13715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13716 esac ||
13717 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13718 esac
13719 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13720 as_fn_append ac_file_inputs " '$ac_f'"
13721 done
13722
13723 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13724 # use $as_me), people would be surprised to read:
13725 # /* config.h. Generated by config.status. */
13726 configure_input='Generated from '`
13727 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13728 `' by configure.'
13729 if test x"$ac_file" != x-; then
13730 configure_input="$ac_file. $configure_input"
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13732 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13733 fi
13734 # Neutralize special characters interpreted by sed in replacement strings.
13735 case $configure_input in #(
13736 *\&* | *\|* | *\\* )
13737 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13738 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13739 *) ac_sed_conf_input=$configure_input;;
13740 esac
13741
13742 case $ac_tag in
13743 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13745 esac
13746 ;;
13747 esac
13748
13749 ac_dir=`$as_dirname -- "$ac_file" ||
13750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13751 X"$ac_file" : 'X\(//\)[^/]' \| \
13752 X"$ac_file" : 'X\(//\)$' \| \
13753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13754 printf "%s\n" X"$ac_file" |
13755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13756 s//\1/
13757 q
13758 }
13759 /^X\(\/\/\)[^/].*/{
13760 s//\1/
13761 q
13762 }
13763 /^X\(\/\/\)$/{
13764 s//\1/
13765 q
13766 }
13767 /^X\(\/\).*/{
13768 s//\1/
13769 q
13770 }
13771 s/.*/./; q'`
13772 as_dir="$ac_dir"; as_fn_mkdir_p
13773 ac_builddir=.
13774
13775 case "$ac_dir" in
13776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13777 *)
13778 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13779 # A ".." for each directory in $ac_dir_suffix.
13780 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13781 case $ac_top_builddir_sub in
13782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13784 esac ;;
13785 esac
13786 ac_abs_top_builddir=$ac_pwd
13787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13788 # for backward compatibility:
13789 ac_top_builddir=$ac_top_build_prefix
13790
13791 case $srcdir in
13792 .) # We are building in place.
13793 ac_srcdir=.
13794 ac_top_srcdir=$ac_top_builddir_sub
13795 ac_abs_top_srcdir=$ac_pwd ;;
13796 [\\/]* | ?:[\\/]* ) # Absolute name.
13797 ac_srcdir=$srcdir$ac_dir_suffix;
13798 ac_top_srcdir=$srcdir
13799 ac_abs_top_srcdir=$srcdir ;;
13800 *) # Relative name.
13801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13802 ac_top_srcdir=$ac_top_build_prefix$srcdir
13803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13804 esac
13805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13806
13807
13808 case $ac_mode in
13809 :F)
13810 #
13811 # CONFIG_FILE
13812 #
13813
13814 case $INSTALL in
13815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13816 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13817 esac
13818 ac_MKDIR_P=$MKDIR_P
13819 case $MKDIR_P in
13820 [\\/$]* | ?:[\\/]* ) ;;
13821 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13822 esac
13823 _ACEOF
13824
13825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13826 # If the template does not know about datarootdir, expand it.
13827 # FIXME: This hack should be removed a few years after 2.60.
13828 ac_datarootdir_hack=; ac_datarootdir_seen=
13829 ac_sed_dataroot='
13830 /datarootdir/ {
13831 p
13832 q
13833 }
13834 /@datadir@/p
13835 /@docdir@/p
13836 /@infodir@/p
13837 /@localedir@/p
13838 /@mandir@/p'
13839 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13840 *datarootdir*) ac_datarootdir_seen=yes;;
13841 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13843 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13844 _ACEOF
13845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13846 ac_datarootdir_hack='
13847 s&@datadir@&$datadir&g
13848 s&@docdir@&$docdir&g
13849 s&@infodir@&$infodir&g
13850 s&@localedir@&$localedir&g
13851 s&@mandir@&$mandir&g
13852 s&\\\${datarootdir}&$datarootdir&g' ;;
13853 esac
13854 _ACEOF
13855
13856 # Neutralize VPATH when '$srcdir' = '.'.
13857 # Shell code in configure.ac might set extrasub.
13858 # FIXME: do we really want to maintain this feature?
13859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13860 ac_sed_extra="$ac_vpsub
13861 $extrasub
13862 _ACEOF
13863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13864 :t
13865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13866 s|@configure_input@|$ac_sed_conf_input|;t t
13867 s&@top_builddir@&$ac_top_builddir_sub&;t t
13868 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13869 s&@srcdir@&$ac_srcdir&;t t
13870 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13871 s&@top_srcdir@&$ac_top_srcdir&;t t
13872 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13873 s&@builddir@&$ac_builddir&;t t
13874 s&@abs_builddir@&$ac_abs_builddir&;t t
13875 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13876 s&@INSTALL@&$ac_INSTALL&;t t
13877 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13878 $ac_datarootdir_hack
13879 "
13880 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13881 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13882
13883 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13884 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13885 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13886 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13888 which seems to be undefined. Please make sure it is defined" >&5
13889 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13890 which seems to be undefined. Please make sure it is defined" >&2;}
13891
13892 rm -f "$ac_tmp/stdin"
13893 case $ac_file in
13894 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13895 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13896 esac \
13897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13898 ;;
13899 :H)
13900 #
13901 # CONFIG_HEADER
13902 #
13903 if test x"$ac_file" != x-; then
13904 {
13905 printf "%s\n" "/* $configure_input */" >&1 \
13906 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13907 } >"$ac_tmp/config.h" \
13908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13909 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13911 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13912 else
13913 rm -f "$ac_file"
13914 mv "$ac_tmp/config.h" "$ac_file" \
13915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13916 fi
13917 else
13918 printf "%s\n" "/* $configure_input */" >&1 \
13919 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13920 || as_fn_error $? "could not create -" "$LINENO" 5
13921 fi
13922 # Compute "$ac_file"'s index in $config_headers.
13923 _am_arg="$ac_file"
13924 _am_stamp_count=1
13925 for _am_header in $config_headers :; do
13926 case $_am_header in
13927 $_am_arg | $_am_arg:* )
13928 break ;;
13929 * )
13930 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13931 esac
13932 done
13933 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13934 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13935 X"$_am_arg" : 'X\(//\)[^/]' \| \
13936 X"$_am_arg" : 'X\(//\)$' \| \
13937 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13938 printf "%s\n" X"$_am_arg" |
13939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13940 s//\1/
13941 q
13942 }
13943 /^X\(\/\/\)[^/].*/{
13944 s//\1/
13945 q
13946 }
13947 /^X\(\/\/\)$/{
13948 s//\1/
13949 q
13950 }
13951 /^X\(\/\).*/{
13952 s//\1/
13953 q
13954 }
13955 s/.*/./; q'`/stamp-h$_am_stamp_count
13956 ;;
13957
13958 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13959 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13960 ;;
13961 esac
13962
13963
13964 case $ac_file$ac_mode in
13965 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13966 # Older Autoconf quotes --file arguments for eval, but not when files
13967 # are listed without --file. Let's play safe and only enable the eval
13968 # if we detect the quoting.
13969 # TODO: see whether this extra hack can be removed once we start
13970 # requiring Autoconf 2.70 or later.
13971 case $CONFIG_FILES in #(
13972 *\'*) :
13973 eval set x "$CONFIG_FILES" ;; #(
13974 *) :
13975 set x $CONFIG_FILES ;; #(
13976 *) :
13977 ;;
13978 esac
13979 shift
13980 # Used to flag and report bootstrapping failures.
13981 am_rc=0
13982 for am_mf
13983 do
13984 # Strip MF so we end up with the name of the file.
13985 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13986 # Check whether this is an Automake generated Makefile which includes
13987 # dependency-tracking related rules and includes.
13988 # Grep'ing the whole file directly is not great: AIX grep has a line
13989 # limit of 2048, but all sed's we know have understand at least 4000.
13990 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13991 || continue
13992 am_dirpart=`$as_dirname -- "$am_mf" ||
13993 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13994 X"$am_mf" : 'X\(//\)[^/]' \| \
13995 X"$am_mf" : 'X\(//\)$' \| \
13996 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13997 printf "%s\n" X"$am_mf" |
13998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13999 s//\1/
14000 q
14001 }
14002 /^X\(\/\/\)[^/].*/{
14003 s//\1/
14004 q
14005 }
14006 /^X\(\/\/\)$/{
14007 s//\1/
14008 q
14009 }
14010 /^X\(\/\).*/{
14011 s//\1/
14012 q
14013 }
14014 s/.*/./; q'`
14015 am_filepart=`$as_basename -- "$am_mf" ||
14016 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14017 X"$am_mf" : 'X\(//\)$' \| \
14018 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14019 printf "%s\n" X/"$am_mf" |
14020 sed '/^.*\/\([^/][^/]*\)\/*$/{
14021 s//\1/
14022 q
14023 }
14024 /^X\/\(\/\/\)$/{
14025 s//\1/
14026 q
14027 }
14028 /^X\/\(\/\).*/{
14029 s//\1/
14030 q
14031 }
14032 s/.*/./; q'`
14033 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14034 && sed -e '/# am--include-marker/d' "$am_filepart" \
14035 | $MAKE -f - am--depfiles" >&5
14036 (cd "$am_dirpart" \
14037 && sed -e '/# am--include-marker/d' "$am_filepart" \
14038 | $MAKE -f - am--depfiles) >&5 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } || am_rc=$?
14042 done
14043 if test $am_rc -ne 0; then
14044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14045 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14046 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14047 for automatic dependency tracking. If GNU make was not used, consider
14048 re-running the configure script with MAKE=\"gmake\" (or whatever is
14049 necessary). You can also try re-running configure with the
14050 '--disable-dependency-tracking' option to at least be able to build
14051 the package (albeit without support for automatic dependency tracking).
14052 See 'config.log' for more details" "$LINENO" 5; }
14053 fi
14054 { am_dirpart=; unset am_dirpart;}
14055 { am_filepart=; unset am_filepart;}
14056 { am_mf=; unset am_mf;}
14057 { am_rc=; unset am_rc;}
14058 rm -f conftest-deps.mk
14059 }
14060 ;;
14061
14062 esac
14063 done # for ac_tag
14064
14065
14066 as_fn_exit 0
14067 _ACEOF
14068 ac_clean_files=$ac_clean_files_save
14069
14070 test $ac_write_fail = 0 ||
14071 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14072
14073
14074 # configure is writing to config.log, and then calls config.status.
14075 # config.status does its own redirection, appending to config.log.
14076 # Unfortunately, on DOS this fails, as config.log is still kept open
14077 # by configure, so config.status won't be able to write to it; its
14078 # output is simply discarded. So we exec the FD to /dev/null,
14079 # effectively closing config.log, so it can be properly (re)opened and
14080 # appended to by config.status. When coming back to configure, we
14081 # need to make the FD available again.
14082 if test "$no_create" != yes; then
14083 ac_cs_success=:
14084 ac_config_status_args=
14085 test "$silent" = yes &&
14086 ac_config_status_args="$ac_config_status_args --quiet"
14087 exec 5>/dev/null
14088 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14089 exec 5>>config.log
14090 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14091 # would make configure fail if this is the last instruction.
14092 $ac_cs_success || as_fn_exit 1
14093 fi
14094 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14096 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14097 fi
14098
14099
14100