configure revision 1.1.1.12 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xauth 1.1.3.
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.3'
609 PACKAGE_STRING='xauth 1.1.3'
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_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 CSCOPE
693 ETAGS
694 CTAGS
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__include
703 DEPDIR
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 runstatedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL
773 am__quote'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_dependency_tracking
778 enable_silent_rules
779 enable_selective_werror
780 enable_strict_compilation
781 enable_largefile
782 enable_unix_transport
783 enable_tcp_transport
784 enable_ipv6
785 enable_local_transport
786 with_lint
787 enable_year2038
788 '
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 PKG_CONFIG
798 PKG_CONFIG_PATH
799 PKG_CONFIG_LIBDIR
800 XAUTH_CFLAGS
801 XAUTH_LIBS
802 LINT
803 LINT_FLAGS'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 runstatedir='${localstatedir}/run'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
854
855 ac_prev=
856 ac_dashdash=
857 for ac_option
858 do
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
864 fi
865
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: '$ac_useropt'"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: '$ac_useropt'"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -runstatedir | --runstatedir | --runstatedi | --runstated \
1094 | --runstate | --runstat | --runsta | --runst | --runs \
1095 | --run | --ru | --r)
1096 ac_prev=runstatedir ;;
1097 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099 | --run=* | --ru=* | --r=*)
1100 runstatedir=$ac_optarg ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: '$ac_useropt'"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: '$ac_useropt'"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error $? "unrecognized option: '$ac_option'
1198 Try '$0 --help' for more information"
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 ;;
1218
1219 esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir runstatedir
1240 do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: '$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 printf "%s\n" X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317 else
1318 ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 'configure' configures xauth 1.1.3 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print 'checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for '--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or '..']
1371
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378 By default, 'make install' will install all the files in
1379 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than '$ac_default_prefix' using '--prefix',
1381 for instance '--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/xauth]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of xauth 1.1.3:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --enable-silent-rules less verbose build output (undo: "make V=1")
1436 --disable-silent-rules verbose build output (undo: "make V=0")
1437 --disable-selective-werror
1438 Turn off selective compiler errors. (default:
1439 enabled)
1440 --enable-strict-compilation
1441 Enable all warnings from compiler and make them
1442 errors (default: disabled)
1443 --disable-largefile omit support for large files
1444 --enable-unix-transport Enable UNIX domain socket transport
1445 --enable-tcp-transport Enable TCP socket transport
1446 --enable-ipv6 Enable IPv6 support
1447 --enable-local-transport
1448 Enable os-specific local transport
1449 --enable-year2038 support timestamps after 2038
1450
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-lint Use a lint-style source code checker (default:
1455 disabled)
1456
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 PKG_CONFIG path to pkg-config utility
1466 PKG_CONFIG_PATH
1467 directories to add to pkg-config's search path
1468 PKG_CONFIG_LIBDIR
1469 path overriding pkg-config's built-in search path
1470 XAUTH_CFLAGS
1471 C compiler flags for XAUTH, overriding pkg-config
1472 XAUTH_LIBS linker flags for XAUTH, overriding pkg-config
1473 LINT Path to a lint-style command
1474 LINT_FLAGS Flags for the lint-style command
1475
1476 Use these variables to override the choices made by 'configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1478
1479 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for configure.gnu first; this name is used for a wrapper for
1526 # Metaconfig's "Configure" on case-insensitive file systems.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 xauth configure 1.1.3
1544 generated by GNU Autoconf 2.72
1545
1546 Copyright (C) 2023 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext conftest.beam
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 printf "%s\n" "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext
1583 then :
1584 ac_retval=0
1585 else case e in #(
1586 e) printf "%s\n" "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1 ;;
1590 esac
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists and can be compiled using the include files in
1600 # INCLUDES, setting the cache variable VAR accordingly.
1601 ac_fn_c_check_header_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 printf %s "checking for $2... " >&6; }
1606 if eval test \${$3+y}
1607 then :
1608 printf %s "(cached) " >&6
1609 else case e in #(
1610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"
1616 then :
1617 eval "$3=yes"
1618 else case e in #(
1619 e) eval "$3=no" ;;
1620 esac
1621 fi
1622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1623 esac
1624 fi
1625 eval ac_res=\$$3
1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627 printf "%s\n" "$ac_res" >&6; }
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630 } # ac_fn_c_check_header_compile
1631
1632 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1633 # ------------------------------------------------------------------
1634 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1635 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1636 ac_fn_check_decl ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 as_decl_name=`echo $2|sed 's/ *(.*//'`
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1641 printf %s "checking whether $as_decl_name is declared... " >&6; }
1642 if eval test \${$3+y}
1643 then :
1644 printf %s "(cached) " >&6
1645 else case e in #(
1646 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1647 eval ac_save_FLAGS=\$$6
1648 as_fn_append $6 " $5"
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 int
1653 main (void)
1654 {
1655 #ifndef $as_decl_name
1656 #ifdef __cplusplus
1657 (void) $as_decl_use;
1658 #else
1659 (void) $as_decl_name;
1660 #endif
1661 #endif
1662
1663 ;
1664 return 0;
1665 }
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"
1668 then :
1669 eval "$3=yes"
1670 else case e in #(
1671 e) eval "$3=no" ;;
1672 esac
1673 fi
1674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1675 eval $6=\$ac_save_FLAGS
1676 ;;
1677 esac
1678 fi
1679 eval ac_res=\$$3
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 printf "%s\n" "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_check_decl
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 printf "%s\n" "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 test -x conftest$ac_exeext
1714 }
1715 then :
1716 ac_retval=0
1717 else case e in #(
1718 e) printf "%s\n" "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1 ;;
1722 esac
1723 fi
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 printf %s "checking for $2... " >&6; }
1742 if eval test \${$3+y}
1743 then :
1744 printf %s "(cached) " >&6
1745 else case e in #(
1746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (void); below. */
1754
1755 #include <limits.h>
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 (void);
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main (void)
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"
1781 then :
1782 eval "$3=yes"
1783 else case e in #(
1784 e) eval "$3=no" ;;
1785 esac
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788 conftest$ac_exeext conftest.$ac_ext ;;
1789 esac
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_func
1797
1798 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1799 # ----------------------------------------------------
1800 # Tries to find if the field MEMBER exists in type AGGR, after including
1801 # INCLUDES, setting cache variable VAR accordingly.
1802 ac_fn_c_check_member ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1806 printf %s "checking for $2.$3... " >&6; }
1807 if eval test \${$4+y}
1808 then :
1809 printf %s "(cached) " >&6
1810 else case e in #(
1811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $5
1814 int
1815 main (void)
1816 {
1817 static $2 ac_aggr;
1818 if (ac_aggr.$3)
1819 return 0;
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"
1825 then :
1826 eval "$4=yes"
1827 else case e in #(
1828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $5
1831 int
1832 main (void)
1833 {
1834 static $2 ac_aggr;
1835 if (sizeof ac_aggr.$3)
1836 return 0;
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"
1842 then :
1843 eval "$4=yes"
1844 else case e in #(
1845 e) eval "$4=no" ;;
1846 esac
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1849 esac
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1852 esac
1853 fi
1854 eval ac_res=\$$4
1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 printf "%s\n" "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_member
1860
1861 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1862 # -------------------------------------------
1863 # Tests whether TYPE exists after having included INCLUDES, setting cache
1864 # variable VAR accordingly.
1865 ac_fn_c_check_type ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 printf %s "checking for $2... " >&6; }
1870 if eval test \${$3+y}
1871 then :
1872 printf %s "(cached) " >&6
1873 else case e in #(
1874 e) eval "$3=no"
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 $4
1878 int
1879 main (void)
1880 {
1881 if (sizeof ($2))
1882 return 0;
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"
1888 then :
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 int
1893 main (void)
1894 {
1895 if (sizeof (($2)))
1896 return 0;
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"
1902 then :
1903
1904 else case e in #(
1905 e) eval "$3=yes" ;;
1906 esac
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1911 esac
1912 fi
1913 eval ac_res=\$$3
1914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 printf "%s\n" "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918 } # ac_fn_c_check_type
1919 ac_configure_args_raw=
1920 for ac_arg
1921 do
1922 case $ac_arg in
1923 *\'*)
1924 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 esac
1926 as_fn_append ac_configure_args_raw " '$ac_arg'"
1927 done
1928
1929 case $ac_configure_args_raw in
1930 *$as_nl*)
1931 ac_safe_unquote= ;;
1932 *)
1933 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1934 ac_unsafe_a="$ac_unsafe_z#~"
1935 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1936 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1937 esac
1938
1939 cat >config.log <<_ACEOF
1940 This file contains any messages produced by compilers while
1941 running configure, to aid debugging if configure makes a mistake.
1942
1943 It was created by xauth $as_me 1.1.3, which was
1944 generated by GNU Autoconf 2.72. Invocation command line was
1945
1946 $ $0$ac_configure_args_raw
1947
1948 _ACEOF
1949 exec 5>>config.log
1950 {
1951 cat <<_ASUNAME
1952 ## --------- ##
1953 ## Platform. ##
1954 ## --------- ##
1955
1956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961
1962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1964
1965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1968 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1972
1973 _ASUNAME
1974
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978 IFS=$as_save_IFS
1979 case $as_dir in #(((
1980 '') as_dir=./ ;;
1981 */) ;;
1982 *) as_dir=$as_dir/ ;;
1983 esac
1984 printf "%s\n" "PATH: $as_dir"
1985 done
1986 IFS=$as_save_IFS
1987
1988 } >&5
1989
1990 cat >&5 <<_ACEOF
1991
1992
1993 ## ----------- ##
1994 ## Core tests. ##
1995 ## ----------- ##
1996
1997 _ACEOF
1998
1999
2000 # Keep a trace of the command line.
2001 # Strip out --no-create and --no-recursion so they do not pile up.
2002 # Strip out --silent because we don't want to record it for future runs.
2003 # Also quote any args containing shell meta-characters.
2004 # Make two passes to allow for proper duplicate-argument suppression.
2005 ac_configure_args=
2006 ac_configure_args0=
2007 ac_configure_args1=
2008 ac_must_keep_next=false
2009 for ac_pass in 1 2
2010 do
2011 for ac_arg
2012 do
2013 case $ac_arg in
2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016 | -silent | --silent | --silen | --sile | --sil)
2017 continue ;;
2018 *\'*)
2019 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020 esac
2021 case $ac_pass in
2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023 2)
2024 as_fn_append ac_configure_args1 " '$ac_arg'"
2025 if test $ac_must_keep_next = true; then
2026 ac_must_keep_next=false # Got value, back to normal.
2027 else
2028 case $ac_arg in
2029 *=* | --config-cache | -C | -disable-* | --disable-* \
2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032 | -with-* | --with-* | -without-* | --without-* | --x)
2033 case "$ac_configure_args0 " in
2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035 esac
2036 ;;
2037 -* ) ac_must_keep_next=true ;;
2038 esac
2039 fi
2040 as_fn_append ac_configure_args " '$ac_arg'"
2041 ;;
2042 esac
2043 done
2044 done
2045 { ac_configure_args0=; unset ac_configure_args0;}
2046 { ac_configure_args1=; unset ac_configure_args1;}
2047
2048 # When interrupted or exit'd, cleanup temporary files, and complete
2049 # config.log. We remove comments because anyway the quotes in there
2050 # would cause problems or look ugly.
2051 # WARNING: Use '\'' to represent an apostrophe within the trap.
2052 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053 trap 'exit_status=$?
2054 # Sanitize IFS.
2055 IFS=" "" $as_nl"
2056 # Save into config.log some information that might help in debugging.
2057 {
2058 echo
2059
2060 printf "%s\n" "## ---------------- ##
2061 ## Cache variables. ##
2062 ## ---------------- ##"
2063 echo
2064 # The following way of writing the cache mishandles newlines in values,
2065 (
2066 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in #(
2069 *${as_nl}*)
2070 case $ac_var in #(
2071 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2072 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2073 esac
2074 case $ac_var in #(
2075 _ | IFS | as_nl) ;; #(
2076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077 *) { eval $ac_var=; unset $ac_var;} ;;
2078 esac ;;
2079 esac
2080 done
2081 (set) 2>&1 |
2082 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083 *${as_nl}ac_space=\ *)
2084 sed -n \
2085 "s/'\''/'\''\\\\'\'''\''/g;
2086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087 ;; #(
2088 *)
2089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2090 ;;
2091 esac |
2092 sort
2093 )
2094 echo
2095
2096 printf "%s\n" "## ----------------- ##
2097 ## Output variables. ##
2098 ## ----------------- ##"
2099 echo
2100 for ac_var in $ac_subst_vars
2101 do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in
2104 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 esac
2106 printf "%s\n" "$ac_var='\''$ac_val'\''"
2107 done | sort
2108 echo
2109
2110 if test -n "$ac_subst_files"; then
2111 printf "%s\n" "## ------------------- ##
2112 ## File substitutions. ##
2113 ## ------------------- ##"
2114 echo
2115 for ac_var in $ac_subst_files
2116 do
2117 eval ac_val=\$$ac_var
2118 case $ac_val in
2119 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 esac
2121 printf "%s\n" "$ac_var='\''$ac_val'\''"
2122 done | sort
2123 echo
2124 fi
2125
2126 if test -s confdefs.h; then
2127 printf "%s\n" "## ----------- ##
2128 ## confdefs.h. ##
2129 ## ----------- ##"
2130 echo
2131 cat confdefs.h
2132 echo
2133 fi
2134 test "$ac_signal" != 0 &&
2135 printf "%s\n" "$as_me: caught signal $ac_signal"
2136 printf "%s\n" "$as_me: exit $exit_status"
2137 } >&5
2138 rm -f core *.core core.conftest.* &&
2139 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2140 exit $exit_status
2141 ' 0
2142 for ac_signal in 1 2 13 15; do
2143 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2144 done
2145 ac_signal=0
2146
2147 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2148 rm -f -r conftest* confdefs.h
2149
2150 printf "%s\n" "/* confdefs.h */" > confdefs.h
2151
2152 # Predefined preprocessor variables.
2153
2154 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2155
2156 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2157
2158 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2159
2160 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2161
2162 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2163
2164 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2165
2166
2167 # Let the site file select an alternate cache file if it wants to.
2168 # Prefer an explicitly selected file to automatically selected ones.
2169 if test -n "$CONFIG_SITE"; then
2170 ac_site_files="$CONFIG_SITE"
2171 elif test "x$prefix" != xNONE; then
2172 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2173 else
2174 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2175 fi
2176
2177 for ac_site_file in $ac_site_files
2178 do
2179 case $ac_site_file in #(
2180 */*) :
2181 ;; #(
2182 *) :
2183 ac_site_file=./$ac_site_file ;;
2184 esac
2185 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2187 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2188 sed 's/^/| /' "$ac_site_file" >&5
2189 . "$ac_site_file" \
2190 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2191 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2192 as_fn_error $? "failed to load site script $ac_site_file
2193 See 'config.log' for more details" "$LINENO" 5; }
2194 fi
2195 done
2196
2197 if test -r "$cache_file"; then
2198 # Some versions of bash will fail to source /dev/null (special files
2199 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2200 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2202 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2203 case $cache_file in
2204 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2205 *) . "./$cache_file";;
2206 esac
2207 fi
2208 else
2209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2210 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2211 >$cache_file
2212 fi
2213
2214 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2215 # Test code for whether the C compiler supports C89 (global declarations)
2216 ac_c_conftest_c89_globals='
2217 /* Does the compiler advertise C89 conformance?
2218 Do not test the value of __STDC__, because some compilers set it to 0
2219 while being otherwise adequately conformant. */
2220 #if !defined __STDC__
2221 # error "Compiler does not advertise C89 conformance"
2222 #endif
2223
2224 #include <stddef.h>
2225 #include <stdarg.h>
2226 struct stat;
2227 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2228 struct buf { int x; };
2229 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2230 static char *e (char **p, int i)
2231 {
2232 return p[i];
2233 }
2234 static char *f (char * (*g) (char **, int), char **p, ...)
2235 {
2236 char *s;
2237 va_list v;
2238 va_start (v,p);
2239 s = g (p, va_arg (v,int));
2240 va_end (v);
2241 return s;
2242 }
2243
2244 /* C89 style stringification. */
2245 #define noexpand_stringify(a) #a
2246 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2247
2248 /* C89 style token pasting. Exercises some of the corner cases that
2249 e.g. old MSVC gets wrong, but not very hard. */
2250 #define noexpand_concat(a,b) a##b
2251 #define expand_concat(a,b) noexpand_concat(a,b)
2252 extern int vA;
2253 extern int vbee;
2254 #define aye A
2255 #define bee B
2256 int *pvA = &expand_concat(v,aye);
2257 int *pvbee = &noexpand_concat(v,bee);
2258
2259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2260 function prototypes and stuff, but not \xHH hex character constants.
2261 These do not provoke an error unfortunately, instead are silently treated
2262 as an "x". The following induces an error, until -std is added to get
2263 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2264 array size at least. It is necessary to write \x00 == 0 to get something
2265 that is true only with -std. */
2266 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2267
2268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2269 inside strings and character constants. */
2270 #define FOO(x) '\''x'\''
2271 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2272
2273 int test (int i, double x);
2274 struct s1 {int (*f) (int a);};
2275 struct s2 {int (*f) (double a);};
2276 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2277 int, int);'
2278
2279 # Test code for whether the C compiler supports C89 (body of main).
2280 ac_c_conftest_c89_main='
2281 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2282 '
2283
2284 # Test code for whether the C compiler supports C99 (global declarations)
2285 ac_c_conftest_c99_globals='
2286 /* Does the compiler advertise C99 conformance? */
2287 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2288 # error "Compiler does not advertise C99 conformance"
2289 #endif
2290
2291 // See if C++-style comments work.
2292
2293 #include <stdbool.h>
2294 extern int puts (const char *);
2295 extern int printf (const char *, ...);
2296 extern int dprintf (int, const char *, ...);
2297 extern void *malloc (size_t);
2298 extern void free (void *);
2299
2300 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2301 // dprintf is used instead of fprintf to avoid needing to declare
2302 // FILE and stderr.
2303 #define debug(...) dprintf (2, __VA_ARGS__)
2304 #define showlist(...) puts (#__VA_ARGS__)
2305 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2306 static void
2307 test_varargs_macros (void)
2308 {
2309 int x = 1234;
2310 int y = 5678;
2311 debug ("Flag");
2312 debug ("X = %d\n", x);
2313 showlist (The first, second, and third items.);
2314 report (x>y, "x is %d but y is %d", x, y);
2315 }
2316
2317 // Check long long types.
2318 #define BIG64 18446744073709551615ull
2319 #define BIG32 4294967295ul
2320 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2321 #if !BIG_OK
2322 #error "your preprocessor is broken"
2323 #endif
2324 #if BIG_OK
2325 #else
2326 #error "your preprocessor is broken"
2327 #endif
2328 static long long int bignum = -9223372036854775807LL;
2329 static unsigned long long int ubignum = BIG64;
2330
2331 struct incomplete_array
2332 {
2333 int datasize;
2334 double data[];
2335 };
2336
2337 struct named_init {
2338 int number;
2339 const wchar_t *name;
2340 double average;
2341 };
2342
2343 typedef const char *ccp;
2344
2345 static inline int
2346 test_restrict (ccp restrict text)
2347 {
2348 // Iterate through items via the restricted pointer.
2349 // Also check for declarations in for loops.
2350 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2351 continue;
2352 return 0;
2353 }
2354
2355 // Check varargs and va_copy.
2356 static bool
2357 test_varargs (const char *format, ...)
2358 {
2359 va_list args;
2360 va_start (args, format);
2361 va_list args_copy;
2362 va_copy (args_copy, args);
2363
2364 const char *str = "";
2365 int number = 0;
2366 float fnumber = 0;
2367
2368 while (*format)
2369 {
2370 switch (*format++)
2371 {
2372 case '\''s'\'': // string
2373 str = va_arg (args_copy, const char *);
2374 break;
2375 case '\''d'\'': // int
2376 number = va_arg (args_copy, int);
2377 break;
2378 case '\''f'\'': // float
2379 fnumber = va_arg (args_copy, double);
2380 break;
2381 default:
2382 break;
2383 }
2384 }
2385 va_end (args_copy);
2386 va_end (args);
2387
2388 return *str && number && fnumber;
2389 }
2390 '
2391
2392 # Test code for whether the C compiler supports C99 (body of main).
2393 ac_c_conftest_c99_main='
2394 // Check bool.
2395 _Bool success = false;
2396 success |= (argc != 0);
2397
2398 // Check restrict.
2399 if (test_restrict ("String literal") == 0)
2400 success = true;
2401 char *restrict newvar = "Another string";
2402
2403 // Check varargs.
2404 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2405 test_varargs_macros ();
2406
2407 // Check flexible array members.
2408 struct incomplete_array *ia =
2409 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2410 ia->datasize = 10;
2411 for (int i = 0; i < ia->datasize; ++i)
2412 ia->data[i] = i * 1.234;
2413 // Work around memory leak warnings.
2414 free (ia);
2415
2416 // Check named initializers.
2417 struct named_init ni = {
2418 .number = 34,
2419 .name = L"Test wide string",
2420 .average = 543.34343,
2421 };
2422
2423 ni.number = 58;
2424
2425 int dynamic_array[ni.number];
2426 dynamic_array[0] = argv[0][0];
2427 dynamic_array[ni.number - 1] = 543;
2428
2429 // work around unused variable warnings
2430 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2431 || dynamic_array[ni.number - 1] != 543);
2432 '
2433
2434 # Test code for whether the C compiler supports C11 (global declarations)
2435 ac_c_conftest_c11_globals='
2436 /* Does the compiler advertise C11 conformance? */
2437 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2438 # error "Compiler does not advertise C11 conformance"
2439 #endif
2440
2441 // Check _Alignas.
2442 char _Alignas (double) aligned_as_double;
2443 char _Alignas (0) no_special_alignment;
2444 extern char aligned_as_int;
2445 char _Alignas (0) _Alignas (int) aligned_as_int;
2446
2447 // Check _Alignof.
2448 enum
2449 {
2450 int_alignment = _Alignof (int),
2451 int_array_alignment = _Alignof (int[100]),
2452 char_alignment = _Alignof (char)
2453 };
2454 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2455
2456 // Check _Noreturn.
2457 int _Noreturn does_not_return (void) { for (;;) continue; }
2458
2459 // Check _Static_assert.
2460 struct test_static_assert
2461 {
2462 int x;
2463 _Static_assert (sizeof (int) <= sizeof (long int),
2464 "_Static_assert does not work in struct");
2465 long int y;
2466 };
2467
2468 // Check UTF-8 literals.
2469 #define u8 syntax error!
2470 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2471
2472 // Check duplicate typedefs.
2473 typedef long *long_ptr;
2474 typedef long int *long_ptr;
2475 typedef long_ptr long_ptr;
2476
2477 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2478 struct anonymous
2479 {
2480 union {
2481 struct { int i; int j; };
2482 struct { int k; long int l; } w;
2483 };
2484 int m;
2485 } v1;
2486 '
2487
2488 # Test code for whether the C compiler supports C11 (body of main).
2489 ac_c_conftest_c11_main='
2490 _Static_assert ((offsetof (struct anonymous, i)
2491 == offsetof (struct anonymous, w.k)),
2492 "Anonymous union alignment botch");
2493 v1.i = 2;
2494 v1.w.k = 5;
2495 ok |= v1.i != 5;
2496 '
2497
2498 # Test code for whether the C compiler supports C11 (complete).
2499 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2500 ${ac_c_conftest_c99_globals}
2501 ${ac_c_conftest_c11_globals}
2502
2503 int
2504 main (int argc, char **argv)
2505 {
2506 int ok = 0;
2507 ${ac_c_conftest_c89_main}
2508 ${ac_c_conftest_c99_main}
2509 ${ac_c_conftest_c11_main}
2510 return ok;
2511 }
2512 "
2513
2514 # Test code for whether the C compiler supports C99 (complete).
2515 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2516 ${ac_c_conftest_c99_globals}
2517
2518 int
2519 main (int argc, char **argv)
2520 {
2521 int ok = 0;
2522 ${ac_c_conftest_c89_main}
2523 ${ac_c_conftest_c99_main}
2524 return ok;
2525 }
2526 "
2527
2528 # Test code for whether the C compiler supports C89 (complete).
2529 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2530
2531 int
2532 main (int argc, char **argv)
2533 {
2534 int ok = 0;
2535 ${ac_c_conftest_c89_main}
2536 return ok;
2537 }
2538 "
2539
2540 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2541 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2542 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2543 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2544 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2545 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2546 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2547 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2548 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2549 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2550
2551 # Auxiliary files required by this configure script.
2552 ac_aux_files="config.guess config.sub missing install-sh compile"
2553
2554 # Locations in which to look for auxiliary files.
2555 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2556
2557 # Search for a directory containing all of the required auxiliary files,
2558 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2559 # If we don't find one directory that contains all the files we need,
2560 # we report the set of missing files from the *first* directory in
2561 # $ac_aux_dir_candidates and give up.
2562 ac_missing_aux_files=""
2563 ac_first_candidate=:
2564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 as_found=false
2567 for as_dir in $ac_aux_dir_candidates
2568 do
2569 IFS=$as_save_IFS
2570 case $as_dir in #(((
2571 '') as_dir=./ ;;
2572 */) ;;
2573 *) as_dir=$as_dir/ ;;
2574 esac
2575 as_found=:
2576
2577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2578 ac_aux_dir_found=yes
2579 ac_install_sh=
2580 for ac_aux in $ac_aux_files
2581 do
2582 # As a special case, if "install-sh" is required, that requirement
2583 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2584 # and $ac_install_sh is set appropriately for whichever one is found.
2585 if test x"$ac_aux" = x"install-sh"
2586 then
2587 if test -f "${as_dir}install-sh"; then
2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2589 ac_install_sh="${as_dir}install-sh -c"
2590 elif test -f "${as_dir}install.sh"; then
2591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2592 ac_install_sh="${as_dir}install.sh -c"
2593 elif test -f "${as_dir}shtool"; then
2594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2595 ac_install_sh="${as_dir}shtool install -c"
2596 else
2597 ac_aux_dir_found=no
2598 if $ac_first_candidate; then
2599 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2600 else
2601 break
2602 fi
2603 fi
2604 else
2605 if test -f "${as_dir}${ac_aux}"; then
2606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2607 else
2608 ac_aux_dir_found=no
2609 if $ac_first_candidate; then
2610 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2611 else
2612 break
2613 fi
2614 fi
2615 fi
2616 done
2617 if test "$ac_aux_dir_found" = yes; then
2618 ac_aux_dir="$as_dir"
2619 break
2620 fi
2621 ac_first_candidate=false
2622
2623 as_found=false
2624 done
2625 IFS=$as_save_IFS
2626 if $as_found
2627 then :
2628
2629 else case e in #(
2630 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2631 esac
2632 fi
2633
2634
2635 # These three variables are undocumented and unsupported,
2636 # and are intended to be withdrawn in a future Autoconf release.
2637 # They can cause serious problems if a builder's source tree is in a directory
2638 # whose full name contains unusual characters.
2639 if test -f "${ac_aux_dir}config.guess"; then
2640 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2641 fi
2642 if test -f "${ac_aux_dir}config.sub"; then
2643 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2644 fi
2645 if test -f "$ac_aux_dir/configure"; then
2646 ac_configure="$SHELL ${ac_aux_dir}configure"
2647 fi
2648
2649 # Check that the precious variables saved in the cache have kept the same
2650 # value.
2651 ac_cache_corrupted=false
2652 for ac_var in $ac_precious_vars; do
2653 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2654 eval ac_new_set=\$ac_env_${ac_var}_set
2655 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2656 eval ac_new_val=\$ac_env_${ac_var}_value
2657 case $ac_old_set,$ac_new_set in
2658 set,)
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2660 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2661 ac_cache_corrupted=: ;;
2662 ,set)
2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2664 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2665 ac_cache_corrupted=: ;;
2666 ,);;
2667 *)
2668 if test "x$ac_old_val" != "x$ac_new_val"; then
2669 # differences in whitespace do not lead to failure.
2670 ac_old_val_w=`echo x $ac_old_val`
2671 ac_new_val_w=`echo x $ac_new_val`
2672 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2674 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2675 ac_cache_corrupted=:
2676 else
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2678 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2679 eval $ac_var=\$ac_old_val
2680 fi
2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2682 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2684 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2685 fi;;
2686 esac
2687 # Pass precious variables to config.status.
2688 if test "$ac_new_set" = set; then
2689 case $ac_new_val in
2690 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2691 *) ac_arg=$ac_var=$ac_new_val ;;
2692 esac
2693 case " $ac_configure_args " in
2694 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2695 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2696 esac
2697 fi
2698 done
2699 if $ac_cache_corrupted; then
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2701 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2703 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2704 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2705 and start over" "$LINENO" 5
2706 fi
2707 ## -------------------- ##
2708 ## Main body of script. ##
2709 ## -------------------- ##
2710
2711 ac_ext=c
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716
2717
2718
2719 ac_config_headers="$ac_config_headers config.h"
2720
2721
2722 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2723 # Must be called before any macros that run the compiler (like
2724 # AC_PROG_LIBTOOL) to avoid autoconf errors.
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736 # Expand $ac_aux_dir to an absolute path.
2737 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2738
2739 ac_ext=c
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744 if test -n "$ac_tool_prefix"; then
2745 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 printf %s "checking for $ac_word... " >&6; }
2749 if test ${ac_cv_prog_CC+y}
2750 then :
2751 printf %s "(cached) " >&6
2752 else case e in #(
2753 e) if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 case $as_dir in #(((
2761 '') as_dir=./ ;;
2762 */) ;;
2763 *) as_dir=$as_dir/ ;;
2764 esac
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi ;;
2776 esac
2777 fi
2778 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781 printf "%s\n" "$CC" >&6; }
2782 else
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 printf "%s\n" "no" >&6; }
2785 fi
2786
2787
2788 fi
2789 if test -z "$ac_cv_prog_CC"; then
2790 ac_ct_CC=$CC
2791 # Extract the first word of "gcc", so it can be a program name with args.
2792 set dummy gcc; ac_word=$2
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 printf %s "checking for $ac_word... " >&6; }
2795 if test ${ac_cv_prog_ac_ct_CC+y}
2796 then :
2797 printf %s "(cached) " >&6
2798 else case e in #(
2799 e) if test -n "$ac_ct_CC"; then
2800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 case $as_dir in #(((
2807 '') as_dir=./ ;;
2808 */) ;;
2809 *) as_dir=$as_dir/ ;;
2810 esac
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2813 ac_cv_prog_ac_ct_CC="gcc"
2814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2815 break 2
2816 fi
2817 done
2818 done
2819 IFS=$as_save_IFS
2820
2821 fi ;;
2822 esac
2823 fi
2824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825 if test -n "$ac_ct_CC"; then
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2827 printf "%s\n" "$ac_ct_CC" >&6; }
2828 else
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 printf "%s\n" "no" >&6; }
2831 fi
2832
2833 if test "x$ac_ct_CC" = x; then
2834 CC=""
2835 else
2836 case $cross_compiling:$ac_tool_warned in
2837 yes:)
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840 ac_tool_warned=yes ;;
2841 esac
2842 CC=$ac_ct_CC
2843 fi
2844 else
2845 CC="$ac_cv_prog_CC"
2846 fi
2847
2848 if test -z "$CC"; then
2849 if test -n "$ac_tool_prefix"; then
2850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}cc; ac_word=$2
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 printf %s "checking for $ac_word... " >&6; }
2854 if test ${ac_cv_prog_CC+y}
2855 then :
2856 printf %s "(cached) " >&6
2857 else case e in #(
2858 e) if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 case $as_dir in #(((
2866 '') as_dir=./ ;;
2867 */) ;;
2868 *) as_dir=$as_dir/ ;;
2869 esac
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_CC="${ac_tool_prefix}cc"
2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi ;;
2881 esac
2882 fi
2883 CC=$ac_cv_prog_CC
2884 if test -n "$CC"; then
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 printf "%s\n" "$CC" >&6; }
2887 else
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 printf "%s\n" "no" >&6; }
2890 fi
2891
2892
2893 fi
2894 fi
2895 if test -z "$CC"; then
2896 # Extract the first word of "cc", so it can be a program name with args.
2897 set dummy cc; ac_word=$2
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 printf %s "checking for $ac_word... " >&6; }
2900 if test ${ac_cv_prog_CC+y}
2901 then :
2902 printf %s "(cached) " >&6
2903 else case e in #(
2904 e) if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 ac_prog_rejected=no
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 case $as_dir in #(((
2913 '') as_dir=./ ;;
2914 */) ;;
2915 *) as_dir=$as_dir/ ;;
2916 esac
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2919 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2920 ac_prog_rejected=yes
2921 continue
2922 fi
2923 ac_cv_prog_CC="cc"
2924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 if test $ac_prog_rejected = yes; then
2932 # We found a bogon in the path, so make sure we never use it.
2933 set dummy $ac_cv_prog_CC
2934 shift
2935 if test $# != 0; then
2936 # We chose a different compiler from the bogus one.
2937 # However, it has the same basename, so the bogon will be chosen
2938 # first if we set CC to just the basename; use the full file name.
2939 shift
2940 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2941 fi
2942 fi
2943 fi ;;
2944 esac
2945 fi
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 printf "%s\n" "$CC" >&6; }
2950 else
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 printf "%s\n" "no" >&6; }
2953 fi
2954
2955
2956 fi
2957 if test -z "$CC"; then
2958 if test -n "$ac_tool_prefix"; then
2959 for ac_prog in cl.exe
2960 do
2961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 printf %s "checking for $ac_word... " >&6; }
2965 if test ${ac_cv_prog_CC+y}
2966 then :
2967 printf %s "(cached) " >&6
2968 else case e in #(
2969 e) if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 case $as_dir in #(((
2977 '') as_dir=./ ;;
2978 */) ;;
2979 *) as_dir=$as_dir/ ;;
2980 esac
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi ;;
2992 esac
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 printf "%s\n" "$CC" >&6; }
2998 else
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 printf "%s\n" "no" >&6; }
3001 fi
3002
3003
3004 test -n "$CC" && break
3005 done
3006 fi
3007 if test -z "$CC"; then
3008 ac_ct_CC=$CC
3009 for ac_prog in cl.exe
3010 do
3011 # Extract the first word of "$ac_prog", so it can be a program name with args.
3012 set dummy $ac_prog; ac_word=$2
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 printf %s "checking for $ac_word... " >&6; }
3015 if test ${ac_cv_prog_ac_ct_CC+y}
3016 then :
3017 printf %s "(cached) " >&6
3018 else case e in #(
3019 e) if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025 IFS=$as_save_IFS
3026 case $as_dir in #(((
3027 '') as_dir=./ ;;
3028 */) ;;
3029 *) as_dir=$as_dir/ ;;
3030 esac
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_CC="$ac_prog"
3034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi ;;
3042 esac
3043 fi
3044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045 if test -n "$ac_ct_CC"; then
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047 printf "%s\n" "$ac_ct_CC" >&6; }
3048 else
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 printf "%s\n" "no" >&6; }
3051 fi
3052
3053
3054 test -n "$ac_ct_CC" && break
3055 done
3056
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 CC=$ac_ct_CC
3067 fi
3068 fi
3069
3070 fi
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3074 set dummy ${ac_tool_prefix}clang; ac_word=$2
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 printf %s "checking for $ac_word... " >&6; }
3077 if test ${ac_cv_prog_CC+y}
3078 then :
3079 printf %s "(cached) " >&6
3080 else case e in #(
3081 e) if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 case $as_dir in #(((
3089 '') as_dir=./ ;;
3090 */) ;;
3091 *) as_dir=$as_dir/ ;;
3092 esac
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_CC="${ac_tool_prefix}clang"
3096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi ;;
3104 esac
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 printf "%s\n" "$CC" >&6; }
3110 else
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 printf "%s\n" "no" >&6; }
3113 fi
3114
3115
3116 fi
3117 if test -z "$ac_cv_prog_CC"; then
3118 ac_ct_CC=$CC
3119 # Extract the first word of "clang", so it can be a program name with args.
3120 set dummy clang; ac_word=$2
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 printf %s "checking for $ac_word... " >&6; }
3123 if test ${ac_cv_prog_ac_ct_CC+y}
3124 then :
3125 printf %s "(cached) " >&6
3126 else case e in #(
3127 e) if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 case $as_dir in #(((
3135 '') as_dir=./ ;;
3136 */) ;;
3137 *) as_dir=$as_dir/ ;;
3138 esac
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_ac_ct_CC="clang"
3142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145 done
3146 done
3147 IFS=$as_save_IFS
3148
3149 fi ;;
3150 esac
3151 fi
3152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153 if test -n "$ac_ct_CC"; then
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155 printf "%s\n" "$ac_ct_CC" >&6; }
3156 else
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 printf "%s\n" "no" >&6; }
3159 fi
3160
3161 if test "x$ac_ct_CC" = x; then
3162 CC=""
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170 CC=$ac_ct_CC
3171 fi
3172 else
3173 CC="$ac_cv_prog_CC"
3174 fi
3175
3176 fi
3177
3178
3179 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3180 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3181 as_fn_error $? "no acceptable C compiler found in \$PATH
3182 See 'config.log' for more details" "$LINENO" 5; }
3183
3184 # Provide some information about the compiler.
3185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3186 set X $ac_compile
3187 ac_compiler=$2
3188 for ac_option in --version -v -V -qversion -version; do
3189 { { ac_try="$ac_compiler $ac_option >&5"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 printf "%s\n" "$ac_try_echo"; } >&5
3196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3197 ac_status=$?
3198 if test -s conftest.err; then
3199 sed '10a\
3200 ... rest of stderr output deleted ...
3201 10q' conftest.err >conftest.er1
3202 cat conftest.er1 >&5
3203 fi
3204 rm -f conftest.er1 conftest.err
3205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207 done
3208
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3211
3212 int
3213 main (void)
3214 {
3215
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 ac_clean_files_save=$ac_clean_files
3221 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3222 # Try to create an executable without -o first, disregard a.out.
3223 # It will help us diagnose broken compilers, and finding out an intuition
3224 # of exeext.
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3226 printf %s "checking whether the C compiler works... " >&6; }
3227 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228
3229 # The possible output files:
3230 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3231
3232 ac_rmfiles=
3233 for ac_file in $ac_files
3234 do
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3238 esac
3239 done
3240 rm -f $ac_rmfiles
3241
3242 if { { ac_try="$ac_link_default"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 printf "%s\n" "$ac_try_echo"; } >&5
3249 (eval "$ac_link_default") 2>&5
3250 ac_status=$?
3251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }
3253 then :
3254 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3255 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3256 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3257 # so that the user can short-circuit this test for compilers unknown to
3258 # Autoconf.
3259 for ac_file in $ac_files ''
3260 do
3261 test -f "$ac_file" || continue
3262 case $ac_file in
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3264 ;;
3265 [ab].out )
3266 # We found the default executable, but exeext='' is most
3267 # certainly right.
3268 break;;
3269 *.* )
3270 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3271 then :; else
3272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273 fi
3274 # We set ac_cv_exeext here because the later test for it is not
3275 # safe: cross compilers may not add the suffix if given an '-o'
3276 # argument, so we may need to know it at that point already.
3277 # Even if this section looks crufty: it has the advantage of
3278 # actually working.
3279 break;;
3280 * )
3281 break;;
3282 esac
3283 done
3284 test "$ac_cv_exeext" = no && ac_cv_exeext=
3285
3286 else case e in #(
3287 e) ac_file='' ;;
3288 esac
3289 fi
3290 if test -z "$ac_file"
3291 then :
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 printf "%s\n" "no" >&6; }
3294 printf "%s\n" "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3298 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3299 as_fn_error 77 "C compiler cannot create executables
3300 See 'config.log' for more details" "$LINENO" 5; }
3301 else case e in #(
3302 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 printf "%s\n" "yes" >&6; } ;;
3304 esac
3305 fi
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307 printf %s "checking for C compiler default output file name... " >&6; }
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309 printf "%s\n" "$ac_file" >&6; }
3310 ac_exeext=$ac_cv_exeext
3311
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313 ac_clean_files=$ac_clean_files_save
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315 printf %s "checking for suffix of executables... " >&6; }
3316 if { { ac_try="$ac_link"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 printf "%s\n" "$ac_try_echo"; } >&5
3323 (eval "$ac_link") 2>&5
3324 ac_status=$?
3325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }
3327 then :
3328 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3329 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3330 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3331 # 'rm'.
3332 for ac_file in conftest.exe conftest conftest.*; do
3333 test -f "$ac_file" || continue
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337 break;;
3338 * ) break;;
3339 esac
3340 done
3341 else case e in #(
3342 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3343 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3345 See 'config.log' for more details" "$LINENO" 5; } ;;
3346 esac
3347 fi
3348 rm -f conftest conftest$ac_cv_exeext
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3350 printf "%s\n" "$ac_cv_exeext" >&6; }
3351
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3354 ac_exeext=$EXEEXT
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357 #include <stdio.h>
3358 int
3359 main (void)
3360 {
3361 FILE *f = fopen ("conftest.out", "w");
3362 if (!f)
3363 return 1;
3364 return ferror (f) || fclose (f) != 0;
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 ac_clean_files="$ac_clean_files conftest.out"
3371 # Check that the compiler produces executables we can run. If not, either
3372 # the compiler is broken, or we cross compile.
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3374 printf %s "checking whether we are cross compiling... " >&6; }
3375 if test "$cross_compiling" != yes; then
3376 { { ac_try="$ac_link"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 printf "%s\n" "$ac_try_echo"; } >&5
3383 (eval "$ac_link") 2>&5
3384 ac_status=$?
3385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }
3387 if { ac_try='./conftest$ac_cv_exeext'
3388 { { case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 printf "%s\n" "$ac_try_echo"; } >&5
3394 (eval "$ac_try") 2>&5
3395 ac_status=$?
3396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; }; then
3398 cross_compiling=no
3399 else
3400 if test "$cross_compiling" = maybe; then
3401 cross_compiling=yes
3402 else
3403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3404 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3405 as_fn_error 77 "cannot run C compiled programs.
3406 If you meant to cross compile, use '--host'.
3407 See 'config.log' for more details" "$LINENO" 5; }
3408 fi
3409 fi
3410 fi
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3412 printf "%s\n" "$cross_compiling" >&6; }
3413
3414 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3415 conftest.o conftest.obj conftest.out
3416 ac_clean_files=$ac_clean_files_save
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3418 printf %s "checking for suffix of object files... " >&6; }
3419 if test ${ac_cv_objext+y}
3420 then :
3421 printf %s "(cached) " >&6
3422 else case e in #(
3423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3425
3426 int
3427 main (void)
3428 {
3429
3430 ;
3431 return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.o conftest.obj
3435 if { { ac_try="$ac_compile"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 printf "%s\n" "$ac_try_echo"; } >&5
3442 (eval "$ac_compile") 2>&5
3443 ac_status=$?
3444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }
3446 then :
3447 for ac_file in conftest.o conftest.obj conftest.*; do
3448 test -f "$ac_file" || continue;
3449 case $ac_file in
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3452 break;;
3453 esac
3454 done
3455 else case e in #(
3456 e) printf "%s\n" "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3460 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3461 as_fn_error $? "cannot compute suffix of object files: cannot compile
3462 See 'config.log' for more details" "$LINENO" 5; } ;;
3463 esac
3464 fi
3465 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3466 esac
3467 fi
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469 printf "%s\n" "$ac_cv_objext" >&6; }
3470 OBJEXT=$ac_cv_objext
3471 ac_objext=$OBJEXT
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3473 printf %s "checking whether the compiler supports GNU C... " >&6; }
3474 if test ${ac_cv_c_compiler_gnu+y}
3475 then :
3476 printf %s "(cached) " >&6
3477 else case e in #(
3478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480
3481 int
3482 main (void)
3483 {
3484 #ifndef __GNUC__
3485 choke me
3486 #endif
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"
3493 then :
3494 ac_compiler_gnu=yes
3495 else case e in #(
3496 e) ac_compiler_gnu=no ;;
3497 esac
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501 ;;
3502 esac
3503 fi
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3505 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
3508 if test $ac_compiler_gnu = yes; then
3509 GCC=yes
3510 else
3511 GCC=
3512 fi
3513 ac_test_CFLAGS=${CFLAGS+y}
3514 ac_save_CFLAGS=$CFLAGS
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3516 printf %s "checking whether $CC accepts -g... " >&6; }
3517 if test ${ac_cv_prog_cc_g+y}
3518 then :
3519 printf %s "(cached) " >&6
3520 else case e in #(
3521 e) ac_save_c_werror_flag=$ac_c_werror_flag
3522 ac_c_werror_flag=yes
3523 ac_cv_prog_cc_g=no
3524 CFLAGS="-g"
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527
3528 int
3529 main (void)
3530 {
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"
3537 then :
3538 ac_cv_prog_cc_g=yes
3539 else case e in #(
3540 e) CFLAGS=""
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main (void)
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"
3553 then :
3554
3555 else case e in #(
3556 e) ac_c_werror_flag=$ac_save_c_werror_flag
3557 CFLAGS="-g"
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560
3561 int
3562 main (void)
3563 {
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"
3570 then :
3571 ac_cv_prog_cc_g=yes
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3574 esac
3575 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3577 esac
3578 fi
3579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3580 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3581 esac
3582 fi
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3584 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3585 if test $ac_test_CFLAGS; then
3586 CFLAGS=$ac_save_CFLAGS
3587 elif test $ac_cv_prog_cc_g = yes; then
3588 if test "$GCC" = yes; then
3589 CFLAGS="-g -O2"
3590 else
3591 CFLAGS="-g"
3592 fi
3593 else
3594 if test "$GCC" = yes; then
3595 CFLAGS="-O2"
3596 else
3597 CFLAGS=
3598 fi
3599 fi
3600 ac_prog_cc_stdc=no
3601 if test x$ac_prog_cc_stdc = xno
3602 then :
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3604 printf %s "checking for $CC option to enable C11 features... " >&6; }
3605 if test ${ac_cv_prog_cc_c11+y}
3606 then :
3607 printf %s "(cached) " >&6
3608 else case e in #(
3609 e) ac_cv_prog_cc_c11=no
3610 ac_save_CC=$CC
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613 $ac_c_conftest_c11_program
3614 _ACEOF
3615 for ac_arg in '' -std=gnu11
3616 do
3617 CC="$ac_save_CC $ac_arg"
3618 if ac_fn_c_try_compile "$LINENO"
3619 then :
3620 ac_cv_prog_cc_c11=$ac_arg
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.beam
3623 test "x$ac_cv_prog_cc_c11" != "xno" && break
3624 done
3625 rm -f conftest.$ac_ext
3626 CC=$ac_save_CC ;;
3627 esac
3628 fi
3629
3630 if test "x$ac_cv_prog_cc_c11" = xno
3631 then :
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3633 printf "%s\n" "unsupported" >&6; }
3634 else case e in #(
3635 e) if test "x$ac_cv_prog_cc_c11" = x
3636 then :
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3638 printf "%s\n" "none needed" >&6; }
3639 else case e in #(
3640 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3641 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3642 CC="$CC $ac_cv_prog_cc_c11" ;;
3643 esac
3644 fi
3645 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3646 ac_prog_cc_stdc=c11 ;;
3647 esac
3648 fi
3649 fi
3650 if test x$ac_prog_cc_stdc = xno
3651 then :
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3653 printf %s "checking for $CC option to enable C99 features... " >&6; }
3654 if test ${ac_cv_prog_cc_c99+y}
3655 then :
3656 printf %s "(cached) " >&6
3657 else case e in #(
3658 e) ac_cv_prog_cc_c99=no
3659 ac_save_CC=$CC
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662 $ac_c_conftest_c99_program
3663 _ACEOF
3664 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3665 do
3666 CC="$ac_save_CC $ac_arg"
3667 if ac_fn_c_try_compile "$LINENO"
3668 then :
3669 ac_cv_prog_cc_c99=$ac_arg
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.beam
3672 test "x$ac_cv_prog_cc_c99" != "xno" && break
3673 done
3674 rm -f conftest.$ac_ext
3675 CC=$ac_save_CC ;;
3676 esac
3677 fi
3678
3679 if test "x$ac_cv_prog_cc_c99" = xno
3680 then :
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3682 printf "%s\n" "unsupported" >&6; }
3683 else case e in #(
3684 e) if test "x$ac_cv_prog_cc_c99" = x
3685 then :
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687 printf "%s\n" "none needed" >&6; }
3688 else case e in #(
3689 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3690 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3691 CC="$CC $ac_cv_prog_cc_c99" ;;
3692 esac
3693 fi
3694 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3695 ac_prog_cc_stdc=c99 ;;
3696 esac
3697 fi
3698 fi
3699 if test x$ac_prog_cc_stdc = xno
3700 then :
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3702 printf %s "checking for $CC option to enable C89 features... " >&6; }
3703 if test ${ac_cv_prog_cc_c89+y}
3704 then :
3705 printf %s "(cached) " >&6
3706 else case e in #(
3707 e) ac_cv_prog_cc_c89=no
3708 ac_save_CC=$CC
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711 $ac_c_conftest_c89_program
3712 _ACEOF
3713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714 do
3715 CC="$ac_save_CC $ac_arg"
3716 if ac_fn_c_try_compile "$LINENO"
3717 then :
3718 ac_cv_prog_cc_c89=$ac_arg
3719 fi
3720 rm -f core conftest.err conftest.$ac_objext conftest.beam
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 done
3723 rm -f conftest.$ac_ext
3724 CC=$ac_save_CC ;;
3725 esac
3726 fi
3727
3728 if test "x$ac_cv_prog_cc_c89" = xno
3729 then :
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731 printf "%s\n" "unsupported" >&6; }
3732 else case e in #(
3733 e) if test "x$ac_cv_prog_cc_c89" = x
3734 then :
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736 printf "%s\n" "none needed" >&6; }
3737 else case e in #(
3738 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3740 CC="$CC $ac_cv_prog_cc_c89" ;;
3741 esac
3742 fi
3743 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3744 ac_prog_cc_stdc=c89 ;;
3745 esac
3746 fi
3747 fi
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3762 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3763 if test ${am_cv_prog_cc_c_o+y}
3764 then :
3765 printf %s "(cached) " >&6
3766 else case e in #(
3767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769
3770 int
3771 main (void)
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 # Make sure it works both with $CC and with simple cc.
3779 # Following AC_PROG_CC_C_O, we do the test twice because some
3780 # compilers refuse to overwrite an existing .o file with -o,
3781 # though they will create one.
3782 am_cv_prog_cc_c_o=yes
3783 for am_i in 1 2; do
3784 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3785 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } \
3789 && test -f conftest2.$ac_objext; then
3790 : OK
3791 else
3792 am_cv_prog_cc_c_o=no
3793 break
3794 fi
3795 done
3796 rm -f core conftest*
3797 unset am_i ;;
3798 esac
3799 fi
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3801 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3802 if test "$am_cv_prog_cc_c_o" != yes; then
3803 # Losing compiler, so override with the script.
3804 # FIXME: It is wrong to rewrite CC.
3805 # But if we don't then we get into trouble of one sort or another.
3806 # A longer-term fix would be to have automake use am__CC in this case,
3807 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3808 CC="$am_aux_dir/compile $CC"
3809 fi
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815
3816
3817
3818 ac_header= ac_cache=
3819 for ac_item in $ac_header_c_list
3820 do
3821 if test $ac_cache; then
3822 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3823 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3824 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3825 fi
3826 ac_header= ac_cache=
3827 elif test $ac_header; then
3828 ac_cache=$ac_item
3829 else
3830 ac_header=$ac_item
3831 fi
3832 done
3833
3834
3835
3836
3837
3838
3839
3840
3841 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3842 then :
3843
3844 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3845
3846 fi
3847
3848
3849
3850
3851
3852
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3854 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3855 if test ${ac_cv_safe_to_define___extensions__+y}
3856 then :
3857 printf %s "(cached) " >&6
3858 else case e in #(
3859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861
3862 # define __EXTENSIONS__ 1
3863 $ac_includes_default
3864 int
3865 main (void)
3866 {
3867
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 if ac_fn_c_try_compile "$LINENO"
3873 then :
3874 ac_cv_safe_to_define___extensions__=yes
3875 else case e in #(
3876 e) ac_cv_safe_to_define___extensions__=no ;;
3877 esac
3878 fi
3879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3880 esac
3881 fi
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3883 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3884
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3886 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3887 if test ${ac_cv_should_define__xopen_source+y}
3888 then :
3889 printf %s "(cached) " >&6
3890 else case e in #(
3891 e) ac_cv_should_define__xopen_source=no
3892 if test $ac_cv_header_wchar_h = yes
3893 then :
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896
3897 #include <wchar.h>
3898 mbstate_t x;
3899 int
3900 main (void)
3901 {
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 if ac_fn_c_try_compile "$LINENO"
3908 then :
3909
3910 else case e in #(
3911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913
3914 #define _XOPEN_SOURCE 500
3915 #include <wchar.h>
3916 mbstate_t x;
3917 int
3918 main (void)
3919 {
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"
3926 then :
3927 ac_cv_should_define__xopen_source=yes
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3930 esac
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3933 fi ;;
3934 esac
3935 fi
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3937 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3938
3939 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3940
3941 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3942
3943 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3944
3945 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3946
3947 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3948
3949 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3950
3951 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3952
3953 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3954
3955 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3956
3957 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3958
3959 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3960
3961 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3962
3963 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3964
3965 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3966
3967 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3968
3969 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3970
3971 if test $ac_cv_header_minix_config_h = yes
3972 then :
3973 MINIX=yes
3974 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3975
3976 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3977
3978 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3979
3980 else case e in #(
3981 e) MINIX= ;;
3982 esac
3983 fi
3984 if test $ac_cv_safe_to_define___extensions__ = yes
3985 then :
3986 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3987
3988 fi
3989 if test $ac_cv_should_define__xopen_source = yes
3990 then :
3991 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3992
3993 fi
3994
3995
3996 # Initialize Automake
3997 am__api_version='1.16'
3998
3999
4000 # Find a good install program. We prefer a C program (faster),
4001 # so one script is as good as another. But avoid the broken or
4002 # incompatible versions:
4003 # SysV /etc/install, /usr/sbin/install
4004 # SunOS /usr/etc/install
4005 # IRIX /sbin/install
4006 # AIX /bin/install
4007 # AmigaOS /C/install, which installs bootblocks on floppy discs
4008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4011 # OS/2's system install, which has a completely different semantic
4012 # ./install, which can be erroneously created by make from ./install.sh.
4013 # Reject install programs that cannot install multiple files.
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4015 printf %s "checking for a BSD-compatible install... " >&6; }
4016 if test -z "$INSTALL"; then
4017 if test ${ac_cv_path_install+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else case e in #(
4021 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024 IFS=$as_save_IFS
4025 case $as_dir in #(((
4026 '') as_dir=./ ;;
4027 */) ;;
4028 *) as_dir=$as_dir/ ;;
4029 esac
4030 # Account for fact that we put trailing slashes in our PATH walk.
4031 case $as_dir in #((
4032 ./ | /[cC]/* | \
4033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4034 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4035 /usr/ucb/* ) ;;
4036 *)
4037 # OSF1 and SCO ODT 3.0 have their own names for install.
4038 # Don't use installbsd from OSF since it installs stuff as root
4039 # by default.
4040 for ac_prog in ginstall scoinst install; do
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4043 if test $ac_prog = install &&
4044 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4045 # AIX install. It has an incompatible calling convention.
4046 :
4047 elif test $ac_prog = install &&
4048 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4049 # program-specific install script used by HP pwplus--don't use.
4050 :
4051 else
4052 rm -rf conftest.one conftest.two conftest.dir
4053 echo one > conftest.one
4054 echo two > conftest.two
4055 mkdir conftest.dir
4056 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4057 test -s conftest.one && test -s conftest.two &&
4058 test -s conftest.dir/conftest.one &&
4059 test -s conftest.dir/conftest.two
4060 then
4061 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4062 break 3
4063 fi
4064 fi
4065 fi
4066 done
4067 done
4068 ;;
4069 esac
4070
4071 done
4072 IFS=$as_save_IFS
4073
4074 rm -rf conftest.one conftest.two conftest.dir
4075 ;;
4076 esac
4077 fi
4078 if test ${ac_cv_path_install+y}; then
4079 INSTALL=$ac_cv_path_install
4080 else
4081 # As a last resort, use the slow shell script. Don't cache a
4082 # value for INSTALL within a source directory, because that will
4083 # break other packages using the cache if that directory is
4084 # removed, or if the value is a relative name.
4085 INSTALL=$ac_install_sh
4086 fi
4087 fi
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4089 printf "%s\n" "$INSTALL" >&6; }
4090
4091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4092 # It thinks the first close brace ends the variable substitution.
4093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4094
4095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4096
4097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4098
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4100 printf %s "checking whether build environment is sane... " >&6; }
4101 # Reject unsafe characters in $srcdir or the absolute working directory
4102 # name. Accept space and tab only in the latter.
4103 am_lf='
4104 '
4105 case `pwd` in
4106 *[\\\"\#\$\&\'\`$am_lf]*)
4107 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4108 esac
4109 case $srcdir in
4110 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4111 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4112 esac
4113
4114 # Do 'set' in a subshell so we don't clobber the current shell's
4115 # arguments. Must try -L first in case configure is actually a
4116 # symlink; some systems play weird games with the mod time of symlinks
4117 # (eg FreeBSD returns the mod time of the symlink's containing
4118 # directory).
4119 if (
4120 am_has_slept=no
4121 for am_try in 1 2; do
4122 echo "timestamp, slept: $am_has_slept" > conftest.file
4123 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4124 if test "$*" = "X"; then
4125 # -L didn't work.
4126 set X `ls -t "$srcdir/configure" conftest.file`
4127 fi
4128 if test "$*" != "X $srcdir/configure conftest.file" \
4129 && test "$*" != "X conftest.file $srcdir/configure"; then
4130
4131 # If neither matched, then we have a broken ls. This can happen
4132 # if, for instance, CONFIG_SHELL is bash and it inherits a
4133 # broken ls alias from the environment. This has actually
4134 # happened. Such a system could not be considered "sane".
4135 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4136 alias in your environment" "$LINENO" 5
4137 fi
4138 if test "$2" = conftest.file || test $am_try -eq 2; then
4139 break
4140 fi
4141 # Just in case.
4142 sleep 1
4143 am_has_slept=yes
4144 done
4145 test "$2" = conftest.file
4146 )
4147 then
4148 # Ok.
4149 :
4150 else
4151 as_fn_error $? "newly created file is older than distributed files!
4152 Check your system clock" "$LINENO" 5
4153 fi
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4155 printf "%s\n" "yes" >&6; }
4156 # If we didn't sleep, we still need to ensure time stamps of config.status and
4157 # generated files are strictly newer.
4158 am_sleep_pid=
4159 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4160 ( sleep 1 ) &
4161 am_sleep_pid=$!
4162 fi
4163
4164 rm -f conftest.file
4165
4166 test "$program_prefix" != NONE &&
4167 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4168 # Use a double $ so make ignores it.
4169 test "$program_suffix" != NONE &&
4170 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4171 # Double any \ or $.
4172 # By default was 's,x,x', remove it if useless.
4173 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4174 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4175
4176
4177 if test x"${MISSING+set}" != xset; then
4178 MISSING="\${SHELL} '$am_aux_dir/missing'"
4179 fi
4180 # Use eval to expand $SHELL
4181 if eval "$MISSING --is-lightweight"; then
4182 am_missing_run="$MISSING "
4183 else
4184 am_missing_run=
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4186 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4187 fi
4188
4189 if test x"${install_sh+set}" != xset; then
4190 case $am_aux_dir in
4191 *\ * | *\ *)
4192 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4193 *)
4194 install_sh="\${SHELL} $am_aux_dir/install-sh"
4195 esac
4196 fi
4197
4198 # Installed binaries are usually stripped using 'strip' when the user
4199 # run "make install-strip". However 'strip' might not be the right
4200 # tool to use in cross-compilation environments, therefore Automake
4201 # will honor the 'STRIP' environment variable to overrule this program.
4202 if test "$cross_compiling" != no; then
4203 if test -n "$ac_tool_prefix"; then
4204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}strip; ac_word=$2
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 printf %s "checking for $ac_word... " >&6; }
4208 if test ${ac_cv_prog_STRIP+y}
4209 then :
4210 printf %s "(cached) " >&6
4211 else case e in #(
4212 e) if test -n "$STRIP"; then
4213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 case $as_dir in #(((
4220 '') as_dir=./ ;;
4221 */) ;;
4222 *) as_dir=$as_dir/ ;;
4223 esac
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230 done
4231 done
4232 IFS=$as_save_IFS
4233
4234 fi ;;
4235 esac
4236 fi
4237 STRIP=$ac_cv_prog_STRIP
4238 if test -n "$STRIP"; then
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4240 printf "%s\n" "$STRIP" >&6; }
4241 else
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 printf "%s\n" "no" >&6; }
4244 fi
4245
4246
4247 fi
4248 if test -z "$ac_cv_prog_STRIP"; then
4249 ac_ct_STRIP=$STRIP
4250 # Extract the first word of "strip", so it can be a program name with args.
4251 set dummy strip; ac_word=$2
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 printf %s "checking for $ac_word... " >&6; }
4254 if test ${ac_cv_prog_ac_ct_STRIP+y}
4255 then :
4256 printf %s "(cached) " >&6
4257 else case e in #(
4258 e) if test -n "$ac_ct_STRIP"; then
4259 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264 IFS=$as_save_IFS
4265 case $as_dir in #(((
4266 '') as_dir=./ ;;
4267 */) ;;
4268 *) as_dir=$as_dir/ ;;
4269 esac
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_ac_ct_STRIP="strip"
4273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 fi ;;
4281 esac
4282 fi
4283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4284 if test -n "$ac_ct_STRIP"; then
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4286 printf "%s\n" "$ac_ct_STRIP" >&6; }
4287 else
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 printf "%s\n" "no" >&6; }
4290 fi
4291
4292 if test "x$ac_ct_STRIP" = x; then
4293 STRIP=":"
4294 else
4295 case $cross_compiling:$ac_tool_warned in
4296 yes:)
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299 ac_tool_warned=yes ;;
4300 esac
4301 STRIP=$ac_ct_STRIP
4302 fi
4303 else
4304 STRIP="$ac_cv_prog_STRIP"
4305 fi
4306
4307 fi
4308 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4309
4310
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4312 printf %s "checking for a race-free mkdir -p... " >&6; }
4313 if test -z "$MKDIR_P"; then
4314 if test ${ac_cv_path_mkdir+y}
4315 then :
4316 printf %s "(cached) " >&6
4317 else case e in #(
4318 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4320 do
4321 IFS=$as_save_IFS
4322 case $as_dir in #(((
4323 '') as_dir=./ ;;
4324 */) ;;
4325 *) as_dir=$as_dir/ ;;
4326 esac
4327 for ac_prog in mkdir gmkdir; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4330 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4331 'mkdir ('*'coreutils) '* | \
4332 *'BusyBox '* | \
4333 'mkdir (fileutils) '4.1*)
4334 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4335 break 3;;
4336 esac
4337 done
4338 done
4339 done
4340 IFS=$as_save_IFS
4341 ;;
4342 esac
4343 fi
4344
4345 test -d ./--version && rmdir ./--version
4346 if test ${ac_cv_path_mkdir+y}; then
4347 MKDIR_P="$ac_cv_path_mkdir -p"
4348 else
4349 # As a last resort, use plain mkdir -p,
4350 # in the hope it doesn't have the bugs of ancient mkdir.
4351 MKDIR_P='mkdir -p'
4352 fi
4353 fi
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4355 printf "%s\n" "$MKDIR_P" >&6; }
4356
4357 for ac_prog in gawk mawk nawk awk
4358 do
4359 # Extract the first word of "$ac_prog", so it can be a program name with args.
4360 set dummy $ac_prog; ac_word=$2
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 printf %s "checking for $ac_word... " >&6; }
4363 if test ${ac_cv_prog_AWK+y}
4364 then :
4365 printf %s "(cached) " >&6
4366 else case e in #(
4367 e) if test -n "$AWK"; then
4368 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373 IFS=$as_save_IFS
4374 case $as_dir in #(((
4375 '') as_dir=./ ;;
4376 */) ;;
4377 *) as_dir=$as_dir/ ;;
4378 esac
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_AWK="$ac_prog"
4382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389 fi ;;
4390 esac
4391 fi
4392 AWK=$ac_cv_prog_AWK
4393 if test -n "$AWK"; then
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4395 printf "%s\n" "$AWK" >&6; }
4396 else
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 printf "%s\n" "no" >&6; }
4399 fi
4400
4401
4402 test -n "$AWK" && break
4403 done
4404
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4406 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4407 set x ${MAKE-make}
4408 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4409 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4410 then :
4411 printf %s "(cached) " >&6
4412 else case e in #(
4413 e) cat >conftest.make <<\_ACEOF
4414 SHELL = /bin/sh
4415 all:
4416 @echo '@@@%%%=$(MAKE)=@@@%%%'
4417 _ACEOF
4418 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4419 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4420 *@@@%%%=?*=@@@%%%*)
4421 eval ac_cv_prog_make_${ac_make}_set=yes;;
4422 *)
4423 eval ac_cv_prog_make_${ac_make}_set=no;;
4424 esac
4425 rm -f conftest.make ;;
4426 esac
4427 fi
4428 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430 printf "%s\n" "yes" >&6; }
4431 SET_MAKE=
4432 else
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 printf "%s\n" "no" >&6; }
4435 SET_MAKE="MAKE=${MAKE-make}"
4436 fi
4437
4438 rm -rf .tst 2>/dev/null
4439 mkdir .tst 2>/dev/null
4440 if test -d .tst; then
4441 am__leading_dot=.
4442 else
4443 am__leading_dot=_
4444 fi
4445 rmdir .tst 2>/dev/null
4446
4447 DEPDIR="${am__leading_dot}deps"
4448
4449 ac_config_commands="$ac_config_commands depfiles"
4450
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4452 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4453 cat > confinc.mk << 'END'
4454 am__doit:
4455 @echo this is the am__doit target >confinc.out
4456 .PHONY: am__doit
4457 END
4458 am__include="#"
4459 am__quote=
4460 # BSD make does it like this.
4461 echo '.include "confinc.mk" # ignored' > confmf.BSD
4462 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4463 echo 'include confinc.mk # ignored' > confmf.GNU
4464 _am_result=no
4465 for s in GNU BSD; do
4466 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4467 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }
4471 case $?:`cat confinc.out 2>/dev/null` in #(
4472 '0:this is the am__doit target') :
4473 case $s in #(
4474 BSD) :
4475 am__include='.include' am__quote='"' ;; #(
4476 *) :
4477 am__include='include' am__quote='' ;;
4478 esac ;; #(
4479 *) :
4480 ;;
4481 esac
4482 if test "$am__include" != "#"; then
4483 _am_result="yes ($s style)"
4484 break
4485 fi
4486 done
4487 rm -f confinc.* confmf.*
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4489 printf "%s\n" "${_am_result}" >&6; }
4490
4491 # Check whether --enable-dependency-tracking was given.
4492 if test ${enable_dependency_tracking+y}
4493 then :
4494 enableval=$enable_dependency_tracking;
4495 fi
4496
4497 if test "x$enable_dependency_tracking" != xno; then
4498 am_depcomp="$ac_aux_dir/depcomp"
4499 AMDEPBACKSLASH='\'
4500 am__nodep='_no'
4501 fi
4502 if test "x$enable_dependency_tracking" != xno; then
4503 AMDEP_TRUE=
4504 AMDEP_FALSE='#'
4505 else
4506 AMDEP_TRUE='#'
4507 AMDEP_FALSE=
4508 fi
4509
4510
4511 # Check whether --enable-silent-rules was given.
4512 if test ${enable_silent_rules+y}
4513 then :
4514 enableval=$enable_silent_rules;
4515 fi
4516
4517 case $enable_silent_rules in # (((
4518 yes) AM_DEFAULT_VERBOSITY=0;;
4519 no) AM_DEFAULT_VERBOSITY=1;;
4520 *) AM_DEFAULT_VERBOSITY=1;;
4521 esac
4522 am_make=${MAKE-make}
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4524 printf %s "checking whether $am_make supports nested variables... " >&6; }
4525 if test ${am_cv_make_support_nested_variables+y}
4526 then :
4527 printf %s "(cached) " >&6
4528 else case e in #(
4529 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4530 BAR0=false
4531 BAR1=true
4532 V=1
4533 am__doit:
4534 @$(TRUE)
4535 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4536 am_cv_make_support_nested_variables=yes
4537 else
4538 am_cv_make_support_nested_variables=no
4539 fi ;;
4540 esac
4541 fi
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4543 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4544 if test $am_cv_make_support_nested_variables = yes; then
4545 AM_V='$(V)'
4546 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4547 else
4548 AM_V=$AM_DEFAULT_VERBOSITY
4549 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4550 fi
4551 AM_BACKSLASH='\'
4552
4553 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4554 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4555 # is not polluted with repeated "-I."
4556 am__isrc=' -I$(srcdir)'
4557 # test to see if srcdir already configured
4558 if test -f $srcdir/config.status; then
4559 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4560 fi
4561 fi
4562
4563 # test whether we have cygpath
4564 if test -z "$CYGPATH_W"; then
4565 if (cygpath --version) >/dev/null 2>/dev/null; then
4566 CYGPATH_W='cygpath -w'
4567 else
4568 CYGPATH_W=echo
4569 fi
4570 fi
4571
4572
4573 # Define the identity of the package.
4574 PACKAGE='xauth'
4575 VERSION='1.1.3'
4576
4577
4578 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4579
4580
4581 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4582
4583 # Some tools Automake needs.
4584
4585 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4586
4587
4588 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4589
4590
4591 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4592
4593
4594 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4595
4596
4597 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4598
4599 # For better backward compatibility. To be removed once Automake 1.9.x
4600 # dies out for good. For more background, see:
4601 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4602 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4603 mkdir_p='$(MKDIR_P)'
4604
4605 # We need awk for the "check" target (and possibly the TAP driver). The
4606 # system "awk" is bad on some platforms.
4607 # Always define AMTAR for backward compatibility. Yes, it's still used
4608 # in the wild :-( We should find a proper way to deprecate it ...
4609 AMTAR='$${TAR-tar}'
4610
4611
4612 # We'll loop over all known methods to create a tar archive until one works.
4613 _am_tools='gnutar pax cpio none'
4614
4615 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4616
4617
4618
4619
4620
4621 depcc="$CC" am_compiler_list=
4622
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4624 printf %s "checking dependency style of $depcc... " >&6; }
4625 if test ${am_cv_CC_dependencies_compiler_type+y}
4626 then :
4627 printf %s "(cached) " >&6
4628 else case e in #(
4629 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4630 # We make a subdir and do the tests there. Otherwise we can end up
4631 # making bogus files that we don't know about and never remove. For
4632 # instance it was reported that on HP-UX the gcc test will end up
4633 # making a dummy file named 'D' -- because '-MD' means "put the output
4634 # in D".
4635 rm -rf conftest.dir
4636 mkdir conftest.dir
4637 # Copy depcomp to subdir because otherwise we won't find it if we're
4638 # using a relative directory.
4639 cp "$am_depcomp" conftest.dir
4640 cd conftest.dir
4641 # We will build objects and dependencies in a subdirectory because
4642 # it helps to detect inapplicable dependency modes. For instance
4643 # both Tru64's cc and ICC support -MD to output dependencies as a
4644 # side effect of compilation, but ICC will put the dependencies in
4645 # the current directory while Tru64 will put them in the object
4646 # directory.
4647 mkdir sub
4648
4649 am_cv_CC_dependencies_compiler_type=none
4650 if test "$am_compiler_list" = ""; then
4651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4652 fi
4653 am__universal=false
4654 case " $depcc " in #(
4655 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4656 esac
4657
4658 for depmode in $am_compiler_list; do
4659 # Setup a source with many dependencies, because some compilers
4660 # like to wrap large dependency lists on column 80 (with \), and
4661 # we should not choose a depcomp mode which is confused by this.
4662 #
4663 # We need to recreate these files for each test, as the compiler may
4664 # overwrite some of them when testing with obscure command lines.
4665 # This happens at least with the AIX C compiler.
4666 : > sub/conftest.c
4667 for i in 1 2 3 4 5 6; do
4668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4670 # Solaris 10 /bin/sh.
4671 echo '/* dummy */' > sub/conftst$i.h
4672 done
4673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4674
4675 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4676 # mode. It turns out that the SunPro C++ compiler does not properly
4677 # handle '-M -o', and we need to detect this. Also, some Intel
4678 # versions had trouble with output in subdirs.
4679 am__obj=sub/conftest.${OBJEXT-o}
4680 am__minus_obj="-o $am__obj"
4681 case $depmode in
4682 gcc)
4683 # This depmode causes a compiler race in universal mode.
4684 test "$am__universal" = false || continue
4685 ;;
4686 nosideeffect)
4687 # After this tag, mechanisms are not by side-effect, so they'll
4688 # only be used when explicitly requested.
4689 if test "x$enable_dependency_tracking" = xyes; then
4690 continue
4691 else
4692 break
4693 fi
4694 ;;
4695 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4696 # This compiler won't grok '-c -o', but also, the minuso test has
4697 # not run yet. These depmodes are late enough in the game, and
4698 # so weak that their functioning should not be impacted.
4699 am__obj=conftest.${OBJEXT-o}
4700 am__minus_obj=
4701 ;;
4702 none) break ;;
4703 esac
4704 if depmode=$depmode \
4705 source=sub/conftest.c object=$am__obj \
4706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4708 >/dev/null 2>conftest.err &&
4709 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4711 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4713 # icc doesn't choke on unknown options, it will just issue warnings
4714 # or remarks (even with -Werror). So we grep stderr for any message
4715 # that says an option was ignored or not supported.
4716 # When given -MP, icc 7.0 and 7.1 complain thusly:
4717 # icc: Command line warning: ignoring option '-M'; no argument required
4718 # The diagnosis changed in icc 8.0:
4719 # icc: Command line remark: option '-MP' not supported
4720 if (grep 'ignoring option' conftest.err ||
4721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4722 am_cv_CC_dependencies_compiler_type=$depmode
4723 break
4724 fi
4725 fi
4726 done
4727
4728 cd ..
4729 rm -rf conftest.dir
4730 else
4731 am_cv_CC_dependencies_compiler_type=none
4732 fi
4733 ;;
4734 esac
4735 fi
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4737 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4738 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4739
4740 if
4741 test "x$enable_dependency_tracking" != xno \
4742 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4743 am__fastdepCC_TRUE=
4744 am__fastdepCC_FALSE='#'
4745 else
4746 am__fastdepCC_TRUE='#'
4747 am__fastdepCC_FALSE=
4748 fi
4749
4750
4751 # Variables for tags utilities; see am/tags.am
4752 if test -z "$CTAGS"; then
4753 CTAGS=ctags
4754 fi
4755
4756 if test -z "$ETAGS"; then
4757 ETAGS=etags
4758 fi
4759
4760 if test -z "$CSCOPE"; then
4761 CSCOPE=cscope
4762 fi
4763
4764
4765
4766 # POSIX will say in a future version that running "rm -f" with no argument
4767 # is OK; and we want to be able to make that assumption in our Makefile
4768 # recipes. So use an aggressive probe to check that the usage we want is
4769 # actually supported "in the wild" to an acceptable degree.
4770 # See automake bug#10828.
4771 # To make any issue more visible, cause the running configure to be aborted
4772 # by default if the 'rm' program in use doesn't match our expectations; the
4773 # user can still override this though.
4774 if rm -f && rm -fr && rm -rf; then : OK; else
4775 cat >&2 <<'END'
4776 Oops!
4777
4778 Your 'rm' program seems unable to run without file operands specified
4779 on the command line, even when the '-f' option is present. This is contrary
4780 to the behaviour of most rm programs out there, and not conforming with
4781 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4782
4783 Please tell bug-automake@gnu.org about your system, including the value
4784 of your $PATH and any error possibly output before this message. This
4785 can help us improve future automake versions.
4786
4787 END
4788 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4789 echo 'Configuration will proceed anyway, since you have set the' >&2
4790 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4791 echo >&2
4792 else
4793 cat >&2 <<'END'
4794 Aborting the configuration process, to ensure you take notice of the issue.
4795
4796 You can download and install GNU coreutils to get an 'rm' implementation
4797 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4798
4799 If you want to complete the configuration process using your problematic
4800 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4801 to "yes", and re-run configure.
4802
4803 END
4804 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4805 fi
4806 fi
4807
4808
4809 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4822 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4823 if test ${ac_cv_c_undeclared_builtin_options+y}
4824 then :
4825 printf %s "(cached) " >&6
4826 else case e in #(
4827 e) ac_save_CFLAGS=$CFLAGS
4828 ac_cv_c_undeclared_builtin_options='cannot detect'
4829 for ac_arg in '' -fno-builtin; do
4830 CFLAGS="$ac_save_CFLAGS $ac_arg"
4831 # This test program should *not* compile successfully.
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834
4835 int
4836 main (void)
4837 {
4838 (void) strchr;
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 if ac_fn_c_try_compile "$LINENO"
4844 then :
4845
4846 else case e in #(
4847 e) # This test program should compile successfully.
4848 # No library function is consistently available on
4849 # freestanding implementations, so test against a dummy
4850 # declaration. Include always-available headers on the
4851 # off chance that they somehow elicit warnings.
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 #include <float.h>
4855 #include <limits.h>
4856 #include <stdarg.h>
4857 #include <stddef.h>
4858 extern void ac_decl (int, char *);
4859
4860 int
4861 main (void)
4862 {
4863 (void) ac_decl (0, (char *) 0);
4864 (void) ac_decl;
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"
4871 then :
4872 if test x"$ac_arg" = x
4873 then :
4874 ac_cv_c_undeclared_builtin_options='none needed'
4875 else case e in #(
4876 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4877 esac
4878 fi
4879 break
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4882 esac
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4885 done
4886 CFLAGS=$ac_save_CFLAGS
4887 ;;
4888 esac
4889 fi
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4891 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4892 case $ac_cv_c_undeclared_builtin_options in #(
4893 'cannot detect') :
4894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4895 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4896 as_fn_error $? "cannot make $CC report undeclared builtins
4897 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4898 'none needed') :
4899 ac_c_undeclared_builtin_options='' ;; #(
4900 *) :
4901 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4902 esac
4903
4904
4905
4906
4907
4908 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4909 if test "x$ac_cv_have_decl___clang__" = xyes
4910 then :
4911 CLANGCC="yes"
4912 else case e in #(
4913 e) CLANGCC="no" ;;
4914 esac
4915 fi
4916 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4917 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4918 then :
4919 INTELCC="yes"
4920 else case e in #(
4921 e) INTELCC="no" ;;
4922 esac
4923 fi
4924 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4925 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4926 then :
4927 SUNCC="yes"
4928 else case e in #(
4929 e) SUNCC="no" ;;
4930 esac
4931 fi
4932
4933
4934
4935
4936
4937
4938
4939
4940 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 printf %s "checking for $ac_word... " >&6; }
4946 if test ${ac_cv_path_PKG_CONFIG+y}
4947 then :
4948 printf %s "(cached) " >&6
4949 else case e in #(
4950 e) case $PKG_CONFIG in
4951 [\\/]* | ?:[\\/]*)
4952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4953 ;;
4954 *)
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 case $as_dir in #(((
4960 '') as_dir=./ ;;
4961 */) ;;
4962 *) as_dir=$as_dir/ ;;
4963 esac
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4966 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4968 break 2
4969 fi
4970 done
4971 done
4972 IFS=$as_save_IFS
4973
4974 ;;
4975 esac ;;
4976 esac
4977 fi
4978 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4979 if test -n "$PKG_CONFIG"; then
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4981 printf "%s\n" "$PKG_CONFIG" >&6; }
4982 else
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 printf "%s\n" "no" >&6; }
4985 fi
4986
4987
4988 fi
4989 if test -z "$ac_cv_path_PKG_CONFIG"; then
4990 ac_pt_PKG_CONFIG=$PKG_CONFIG
4991 # Extract the first word of "pkg-config", so it can be a program name with args.
4992 set dummy pkg-config; ac_word=$2
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 printf %s "checking for $ac_word... " >&6; }
4995 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4996 then :
4997 printf %s "(cached) " >&6
4998 else case e in #(
4999 e) case $ac_pt_PKG_CONFIG in
5000 [\\/]* | ?:[\\/]*)
5001 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5002 ;;
5003 *)
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 case $as_dir in #(((
5009 '') as_dir=./ ;;
5010 */) ;;
5011 *) as_dir=$as_dir/ ;;
5012 esac
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5015 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 ;;
5024 esac ;;
5025 esac
5026 fi
5027 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5028 if test -n "$ac_pt_PKG_CONFIG"; then
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5030 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5031 else
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 printf "%s\n" "no" >&6; }
5034 fi
5035
5036 if test "x$ac_pt_PKG_CONFIG" = x; then
5037 PKG_CONFIG=""
5038 else
5039 case $cross_compiling:$ac_tool_warned in
5040 yes:)
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5042 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5043 ac_tool_warned=yes ;;
5044 esac
5045 PKG_CONFIG=$ac_pt_PKG_CONFIG
5046 fi
5047 else
5048 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5049 fi
5050
5051 fi
5052 if test -n "$PKG_CONFIG"; then
5053 _pkg_min_version=0.9.0
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5055 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5056 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058 printf "%s\n" "yes" >&6; }
5059 else
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 printf "%s\n" "no" >&6; }
5062 PKG_CONFIG=""
5063 fi
5064 fi
5065
5066
5067 # Make sure we can run config.sub.
5068 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5069 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5070
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5072 printf %s "checking build system type... " >&6; }
5073 if test ${ac_cv_build+y}
5074 then :
5075 printf %s "(cached) " >&6
5076 else case e in #(
5077 e) ac_build_alias=$build_alias
5078 test "x$ac_build_alias" = x &&
5079 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5080 test "x$ac_build_alias" = x &&
5081 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5082 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5083 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5084 ;;
5085 esac
5086 fi
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5088 printf "%s\n" "$ac_cv_build" >&6; }
5089 case $ac_cv_build in
5090 *-*-*) ;;
5091 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5092 esac
5093 build=$ac_cv_build
5094 ac_save_IFS=$IFS; IFS='-'
5095 set x $ac_cv_build
5096 shift
5097 build_cpu=$1
5098 build_vendor=$2
5099 shift; shift
5100 # Remember, the first character of IFS is used to create $*,
5101 # except with old shells:
5102 build_os=$*
5103 IFS=$ac_save_IFS
5104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5105
5106
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5108 printf %s "checking host system type... " >&6; }
5109 if test ${ac_cv_host+y}
5110 then :
5111 printf %s "(cached) " >&6
5112 else case e in #(
5113 e) if test "x$host_alias" = x; then
5114 ac_cv_host=$ac_cv_build
5115 else
5116 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5117 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5118 fi
5119 ;;
5120 esac
5121 fi
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5123 printf "%s\n" "$ac_cv_host" >&6; }
5124 case $ac_cv_host in
5125 *-*-*) ;;
5126 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5127 esac
5128 host=$ac_cv_host
5129 ac_save_IFS=$IFS; IFS='-'
5130 set x $ac_cv_host
5131 shift
5132 host_cpu=$1
5133 host_vendor=$2
5134 shift; shift
5135 # Remember, the first character of IFS is used to create $*,
5136 # except with old shells:
5137 host_os=$*
5138 IFS=$ac_save_IFS
5139 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5140
5141
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5143 printf %s "checking for a sed that does not truncate output... " >&6; }
5144 if test ${ac_cv_path_SED+y}
5145 then :
5146 printf %s "(cached) " >&6
5147 else case e in #(
5148 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5149 for ac_i in 1 2 3 4 5 6 7; do
5150 ac_script="$ac_script$as_nl$ac_script"
5151 done
5152 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5153 { ac_script=; unset ac_script;}
5154 if test -z "$SED"; then
5155 ac_path_SED_found=false
5156 # Loop through the user's path and test for each of PROGNAME-LIST
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160 IFS=$as_save_IFS
5161 case $as_dir in #(((
5162 '') as_dir=./ ;;
5163 */) ;;
5164 *) as_dir=$as_dir/ ;;
5165 esac
5166 for ac_prog in sed gsed
5167 do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5170 as_fn_executable_p "$ac_path_SED" || continue
5171 # Check for GNU ac_path_SED and select it if it is found.
5172 # Check for GNU $ac_path_SED
5173 case `"$ac_path_SED" --version 2>&1` in #(
5174 *GNU*)
5175 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5176 #(
5177 *)
5178 ac_count=0
5179 printf %s 0123456789 >"conftest.in"
5180 while :
5181 do
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 printf "%s\n" '' >> "conftest.nl"
5186 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 as_fn_arith $ac_count + 1 && ac_count=$as_val
5189 if test $ac_count -gt ${ac_path_SED_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_SED="$ac_path_SED"
5192 ac_path_SED_max=$ac_count
5193 fi
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5196 done
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198 esac
5199
5200 $ac_path_SED_found && break 3
5201 done
5202 done
5203 done
5204 IFS=$as_save_IFS
5205 if test -z "$ac_cv_path_SED"; then
5206 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5207 fi
5208 else
5209 ac_cv_path_SED=$SED
5210 fi
5211 ;;
5212 esac
5213 fi
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5215 printf "%s\n" "$ac_cv_path_SED" >&6; }
5216 SED="$ac_cv_path_SED"
5217 rm -f conftest.sed
5218
5219
5220
5221
5222
5223
5224 # Check whether --enable-selective-werror was given.
5225 if test ${enable_selective_werror+y}
5226 then :
5227 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5228 else case e in #(
5229 e) SELECTIVE_WERROR=yes ;;
5230 esac
5231 fi
5232
5233
5234
5235
5236
5237 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5238 if test "x$SUNCC" = "xyes"; then
5239 BASE_CFLAGS="-v"
5240 else
5241 BASE_CFLAGS=""
5242 fi
5243
5244 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258 xorg_testset_save_CFLAGS="$CFLAGS"
5259
5260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5263 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5264 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else case e in #(
5268 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 int i;
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"
5273 then :
5274 xorg_cv_cc_flag_unknown_warning_option=yes
5275 else case e in #(
5276 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5277 esac
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5280 esac
5281 fi
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5283 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5285 CFLAGS="$xorg_testset_save_CFLAGS"
5286 fi
5287
5288 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291 fi
5292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5294 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5295 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5296 then :
5297 printf %s "(cached) " >&6
5298 else case e in #(
5299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301 int i;
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"
5304 then :
5305 xorg_cv_cc_flag_unused_command_line_argument=yes
5306 else case e in #(
5307 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5308 esac
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5311 esac
5312 fi
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5314 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5316 CFLAGS="$xorg_testset_save_CFLAGS"
5317 fi
5318
5319 found="no"
5320
5321 if test $found = "no" ; then
5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324 fi
5325
5326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5328 fi
5329
5330 CFLAGS="$CFLAGS -Wall"
5331
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5333 printf %s "checking if $CC supports -Wall... " >&6; }
5334 cacheid=xorg_cv_cc_flag__Wall
5335 if eval test \${$cacheid+y}
5336 then :
5337 printf %s "(cached) " >&6
5338 else case e in #(
5339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 int i;
5342 int
5343 main (void)
5344 {
5345
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_link "$LINENO"
5351 then :
5352 eval $cacheid=yes
5353 else case e in #(
5354 e) eval $cacheid=no ;;
5355 esac
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5358 conftest$ac_exeext conftest.$ac_ext ;;
5359 esac
5360 fi
5361
5362
5363 CFLAGS="$xorg_testset_save_CFLAGS"
5364
5365 eval supported=\$$cacheid
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5367 printf "%s\n" "$supported" >&6; }
5368 if test "$supported" = "yes" ; then
5369 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5370 found="yes"
5371 fi
5372 fi
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 xorg_testset_save_CFLAGS="$CFLAGS"
5389
5390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5393 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5394 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5395 then :
5396 printf %s "(cached) " >&6
5397 else case e in #(
5398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400 int i;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"
5403 then :
5404 xorg_cv_cc_flag_unknown_warning_option=yes
5405 else case e in #(
5406 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5407 esac
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5410 esac
5411 fi
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5413 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5415 CFLAGS="$xorg_testset_save_CFLAGS"
5416 fi
5417
5418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421 fi
5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5424 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5425 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5426 then :
5427 printf %s "(cached) " >&6
5428 else case e in #(
5429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 int i;
5432 _ACEOF
5433 if ac_fn_c_try_compile "$LINENO"
5434 then :
5435 xorg_cv_cc_flag_unused_command_line_argument=yes
5436 else case e in #(
5437 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5438 esac
5439 fi
5440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5441 esac
5442 fi
5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5444 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5446 CFLAGS="$xorg_testset_save_CFLAGS"
5447 fi
5448
5449 found="no"
5450
5451 if test $found = "no" ; then
5452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454 fi
5455
5456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458 fi
5459
5460 CFLAGS="$CFLAGS -Wpointer-arith"
5461
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5463 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5464 cacheid=xorg_cv_cc_flag__Wpointer_arith
5465 if eval test \${$cacheid+y}
5466 then :
5467 printf %s "(cached) " >&6
5468 else case e in #(
5469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 int i;
5472 int
5473 main (void)
5474 {
5475
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_link "$LINENO"
5481 then :
5482 eval $cacheid=yes
5483 else case e in #(
5484 e) eval $cacheid=no ;;
5485 esac
5486 fi
5487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5488 conftest$ac_exeext conftest.$ac_ext ;;
5489 esac
5490 fi
5491
5492
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494
5495 eval supported=\$$cacheid
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497 printf "%s\n" "$supported" >&6; }
5498 if test "$supported" = "yes" ; then
5499 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5500 found="yes"
5501 fi
5502 fi
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 xorg_testset_save_CFLAGS="$CFLAGS"
5519
5520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5523 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5524 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5525 then :
5526 printf %s "(cached) " >&6
5527 else case e in #(
5528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 int i;
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"
5533 then :
5534 xorg_cv_cc_flag_unknown_warning_option=yes
5535 else case e in #(
5536 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5537 esac
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5540 esac
5541 fi
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5543 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5545 CFLAGS="$xorg_testset_save_CFLAGS"
5546 fi
5547
5548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551 fi
5552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5554 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5555 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5556 then :
5557 printf %s "(cached) " >&6
5558 else case e in #(
5559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 int i;
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"
5564 then :
5565 xorg_cv_cc_flag_unused_command_line_argument=yes
5566 else case e in #(
5567 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5568 esac
5569 fi
5570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5571 esac
5572 fi
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5574 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5576 CFLAGS="$xorg_testset_save_CFLAGS"
5577 fi
5578
5579 found="no"
5580
5581 if test $found = "no" ; then
5582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584 fi
5585
5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588 fi
5589
5590 CFLAGS="$CFLAGS -Wmissing-declarations"
5591
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5593 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5594 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5595 if eval test \${$cacheid+y}
5596 then :
5597 printf %s "(cached) " >&6
5598 else case e in #(
5599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 int i;
5602 int
5603 main (void)
5604 {
5605
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_link "$LINENO"
5611 then :
5612 eval $cacheid=yes
5613 else case e in #(
5614 e) eval $cacheid=no ;;
5615 esac
5616 fi
5617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5618 conftest$ac_exeext conftest.$ac_ext ;;
5619 esac
5620 fi
5621
5622
5623 CFLAGS="$xorg_testset_save_CFLAGS"
5624
5625 eval supported=\$$cacheid
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5627 printf "%s\n" "$supported" >&6; }
5628 if test "$supported" = "yes" ; then
5629 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5630 found="yes"
5631 fi
5632 fi
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648 xorg_testset_save_CFLAGS="$CFLAGS"
5649
5650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5653 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5654 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else case e in #(
5658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 int i;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"
5663 then :
5664 xorg_cv_cc_flag_unknown_warning_option=yes
5665 else case e in #(
5666 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5667 esac
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5670 esac
5671 fi
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5673 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5675 CFLAGS="$xorg_testset_save_CFLAGS"
5676 fi
5677
5678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681 fi
5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5684 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5685 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5686 then :
5687 printf %s "(cached) " >&6
5688 else case e in #(
5689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 int i;
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"
5694 then :
5695 xorg_cv_cc_flag_unused_command_line_argument=yes
5696 else case e in #(
5697 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5698 esac
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5701 esac
5702 fi
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5704 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5706 CFLAGS="$xorg_testset_save_CFLAGS"
5707 fi
5708
5709 found="no"
5710
5711 if test $found = "no" ; then
5712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5714 fi
5715
5716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5718 fi
5719
5720 CFLAGS="$CFLAGS -Wformat=2"
5721
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5723 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5724 cacheid=xorg_cv_cc_flag__Wformat_2
5725 if eval test \${$cacheid+y}
5726 then :
5727 printf %s "(cached) " >&6
5728 else case e in #(
5729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 int i;
5732 int
5733 main (void)
5734 {
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_link "$LINENO"
5741 then :
5742 eval $cacheid=yes
5743 else case e in #(
5744 e) eval $cacheid=no ;;
5745 esac
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5748 conftest$ac_exeext conftest.$ac_ext ;;
5749 esac
5750 fi
5751
5752
5753 CFLAGS="$xorg_testset_save_CFLAGS"
5754
5755 eval supported=\$$cacheid
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5757 printf "%s\n" "$supported" >&6; }
5758 if test "$supported" = "yes" ; then
5759 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5760 found="yes"
5761 fi
5762 fi
5763
5764 if test $found = "no" ; then
5765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767 fi
5768
5769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771 fi
5772
5773 CFLAGS="$CFLAGS -Wformat"
5774
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5776 printf %s "checking if $CC supports -Wformat... " >&6; }
5777 cacheid=xorg_cv_cc_flag__Wformat
5778 if eval test \${$cacheid+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else case e in #(
5782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 int i;
5785 int
5786 main (void)
5787 {
5788
5789 ;
5790 return 0;
5791 }
5792 _ACEOF
5793 if ac_fn_c_try_link "$LINENO"
5794 then :
5795 eval $cacheid=yes
5796 else case e in #(
5797 e) eval $cacheid=no ;;
5798 esac
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5801 conftest$ac_exeext conftest.$ac_ext ;;
5802 esac
5803 fi
5804
5805
5806 CFLAGS="$xorg_testset_save_CFLAGS"
5807
5808 eval supported=\$$cacheid
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5810 printf "%s\n" "$supported" >&6; }
5811 if test "$supported" = "yes" ; then
5812 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5813 found="yes"
5814 fi
5815 fi
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833 xorg_testset_save_CFLAGS="$CFLAGS"
5834
5835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5840 then :
5841 printf %s "(cached) " >&6
5842 else case e in #(
5843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 int i;
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"
5848 then :
5849 xorg_cv_cc_flag_unknown_warning_option=yes
5850 else case e in #(
5851 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5852 esac
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5855 esac
5856 fi
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860 CFLAGS="$xorg_testset_save_CFLAGS"
5861 fi
5862
5863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 fi
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5878 if ac_fn_c_try_compile "$LINENO"
5879 then :
5880 xorg_cv_cc_flag_unused_command_line_argument=yes
5881 else case e in #(
5882 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5883 esac
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5886 esac
5887 fi
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5889 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5891 CFLAGS="$xorg_testset_save_CFLAGS"
5892 fi
5893
5894 found="no"
5895
5896 if test $found = "no" ; then
5897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899 fi
5900
5901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5903 fi
5904
5905 CFLAGS="$CFLAGS -Wstrict-prototypes"
5906
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5908 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5909 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5910 if eval test \${$cacheid+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else case e in #(
5914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 int i;
5917 int
5918 main (void)
5919 {
5920
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"
5926 then :
5927 eval $cacheid=yes
5928 else case e in #(
5929 e) eval $cacheid=no ;;
5930 esac
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5933 conftest$ac_exeext conftest.$ac_ext ;;
5934 esac
5935 fi
5936
5937
5938 CFLAGS="$xorg_testset_save_CFLAGS"
5939
5940 eval supported=\$$cacheid
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5942 printf "%s\n" "$supported" >&6; }
5943 if test "$supported" = "yes" ; then
5944 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5945 found="yes"
5946 fi
5947 fi
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963 xorg_testset_save_CFLAGS="$CFLAGS"
5964
5965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5969 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5970 then :
5971 printf %s "(cached) " >&6
5972 else case e in #(
5973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 int i;
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"
5978 then :
5979 xorg_cv_cc_flag_unknown_warning_option=yes
5980 else case e in #(
5981 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5982 esac
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5985 esac
5986 fi
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5988 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5990 CFLAGS="$xorg_testset_save_CFLAGS"
5991 fi
5992
5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996 fi
5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5999 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6000 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6001 then :
6002 printf %s "(cached) " >&6
6003 else case e in #(
6004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006 int i;
6007 _ACEOF
6008 if ac_fn_c_try_compile "$LINENO"
6009 then :
6010 xorg_cv_cc_flag_unused_command_line_argument=yes
6011 else case e in #(
6012 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6013 esac
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6016 esac
6017 fi
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6019 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6021 CFLAGS="$xorg_testset_save_CFLAGS"
6022 fi
6023
6024 found="no"
6025
6026 if test $found = "no" ; then
6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 fi
6030
6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033 fi
6034
6035 CFLAGS="$CFLAGS -Wmissing-prototypes"
6036
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6038 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6039 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6040 if eval test \${$cacheid+y}
6041 then :
6042 printf %s "(cached) " >&6
6043 else case e in #(
6044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 int i;
6047 int
6048 main (void)
6049 {
6050
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_link "$LINENO"
6056 then :
6057 eval $cacheid=yes
6058 else case e in #(
6059 e) eval $cacheid=no ;;
6060 esac
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6063 conftest$ac_exeext conftest.$ac_ext ;;
6064 esac
6065 fi
6066
6067
6068 CFLAGS="$xorg_testset_save_CFLAGS"
6069
6070 eval supported=\$$cacheid
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6072 printf "%s\n" "$supported" >&6; }
6073 if test "$supported" = "yes" ; then
6074 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6075 found="yes"
6076 fi
6077 fi
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 xorg_testset_save_CFLAGS="$CFLAGS"
6094
6095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6100 then :
6101 printf %s "(cached) " >&6
6102 else case e in #(
6103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 int i;
6106 _ACEOF
6107 if ac_fn_c_try_compile "$LINENO"
6108 then :
6109 xorg_cv_cc_flag_unknown_warning_option=yes
6110 else case e in #(
6111 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6112 esac
6113 fi
6114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6115 esac
6116 fi
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6118 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6120 CFLAGS="$xorg_testset_save_CFLAGS"
6121 fi
6122
6123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126 fi
6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6129 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6130 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6131 then :
6132 printf %s "(cached) " >&6
6133 else case e in #(
6134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 int i;
6137 _ACEOF
6138 if ac_fn_c_try_compile "$LINENO"
6139 then :
6140 xorg_cv_cc_flag_unused_command_line_argument=yes
6141 else case e in #(
6142 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6143 esac
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6146 esac
6147 fi
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151 CFLAGS="$xorg_testset_save_CFLAGS"
6152 fi
6153
6154 found="no"
6155
6156 if test $found = "no" ; then
6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159 fi
6160
6161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163 fi
6164
6165 CFLAGS="$CFLAGS -Wnested-externs"
6166
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6168 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6169 cacheid=xorg_cv_cc_flag__Wnested_externs
6170 if eval test \${$cacheid+y}
6171 then :
6172 printf %s "(cached) " >&6
6173 else case e in #(
6174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176 int i;
6177 int
6178 main (void)
6179 {
6180
6181 ;
6182 return 0;
6183 }
6184 _ACEOF
6185 if ac_fn_c_try_link "$LINENO"
6186 then :
6187 eval $cacheid=yes
6188 else case e in #(
6189 e) eval $cacheid=no ;;
6190 esac
6191 fi
6192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6193 conftest$ac_exeext conftest.$ac_ext ;;
6194 esac
6195 fi
6196
6197
6198 CFLAGS="$xorg_testset_save_CFLAGS"
6199
6200 eval supported=\$$cacheid
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6202 printf "%s\n" "$supported" >&6; }
6203 if test "$supported" = "yes" ; then
6204 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6205 found="yes"
6206 fi
6207 fi
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223 xorg_testset_save_CFLAGS="$CFLAGS"
6224
6225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6228 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6229 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6230 then :
6231 printf %s "(cached) " >&6
6232 else case e in #(
6233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 int i;
6236 _ACEOF
6237 if ac_fn_c_try_compile "$LINENO"
6238 then :
6239 xorg_cv_cc_flag_unknown_warning_option=yes
6240 else case e in #(
6241 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6242 esac
6243 fi
6244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6245 esac
6246 fi
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6250 CFLAGS="$xorg_testset_save_CFLAGS"
6251 fi
6252
6253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256 fi
6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6261 then :
6262 printf %s "(cached) " >&6
6263 else case e in #(
6264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 int i;
6267 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"
6269 then :
6270 xorg_cv_cc_flag_unused_command_line_argument=yes
6271 else case e in #(
6272 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6273 esac
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6276 esac
6277 fi
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6279 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6281 CFLAGS="$xorg_testset_save_CFLAGS"
6282 fi
6283
6284 found="no"
6285
6286 if test $found = "no" ; then
6287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289 fi
6290
6291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6293 fi
6294
6295 CFLAGS="$CFLAGS -Wbad-function-cast"
6296
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6298 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6299 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6300 if eval test \${$cacheid+y}
6301 then :
6302 printf %s "(cached) " >&6
6303 else case e in #(
6304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 int i;
6307 int
6308 main (void)
6309 {
6310
6311 ;
6312 return 0;
6313 }
6314 _ACEOF
6315 if ac_fn_c_try_link "$LINENO"
6316 then :
6317 eval $cacheid=yes
6318 else case e in #(
6319 e) eval $cacheid=no ;;
6320 esac
6321 fi
6322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6323 conftest$ac_exeext conftest.$ac_ext ;;
6324 esac
6325 fi
6326
6327
6328 CFLAGS="$xorg_testset_save_CFLAGS"
6329
6330 eval supported=\$$cacheid
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6332 printf "%s\n" "$supported" >&6; }
6333 if test "$supported" = "yes" ; then
6334 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6335 found="yes"
6336 fi
6337 fi
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 xorg_testset_save_CFLAGS="$CFLAGS"
6354
6355 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6358 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6359 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6360 then :
6361 printf %s "(cached) " >&6
6362 else case e in #(
6363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 int i;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"
6368 then :
6369 xorg_cv_cc_flag_unknown_warning_option=yes
6370 else case e in #(
6371 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6372 esac
6373 fi
6374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6375 esac
6376 fi
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6378 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6380 CFLAGS="$xorg_testset_save_CFLAGS"
6381 fi
6382
6383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386 fi
6387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6389 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6390 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6391 then :
6392 printf %s "(cached) " >&6
6393 else case e in #(
6394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 int i;
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"
6399 then :
6400 xorg_cv_cc_flag_unused_command_line_argument=yes
6401 else case e in #(
6402 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6403 esac
6404 fi
6405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6406 esac
6407 fi
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6411 CFLAGS="$xorg_testset_save_CFLAGS"
6412 fi
6413
6414 found="no"
6415
6416 if test $found = "no" ; then
6417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419 fi
6420
6421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423 fi
6424
6425 CFLAGS="$CFLAGS -Wold-style-definition"
6426
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6428 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6429 cacheid=xorg_cv_cc_flag__Wold_style_definition
6430 if eval test \${$cacheid+y}
6431 then :
6432 printf %s "(cached) " >&6
6433 else case e in #(
6434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 int i;
6437 int
6438 main (void)
6439 {
6440
6441 ;
6442 return 0;
6443 }
6444 _ACEOF
6445 if ac_fn_c_try_link "$LINENO"
6446 then :
6447 eval $cacheid=yes
6448 else case e in #(
6449 e) eval $cacheid=no ;;
6450 esac
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6453 conftest$ac_exeext conftest.$ac_ext ;;
6454 esac
6455 fi
6456
6457
6458 CFLAGS="$xorg_testset_save_CFLAGS"
6459
6460 eval supported=\$$cacheid
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6462 printf "%s\n" "$supported" >&6; }
6463 if test "$supported" = "yes" ; then
6464 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6465 found="yes"
6466 fi
6467 fi
6468
6469 if test $found = "no" ; then
6470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6472 fi
6473
6474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6476 fi
6477
6478 CFLAGS="$CFLAGS -fd"
6479
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6481 printf %s "checking if $CC supports -fd... " >&6; }
6482 cacheid=xorg_cv_cc_flag__fd
6483 if eval test \${$cacheid+y}
6484 then :
6485 printf %s "(cached) " >&6
6486 else case e in #(
6487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 int i;
6490 int
6491 main (void)
6492 {
6493
6494 ;
6495 return 0;
6496 }
6497 _ACEOF
6498 if ac_fn_c_try_link "$LINENO"
6499 then :
6500 eval $cacheid=yes
6501 else case e in #(
6502 e) eval $cacheid=no ;;
6503 esac
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6506 conftest$ac_exeext conftest.$ac_ext ;;
6507 esac
6508 fi
6509
6510
6511 CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513 eval supported=\$$cacheid
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515 printf "%s\n" "$supported" >&6; }
6516 if test "$supported" = "yes" ; then
6517 BASE_CFLAGS="$BASE_CFLAGS -fd"
6518 found="yes"
6519 fi
6520 fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 xorg_testset_save_CFLAGS="$CFLAGS"
6537
6538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6541 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6542 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6543 then :
6544 printf %s "(cached) " >&6
6545 else case e in #(
6546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548 int i;
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"
6551 then :
6552 xorg_cv_cc_flag_unknown_warning_option=yes
6553 else case e in #(
6554 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6555 esac
6556 fi
6557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6558 esac
6559 fi
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6561 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6563 CFLAGS="$xorg_testset_save_CFLAGS"
6564 fi
6565
6566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569 fi
6570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6572 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6573 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6574 then :
6575 printf %s "(cached) " >&6
6576 else case e in #(
6577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 int i;
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"
6582 then :
6583 xorg_cv_cc_flag_unused_command_line_argument=yes
6584 else case e in #(
6585 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6586 esac
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6589 esac
6590 fi
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6592 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6594 CFLAGS="$xorg_testset_save_CFLAGS"
6595 fi
6596
6597 found="no"
6598
6599 if test $found = "no" ; then
6600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6602 fi
6603
6604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6606 fi
6607
6608 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6609
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6611 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6612 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6613 if eval test \${$cacheid+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else case e in #(
6617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 int i;
6620 int
6621 main (void)
6622 {
6623
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"
6629 then :
6630 eval $cacheid=yes
6631 else case e in #(
6632 e) eval $cacheid=no ;;
6633 esac
6634 fi
6635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6636 conftest$ac_exeext conftest.$ac_ext ;;
6637 esac
6638 fi
6639
6640
6641 CFLAGS="$xorg_testset_save_CFLAGS"
6642
6643 eval supported=\$$cacheid
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6645 printf "%s\n" "$supported" >&6; }
6646 if test "$supported" = "yes" ; then
6647 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6648 found="yes"
6649 fi
6650 fi
6651
6652
6653
6654
6655
6656 # This chunk adds additional warnings that could catch undesired effects.
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670 xorg_testset_save_CFLAGS="$CFLAGS"
6671
6672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6675 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6676 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6677 then :
6678 printf %s "(cached) " >&6
6679 else case e in #(
6680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 int i;
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"
6685 then :
6686 xorg_cv_cc_flag_unknown_warning_option=yes
6687 else case e in #(
6688 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6689 esac
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6692 esac
6693 fi
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6695 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6697 CFLAGS="$xorg_testset_save_CFLAGS"
6698 fi
6699
6700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703 fi
6704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6706 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6707 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6708 then :
6709 printf %s "(cached) " >&6
6710 else case e in #(
6711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 int i;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"
6716 then :
6717 xorg_cv_cc_flag_unused_command_line_argument=yes
6718 else case e in #(
6719 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6720 esac
6721 fi
6722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6723 esac
6724 fi
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6726 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6728 CFLAGS="$xorg_testset_save_CFLAGS"
6729 fi
6730
6731 found="no"
6732
6733 if test $found = "no" ; then
6734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6736 fi
6737
6738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6740 fi
6741
6742 CFLAGS="$CFLAGS -Wunused"
6743
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6745 printf %s "checking if $CC supports -Wunused... " >&6; }
6746 cacheid=xorg_cv_cc_flag__Wunused
6747 if eval test \${$cacheid+y}
6748 then :
6749 printf %s "(cached) " >&6
6750 else case e in #(
6751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 int i;
6754 int
6755 main (void)
6756 {
6757
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 if ac_fn_c_try_link "$LINENO"
6763 then :
6764 eval $cacheid=yes
6765 else case e in #(
6766 e) eval $cacheid=no ;;
6767 esac
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6770 conftest$ac_exeext conftest.$ac_ext ;;
6771 esac
6772 fi
6773
6774
6775 CFLAGS="$xorg_testset_save_CFLAGS"
6776
6777 eval supported=\$$cacheid
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6779 printf "%s\n" "$supported" >&6; }
6780 if test "$supported" = "yes" ; then
6781 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6782 found="yes"
6783 fi
6784 fi
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800 xorg_testset_save_CFLAGS="$CFLAGS"
6801
6802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6807 then :
6808 printf %s "(cached) " >&6
6809 else case e in #(
6810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int i;
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"
6815 then :
6816 xorg_cv_cc_flag_unknown_warning_option=yes
6817 else case e in #(
6818 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6819 esac
6820 fi
6821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6822 esac
6823 fi
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6825 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6827 CFLAGS="$xorg_testset_save_CFLAGS"
6828 fi
6829
6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833 fi
6834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6838 then :
6839 printf %s "(cached) " >&6
6840 else case e in #(
6841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 int i;
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"
6846 then :
6847 xorg_cv_cc_flag_unused_command_line_argument=yes
6848 else case e in #(
6849 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6850 esac
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6853 esac
6854 fi
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6856 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6858 CFLAGS="$xorg_testset_save_CFLAGS"
6859 fi
6860
6861 found="no"
6862
6863 if test $found = "no" ; then
6864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866 fi
6867
6868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6870 fi
6871
6872 CFLAGS="$CFLAGS -Wuninitialized"
6873
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6875 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6876 cacheid=xorg_cv_cc_flag__Wuninitialized
6877 if eval test \${$cacheid+y}
6878 then :
6879 printf %s "(cached) " >&6
6880 else case e in #(
6881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 int i;
6884 int
6885 main (void)
6886 {
6887
6888 ;
6889 return 0;
6890 }
6891 _ACEOF
6892 if ac_fn_c_try_link "$LINENO"
6893 then :
6894 eval $cacheid=yes
6895 else case e in #(
6896 e) eval $cacheid=no ;;
6897 esac
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6900 conftest$ac_exeext conftest.$ac_ext ;;
6901 esac
6902 fi
6903
6904
6905 CFLAGS="$xorg_testset_save_CFLAGS"
6906
6907 eval supported=\$$cacheid
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6909 printf "%s\n" "$supported" >&6; }
6910 if test "$supported" = "yes" ; then
6911 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6912 found="yes"
6913 fi
6914 fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930 xorg_testset_save_CFLAGS="$CFLAGS"
6931
6932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6937 then :
6938 printf %s "(cached) " >&6
6939 else case e in #(
6940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942 int i;
6943 _ACEOF
6944 if ac_fn_c_try_compile "$LINENO"
6945 then :
6946 xorg_cv_cc_flag_unknown_warning_option=yes
6947 else case e in #(
6948 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6949 esac
6950 fi
6951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6952 esac
6953 fi
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6955 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6957 CFLAGS="$xorg_testset_save_CFLAGS"
6958 fi
6959
6960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6963 fi
6964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6966 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6967 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6968 then :
6969 printf %s "(cached) " >&6
6970 else case e in #(
6971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973 int i;
6974 _ACEOF
6975 if ac_fn_c_try_compile "$LINENO"
6976 then :
6977 xorg_cv_cc_flag_unused_command_line_argument=yes
6978 else case e in #(
6979 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6980 esac
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6983 esac
6984 fi
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6986 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6988 CFLAGS="$xorg_testset_save_CFLAGS"
6989 fi
6990
6991 found="no"
6992
6993 if test $found = "no" ; then
6994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996 fi
6997
6998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000 fi
7001
7002 CFLAGS="$CFLAGS -Wshadow"
7003
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7005 printf %s "checking if $CC supports -Wshadow... " >&6; }
7006 cacheid=xorg_cv_cc_flag__Wshadow
7007 if eval test \${$cacheid+y}
7008 then :
7009 printf %s "(cached) " >&6
7010 else case e in #(
7011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 int i;
7014 int
7015 main (void)
7016 {
7017
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 if ac_fn_c_try_link "$LINENO"
7023 then :
7024 eval $cacheid=yes
7025 else case e in #(
7026 e) eval $cacheid=no ;;
7027 esac
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7030 conftest$ac_exeext conftest.$ac_ext ;;
7031 esac
7032 fi
7033
7034
7035 CFLAGS="$xorg_testset_save_CFLAGS"
7036
7037 eval supported=\$$cacheid
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7039 printf "%s\n" "$supported" >&6; }
7040 if test "$supported" = "yes" ; then
7041 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7042 found="yes"
7043 fi
7044 fi
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 xorg_testset_save_CFLAGS="$CFLAGS"
7061
7062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7065 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7066 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7067 then :
7068 printf %s "(cached) " >&6
7069 else case e in #(
7070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 int i;
7073 _ACEOF
7074 if ac_fn_c_try_compile "$LINENO"
7075 then :
7076 xorg_cv_cc_flag_unknown_warning_option=yes
7077 else case e in #(
7078 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7079 esac
7080 fi
7081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7082 esac
7083 fi
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7085 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7087 CFLAGS="$xorg_testset_save_CFLAGS"
7088 fi
7089
7090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7093 fi
7094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7096 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7097 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7098 then :
7099 printf %s "(cached) " >&6
7100 else case e in #(
7101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7103 int i;
7104 _ACEOF
7105 if ac_fn_c_try_compile "$LINENO"
7106 then :
7107 xorg_cv_cc_flag_unused_command_line_argument=yes
7108 else case e in #(
7109 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7110 esac
7111 fi
7112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7113 esac
7114 fi
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7116 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7118 CFLAGS="$xorg_testset_save_CFLAGS"
7119 fi
7120
7121 found="no"
7122
7123 if test $found = "no" ; then
7124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7126 fi
7127
7128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7130 fi
7131
7132 CFLAGS="$CFLAGS -Wmissing-noreturn"
7133
7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7135 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7136 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7137 if eval test \${$cacheid+y}
7138 then :
7139 printf %s "(cached) " >&6
7140 else case e in #(
7141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 int i;
7144 int
7145 main (void)
7146 {
7147
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 if ac_fn_c_try_link "$LINENO"
7153 then :
7154 eval $cacheid=yes
7155 else case e in #(
7156 e) eval $cacheid=no ;;
7157 esac
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7160 conftest$ac_exeext conftest.$ac_ext ;;
7161 esac
7162 fi
7163
7164
7165 CFLAGS="$xorg_testset_save_CFLAGS"
7166
7167 eval supported=\$$cacheid
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7169 printf "%s\n" "$supported" >&6; }
7170 if test "$supported" = "yes" ; then
7171 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7172 found="yes"
7173 fi
7174 fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 xorg_testset_save_CFLAGS="$CFLAGS"
7191
7192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7195 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7196 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7197 then :
7198 printf %s "(cached) " >&6
7199 else case e in #(
7200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 int i;
7203 _ACEOF
7204 if ac_fn_c_try_compile "$LINENO"
7205 then :
7206 xorg_cv_cc_flag_unknown_warning_option=yes
7207 else case e in #(
7208 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7209 esac
7210 fi
7211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7212 esac
7213 fi
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7217 CFLAGS="$xorg_testset_save_CFLAGS"
7218 fi
7219
7220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7223 fi
7224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7228 then :
7229 printf %s "(cached) " >&6
7230 else case e in #(
7231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int i;
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"
7236 then :
7237 xorg_cv_cc_flag_unused_command_line_argument=yes
7238 else case e in #(
7239 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7240 esac
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7243 esac
7244 fi
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7246 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7248 CFLAGS="$xorg_testset_save_CFLAGS"
7249 fi
7250
7251 found="no"
7252
7253 if test $found = "no" ; then
7254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256 fi
7257
7258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7260 fi
7261
7262 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7263
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7265 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7266 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7267 if eval test \${$cacheid+y}
7268 then :
7269 printf %s "(cached) " >&6
7270 else case e in #(
7271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 int i;
7274 int
7275 main (void)
7276 {
7277
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 if ac_fn_c_try_link "$LINENO"
7283 then :
7284 eval $cacheid=yes
7285 else case e in #(
7286 e) eval $cacheid=no ;;
7287 esac
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7290 conftest$ac_exeext conftest.$ac_ext ;;
7291 esac
7292 fi
7293
7294
7295 CFLAGS="$xorg_testset_save_CFLAGS"
7296
7297 eval supported=\$$cacheid
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7299 printf "%s\n" "$supported" >&6; }
7300 if test "$supported" = "yes" ; then
7301 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7302 found="yes"
7303 fi
7304 fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 xorg_testset_save_CFLAGS="$CFLAGS"
7321
7322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7325 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7326 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7327 then :
7328 printf %s "(cached) " >&6
7329 else case e in #(
7330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 int i;
7333 _ACEOF
7334 if ac_fn_c_try_compile "$LINENO"
7335 then :
7336 xorg_cv_cc_flag_unknown_warning_option=yes
7337 else case e in #(
7338 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7339 esac
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7342 esac
7343 fi
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7345 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7347 CFLAGS="$xorg_testset_save_CFLAGS"
7348 fi
7349
7350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7353 fi
7354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7356 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7357 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7358 then :
7359 printf %s "(cached) " >&6
7360 else case e in #(
7361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 int i;
7364 _ACEOF
7365 if ac_fn_c_try_compile "$LINENO"
7366 then :
7367 xorg_cv_cc_flag_unused_command_line_argument=yes
7368 else case e in #(
7369 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7370 esac
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7373 esac
7374 fi
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7376 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7378 CFLAGS="$xorg_testset_save_CFLAGS"
7379 fi
7380
7381 found="no"
7382
7383 if test $found = "no" ; then
7384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386 fi
7387
7388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390 fi
7391
7392 CFLAGS="$CFLAGS -Wredundant-decls"
7393
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7395 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7396 cacheid=xorg_cv_cc_flag__Wredundant_decls
7397 if eval test \${$cacheid+y}
7398 then :
7399 printf %s "(cached) " >&6
7400 else case e in #(
7401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 int i;
7404 int
7405 main (void)
7406 {
7407
7408 ;
7409 return 0;
7410 }
7411 _ACEOF
7412 if ac_fn_c_try_link "$LINENO"
7413 then :
7414 eval $cacheid=yes
7415 else case e in #(
7416 e) eval $cacheid=no ;;
7417 esac
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7420 conftest$ac_exeext conftest.$ac_ext ;;
7421 esac
7422 fi
7423
7424
7425 CFLAGS="$xorg_testset_save_CFLAGS"
7426
7427 eval supported=\$$cacheid
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7429 printf "%s\n" "$supported" >&6; }
7430 if test "$supported" = "yes" ; then
7431 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7432 found="yes"
7433 fi
7434 fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450 xorg_testset_save_CFLAGS="$CFLAGS"
7451
7452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7455 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7456 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7457 then :
7458 printf %s "(cached) " >&6
7459 else case e in #(
7460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 int i;
7463 _ACEOF
7464 if ac_fn_c_try_compile "$LINENO"
7465 then :
7466 xorg_cv_cc_flag_unknown_warning_option=yes
7467 else case e in #(
7468 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7469 esac
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7472 esac
7473 fi
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7475 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7477 CFLAGS="$xorg_testset_save_CFLAGS"
7478 fi
7479
7480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7483 fi
7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7486 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7487 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7488 then :
7489 printf %s "(cached) " >&6
7490 else case e in #(
7491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 int i;
7494 _ACEOF
7495 if ac_fn_c_try_compile "$LINENO"
7496 then :
7497 xorg_cv_cc_flag_unused_command_line_argument=yes
7498 else case e in #(
7499 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7500 esac
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7503 esac
7504 fi
7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7506 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7508 CFLAGS="$xorg_testset_save_CFLAGS"
7509 fi
7510
7511 found="no"
7512
7513 if test $found = "no" ; then
7514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516 fi
7517
7518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7520 fi
7521
7522 CFLAGS="$CFLAGS -Wlogical-op"
7523
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7525 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7526 cacheid=xorg_cv_cc_flag__Wlogical_op
7527 if eval test \${$cacheid+y}
7528 then :
7529 printf %s "(cached) " >&6
7530 else case e in #(
7531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 int i;
7534 int
7535 main (void)
7536 {
7537
7538 ;
7539 return 0;
7540 }
7541 _ACEOF
7542 if ac_fn_c_try_link "$LINENO"
7543 then :
7544 eval $cacheid=yes
7545 else case e in #(
7546 e) eval $cacheid=no ;;
7547 esac
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7550 conftest$ac_exeext conftest.$ac_ext ;;
7551 esac
7552 fi
7553
7554
7555 CFLAGS="$xorg_testset_save_CFLAGS"
7556
7557 eval supported=\$$cacheid
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7559 printf "%s\n" "$supported" >&6; }
7560 if test "$supported" = "yes" ; then
7561 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7562 found="yes"
7563 fi
7564 fi
7565
7566
7567
7568 # These are currently disabled because they are noisy. They will be enabled
7569 # in the future once the codebase is sufficiently modernized to silence
7570 # them. For now, I don't want them to drown out the other warnings.
7571 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7572 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7573 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7574
7575 # Turn some warnings into errors, so we don't accidentally get successful builds
7576 # when there are problems that should be fixed.
7577
7578 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592 xorg_testset_save_CFLAGS="$CFLAGS"
7593
7594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7597 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7598 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7599 then :
7600 printf %s "(cached) " >&6
7601 else case e in #(
7602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 int i;
7605 _ACEOF
7606 if ac_fn_c_try_compile "$LINENO"
7607 then :
7608 xorg_cv_cc_flag_unknown_warning_option=yes
7609 else case e in #(
7610 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7611 esac
7612 fi
7613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7614 esac
7615 fi
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7617 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7619 CFLAGS="$xorg_testset_save_CFLAGS"
7620 fi
7621
7622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625 fi
7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7630 then :
7631 printf %s "(cached) " >&6
7632 else case e in #(
7633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 int i;
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"
7638 then :
7639 xorg_cv_cc_flag_unused_command_line_argument=yes
7640 else case e in #(
7641 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7642 esac
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7645 esac
7646 fi
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7648 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7650 CFLAGS="$xorg_testset_save_CFLAGS"
7651 fi
7652
7653 found="no"
7654
7655 if test $found = "no" ; then
7656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658 fi
7659
7660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7662 fi
7663
7664 CFLAGS="$CFLAGS -Werror=implicit"
7665
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7667 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7668 cacheid=xorg_cv_cc_flag__Werror_implicit
7669 if eval test \${$cacheid+y}
7670 then :
7671 printf %s "(cached) " >&6
7672 else case e in #(
7673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7675 int i;
7676 int
7677 main (void)
7678 {
7679
7680 ;
7681 return 0;
7682 }
7683 _ACEOF
7684 if ac_fn_c_try_link "$LINENO"
7685 then :
7686 eval $cacheid=yes
7687 else case e in #(
7688 e) eval $cacheid=no ;;
7689 esac
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7692 conftest$ac_exeext conftest.$ac_ext ;;
7693 esac
7694 fi
7695
7696
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7698
7699 eval supported=\$$cacheid
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701 printf "%s\n" "$supported" >&6; }
7702 if test "$supported" = "yes" ; then
7703 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7704 found="yes"
7705 fi
7706 fi
7707
7708 if test $found = "no" ; then
7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711 fi
7712
7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7715 fi
7716
7717 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7718
7719 { 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
7720 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7721 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7722 if eval test \${$cacheid+y}
7723 then :
7724 printf %s "(cached) " >&6
7725 else case e in #(
7726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 int i;
7729 int
7730 main (void)
7731 {
7732
7733 ;
7734 return 0;
7735 }
7736 _ACEOF
7737 if ac_fn_c_try_link "$LINENO"
7738 then :
7739 eval $cacheid=yes
7740 else case e in #(
7741 e) eval $cacheid=no ;;
7742 esac
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7745 conftest$ac_exeext conftest.$ac_ext ;;
7746 esac
7747 fi
7748
7749
7750 CFLAGS="$xorg_testset_save_CFLAGS"
7751
7752 eval supported=\$$cacheid
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7754 printf "%s\n" "$supported" >&6; }
7755 if test "$supported" = "yes" ; then
7756 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7757 found="yes"
7758 fi
7759 fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775 xorg_testset_save_CFLAGS="$CFLAGS"
7776
7777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7780 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7781 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7782 then :
7783 printf %s "(cached) " >&6
7784 else case e in #(
7785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 int i;
7788 _ACEOF
7789 if ac_fn_c_try_compile "$LINENO"
7790 then :
7791 xorg_cv_cc_flag_unknown_warning_option=yes
7792 else case e in #(
7793 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7794 esac
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7797 esac
7798 fi
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7800 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7802 CFLAGS="$xorg_testset_save_CFLAGS"
7803 fi
7804
7805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7808 fi
7809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7811 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7812 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7813 then :
7814 printf %s "(cached) " >&6
7815 else case e in #(
7816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 int i;
7819 _ACEOF
7820 if ac_fn_c_try_compile "$LINENO"
7821 then :
7822 xorg_cv_cc_flag_unused_command_line_argument=yes
7823 else case e in #(
7824 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7825 esac
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7828 esac
7829 fi
7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7831 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7833 CFLAGS="$xorg_testset_save_CFLAGS"
7834 fi
7835
7836 found="no"
7837
7838 if test $found = "no" ; then
7839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7841 fi
7842
7843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845 fi
7846
7847 CFLAGS="$CFLAGS -Werror=nonnull"
7848
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7850 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7851 cacheid=xorg_cv_cc_flag__Werror_nonnull
7852 if eval test \${$cacheid+y}
7853 then :
7854 printf %s "(cached) " >&6
7855 else case e in #(
7856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 int i;
7859 int
7860 main (void)
7861 {
7862
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"
7868 then :
7869 eval $cacheid=yes
7870 else case e in #(
7871 e) eval $cacheid=no ;;
7872 esac
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7875 conftest$ac_exeext conftest.$ac_ext ;;
7876 esac
7877 fi
7878
7879
7880 CFLAGS="$xorg_testset_save_CFLAGS"
7881
7882 eval supported=\$$cacheid
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7884 printf "%s\n" "$supported" >&6; }
7885 if test "$supported" = "yes" ; then
7886 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7887 found="yes"
7888 fi
7889 fi
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905 xorg_testset_save_CFLAGS="$CFLAGS"
7906
7907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7910 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7911 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7912 then :
7913 printf %s "(cached) " >&6
7914 else case e in #(
7915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 int i;
7918 _ACEOF
7919 if ac_fn_c_try_compile "$LINENO"
7920 then :
7921 xorg_cv_cc_flag_unknown_warning_option=yes
7922 else case e in #(
7923 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7924 esac
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7927 esac
7928 fi
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7930 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7932 CFLAGS="$xorg_testset_save_CFLAGS"
7933 fi
7934
7935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7938 fi
7939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7941 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7942 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7943 then :
7944 printf %s "(cached) " >&6
7945 else case e in #(
7946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 int i;
7949 _ACEOF
7950 if ac_fn_c_try_compile "$LINENO"
7951 then :
7952 xorg_cv_cc_flag_unused_command_line_argument=yes
7953 else case e in #(
7954 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7955 esac
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7958 esac
7959 fi
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7961 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7963 CFLAGS="$xorg_testset_save_CFLAGS"
7964 fi
7965
7966 found="no"
7967
7968 if test $found = "no" ; then
7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971 fi
7972
7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975 fi
7976
7977 CFLAGS="$CFLAGS -Werror=init-self"
7978
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7980 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7981 cacheid=xorg_cv_cc_flag__Werror_init_self
7982 if eval test \${$cacheid+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else case e in #(
7986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 int i;
7989 int
7990 main (void)
7991 {
7992
7993 ;
7994 return 0;
7995 }
7996 _ACEOF
7997 if ac_fn_c_try_link "$LINENO"
7998 then :
7999 eval $cacheid=yes
8000 else case e in #(
8001 e) eval $cacheid=no ;;
8002 esac
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8005 conftest$ac_exeext conftest.$ac_ext ;;
8006 esac
8007 fi
8008
8009
8010 CFLAGS="$xorg_testset_save_CFLAGS"
8011
8012 eval supported=\$$cacheid
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8014 printf "%s\n" "$supported" >&6; }
8015 if test "$supported" = "yes" ; then
8016 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8017 found="yes"
8018 fi
8019 fi
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 xorg_testset_save_CFLAGS="$CFLAGS"
8036
8037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8040 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8041 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8042 then :
8043 printf %s "(cached) " >&6
8044 else case e in #(
8045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 int i;
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"
8050 then :
8051 xorg_cv_cc_flag_unknown_warning_option=yes
8052 else case e in #(
8053 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8054 esac
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8057 esac
8058 fi
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8060 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8062 CFLAGS="$xorg_testset_save_CFLAGS"
8063 fi
8064
8065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068 fi
8069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8071 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8072 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8073 then :
8074 printf %s "(cached) " >&6
8075 else case e in #(
8076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 int i;
8079 _ACEOF
8080 if ac_fn_c_try_compile "$LINENO"
8081 then :
8082 xorg_cv_cc_flag_unused_command_line_argument=yes
8083 else case e in #(
8084 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8085 esac
8086 fi
8087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8088 esac
8089 fi
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8093 CFLAGS="$xorg_testset_save_CFLAGS"
8094 fi
8095
8096 found="no"
8097
8098 if test $found = "no" ; then
8099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101 fi
8102
8103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8105 fi
8106
8107 CFLAGS="$CFLAGS -Werror=main"
8108
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8110 printf %s "checking if $CC supports -Werror=main... " >&6; }
8111 cacheid=xorg_cv_cc_flag__Werror_main
8112 if eval test \${$cacheid+y}
8113 then :
8114 printf %s "(cached) " >&6
8115 else case e in #(
8116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 int i;
8119 int
8120 main (void)
8121 {
8122
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_link "$LINENO"
8128 then :
8129 eval $cacheid=yes
8130 else case e in #(
8131 e) eval $cacheid=no ;;
8132 esac
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8135 conftest$ac_exeext conftest.$ac_ext ;;
8136 esac
8137 fi
8138
8139
8140 CFLAGS="$xorg_testset_save_CFLAGS"
8141
8142 eval supported=\$$cacheid
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8144 printf "%s\n" "$supported" >&6; }
8145 if test "$supported" = "yes" ; then
8146 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8147 found="yes"
8148 fi
8149 fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165 xorg_testset_save_CFLAGS="$CFLAGS"
8166
8167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8171 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8172 then :
8173 printf %s "(cached) " >&6
8174 else case e in #(
8175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 int i;
8178 _ACEOF
8179 if ac_fn_c_try_compile "$LINENO"
8180 then :
8181 xorg_cv_cc_flag_unknown_warning_option=yes
8182 else case e in #(
8183 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8184 esac
8185 fi
8186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8187 esac
8188 fi
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8190 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8192 CFLAGS="$xorg_testset_save_CFLAGS"
8193 fi
8194
8195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198 fi
8199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8201 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8202 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8203 then :
8204 printf %s "(cached) " >&6
8205 else case e in #(
8206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 int i;
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"
8211 then :
8212 xorg_cv_cc_flag_unused_command_line_argument=yes
8213 else case e in #(
8214 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8215 esac
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8218 esac
8219 fi
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8221 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8224 fi
8225
8226 found="no"
8227
8228 if test $found = "no" ; then
8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231 fi
8232
8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235 fi
8236
8237 CFLAGS="$CFLAGS -Werror=missing-braces"
8238
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8240 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8241 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8242 if eval test \${$cacheid+y}
8243 then :
8244 printf %s "(cached) " >&6
8245 else case e in #(
8246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248 int i;
8249 int
8250 main (void)
8251 {
8252
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_link "$LINENO"
8258 then :
8259 eval $cacheid=yes
8260 else case e in #(
8261 e) eval $cacheid=no ;;
8262 esac
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8265 conftest$ac_exeext conftest.$ac_ext ;;
8266 esac
8267 fi
8268
8269
8270 CFLAGS="$xorg_testset_save_CFLAGS"
8271
8272 eval supported=\$$cacheid
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8274 printf "%s\n" "$supported" >&6; }
8275 if test "$supported" = "yes" ; then
8276 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8277 found="yes"
8278 fi
8279 fi
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295 xorg_testset_save_CFLAGS="$CFLAGS"
8296
8297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8301 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8302 then :
8303 printf %s "(cached) " >&6
8304 else case e in #(
8305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 int i;
8308 _ACEOF
8309 if ac_fn_c_try_compile "$LINENO"
8310 then :
8311 xorg_cv_cc_flag_unknown_warning_option=yes
8312 else case e in #(
8313 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8314 esac
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8317 esac
8318 fi
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8322 CFLAGS="$xorg_testset_save_CFLAGS"
8323 fi
8324
8325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328 fi
8329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else case e in #(
8336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 _ACEOF
8340 if ac_fn_c_try_compile "$LINENO"
8341 then :
8342 xorg_cv_cc_flag_unused_command_line_argument=yes
8343 else case e in #(
8344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8345 esac
8346 fi
8347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8348 esac
8349 fi
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8351 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8353 CFLAGS="$xorg_testset_save_CFLAGS"
8354 fi
8355
8356 found="no"
8357
8358 if test $found = "no" ; then
8359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361 fi
8362
8363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8365 fi
8366
8367 CFLAGS="$CFLAGS -Werror=sequence-point"
8368
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8370 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8371 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8372 if eval test \${$cacheid+y}
8373 then :
8374 printf %s "(cached) " >&6
8375 else case e in #(
8376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 int i;
8379 int
8380 main (void)
8381 {
8382
8383 ;
8384 return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"
8388 then :
8389 eval $cacheid=yes
8390 else case e in #(
8391 e) eval $cacheid=no ;;
8392 esac
8393 fi
8394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8395 conftest$ac_exeext conftest.$ac_ext ;;
8396 esac
8397 fi
8398
8399
8400 CFLAGS="$xorg_testset_save_CFLAGS"
8401
8402 eval supported=\$$cacheid
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8404 printf "%s\n" "$supported" >&6; }
8405 if test "$supported" = "yes" ; then
8406 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8407 found="yes"
8408 fi
8409 fi
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425 xorg_testset_save_CFLAGS="$CFLAGS"
8426
8427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8430 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8431 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8432 then :
8433 printf %s "(cached) " >&6
8434 else case e in #(
8435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 int i;
8438 _ACEOF
8439 if ac_fn_c_try_compile "$LINENO"
8440 then :
8441 xorg_cv_cc_flag_unknown_warning_option=yes
8442 else case e in #(
8443 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8444 esac
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8447 esac
8448 fi
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8450 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8452 CFLAGS="$xorg_testset_save_CFLAGS"
8453 fi
8454
8455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8458 fi
8459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8461 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8462 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8463 then :
8464 printf %s "(cached) " >&6
8465 else case e in #(
8466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 int i;
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"
8471 then :
8472 xorg_cv_cc_flag_unused_command_line_argument=yes
8473 else case e in #(
8474 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8475 esac
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8478 esac
8479 fi
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8483 CFLAGS="$xorg_testset_save_CFLAGS"
8484 fi
8485
8486 found="no"
8487
8488 if test $found = "no" ; then
8489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8491 fi
8492
8493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8495 fi
8496
8497 CFLAGS="$CFLAGS -Werror=return-type"
8498
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8500 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8501 cacheid=xorg_cv_cc_flag__Werror_return_type
8502 if eval test \${$cacheid+y}
8503 then :
8504 printf %s "(cached) " >&6
8505 else case e in #(
8506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 int i;
8509 int
8510 main (void)
8511 {
8512
8513 ;
8514 return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"
8518 then :
8519 eval $cacheid=yes
8520 else case e in #(
8521 e) eval $cacheid=no ;;
8522 esac
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8525 conftest$ac_exeext conftest.$ac_ext ;;
8526 esac
8527 fi
8528
8529
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531
8532 eval supported=\$$cacheid
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8534 printf "%s\n" "$supported" >&6; }
8535 if test "$supported" = "yes" ; then
8536 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8537 found="yes"
8538 fi
8539 fi
8540
8541 if test $found = "no" ; then
8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544 fi
8545
8546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548 fi
8549
8550 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8551
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8553 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8554 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8555 if eval test \${$cacheid+y}
8556 then :
8557 printf %s "(cached) " >&6
8558 else case e in #(
8559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 int i;
8562 int
8563 main (void)
8564 {
8565
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"
8571 then :
8572 eval $cacheid=yes
8573 else case e in #(
8574 e) eval $cacheid=no ;;
8575 esac
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8578 conftest$ac_exeext conftest.$ac_ext ;;
8579 esac
8580 fi
8581
8582
8583 CFLAGS="$xorg_testset_save_CFLAGS"
8584
8585 eval supported=\$$cacheid
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8587 printf "%s\n" "$supported" >&6; }
8588 if test "$supported" = "yes" ; then
8589 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8590 found="yes"
8591 fi
8592 fi
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608 xorg_testset_save_CFLAGS="$CFLAGS"
8609
8610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8613 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8614 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8615 then :
8616 printf %s "(cached) " >&6
8617 else case e in #(
8618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 int i;
8621 _ACEOF
8622 if ac_fn_c_try_compile "$LINENO"
8623 then :
8624 xorg_cv_cc_flag_unknown_warning_option=yes
8625 else case e in #(
8626 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8627 esac
8628 fi
8629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8630 esac
8631 fi
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8635 CFLAGS="$xorg_testset_save_CFLAGS"
8636 fi
8637
8638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641 fi
8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8646 then :
8647 printf %s "(cached) " >&6
8648 else case e in #(
8649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 int i;
8652 _ACEOF
8653 if ac_fn_c_try_compile "$LINENO"
8654 then :
8655 xorg_cv_cc_flag_unused_command_line_argument=yes
8656 else case e in #(
8657 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8658 esac
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8661 esac
8662 fi
8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8664 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8666 CFLAGS="$xorg_testset_save_CFLAGS"
8667 fi
8668
8669 found="no"
8670
8671 if test $found = "no" ; then
8672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674 fi
8675
8676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8678 fi
8679
8680 CFLAGS="$CFLAGS -Werror=trigraphs"
8681
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8683 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8684 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8685 if eval test \${$cacheid+y}
8686 then :
8687 printf %s "(cached) " >&6
8688 else case e in #(
8689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 int i;
8692 int
8693 main (void)
8694 {
8695
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 if ac_fn_c_try_link "$LINENO"
8701 then :
8702 eval $cacheid=yes
8703 else case e in #(
8704 e) eval $cacheid=no ;;
8705 esac
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8708 conftest$ac_exeext conftest.$ac_ext ;;
8709 esac
8710 fi
8711
8712
8713 CFLAGS="$xorg_testset_save_CFLAGS"
8714
8715 eval supported=\$$cacheid
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8717 printf "%s\n" "$supported" >&6; }
8718 if test "$supported" = "yes" ; then
8719 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8720 found="yes"
8721 fi
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738 xorg_testset_save_CFLAGS="$CFLAGS"
8739
8740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8744 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8745 then :
8746 printf %s "(cached) " >&6
8747 else case e in #(
8748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 int i;
8751 _ACEOF
8752 if ac_fn_c_try_compile "$LINENO"
8753 then :
8754 xorg_cv_cc_flag_unknown_warning_option=yes
8755 else case e in #(
8756 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8757 esac
8758 fi
8759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8760 esac
8761 fi
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8765 CFLAGS="$xorg_testset_save_CFLAGS"
8766 fi
8767
8768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8771 fi
8772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8776 then :
8777 printf %s "(cached) " >&6
8778 else case e in #(
8779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 int i;
8782 _ACEOF
8783 if ac_fn_c_try_compile "$LINENO"
8784 then :
8785 xorg_cv_cc_flag_unused_command_line_argument=yes
8786 else case e in #(
8787 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8788 esac
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8791 esac
8792 fi
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8796 CFLAGS="$xorg_testset_save_CFLAGS"
8797 fi
8798
8799 found="no"
8800
8801 if test $found = "no" ; then
8802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804 fi
8805
8806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8808 fi
8809
8810 CFLAGS="$CFLAGS -Werror=array-bounds"
8811
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8813 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8814 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8815 if eval test \${$cacheid+y}
8816 then :
8817 printf %s "(cached) " >&6
8818 else case e in #(
8819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 int i;
8822 int
8823 main (void)
8824 {
8825
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 if ac_fn_c_try_link "$LINENO"
8831 then :
8832 eval $cacheid=yes
8833 else case e in #(
8834 e) eval $cacheid=no ;;
8835 esac
8836 fi
8837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8838 conftest$ac_exeext conftest.$ac_ext ;;
8839 esac
8840 fi
8841
8842
8843 CFLAGS="$xorg_testset_save_CFLAGS"
8844
8845 eval supported=\$$cacheid
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8847 printf "%s\n" "$supported" >&6; }
8848 if test "$supported" = "yes" ; then
8849 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8850 found="yes"
8851 fi
8852 fi
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868 xorg_testset_save_CFLAGS="$CFLAGS"
8869
8870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8873 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8874 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8875 then :
8876 printf %s "(cached) " >&6
8877 else case e in #(
8878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 int i;
8881 _ACEOF
8882 if ac_fn_c_try_compile "$LINENO"
8883 then :
8884 xorg_cv_cc_flag_unknown_warning_option=yes
8885 else case e in #(
8886 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8887 esac
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8890 esac
8891 fi
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8893 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8895 CFLAGS="$xorg_testset_save_CFLAGS"
8896 fi
8897
8898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901 fi
8902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8904 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8905 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8906 then :
8907 printf %s "(cached) " >&6
8908 else case e in #(
8909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 int i;
8912 _ACEOF
8913 if ac_fn_c_try_compile "$LINENO"
8914 then :
8915 xorg_cv_cc_flag_unused_command_line_argument=yes
8916 else case e in #(
8917 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8918 esac
8919 fi
8920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8921 esac
8922 fi
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8924 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8926 CFLAGS="$xorg_testset_save_CFLAGS"
8927 fi
8928
8929 found="no"
8930
8931 if test $found = "no" ; then
8932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8934 fi
8935
8936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8938 fi
8939
8940 CFLAGS="$CFLAGS -Werror=write-strings"
8941
8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8943 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8944 cacheid=xorg_cv_cc_flag__Werror_write_strings
8945 if eval test \${$cacheid+y}
8946 then :
8947 printf %s "(cached) " >&6
8948 else case e in #(
8949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 int i;
8952 int
8953 main (void)
8954 {
8955
8956 ;
8957 return 0;
8958 }
8959 _ACEOF
8960 if ac_fn_c_try_link "$LINENO"
8961 then :
8962 eval $cacheid=yes
8963 else case e in #(
8964 e) eval $cacheid=no ;;
8965 esac
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8968 conftest$ac_exeext conftest.$ac_ext ;;
8969 esac
8970 fi
8971
8972
8973 CFLAGS="$xorg_testset_save_CFLAGS"
8974
8975 eval supported=\$$cacheid
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8977 printf "%s\n" "$supported" >&6; }
8978 if test "$supported" = "yes" ; then
8979 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8980 found="yes"
8981 fi
8982 fi
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998 xorg_testset_save_CFLAGS="$CFLAGS"
8999
9000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9003 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9004 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9005 then :
9006 printf %s "(cached) " >&6
9007 else case e in #(
9008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 int i;
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"
9013 then :
9014 xorg_cv_cc_flag_unknown_warning_option=yes
9015 else case e in #(
9016 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9017 esac
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9020 esac
9021 fi
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9023 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9025 CFLAGS="$xorg_testset_save_CFLAGS"
9026 fi
9027
9028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9031 fi
9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9034 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9035 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9036 then :
9037 printf %s "(cached) " >&6
9038 else case e in #(
9039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 int i;
9042 _ACEOF
9043 if ac_fn_c_try_compile "$LINENO"
9044 then :
9045 xorg_cv_cc_flag_unused_command_line_argument=yes
9046 else case e in #(
9047 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9048 esac
9049 fi
9050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9051 esac
9052 fi
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9054 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9056 CFLAGS="$xorg_testset_save_CFLAGS"
9057 fi
9058
9059 found="no"
9060
9061 if test $found = "no" ; then
9062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9064 fi
9065
9066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9068 fi
9069
9070 CFLAGS="$CFLAGS -Werror=address"
9071
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9073 printf %s "checking if $CC supports -Werror=address... " >&6; }
9074 cacheid=xorg_cv_cc_flag__Werror_address
9075 if eval test \${$cacheid+y}
9076 then :
9077 printf %s "(cached) " >&6
9078 else case e in #(
9079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 int i;
9082 int
9083 main (void)
9084 {
9085
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 if ac_fn_c_try_link "$LINENO"
9091 then :
9092 eval $cacheid=yes
9093 else case e in #(
9094 e) eval $cacheid=no ;;
9095 esac
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9098 conftest$ac_exeext conftest.$ac_ext ;;
9099 esac
9100 fi
9101
9102
9103 CFLAGS="$xorg_testset_save_CFLAGS"
9104
9105 eval supported=\$$cacheid
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9107 printf "%s\n" "$supported" >&6; }
9108 if test "$supported" = "yes" ; then
9109 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9110 found="yes"
9111 fi
9112 fi
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128 xorg_testset_save_CFLAGS="$CFLAGS"
9129
9130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9134 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9135 then :
9136 printf %s "(cached) " >&6
9137 else case e in #(
9138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 int i;
9141 _ACEOF
9142 if ac_fn_c_try_compile "$LINENO"
9143 then :
9144 xorg_cv_cc_flag_unknown_warning_option=yes
9145 else case e in #(
9146 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9147 esac
9148 fi
9149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9150 esac
9151 fi
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9155 CFLAGS="$xorg_testset_save_CFLAGS"
9156 fi
9157
9158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161 fi
9162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9166 then :
9167 printf %s "(cached) " >&6
9168 else case e in #(
9169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 int i;
9172 _ACEOF
9173 if ac_fn_c_try_compile "$LINENO"
9174 then :
9175 xorg_cv_cc_flag_unused_command_line_argument=yes
9176 else case e in #(
9177 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9178 esac
9179 fi
9180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9181 esac
9182 fi
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9184 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187 fi
9188
9189 found="no"
9190
9191 if test $found = "no" ; then
9192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194 fi
9195
9196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9198 fi
9199
9200 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9201
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9203 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9204 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9205 if eval test \${$cacheid+y}
9206 then :
9207 printf %s "(cached) " >&6
9208 else case e in #(
9209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 int i;
9212 int
9213 main (void)
9214 {
9215
9216 ;
9217 return 0;
9218 }
9219 _ACEOF
9220 if ac_fn_c_try_link "$LINENO"
9221 then :
9222 eval $cacheid=yes
9223 else case e in #(
9224 e) eval $cacheid=no ;;
9225 esac
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9228 conftest$ac_exeext conftest.$ac_ext ;;
9229 esac
9230 fi
9231
9232
9233 CFLAGS="$xorg_testset_save_CFLAGS"
9234
9235 eval supported=\$$cacheid
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9237 printf "%s\n" "$supported" >&6; }
9238 if test "$supported" = "yes" ; then
9239 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9240 found="yes"
9241 fi
9242 fi
9243
9244 if test $found = "no" ; then
9245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 fi
9248
9249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251 fi
9252
9253 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9254
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9256 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9257 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9258 if eval test \${$cacheid+y}
9259 then :
9260 printf %s "(cached) " >&6
9261 else case e in #(
9262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 int i;
9265 int
9266 main (void)
9267 {
9268
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"
9274 then :
9275 eval $cacheid=yes
9276 else case e in #(
9277 e) eval $cacheid=no ;;
9278 esac
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9281 conftest$ac_exeext conftest.$ac_ext ;;
9282 esac
9283 fi
9284
9285
9286 CFLAGS="$xorg_testset_save_CFLAGS"
9287
9288 eval supported=\$$cacheid
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9290 printf "%s\n" "$supported" >&6; }
9291 if test "$supported" = "yes" ; then
9292 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9293 found="yes"
9294 fi
9295 fi
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311 xorg_testset_save_CFLAGS="$CFLAGS"
9312
9313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9318 then :
9319 printf %s "(cached) " >&6
9320 else case e in #(
9321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9323 int i;
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"
9326 then :
9327 xorg_cv_cc_flag_unknown_warning_option=yes
9328 else case e in #(
9329 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9330 esac
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9333 esac
9334 fi
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9336 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9338 CFLAGS="$xorg_testset_save_CFLAGS"
9339 fi
9340
9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344 fi
9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9349 then :
9350 printf %s "(cached) " >&6
9351 else case e in #(
9352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 int i;
9355 _ACEOF
9356 if ac_fn_c_try_compile "$LINENO"
9357 then :
9358 xorg_cv_cc_flag_unused_command_line_argument=yes
9359 else case e in #(
9360 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9361 esac
9362 fi
9363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9364 esac
9365 fi
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9369 CFLAGS="$xorg_testset_save_CFLAGS"
9370 fi
9371
9372 found="no"
9373
9374 if test $found = "no" ; then
9375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377 fi
9378
9379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9381 fi
9382
9383 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9384
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9386 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9387 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9388 if eval test \${$cacheid+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else case e in #(
9392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 int i;
9395 int
9396 main (void)
9397 {
9398
9399 ;
9400 return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"
9404 then :
9405 eval $cacheid=yes
9406 else case e in #(
9407 e) eval $cacheid=no ;;
9408 esac
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9411 conftest$ac_exeext conftest.$ac_ext ;;
9412 esac
9413 fi
9414
9415
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417
9418 eval supported=\$$cacheid
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9420 printf "%s\n" "$supported" >&6; }
9421 if test "$supported" = "yes" ; then
9422 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9423 found="yes"
9424 fi
9425 fi
9426
9427 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9428 else
9429 { 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
9430 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;}
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444 xorg_testset_save_CFLAGS="$CFLAGS"
9445
9446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9449 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9450 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9451 then :
9452 printf %s "(cached) " >&6
9453 else case e in #(
9454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 int i;
9457 _ACEOF
9458 if ac_fn_c_try_compile "$LINENO"
9459 then :
9460 xorg_cv_cc_flag_unknown_warning_option=yes
9461 else case e in #(
9462 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9463 esac
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9466 esac
9467 fi
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9469 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9471 CFLAGS="$xorg_testset_save_CFLAGS"
9472 fi
9473
9474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9477 fi
9478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9480 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9481 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9482 then :
9483 printf %s "(cached) " >&6
9484 else case e in #(
9485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9487 int i;
9488 _ACEOF
9489 if ac_fn_c_try_compile "$LINENO"
9490 then :
9491 xorg_cv_cc_flag_unused_command_line_argument=yes
9492 else case e in #(
9493 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9494 esac
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9497 esac
9498 fi
9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9500 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9502 CFLAGS="$xorg_testset_save_CFLAGS"
9503 fi
9504
9505 found="no"
9506
9507 if test $found = "no" ; then
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 fi
9511
9512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9514 fi
9515
9516 CFLAGS="$CFLAGS -Wimplicit"
9517
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9519 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9520 cacheid=xorg_cv_cc_flag__Wimplicit
9521 if eval test \${$cacheid+y}
9522 then :
9523 printf %s "(cached) " >&6
9524 else case e in #(
9525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 int i;
9528 int
9529 main (void)
9530 {
9531
9532 ;
9533 return 0;
9534 }
9535 _ACEOF
9536 if ac_fn_c_try_link "$LINENO"
9537 then :
9538 eval $cacheid=yes
9539 else case e in #(
9540 e) eval $cacheid=no ;;
9541 esac
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9544 conftest$ac_exeext conftest.$ac_ext ;;
9545 esac
9546 fi
9547
9548
9549 CFLAGS="$xorg_testset_save_CFLAGS"
9550
9551 eval supported=\$$cacheid
9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9553 printf "%s\n" "$supported" >&6; }
9554 if test "$supported" = "yes" ; then
9555 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9556 found="yes"
9557 fi
9558 fi
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574 xorg_testset_save_CFLAGS="$CFLAGS"
9575
9576 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9579 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9580 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9581 then :
9582 printf %s "(cached) " >&6
9583 else case e in #(
9584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 int i;
9587 _ACEOF
9588 if ac_fn_c_try_compile "$LINENO"
9589 then :
9590 xorg_cv_cc_flag_unknown_warning_option=yes
9591 else case e in #(
9592 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9593 esac
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9596 esac
9597 fi
9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9599 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9601 CFLAGS="$xorg_testset_save_CFLAGS"
9602 fi
9603
9604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9607 fi
9608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9610 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9611 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9612 then :
9613 printf %s "(cached) " >&6
9614 else case e in #(
9615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 _ACEOF
9619 if ac_fn_c_try_compile "$LINENO"
9620 then :
9621 xorg_cv_cc_flag_unused_command_line_argument=yes
9622 else case e in #(
9623 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9624 esac
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9627 esac
9628 fi
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9630 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9632 CFLAGS="$xorg_testset_save_CFLAGS"
9633 fi
9634
9635 found="no"
9636
9637 if test $found = "no" ; then
9638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640 fi
9641
9642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9644 fi
9645
9646 CFLAGS="$CFLAGS -Wnonnull"
9647
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9649 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9650 cacheid=xorg_cv_cc_flag__Wnonnull
9651 if eval test \${$cacheid+y}
9652 then :
9653 printf %s "(cached) " >&6
9654 else case e in #(
9655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 int i;
9658 int
9659 main (void)
9660 {
9661
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 if ac_fn_c_try_link "$LINENO"
9667 then :
9668 eval $cacheid=yes
9669 else case e in #(
9670 e) eval $cacheid=no ;;
9671 esac
9672 fi
9673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9674 conftest$ac_exeext conftest.$ac_ext ;;
9675 esac
9676 fi
9677
9678
9679 CFLAGS="$xorg_testset_save_CFLAGS"
9680
9681 eval supported=\$$cacheid
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9683 printf "%s\n" "$supported" >&6; }
9684 if test "$supported" = "yes" ; then
9685 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9686 found="yes"
9687 fi
9688 fi
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704 xorg_testset_save_CFLAGS="$CFLAGS"
9705
9706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9710 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9711 then :
9712 printf %s "(cached) " >&6
9713 else case e in #(
9714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 int i;
9717 _ACEOF
9718 if ac_fn_c_try_compile "$LINENO"
9719 then :
9720 xorg_cv_cc_flag_unknown_warning_option=yes
9721 else case e in #(
9722 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9723 esac
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9726 esac
9727 fi
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9729 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9731 CFLAGS="$xorg_testset_save_CFLAGS"
9732 fi
9733
9734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737 fi
9738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9740 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9741 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9742 then :
9743 printf %s "(cached) " >&6
9744 else case e in #(
9745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 int i;
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"
9750 then :
9751 xorg_cv_cc_flag_unused_command_line_argument=yes
9752 else case e in #(
9753 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9754 esac
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9757 esac
9758 fi
9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9760 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9762 CFLAGS="$xorg_testset_save_CFLAGS"
9763 fi
9764
9765 found="no"
9766
9767 if test $found = "no" ; then
9768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770 fi
9771
9772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9774 fi
9775
9776 CFLAGS="$CFLAGS -Winit-self"
9777
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9779 printf %s "checking if $CC supports -Winit-self... " >&6; }
9780 cacheid=xorg_cv_cc_flag__Winit_self
9781 if eval test \${$cacheid+y}
9782 then :
9783 printf %s "(cached) " >&6
9784 else case e in #(
9785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9787 int i;
9788 int
9789 main (void)
9790 {
9791
9792 ;
9793 return 0;
9794 }
9795 _ACEOF
9796 if ac_fn_c_try_link "$LINENO"
9797 then :
9798 eval $cacheid=yes
9799 else case e in #(
9800 e) eval $cacheid=no ;;
9801 esac
9802 fi
9803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9804 conftest$ac_exeext conftest.$ac_ext ;;
9805 esac
9806 fi
9807
9808
9809 CFLAGS="$xorg_testset_save_CFLAGS"
9810
9811 eval supported=\$$cacheid
9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9813 printf "%s\n" "$supported" >&6; }
9814 if test "$supported" = "yes" ; then
9815 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9816 found="yes"
9817 fi
9818 fi
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834 xorg_testset_save_CFLAGS="$CFLAGS"
9835
9836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9839 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9840 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9841 then :
9842 printf %s "(cached) " >&6
9843 else case e in #(
9844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 int i;
9847 _ACEOF
9848 if ac_fn_c_try_compile "$LINENO"
9849 then :
9850 xorg_cv_cc_flag_unknown_warning_option=yes
9851 else case e in #(
9852 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9853 esac
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9856 esac
9857 fi
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9859 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9861 CFLAGS="$xorg_testset_save_CFLAGS"
9862 fi
9863
9864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867 fi
9868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9870 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9871 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9872 then :
9873 printf %s "(cached) " >&6
9874 else case e in #(
9875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877 int i;
9878 _ACEOF
9879 if ac_fn_c_try_compile "$LINENO"
9880 then :
9881 xorg_cv_cc_flag_unused_command_line_argument=yes
9882 else case e in #(
9883 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9884 esac
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9887 esac
9888 fi
9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9892 CFLAGS="$xorg_testset_save_CFLAGS"
9893 fi
9894
9895 found="no"
9896
9897 if test $found = "no" ; then
9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900 fi
9901
9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9904 fi
9905
9906 CFLAGS="$CFLAGS -Wmain"
9907
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9909 printf %s "checking if $CC supports -Wmain... " >&6; }
9910 cacheid=xorg_cv_cc_flag__Wmain
9911 if eval test \${$cacheid+y}
9912 then :
9913 printf %s "(cached) " >&6
9914 else case e in #(
9915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 int i;
9918 int
9919 main (void)
9920 {
9921
9922 ;
9923 return 0;
9924 }
9925 _ACEOF
9926 if ac_fn_c_try_link "$LINENO"
9927 then :
9928 eval $cacheid=yes
9929 else case e in #(
9930 e) eval $cacheid=no ;;
9931 esac
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9934 conftest$ac_exeext conftest.$ac_ext ;;
9935 esac
9936 fi
9937
9938
9939 CFLAGS="$xorg_testset_save_CFLAGS"
9940
9941 eval supported=\$$cacheid
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9943 printf "%s\n" "$supported" >&6; }
9944 if test "$supported" = "yes" ; then
9945 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9946 found="yes"
9947 fi
9948 fi
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964 xorg_testset_save_CFLAGS="$CFLAGS"
9965
9966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9969 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9970 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9971 then :
9972 printf %s "(cached) " >&6
9973 else case e in #(
9974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 int i;
9977 _ACEOF
9978 if ac_fn_c_try_compile "$LINENO"
9979 then :
9980 xorg_cv_cc_flag_unknown_warning_option=yes
9981 else case e in #(
9982 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9983 esac
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9986 esac
9987 fi
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9991 CFLAGS="$xorg_testset_save_CFLAGS"
9992 fi
9993
9994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997 fi
9998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10002 then :
10003 printf %s "(cached) " >&6
10004 else case e in #(
10005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 int i;
10008 _ACEOF
10009 if ac_fn_c_try_compile "$LINENO"
10010 then :
10011 xorg_cv_cc_flag_unused_command_line_argument=yes
10012 else case e in #(
10013 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10014 esac
10015 fi
10016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10017 esac
10018 fi
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10020 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10022 CFLAGS="$xorg_testset_save_CFLAGS"
10023 fi
10024
10025 found="no"
10026
10027 if test $found = "no" ; then
10028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030 fi
10031
10032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10034 fi
10035
10036 CFLAGS="$CFLAGS -Wmissing-braces"
10037
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10039 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10040 cacheid=xorg_cv_cc_flag__Wmissing_braces
10041 if eval test \${$cacheid+y}
10042 then :
10043 printf %s "(cached) " >&6
10044 else case e in #(
10045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 int i;
10048 int
10049 main (void)
10050 {
10051
10052 ;
10053 return 0;
10054 }
10055 _ACEOF
10056 if ac_fn_c_try_link "$LINENO"
10057 then :
10058 eval $cacheid=yes
10059 else case e in #(
10060 e) eval $cacheid=no ;;
10061 esac
10062 fi
10063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10064 conftest$ac_exeext conftest.$ac_ext ;;
10065 esac
10066 fi
10067
10068
10069 CFLAGS="$xorg_testset_save_CFLAGS"
10070
10071 eval supported=\$$cacheid
10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10073 printf "%s\n" "$supported" >&6; }
10074 if test "$supported" = "yes" ; then
10075 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10076 found="yes"
10077 fi
10078 fi
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094 xorg_testset_save_CFLAGS="$CFLAGS"
10095
10096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10099 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10100 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10101 then :
10102 printf %s "(cached) " >&6
10103 else case e in #(
10104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 int i;
10107 _ACEOF
10108 if ac_fn_c_try_compile "$LINENO"
10109 then :
10110 xorg_cv_cc_flag_unknown_warning_option=yes
10111 else case e in #(
10112 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10113 esac
10114 fi
10115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10116 esac
10117 fi
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10119 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10121 CFLAGS="$xorg_testset_save_CFLAGS"
10122 fi
10123
10124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127 fi
10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10130 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10131 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10132 then :
10133 printf %s "(cached) " >&6
10134 else case e in #(
10135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137 int i;
10138 _ACEOF
10139 if ac_fn_c_try_compile "$LINENO"
10140 then :
10141 xorg_cv_cc_flag_unused_command_line_argument=yes
10142 else case e in #(
10143 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10144 esac
10145 fi
10146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10147 esac
10148 fi
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10150 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10152 CFLAGS="$xorg_testset_save_CFLAGS"
10153 fi
10154
10155 found="no"
10156
10157 if test $found = "no" ; then
10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160 fi
10161
10162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10164 fi
10165
10166 CFLAGS="$CFLAGS -Wsequence-point"
10167
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10169 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10170 cacheid=xorg_cv_cc_flag__Wsequence_point
10171 if eval test \${$cacheid+y}
10172 then :
10173 printf %s "(cached) " >&6
10174 else case e in #(
10175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 int i;
10178 int
10179 main (void)
10180 {
10181
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"
10187 then :
10188 eval $cacheid=yes
10189 else case e in #(
10190 e) eval $cacheid=no ;;
10191 esac
10192 fi
10193 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10194 conftest$ac_exeext conftest.$ac_ext ;;
10195 esac
10196 fi
10197
10198
10199 CFLAGS="$xorg_testset_save_CFLAGS"
10200
10201 eval supported=\$$cacheid
10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10203 printf "%s\n" "$supported" >&6; }
10204 if test "$supported" = "yes" ; then
10205 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10206 found="yes"
10207 fi
10208 fi
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224 xorg_testset_save_CFLAGS="$CFLAGS"
10225
10226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10229 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10230 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10231 then :
10232 printf %s "(cached) " >&6
10233 else case e in #(
10234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 int i;
10237 _ACEOF
10238 if ac_fn_c_try_compile "$LINENO"
10239 then :
10240 xorg_cv_cc_flag_unknown_warning_option=yes
10241 else case e in #(
10242 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10243 esac
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10246 esac
10247 fi
10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10249 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10251 CFLAGS="$xorg_testset_save_CFLAGS"
10252 fi
10253
10254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257 fi
10258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10260 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10261 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10262 then :
10263 printf %s "(cached) " >&6
10264 else case e in #(
10265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267 int i;
10268 _ACEOF
10269 if ac_fn_c_try_compile "$LINENO"
10270 then :
10271 xorg_cv_cc_flag_unused_command_line_argument=yes
10272 else case e in #(
10273 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10274 esac
10275 fi
10276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10277 esac
10278 fi
10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10280 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10282 CFLAGS="$xorg_testset_save_CFLAGS"
10283 fi
10284
10285 found="no"
10286
10287 if test $found = "no" ; then
10288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290 fi
10291
10292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10294 fi
10295
10296 CFLAGS="$CFLAGS -Wreturn-type"
10297
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10299 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10300 cacheid=xorg_cv_cc_flag__Wreturn_type
10301 if eval test \${$cacheid+y}
10302 then :
10303 printf %s "(cached) " >&6
10304 else case e in #(
10305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 int i;
10308 int
10309 main (void)
10310 {
10311
10312 ;
10313 return 0;
10314 }
10315 _ACEOF
10316 if ac_fn_c_try_link "$LINENO"
10317 then :
10318 eval $cacheid=yes
10319 else case e in #(
10320 e) eval $cacheid=no ;;
10321 esac
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10324 conftest$ac_exeext conftest.$ac_ext ;;
10325 esac
10326 fi
10327
10328
10329 CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331 eval supported=\$$cacheid
10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333 printf "%s\n" "$supported" >&6; }
10334 if test "$supported" = "yes" ; then
10335 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10336 found="yes"
10337 fi
10338 fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354 xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361 then :
10362 printf %s "(cached) " >&6
10363 else case e in #(
10364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int i;
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"
10369 then :
10370 xorg_cv_cc_flag_unknown_warning_option=yes
10371 else case e in #(
10372 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10373 esac
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10376 esac
10377 fi
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10379 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10381 CFLAGS="$xorg_testset_save_CFLAGS"
10382 fi
10383
10384 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387 fi
10388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10390 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10391 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10392 then :
10393 printf %s "(cached) " >&6
10394 else case e in #(
10395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397 int i;
10398 _ACEOF
10399 if ac_fn_c_try_compile "$LINENO"
10400 then :
10401 xorg_cv_cc_flag_unused_command_line_argument=yes
10402 else case e in #(
10403 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10404 esac
10405 fi
10406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10407 esac
10408 fi
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10410 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10412 CFLAGS="$xorg_testset_save_CFLAGS"
10413 fi
10414
10415 found="no"
10416
10417 if test $found = "no" ; then
10418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10420 fi
10421
10422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10424 fi
10425
10426 CFLAGS="$CFLAGS -Wtrigraphs"
10427
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10429 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10430 cacheid=xorg_cv_cc_flag__Wtrigraphs
10431 if eval test \${$cacheid+y}
10432 then :
10433 printf %s "(cached) " >&6
10434 else case e in #(
10435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 int i;
10438 int
10439 main (void)
10440 {
10441
10442 ;
10443 return 0;
10444 }
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"
10447 then :
10448 eval $cacheid=yes
10449 else case e in #(
10450 e) eval $cacheid=no ;;
10451 esac
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10454 conftest$ac_exeext conftest.$ac_ext ;;
10455 esac
10456 fi
10457
10458
10459 CFLAGS="$xorg_testset_save_CFLAGS"
10460
10461 eval supported=\$$cacheid
10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10463 printf "%s\n" "$supported" >&6; }
10464 if test "$supported" = "yes" ; then
10465 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10466 found="yes"
10467 fi
10468 fi
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484 xorg_testset_save_CFLAGS="$CFLAGS"
10485
10486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10489 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10490 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10491 then :
10492 printf %s "(cached) " >&6
10493 else case e in #(
10494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496 int i;
10497 _ACEOF
10498 if ac_fn_c_try_compile "$LINENO"
10499 then :
10500 xorg_cv_cc_flag_unknown_warning_option=yes
10501 else case e in #(
10502 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10503 esac
10504 fi
10505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10506 esac
10507 fi
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10511 CFLAGS="$xorg_testset_save_CFLAGS"
10512 fi
10513
10514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10517 fi
10518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10522 then :
10523 printf %s "(cached) " >&6
10524 else case e in #(
10525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527 int i;
10528 _ACEOF
10529 if ac_fn_c_try_compile "$LINENO"
10530 then :
10531 xorg_cv_cc_flag_unused_command_line_argument=yes
10532 else case e in #(
10533 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10534 esac
10535 fi
10536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10537 esac
10538 fi
10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10540 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10542 CFLAGS="$xorg_testset_save_CFLAGS"
10543 fi
10544
10545 found="no"
10546
10547 if test $found = "no" ; then
10548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10550 fi
10551
10552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10554 fi
10555
10556 CFLAGS="$CFLAGS -Warray-bounds"
10557
10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10559 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10560 cacheid=xorg_cv_cc_flag__Warray_bounds
10561 if eval test \${$cacheid+y}
10562 then :
10563 printf %s "(cached) " >&6
10564 else case e in #(
10565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10567 int i;
10568 int
10569 main (void)
10570 {
10571
10572 ;
10573 return 0;
10574 }
10575 _ACEOF
10576 if ac_fn_c_try_link "$LINENO"
10577 then :
10578 eval $cacheid=yes
10579 else case e in #(
10580 e) eval $cacheid=no ;;
10581 esac
10582 fi
10583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10584 conftest$ac_exeext conftest.$ac_ext ;;
10585 esac
10586 fi
10587
10588
10589 CFLAGS="$xorg_testset_save_CFLAGS"
10590
10591 eval supported=\$$cacheid
10592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10593 printf "%s\n" "$supported" >&6; }
10594 if test "$supported" = "yes" ; then
10595 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10596 found="yes"
10597 fi
10598 fi
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 xorg_testset_save_CFLAGS="$CFLAGS"
10615
10616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10620 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10621 then :
10622 printf %s "(cached) " >&6
10623 else case e in #(
10624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 int i;
10627 _ACEOF
10628 if ac_fn_c_try_compile "$LINENO"
10629 then :
10630 xorg_cv_cc_flag_unknown_warning_option=yes
10631 else case e in #(
10632 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10633 esac
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10636 esac
10637 fi
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10639 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10641 CFLAGS="$xorg_testset_save_CFLAGS"
10642 fi
10643
10644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10647 fi
10648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10650 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10651 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10652 then :
10653 printf %s "(cached) " >&6
10654 else case e in #(
10655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 int i;
10658 _ACEOF
10659 if ac_fn_c_try_compile "$LINENO"
10660 then :
10661 xorg_cv_cc_flag_unused_command_line_argument=yes
10662 else case e in #(
10663 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10664 esac
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10667 esac
10668 fi
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10670 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10672 CFLAGS="$xorg_testset_save_CFLAGS"
10673 fi
10674
10675 found="no"
10676
10677 if test $found = "no" ; then
10678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10680 fi
10681
10682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10684 fi
10685
10686 CFLAGS="$CFLAGS -Wwrite-strings"
10687
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10689 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10690 cacheid=xorg_cv_cc_flag__Wwrite_strings
10691 if eval test \${$cacheid+y}
10692 then :
10693 printf %s "(cached) " >&6
10694 else case e in #(
10695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 int i;
10698 int
10699 main (void)
10700 {
10701
10702 ;
10703 return 0;
10704 }
10705 _ACEOF
10706 if ac_fn_c_try_link "$LINENO"
10707 then :
10708 eval $cacheid=yes
10709 else case e in #(
10710 e) eval $cacheid=no ;;
10711 esac
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10714 conftest$ac_exeext conftest.$ac_ext ;;
10715 esac
10716 fi
10717
10718
10719 CFLAGS="$xorg_testset_save_CFLAGS"
10720
10721 eval supported=\$$cacheid
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10723 printf "%s\n" "$supported" >&6; }
10724 if test "$supported" = "yes" ; then
10725 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10726 found="yes"
10727 fi
10728 fi
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744 xorg_testset_save_CFLAGS="$CFLAGS"
10745
10746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10749 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10750 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10751 then :
10752 printf %s "(cached) " >&6
10753 else case e in #(
10754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 int i;
10757 _ACEOF
10758 if ac_fn_c_try_compile "$LINENO"
10759 then :
10760 xorg_cv_cc_flag_unknown_warning_option=yes
10761 else case e in #(
10762 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10763 esac
10764 fi
10765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10766 esac
10767 fi
10768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10769 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10771 CFLAGS="$xorg_testset_save_CFLAGS"
10772 fi
10773
10774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10777 fi
10778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10780 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10781 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10782 then :
10783 printf %s "(cached) " >&6
10784 else case e in #(
10785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787 int i;
10788 _ACEOF
10789 if ac_fn_c_try_compile "$LINENO"
10790 then :
10791 xorg_cv_cc_flag_unused_command_line_argument=yes
10792 else case e in #(
10793 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10794 esac
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10797 esac
10798 fi
10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10800 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10802 CFLAGS="$xorg_testset_save_CFLAGS"
10803 fi
10804
10805 found="no"
10806
10807 if test $found = "no" ; then
10808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10810 fi
10811
10812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10814 fi
10815
10816 CFLAGS="$CFLAGS -Waddress"
10817
10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10819 printf %s "checking if $CC supports -Waddress... " >&6; }
10820 cacheid=xorg_cv_cc_flag__Waddress
10821 if eval test \${$cacheid+y}
10822 then :
10823 printf %s "(cached) " >&6
10824 else case e in #(
10825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 int i;
10828 int
10829 main (void)
10830 {
10831
10832 ;
10833 return 0;
10834 }
10835 _ACEOF
10836 if ac_fn_c_try_link "$LINENO"
10837 then :
10838 eval $cacheid=yes
10839 else case e in #(
10840 e) eval $cacheid=no ;;
10841 esac
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10844 conftest$ac_exeext conftest.$ac_ext ;;
10845 esac
10846 fi
10847
10848
10849 CFLAGS="$xorg_testset_save_CFLAGS"
10850
10851 eval supported=\$$cacheid
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10853 printf "%s\n" "$supported" >&6; }
10854 if test "$supported" = "yes" ; then
10855 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10856 found="yes"
10857 fi
10858 fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874 xorg_testset_save_CFLAGS="$CFLAGS"
10875
10876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10879 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10880 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10881 then :
10882 printf %s "(cached) " >&6
10883 else case e in #(
10884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886 int i;
10887 _ACEOF
10888 if ac_fn_c_try_compile "$LINENO"
10889 then :
10890 xorg_cv_cc_flag_unknown_warning_option=yes
10891 else case e in #(
10892 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10893 esac
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10896 esac
10897 fi
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10899 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10901 CFLAGS="$xorg_testset_save_CFLAGS"
10902 fi
10903
10904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10907 fi
10908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10910 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10911 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10912 then :
10913 printf %s "(cached) " >&6
10914 else case e in #(
10915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10917 int i;
10918 _ACEOF
10919 if ac_fn_c_try_compile "$LINENO"
10920 then :
10921 xorg_cv_cc_flag_unused_command_line_argument=yes
10922 else case e in #(
10923 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10924 esac
10925 fi
10926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10927 esac
10928 fi
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10930 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10932 CFLAGS="$xorg_testset_save_CFLAGS"
10933 fi
10934
10935 found="no"
10936
10937 if test $found = "no" ; then
10938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10940 fi
10941
10942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10944 fi
10945
10946 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10947
10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10949 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10950 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10951 if eval test \${$cacheid+y}
10952 then :
10953 printf %s "(cached) " >&6
10954 else case e in #(
10955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957 int i;
10958 int
10959 main (void)
10960 {
10961
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"
10967 then :
10968 eval $cacheid=yes
10969 else case e in #(
10970 e) eval $cacheid=no ;;
10971 esac
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10974 conftest$ac_exeext conftest.$ac_ext ;;
10975 esac
10976 fi
10977
10978
10979 CFLAGS="$xorg_testset_save_CFLAGS"
10980
10981 eval supported=\$$cacheid
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10983 printf "%s\n" "$supported" >&6; }
10984 if test "$supported" = "yes" ; then
10985 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10986 found="yes"
10987 fi
10988 fi
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004 xorg_testset_save_CFLAGS="$CFLAGS"
11005
11006 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11009 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11010 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11011 then :
11012 printf %s "(cached) " >&6
11013 else case e in #(
11014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016 int i;
11017 _ACEOF
11018 if ac_fn_c_try_compile "$LINENO"
11019 then :
11020 xorg_cv_cc_flag_unknown_warning_option=yes
11021 else case e in #(
11022 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11023 esac
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11026 esac
11027 fi
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11029 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11031 CFLAGS="$xorg_testset_save_CFLAGS"
11032 fi
11033
11034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11037 fi
11038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11040 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11041 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11042 then :
11043 printf %s "(cached) " >&6
11044 else case e in #(
11045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11047 int i;
11048 _ACEOF
11049 if ac_fn_c_try_compile "$LINENO"
11050 then :
11051 xorg_cv_cc_flag_unused_command_line_argument=yes
11052 else case e in #(
11053 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11054 esac
11055 fi
11056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11057 esac
11058 fi
11059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11060 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11062 CFLAGS="$xorg_testset_save_CFLAGS"
11063 fi
11064
11065 found="no"
11066
11067 if test $found = "no" ; then
11068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070 fi
11071
11072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074 fi
11075
11076 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11077
11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11079 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11080 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11081 if eval test \${$cacheid+y}
11082 then :
11083 printf %s "(cached) " >&6
11084 else case e in #(
11085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 int i;
11088 int
11089 main (void)
11090 {
11091
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_c_try_link "$LINENO"
11097 then :
11098 eval $cacheid=yes
11099 else case e in #(
11100 e) eval $cacheid=no ;;
11101 esac
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11104 conftest$ac_exeext conftest.$ac_ext ;;
11105 esac
11106 fi
11107
11108
11109 CFLAGS="$xorg_testset_save_CFLAGS"
11110
11111 eval supported=\$$cacheid
11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11113 printf "%s\n" "$supported" >&6; }
11114 if test "$supported" = "yes" ; then
11115 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11116 found="yes"
11117 fi
11118 fi
11119
11120
11121 fi
11122
11123
11124
11125
11126
11127
11128
11129 CWARNFLAGS="$BASE_CFLAGS"
11130 if test "x$GCC" = xyes ; then
11131 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11132 fi
11133
11134
11135
11136
11137
11138
11139
11140
11141 # Check whether --enable-strict-compilation was given.
11142 if test ${enable_strict_compilation+y}
11143 then :
11144 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11145 else case e in #(
11146 e) STRICT_COMPILE=no ;;
11147 esac
11148 fi
11149
11150
11151
11152
11153
11154
11155 STRICT_CFLAGS=""
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169 xorg_testset_save_CFLAGS="$CFLAGS"
11170
11171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11174 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11175 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11176 then :
11177 printf %s "(cached) " >&6
11178 else case e in #(
11179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11181 int i;
11182 _ACEOF
11183 if ac_fn_c_try_compile "$LINENO"
11184 then :
11185 xorg_cv_cc_flag_unknown_warning_option=yes
11186 else case e in #(
11187 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11188 esac
11189 fi
11190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11191 esac
11192 fi
11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11194 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11196 CFLAGS="$xorg_testset_save_CFLAGS"
11197 fi
11198
11199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11202 fi
11203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11205 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11206 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11207 then :
11208 printf %s "(cached) " >&6
11209 else case e in #(
11210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11212 int i;
11213 _ACEOF
11214 if ac_fn_c_try_compile "$LINENO"
11215 then :
11216 xorg_cv_cc_flag_unused_command_line_argument=yes
11217 else case e in #(
11218 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11219 esac
11220 fi
11221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11222 esac
11223 fi
11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11225 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11227 CFLAGS="$xorg_testset_save_CFLAGS"
11228 fi
11229
11230 found="no"
11231
11232 if test $found = "no" ; then
11233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11235 fi
11236
11237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11239 fi
11240
11241 CFLAGS="$CFLAGS -pedantic"
11242
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11244 printf %s "checking if $CC supports -pedantic... " >&6; }
11245 cacheid=xorg_cv_cc_flag__pedantic
11246 if eval test \${$cacheid+y}
11247 then :
11248 printf %s "(cached) " >&6
11249 else case e in #(
11250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252 int i;
11253 int
11254 main (void)
11255 {
11256
11257 ;
11258 return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_c_try_link "$LINENO"
11262 then :
11263 eval $cacheid=yes
11264 else case e in #(
11265 e) eval $cacheid=no ;;
11266 esac
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11269 conftest$ac_exeext conftest.$ac_ext ;;
11270 esac
11271 fi
11272
11273
11274 CFLAGS="$xorg_testset_save_CFLAGS"
11275
11276 eval supported=\$$cacheid
11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11278 printf "%s\n" "$supported" >&6; }
11279 if test "$supported" = "yes" ; then
11280 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11281 found="yes"
11282 fi
11283 fi
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299 xorg_testset_save_CFLAGS="$CFLAGS"
11300
11301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11304 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11305 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11306 then :
11307 printf %s "(cached) " >&6
11308 else case e in #(
11309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11311 int i;
11312 _ACEOF
11313 if ac_fn_c_try_compile "$LINENO"
11314 then :
11315 xorg_cv_cc_flag_unknown_warning_option=yes
11316 else case e in #(
11317 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11318 esac
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11321 esac
11322 fi
11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11324 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11326 CFLAGS="$xorg_testset_save_CFLAGS"
11327 fi
11328
11329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11332 fi
11333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11335 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11336 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11337 then :
11338 printf %s "(cached) " >&6
11339 else case e in #(
11340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11342 int i;
11343 _ACEOF
11344 if ac_fn_c_try_compile "$LINENO"
11345 then :
11346 xorg_cv_cc_flag_unused_command_line_argument=yes
11347 else case e in #(
11348 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11349 esac
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11352 esac
11353 fi
11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11355 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11357 CFLAGS="$xorg_testset_save_CFLAGS"
11358 fi
11359
11360 found="no"
11361
11362 if test $found = "no" ; then
11363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11365 fi
11366
11367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11369 fi
11370
11371 CFLAGS="$CFLAGS -Werror"
11372
11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11374 printf %s "checking if $CC supports -Werror... " >&6; }
11375 cacheid=xorg_cv_cc_flag__Werror
11376 if eval test \${$cacheid+y}
11377 then :
11378 printf %s "(cached) " >&6
11379 else case e in #(
11380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 int i;
11383 int
11384 main (void)
11385 {
11386
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"
11392 then :
11393 eval $cacheid=yes
11394 else case e in #(
11395 e) eval $cacheid=no ;;
11396 esac
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11399 conftest$ac_exeext conftest.$ac_ext ;;
11400 esac
11401 fi
11402
11403
11404 CFLAGS="$xorg_testset_save_CFLAGS"
11405
11406 eval supported=\$$cacheid
11407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11408 printf "%s\n" "$supported" >&6; }
11409 if test "$supported" = "yes" ; then
11410 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11411 found="yes"
11412 fi
11413 fi
11414
11415 if test $found = "no" ; then
11416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11418 fi
11419
11420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11422 fi
11423
11424 CFLAGS="$CFLAGS -errwarn"
11425
11426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11427 printf %s "checking if $CC supports -errwarn... " >&6; }
11428 cacheid=xorg_cv_cc_flag__errwarn
11429 if eval test \${$cacheid+y}
11430 then :
11431 printf %s "(cached) " >&6
11432 else case e in #(
11433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11435 int i;
11436 int
11437 main (void)
11438 {
11439
11440 ;
11441 return 0;
11442 }
11443 _ACEOF
11444 if ac_fn_c_try_link "$LINENO"
11445 then :
11446 eval $cacheid=yes
11447 else case e in #(
11448 e) eval $cacheid=no ;;
11449 esac
11450 fi
11451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11452 conftest$ac_exeext conftest.$ac_ext ;;
11453 esac
11454 fi
11455
11456
11457 CFLAGS="$xorg_testset_save_CFLAGS"
11458
11459 eval supported=\$$cacheid
11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11461 printf "%s\n" "$supported" >&6; }
11462 if test "$supported" = "yes" ; then
11463 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11464 found="yes"
11465 fi
11466 fi
11467
11468
11469
11470 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11471 # activate it with -Werror, so we add it here explicitly.
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485 xorg_testset_save_CFLAGS="$CFLAGS"
11486
11487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11490 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11491 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11492 then :
11493 printf %s "(cached) " >&6
11494 else case e in #(
11495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11497 int i;
11498 _ACEOF
11499 if ac_fn_c_try_compile "$LINENO"
11500 then :
11501 xorg_cv_cc_flag_unknown_warning_option=yes
11502 else case e in #(
11503 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11504 esac
11505 fi
11506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11507 esac
11508 fi
11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11510 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11512 CFLAGS="$xorg_testset_save_CFLAGS"
11513 fi
11514
11515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11518 fi
11519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11521 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11522 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11523 then :
11524 printf %s "(cached) " >&6
11525 else case e in #(
11526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 int i;
11529 _ACEOF
11530 if ac_fn_c_try_compile "$LINENO"
11531 then :
11532 xorg_cv_cc_flag_unused_command_line_argument=yes
11533 else case e in #(
11534 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11535 esac
11536 fi
11537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11538 esac
11539 fi
11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11541 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11543 CFLAGS="$xorg_testset_save_CFLAGS"
11544 fi
11545
11546 found="no"
11547
11548 if test $found = "no" ; then
11549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11551 fi
11552
11553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11555 fi
11556
11557 CFLAGS="$CFLAGS -Werror=attributes"
11558
11559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11560 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11561 cacheid=xorg_cv_cc_flag__Werror_attributes
11562 if eval test \${$cacheid+y}
11563 then :
11564 printf %s "(cached) " >&6
11565 else case e in #(
11566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11568 int i;
11569 int
11570 main (void)
11571 {
11572
11573 ;
11574 return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"
11578 then :
11579 eval $cacheid=yes
11580 else case e in #(
11581 e) eval $cacheid=no ;;
11582 esac
11583 fi
11584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11585 conftest$ac_exeext conftest.$ac_ext ;;
11586 esac
11587 fi
11588
11589
11590 CFLAGS="$xorg_testset_save_CFLAGS"
11591
11592 eval supported=\$$cacheid
11593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11594 printf "%s\n" "$supported" >&6; }
11595 if test "$supported" = "yes" ; then
11596 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11597 found="yes"
11598 fi
11599 fi
11600
11601
11602
11603 if test "x$STRICT_COMPILE" = "xyes"; then
11604 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11605 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11606 fi
11607
11608
11609
11610
11611
11612
11613
11614
11615 cat >>confdefs.h <<_ACEOF
11616 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11617 _ACEOF
11618
11619 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11620 if test "x$PVM" = "x"; then
11621 PVM="0"
11622 fi
11623
11624 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11625
11626 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11627 if test "x$PVP" = "x"; then
11628 PVP="0"
11629 fi
11630
11631 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11632
11633
11634
11635 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11636 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11637 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11638 touch \$(top_srcdir)/ChangeLog; \
11639 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11640
11641
11642
11643
11644 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11645 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11646 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11647 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11648 touch \$(top_srcdir)/INSTALL; \
11649 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11650
11651
11652
11653
11654
11655
11656 case $host_os in
11657 solaris*)
11658 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11659 # check for a man page file found in later versions that use
11660 # traditional section numbers instead
11661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11662 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11663 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11664 then :
11665 printf %s "(cached) " >&6
11666 else case e in #(
11667 e) test "$cross_compiling" = yes &&
11668 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11669 if test -r "/usr/share/man/man7/attributes.7"; then
11670 ac_cv_file__usr_share_man_man7_attributes_7=yes
11671 else
11672 ac_cv_file__usr_share_man_man7_attributes_7=no
11673 fi ;;
11674 esac
11675 fi
11676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11677 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11678 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11679 then :
11680 SYSV_MAN_SECTIONS=false
11681 else case e in #(
11682 e) SYSV_MAN_SECTIONS=true ;;
11683 esac
11684 fi
11685
11686 ;;
11687 *) SYSV_MAN_SECTIONS=false ;;
11688 esac
11689
11690 if test x$APP_MAN_SUFFIX = x ; then
11691 APP_MAN_SUFFIX=1
11692 fi
11693 if test x$APP_MAN_DIR = x ; then
11694 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11695 fi
11696
11697 if test x$LIB_MAN_SUFFIX = x ; then
11698 LIB_MAN_SUFFIX=3
11699 fi
11700 if test x$LIB_MAN_DIR = x ; then
11701 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11702 fi
11703
11704 if test x$FILE_MAN_SUFFIX = x ; then
11705 case $SYSV_MAN_SECTIONS in
11706 true) FILE_MAN_SUFFIX=4 ;;
11707 *) FILE_MAN_SUFFIX=5 ;;
11708 esac
11709 fi
11710 if test x$FILE_MAN_DIR = x ; then
11711 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11712 fi
11713
11714 if test x$MISC_MAN_SUFFIX = x ; then
11715 case $SYSV_MAN_SECTIONS in
11716 true) MISC_MAN_SUFFIX=5 ;;
11717 *) MISC_MAN_SUFFIX=7 ;;
11718 esac
11719 fi
11720 if test x$MISC_MAN_DIR = x ; then
11721 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11722 fi
11723
11724 if test x$DRIVER_MAN_SUFFIX = x ; then
11725 case $SYSV_MAN_SECTIONS in
11726 true) DRIVER_MAN_SUFFIX=7 ;;
11727 *) DRIVER_MAN_SUFFIX=4 ;;
11728 esac
11729 fi
11730 if test x$DRIVER_MAN_DIR = x ; then
11731 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11732 fi
11733
11734 if test x$ADMIN_MAN_SUFFIX = x ; then
11735 case $SYSV_MAN_SECTIONS in
11736 true) ADMIN_MAN_SUFFIX=1m ;;
11737 *) ADMIN_MAN_SUFFIX=8 ;;
11738 esac
11739 fi
11740 if test x$ADMIN_MAN_DIR = x ; then
11741 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11742 fi
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758 XORG_MAN_PAGE="X Version 11"
11759
11760 MAN_SUBSTS="\
11761 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11762 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11763 -e 's|__xservername__|Xorg|g' \
11764 -e 's|__xconfigfile__|xorg.conf|g' \
11765 -e 's|__projectroot__|\$(prefix)|g' \
11766 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11767 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11768 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11769 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11770 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11771 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11772 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11773
11774
11775
11776 # Check whether --enable-silent-rules was given.
11777 if test ${enable_silent_rules+y}
11778 then :
11779 enableval=$enable_silent_rules;
11780 fi
11781
11782 case $enable_silent_rules in # (((
11783 yes) AM_DEFAULT_VERBOSITY=0;;
11784 no) AM_DEFAULT_VERBOSITY=1;;
11785 *) AM_DEFAULT_VERBOSITY=0;;
11786 esac
11787 am_make=${MAKE-make}
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11789 printf %s "checking whether $am_make supports nested variables... " >&6; }
11790 if test ${am_cv_make_support_nested_variables+y}
11791 then :
11792 printf %s "(cached) " >&6
11793 else case e in #(
11794 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11795 BAR0=false
11796 BAR1=true
11797 V=1
11798 am__doit:
11799 @$(TRUE)
11800 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11801 am_cv_make_support_nested_variables=yes
11802 else
11803 am_cv_make_support_nested_variables=no
11804 fi ;;
11805 esac
11806 fi
11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11808 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11809 if test $am_cv_make_support_nested_variables = yes; then
11810 AM_V='$(V)'
11811 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11812 else
11813 AM_V=$AM_DEFAULT_VERBOSITY
11814 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11815 fi
11816 AM_BACKSLASH='\'
11817
11818
11819
11820
11821 # Checks for header files.
11822 ac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
11823 if test "x$ac_cv_header_net_errno_h" = xyes
11824 then :
11825 printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
11826
11827 fi
11828
11829
11830 # Checks for typedefs, structures, and compiler characteristics.
11831 # Check whether --enable-largefile was given.
11832 if test ${enable_largefile+y}
11833 then :
11834 enableval=$enable_largefile;
11835 fi
11836 if test "$enable_largefile,$enable_year2038" != no,no
11837 then :
11838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11839 printf %s "checking for $CC option to enable large file support... " >&6; }
11840 if test ${ac_cv_sys_largefile_opts+y}
11841 then :
11842 printf %s "(cached) " >&6
11843 else case e in #(
11844 e) ac_save_CC="$CC"
11845 ac_opt_found=no
11846 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11847 if test x"$ac_opt" != x"none needed"
11848 then :
11849 CC="$ac_save_CC $ac_opt"
11850 fi
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11853 #include <sys/types.h>
11854 #ifndef FTYPE
11855 # define FTYPE off_t
11856 #endif
11857 /* Check that FTYPE can represent 2**63 - 1 correctly.
11858 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11859 since some C++ compilers masquerading as C compilers
11860 incorrectly reject 9223372036854775807. */
11861 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11862 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11863 && LARGE_FTYPE % 2147483647 == 1)
11864 ? 1 : -1];
11865 int
11866 main (void)
11867 {
11868
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 if ac_fn_c_try_compile "$LINENO"
11874 then :
11875 if test x"$ac_opt" = x"none needed"
11876 then :
11877 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11878 CC="$CC -DFTYPE=ino_t"
11879 if ac_fn_c_try_compile "$LINENO"
11880 then :
11881
11882 else case e in #(
11883 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11884 if ac_fn_c_try_compile "$LINENO"
11885 then :
11886 ac_opt='-D_FILE_OFFSET_BITS=64'
11887 fi
11888 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11889 esac
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext conftest.beam
11892 fi
11893 ac_cv_sys_largefile_opts=$ac_opt
11894 ac_opt_found=yes
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11897 test $ac_opt_found = no || break
11898 done
11899 CC="$ac_save_CC"
11900
11901 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11902 esac
11903 fi
11904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11905 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11906
11907 ac_have_largefile=yes
11908 case $ac_cv_sys_largefile_opts in #(
11909 "none needed") :
11910 ;; #(
11911 "supported through gnulib") :
11912 ;; #(
11913 "support not detected") :
11914 ac_have_largefile=no ;; #(
11915 "-D_FILE_OFFSET_BITS=64") :
11916
11917 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11918 ;; #(
11919 "-D_LARGE_FILES=1") :
11920
11921 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11922 ;; #(
11923 "-n32") :
11924 CC="$CC -n32" ;; #(
11925 *) :
11926 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11927 esac
11928
11929 if test "$enable_year2038" != no
11930 then :
11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11932 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11933 if test ${ac_cv_sys_year2038_opts+y}
11934 then :
11935 printf %s "(cached) " >&6
11936 else case e in #(
11937 e) ac_save_CPPFLAGS="$CPPFLAGS"
11938 ac_opt_found=no
11939 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
11940 if test x"$ac_opt" != x"none needed"
11941 then :
11942 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11943 fi
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11946
11947 #include <time.h>
11948 /* Check that time_t can represent 2**32 - 1 correctly. */
11949 #define LARGE_TIME_T \\
11950 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11951 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11952 && LARGE_TIME_T % 65537 == 0)
11953 ? 1 : -1];
11954
11955 int
11956 main (void)
11957 {
11958
11959 ;
11960 return 0;
11961 }
11962 _ACEOF
11963 if ac_fn_c_try_compile "$LINENO"
11964 then :
11965 ac_cv_sys_year2038_opts="$ac_opt"
11966 ac_opt_found=yes
11967 fi
11968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11969 test $ac_opt_found = no || break
11970 done
11971 CPPFLAGS="$ac_save_CPPFLAGS"
11972 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11973 esac
11974 fi
11975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11976 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11977
11978 ac_have_year2038=yes
11979 case $ac_cv_sys_year2038_opts in #(
11980 "none needed") :
11981 ;; #(
11982 "support not detected") :
11983 ac_have_year2038=no ;; #(
11984 "-D_TIME_BITS=64") :
11985
11986 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11987 ;; #(
11988 "-D__MINGW_USE_VC2005_COMPAT") :
11989
11990 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11991 ;; #(
11992 "-U_USE_32_BIT_TIME_T"*) :
11993 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11994 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11995 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11996 will stop working after mid-January 2038. Remove
11997 _USE_32BIT_TIME_T from the compiler flags.
11998 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11999 *) :
12000 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12001 esac
12002
12003 fi
12004
12005 fi
12006
12007 # Checks for library functions.
12008 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
12009 if test "x$ac_cv_func_reallocarray" = xyes
12010 then :
12011 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
12012
12013 fi
12014 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12015 if test "x$ac_cv_func_strlcpy" = xyes
12016 then :
12017 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
12018
12019 fi
12020
12021
12022 # Checks for pkg-config packages
12023
12024 pkg_failed=no
12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
12026 printf %s "checking for XAUTH... " >&6; }
12027
12028 if test -n "$XAUTH_CFLAGS"; then
12029 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
12030 elif test -n "$PKG_CONFIG"; then
12031 if test -n "$PKG_CONFIG" && \
12032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
12033 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
12034 ac_status=$?
12035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12036 test $ac_status = 0; }; then
12037 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
12038 test "x$?" != "x0" && pkg_failed=yes
12039 else
12040 pkg_failed=yes
12041 fi
12042 else
12043 pkg_failed=untried
12044 fi
12045 if test -n "$XAUTH_LIBS"; then
12046 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
12047 elif test -n "$PKG_CONFIG"; then
12048 if test -n "$PKG_CONFIG" && \
12049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
12050 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
12051 ac_status=$?
12052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12053 test $ac_status = 0; }; then
12054 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
12055 test "x$?" != "x0" && pkg_failed=yes
12056 else
12057 pkg_failed=yes
12058 fi
12059 else
12060 pkg_failed=untried
12061 fi
12062
12063
12064
12065 if test $pkg_failed = yes; then
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 printf "%s\n" "no" >&6; }
12068
12069 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12070 _pkg_short_errors_supported=yes
12071 else
12072 _pkg_short_errors_supported=no
12073 fi
12074 if test $_pkg_short_errors_supported = yes; then
12075 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
12076 else
12077 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
12078 fi
12079 # Put the nasty error message in config.log where it belongs
12080 echo "$XAUTH_PKG_ERRORS" >&5
12081
12082 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
12083
12084 $XAUTH_PKG_ERRORS
12085
12086 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12087 installed software in a non-standard prefix.
12088
12089 Alternatively, you may set the environment variables XAUTH_CFLAGS
12090 and XAUTH_LIBS to avoid the need to call pkg-config.
12091 See the pkg-config man page for more details." "$LINENO" 5
12092 elif test $pkg_failed = untried; then
12093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 printf "%s\n" "no" >&6; }
12095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12096 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12097 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12098 is in your PATH or set the PKG_CONFIG environment variable to the full
12099 path to pkg-config.
12100
12101 Alternatively, you may set the environment variables XAUTH_CFLAGS
12102 and XAUTH_LIBS to avoid the need to call pkg-config.
12103 See the pkg-config man page for more details.
12104
12105 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12106 See 'config.log' for more details" "$LINENO" 5; }
12107 else
12108 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
12109 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
12110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111 printf "%s\n" "yes" >&6; }
12112
12113 fi
12114
12115 # Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
12116 # was not expanded, since xauth with no address support is rather broken.
12117 #
12118 # If you're seeing an error here, be sure you installed the lib/xtrans module
12119 # first and if it's not in the default location, that you set the ACLOCAL
12120 # environment variable to find it, such as:
12121 # ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
12122
12123
12124 # Transport selection macro from xtrans.m4
12125 # Needed to set *CONN defines for gethost.c & parsedpy.c
12126
12127
12128 case $host_os in
12129 mingw*) unixdef="no" ;;
12130 *) unixdef="yes" ;;
12131 esac
12132 # Check whether --enable-unix-transport was given.
12133 if test ${enable_unix_transport+y}
12134 then :
12135 enableval=$enable_unix_transport; UNIXCONN=$enableval
12136 else case e in #(
12137 e) UNIXCONN=$unixdef ;;
12138 esac
12139 fi
12140
12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
12142 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
12143 if test "$UNIXCONN" = "yes"; then
12144
12145 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
12146
12147 fi
12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
12149 printf "%s\n" "$UNIXCONN" >&6; }
12150 # Check whether --enable-tcp-transport was given.
12151 if test ${enable_tcp_transport+y}
12152 then :
12153 enableval=$enable_tcp_transport; TCPCONN=$enableval
12154 else case e in #(
12155 e) TCPCONN=yes ;;
12156 esac
12157 fi
12158
12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
12160 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
12162 printf "%s\n" "$TCPCONN" >&6; }
12163 if test "$TCPCONN" = "yes"; then
12164
12165 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
12166
12167
12168 # SVR4 hides these in libraries other than libc
12169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12170 printf %s "checking for library containing socket... " >&6; }
12171 if test ${ac_cv_search_socket+y}
12172 then :
12173 printf %s "(cached) " >&6
12174 else case e in #(
12175 e) ac_func_search_save_LIBS=$LIBS
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12178
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply.
12182 The 'extern "C"' is for builds by C++ compilers;
12183 although this is not generally supported in C code supporting it here
12184 has little cost and some practical benefit (sr 110532). */
12185 #ifdef __cplusplus
12186 extern "C"
12187 #endif
12188 char socket (void);
12189 int
12190 main (void)
12191 {
12192 return socket ();
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 for ac_lib in '' socket
12198 do
12199 if test -z "$ac_lib"; then
12200 ac_res="none required"
12201 else
12202 ac_res=-l$ac_lib
12203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12204 fi
12205 if ac_fn_c_try_link "$LINENO"
12206 then :
12207 ac_cv_search_socket=$ac_res
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12210 conftest$ac_exeext
12211 if test ${ac_cv_search_socket+y}
12212 then :
12213 break
12214 fi
12215 done
12216 if test ${ac_cv_search_socket+y}
12217 then :
12218
12219 else case e in #(
12220 e) ac_cv_search_socket=no ;;
12221 esac
12222 fi
12223 rm conftest.$ac_ext
12224 LIBS=$ac_func_search_save_LIBS ;;
12225 esac
12226 fi
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12228 printf "%s\n" "$ac_cv_search_socket" >&6; }
12229 ac_res=$ac_cv_search_socket
12230 if test "$ac_res" != no
12231 then :
12232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12233
12234 fi
12235
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12237 printf %s "checking for library containing gethostbyname... " >&6; }
12238 if test ${ac_cv_search_gethostbyname+y}
12239 then :
12240 printf %s "(cached) " >&6
12241 else case e in #(
12242 e) ac_func_search_save_LIBS=$LIBS
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply.
12249 The 'extern "C"' is for builds by C++ compilers;
12250 although this is not generally supported in C code supporting it here
12251 has little cost and some practical benefit (sr 110532). */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char gethostbyname (void);
12256 int
12257 main (void)
12258 {
12259 return gethostbyname ();
12260 ;
12261 return 0;
12262 }
12263 _ACEOF
12264 for ac_lib in '' nsl
12265 do
12266 if test -z "$ac_lib"; then
12267 ac_res="none required"
12268 else
12269 ac_res=-l$ac_lib
12270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12271 fi
12272 if ac_fn_c_try_link "$LINENO"
12273 then :
12274 ac_cv_search_gethostbyname=$ac_res
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12277 conftest$ac_exeext
12278 if test ${ac_cv_search_gethostbyname+y}
12279 then :
12280 break
12281 fi
12282 done
12283 if test ${ac_cv_search_gethostbyname+y}
12284 then :
12285
12286 else case e in #(
12287 e) ac_cv_search_gethostbyname=no ;;
12288 esac
12289 fi
12290 rm conftest.$ac_ext
12291 LIBS=$ac_func_search_save_LIBS ;;
12292 esac
12293 fi
12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12295 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
12296 ac_res=$ac_cv_search_gethostbyname
12297 if test "$ac_res" != no
12298 then :
12299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12300
12301 fi
12302
12303 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12305 printf %s "checking for main in -lws2_32... " >&6; }
12306 if test ${ac_cv_lib_ws2_32_main+y}
12307 then :
12308 printf %s "(cached) " >&6
12309 else case e in #(
12310 e) ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-lws2_32 $LIBS"
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315
12316 int
12317 main (void)
12318 {
12319 return main ();
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"
12325 then :
12326 ac_cv_lib_ws2_32_main=yes
12327 else case e in #(
12328 e) ac_cv_lib_ws2_32_main=no ;;
12329 esac
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS ;;
12334 esac
12335 fi
12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12337 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
12338 if test "x$ac_cv_lib_ws2_32_main" = xyes
12339 then :
12340 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
12341
12342 LIBS="-lws2_32 $LIBS"
12343
12344 fi
12345
12346 fi
12347
12348 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12349 # Check whether --enable-ipv6 was given.
12350 if test ${enable_ipv6+y}
12351 then :
12352 enableval=$enable_ipv6; IPV6CONN=$enableval
12353 else case e in #(
12354 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12355 if test "x$ac_cv_func_getaddrinfo" = xyes
12356 then :
12357 IPV6CONN=yes
12358 else case e in #(
12359 e) IPV6CONN=no ;;
12360 esac
12361 fi
12362 ;;
12363 esac
12364 fi
12365
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12367 printf %s "checking if IPv6 support should be built... " >&6; }
12368 if test "$IPV6CONN" = "yes"; then
12369
12370 printf "%s\n" "#define IPv6 1" >>confdefs.h
12371
12372 fi
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12374 printf "%s\n" "$IPV6CONN" >&6; }
12375
12376 # 4.3BSD-Reno added a new member to struct sockaddr_in
12377 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12378 #include <sys/types.h>
12379 #include <sys/socket.h>
12380 #include <netinet/in.h>
12381
12382 "
12383 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
12384 then :
12385
12386 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
12387
12388 fi
12389
12390
12391 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12392 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12393 $ac_includes_default
12394 #include <sys/socket.h>
12395 "
12396 if test "x$ac_cv_type_socklen_t" = xyes
12397 then :
12398
12399 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
12400
12401
12402 fi
12403
12404
12405 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
12406 # _XOPEN_SOURCE to get it (such as on Solaris)
12407 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12408 $ac_includes_default
12409 #include <sys/socket.h>
12410
12411 "
12412 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12413 then :
12414
12415 fi
12416
12417 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
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=600" >&5
12421 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
12422 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12423 #define _XOPEN_SOURCE 600
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 600" >>confdefs.h
12432
12433
12434 fi
12435
12436 fi
12437 # If that didn't work, fall back to XPG5/UNIX98 with C89
12438 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12439 unset ac_cv_member_struct_msghdr_msg_control
12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
12441 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
12442 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12443 #define _XOPEN_SOURCE 500
12444 $ac_includes_default
12445 #include <sys/socket.h>
12446
12447 "
12448 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12449 then :
12450
12451 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
12452
12453
12454 fi
12455
12456 fi
12457
12458
12459
12460 fi
12461 case $host_os in
12462 solaris*) localdef="yes" ;;
12463 *) localdef="no" ;;
12464 esac
12465 # Check whether --enable-local-transport was given.
12466 if test ${enable_local_transport+y}
12467 then :
12468 enableval=$enable_local_transport; LOCALCONN=$enableval
12469 else case e in #(
12470 e) LOCALCONN=$localdef ;;
12471 esac
12472 fi
12473
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12475 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12477 printf "%s\n" "$LOCALCONN" >&6; }
12478 if test "$LOCALCONN" = "yes"; then
12479
12480 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
12481
12482 fi
12483
12484 # Other functions Xtrans may need
12485 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
12486 if test "x$ac_cv_func_strcasecmp" = xyes
12487 then :
12488 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
12489
12490 fi
12491 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12492 if test "x$ac_cv_func_strlcpy" = xyes
12493 then :
12494 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
12495
12496 fi
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506 # Check whether --with-lint was given.
12507 if test ${with_lint+y}
12508 then :
12509 withval=$with_lint; use_lint=$withval
12510 else case e in #(
12511 e) use_lint=no ;;
12512 esac
12513 fi
12514
12515
12516 # Obtain platform specific info like program name and options
12517 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
12518 case $host_os in
12519 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12520 lint_name=splint
12521 lint_options="-badflag"
12522 ;;
12523 *freebsd* | *netbsd*)
12524 lint_name=lint
12525 lint_options="-u -b"
12526 ;;
12527 *solaris*)
12528 lint_name=lint
12529 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12530 ;;
12531 esac
12532
12533 # Test for the presence of the program (either guessed by the code or spelled out by the user)
12534 if test "x$use_lint" = x"yes" ; then
12535 # Extract the first word of "$lint_name", so it can be a program name with args.
12536 set dummy $lint_name; ac_word=$2
12537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538 printf %s "checking for $ac_word... " >&6; }
12539 if test ${ac_cv_path_LINT+y}
12540 then :
12541 printf %s "(cached) " >&6
12542 else case e in #(
12543 e) case $LINT in
12544 [\\/]* | ?:[\\/]*)
12545 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12546 ;;
12547 *)
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12550 do
12551 IFS=$as_save_IFS
12552 case $as_dir in #(((
12553 '') as_dir=./ ;;
12554 */) ;;
12555 *) as_dir=$as_dir/ ;;
12556 esac
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12559 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12561 break 2
12562 fi
12563 done
12564 done
12565 IFS=$as_save_IFS
12566
12567 ;;
12568 esac ;;
12569 esac
12570 fi
12571 LINT=$ac_cv_path_LINT
12572 if test -n "$LINT"; then
12573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12574 printf "%s\n" "$LINT" >&6; }
12575 else
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 printf "%s\n" "no" >&6; }
12578 fi
12579
12580
12581 if test "x$LINT" = "x"; then
12582 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12583 fi
12584 elif test "x$use_lint" = x"no" ; then
12585 if test "x$LINT" != "x"; then
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12587 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12588 fi
12589 else
12590 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12591 fi
12592
12593 # User supplied flags override default flags
12594 if test "x$LINT_FLAGS" != "x"; then
12595 lint_options=$LINT_FLAGS
12596 fi
12597
12598 LINT_FLAGS=$lint_options
12599
12600 if test "x$LINT" != x; then
12601 LINT_TRUE=
12602 LINT_FALSE='#'
12603 else
12604 LINT_TRUE='#'
12605 LINT_FALSE=
12606 fi
12607
12608
12609
12610
12611 ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
12612
12613 cat >confcache <<\_ACEOF
12614 # This file is a shell script that caches the results of configure
12615 # tests run on this system so they can be shared between configure
12616 # scripts and configure runs, see configure's option --config-cache.
12617 # It is not useful on other systems. If it contains results you don't
12618 # want to keep, you may remove or edit it.
12619 #
12620 # config.status only pays attention to the cache file if you give it
12621 # the --recheck option to rerun configure.
12622 #
12623 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12624 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12625 # following values.
12626
12627 _ACEOF
12628
12629 # The following way of writing the cache mishandles newlines in values,
12630 # but we know of no workaround that is simple, portable, and efficient.
12631 # So, we kill variables containing newlines.
12632 # Ultrix sh set writes to stderr and can't be redirected directly,
12633 # and sets the high bit in the cache file unless we assign to the vars.
12634 (
12635 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12636 eval ac_val=\$$ac_var
12637 case $ac_val in #(
12638 *${as_nl}*)
12639 case $ac_var in #(
12640 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12641 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12642 esac
12643 case $ac_var in #(
12644 _ | IFS | as_nl) ;; #(
12645 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12646 *) { eval $ac_var=; unset $ac_var;} ;;
12647 esac ;;
12648 esac
12649 done
12650
12651 (set) 2>&1 |
12652 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12653 *${as_nl}ac_space=\ *)
12654 # 'set' does not quote correctly, so add quotes: double-quote
12655 # substitution turns \\\\ into \\, and sed turns \\ into \.
12656 sed -n \
12657 "s/'/'\\\\''/g;
12658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12659 ;; #(
12660 *)
12661 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12663 ;;
12664 esac |
12665 sort
12666 ) |
12667 sed '
12668 /^ac_cv_env_/b end
12669 t clear
12670 :clear
12671 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12672 t end
12673 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12674 :end' >>confcache
12675 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12676 if test -w "$cache_file"; then
12677 if test "x$cache_file" != "x/dev/null"; then
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12679 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12680 if test ! -f "$cache_file" || test -h "$cache_file"; then
12681 cat confcache >"$cache_file"
12682 else
12683 case $cache_file in #(
12684 */* | ?:*)
12685 mv -f confcache "$cache_file"$$ &&
12686 mv -f "$cache_file"$$ "$cache_file" ;; #(
12687 *)
12688 mv -f confcache "$cache_file" ;;
12689 esac
12690 fi
12691 fi
12692 else
12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12694 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12695 fi
12696 fi
12697 rm -f confcache
12698
12699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12700 # Let make expand exec_prefix.
12701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12702
12703 DEFS=-DHAVE_CONFIG_H
12704
12705 ac_libobjs=
12706 ac_ltlibobjs=
12707 U=
12708 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12709 # 1. Remove the extension, and $U if already installed.
12710 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12711 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12712 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12713 # will be set to the directory where LIBOBJS objects are built.
12714 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12715 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12716 done
12717 LIBOBJS=$ac_libobjs
12718
12719 LTLIBOBJS=$ac_ltlibobjs
12720
12721
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12723 printf %s "checking that generated files are newer than configure... " >&6; }
12724 if test -n "$am_sleep_pid"; then
12725 # Hide warnings about reused PIDs.
12726 wait $am_sleep_pid 2>/dev/null
12727 fi
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12729 printf "%s\n" "done" >&6; }
12730 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12731 as_fn_error $? "conditional \"AMDEP\" was never defined.
12732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12733 fi
12734 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12735 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12737 fi
12738 if test -n "$EXEEXT"; then
12739 am__EXEEXT_TRUE=
12740 am__EXEEXT_FALSE='#'
12741 else
12742 am__EXEEXT_TRUE='#'
12743 am__EXEEXT_FALSE=
12744 fi
12745
12746 # Check whether --enable-year2038 was given.
12747 if test ${enable_year2038+y}
12748 then :
12749 enableval=$enable_year2038;
12750 fi
12751
12752 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12753 as_fn_error $? "conditional \"LINT\" was never defined.
12754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12755 fi
12756
12757 : "${CONFIG_STATUS=./config.status}"
12758 ac_write_fail=0
12759 ac_clean_files_save=$ac_clean_files
12760 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12762 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12763 as_write_fail=0
12764 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12765 #! $SHELL
12766 # Generated by $as_me.
12767 # Run this file to recreate the current configuration.
12768 # Compiler output produced by configure, useful for debugging
12769 # configure, is in config.log if it exists.
12770
12771 debug=false
12772 ac_cs_recheck=false
12773 ac_cs_silent=false
12774
12775 SHELL=\${CONFIG_SHELL-$SHELL}
12776 export SHELL
12777 _ASEOF
12778 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12779 ## -------------------- ##
12780 ## M4sh Initialization. ##
12781 ## -------------------- ##
12782
12783 # Be more Bourne compatible
12784 DUALCASE=1; export DUALCASE # for MKS sh
12785 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12786 then :
12787 emulate sh
12788 NULLCMD=:
12789 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12790 # is contrary to our usage. Disable this feature.
12791 alias -g '${1+"$@"}'='"$@"'
12792 setopt NO_GLOB_SUBST
12793 else case e in #(
12794 e) case `(set -o) 2>/dev/null` in #(
12795 *posix*) :
12796 set -o posix ;; #(
12797 *) :
12798 ;;
12799 esac ;;
12800 esac
12801 fi
12802
12803
12804
12805 # Reset variables that may have inherited troublesome values from
12806 # the environment.
12807
12808 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12809 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12810 # side effect of setting IFS to empty, thus disabling word splitting.)
12811 # Quoting is to prevent editors from complaining about space-tab.
12812 as_nl='
12813 '
12814 export as_nl
12815 IFS=" "" $as_nl"
12816
12817 PS1='$ '
12818 PS2='> '
12819 PS4='+ '
12820
12821 # Ensure predictable behavior from utilities with locale-dependent output.
12822 LC_ALL=C
12823 export LC_ALL
12824 LANGUAGE=C
12825 export LANGUAGE
12826
12827 # We cannot yet rely on "unset" to work, but we need these variables
12828 # to be unset--not just set to an empty or harmless value--now, to
12829 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12830 # also avoids known problems related to "unset" and subshell syntax
12831 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12832 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12833 do eval test \${$as_var+y} \
12834 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12835 done
12836
12837 # Ensure that fds 0, 1, and 2 are open.
12838 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12839 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12840 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12841
12842 # The user is always right.
12843 if ${PATH_SEPARATOR+false} :; then
12844 PATH_SEPARATOR=:
12845 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12846 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12847 PATH_SEPARATOR=';'
12848 }
12849 fi
12850
12851
12852 # Find who we are. Look in the path if we contain no directory separator.
12853 as_myself=
12854 case $0 in #((
12855 *[\\/]* ) as_myself=$0 ;;
12856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12858 do
12859 IFS=$as_save_IFS
12860 case $as_dir in #(((
12861 '') as_dir=./ ;;
12862 */) ;;
12863 *) as_dir=$as_dir/ ;;
12864 esac
12865 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12866 done
12867 IFS=$as_save_IFS
12868
12869 ;;
12870 esac
12871 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12872 # in which case we are not to be found in the path.
12873 if test "x$as_myself" = x; then
12874 as_myself=$0
12875 fi
12876 if test ! -f "$as_myself"; then
12877 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12878 exit 1
12879 fi
12880
12881
12882
12883 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12884 # ----------------------------------------
12885 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12886 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12887 # script with STATUS, using 1 if that was 0.
12888 as_fn_error ()
12889 {
12890 as_status=$1; test $as_status -eq 0 && as_status=1
12891 if test "$4"; then
12892 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12894 fi
12895 printf "%s\n" "$as_me: error: $2" >&2
12896 as_fn_exit $as_status
12897 } # as_fn_error
12898
12899
12900 # as_fn_set_status STATUS
12901 # -----------------------
12902 # Set $? to STATUS, without forking.
12903 as_fn_set_status ()
12904 {
12905 return $1
12906 } # as_fn_set_status
12907
12908 # as_fn_exit STATUS
12909 # -----------------
12910 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12911 as_fn_exit ()
12912 {
12913 set +e
12914 as_fn_set_status $1
12915 exit $1
12916 } # as_fn_exit
12917
12918 # as_fn_unset VAR
12919 # ---------------
12920 # Portably unset VAR.
12921 as_fn_unset ()
12922 {
12923 { eval $1=; unset $1;}
12924 }
12925 as_unset=as_fn_unset
12926
12927 # as_fn_append VAR VALUE
12928 # ----------------------
12929 # Append the text in VALUE to the end of the definition contained in VAR. Take
12930 # advantage of any shell optimizations that allow amortized linear growth over
12931 # repeated appends, instead of the typical quadratic growth present in naive
12932 # implementations.
12933 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12934 then :
12935 eval 'as_fn_append ()
12936 {
12937 eval $1+=\$2
12938 }'
12939 else case e in #(
12940 e) as_fn_append ()
12941 {
12942 eval $1=\$$1\$2
12943 } ;;
12944 esac
12945 fi # as_fn_append
12946
12947 # as_fn_arith ARG...
12948 # ------------------
12949 # Perform arithmetic evaluation on the ARGs, and store the result in the
12950 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12951 # must be portable across $(()) and expr.
12952 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12953 then :
12954 eval 'as_fn_arith ()
12955 {
12956 as_val=$(( $* ))
12957 }'
12958 else case e in #(
12959 e) as_fn_arith ()
12960 {
12961 as_val=`expr "$@" || test $? -eq 1`
12962 } ;;
12963 esac
12964 fi # as_fn_arith
12965
12966
12967 if expr a : '\(a\)' >/dev/null 2>&1 &&
12968 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12969 as_expr=expr
12970 else
12971 as_expr=false
12972 fi
12973
12974 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12975 as_basename=basename
12976 else
12977 as_basename=false
12978 fi
12979
12980 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12981 as_dirname=dirname
12982 else
12983 as_dirname=false
12984 fi
12985
12986 as_me=`$as_basename -- "$0" ||
12987 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12988 X"$0" : 'X\(//\)$' \| \
12989 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12990 printf "%s\n" X/"$0" |
12991 sed '/^.*\/\([^/][^/]*\)\/*$/{
12992 s//\1/
12993 q
12994 }
12995 /^X\/\(\/\/\)$/{
12996 s//\1/
12997 q
12998 }
12999 /^X\/\(\/\).*/{
13000 s//\1/
13001 q
13002 }
13003 s/.*/./; q'`
13004
13005 # Avoid depending upon Character Ranges.
13006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13009 as_cr_digits='0123456789'
13010 as_cr_alnum=$as_cr_Letters$as_cr_digits
13011
13012
13013 # Determine whether it's possible to make 'echo' print without a newline.
13014 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13015 # for compatibility with existing Makefiles.
13016 ECHO_C= ECHO_N= ECHO_T=
13017 case `echo -n x` in #(((((
13018 -n*)
13019 case `echo 'xy\c'` in
13020 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13021 xy) ECHO_C='\c';;
13022 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13023 ECHO_T=' ';;
13024 esac;;
13025 *)
13026 ECHO_N='-n';;
13027 esac
13028
13029 # For backward compatibility with old third-party macros, we provide
13030 # the shell variables $as_echo and $as_echo_n. New code should use
13031 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13032 as_echo='printf %s\n'
13033 as_echo_n='printf %s'
13034
13035 rm -f conf$$ conf$$.exe conf$$.file
13036 if test -d conf$$.dir; then
13037 rm -f conf$$.dir/conf$$.file
13038 else
13039 rm -f conf$$.dir
13040 mkdir conf$$.dir 2>/dev/null
13041 fi
13042 if (echo >conf$$.file) 2>/dev/null; then
13043 if ln -s conf$$.file conf$$ 2>/dev/null; then
13044 as_ln_s='ln -s'
13045 # ... but there are two gotchas:
13046 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13047 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13048 # In both cases, we have to default to 'cp -pR'.
13049 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13050 as_ln_s='cp -pR'
13051 elif ln conf$$.file conf$$ 2>/dev/null; then
13052 as_ln_s=ln
13053 else
13054 as_ln_s='cp -pR'
13055 fi
13056 else
13057 as_ln_s='cp -pR'
13058 fi
13059 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13060 rmdir conf$$.dir 2>/dev/null
13061
13062
13063 # as_fn_mkdir_p
13064 # -------------
13065 # Create "$as_dir" as a directory, including parents if necessary.
13066 as_fn_mkdir_p ()
13067 {
13068
13069 case $as_dir in #(
13070 -*) as_dir=./$as_dir;;
13071 esac
13072 test -d "$as_dir" || eval $as_mkdir_p || {
13073 as_dirs=
13074 while :; do
13075 case $as_dir in #(
13076 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13077 *) as_qdir=$as_dir;;
13078 esac
13079 as_dirs="'$as_qdir' $as_dirs"
13080 as_dir=`$as_dirname -- "$as_dir" ||
13081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13082 X"$as_dir" : 'X\(//\)[^/]' \| \
13083 X"$as_dir" : 'X\(//\)$' \| \
13084 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13085 printf "%s\n" X"$as_dir" |
13086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13087 s//\1/
13088 q
13089 }
13090 /^X\(\/\/\)[^/].*/{
13091 s//\1/
13092 q
13093 }
13094 /^X\(\/\/\)$/{
13095 s//\1/
13096 q
13097 }
13098 /^X\(\/\).*/{
13099 s//\1/
13100 q
13101 }
13102 s/.*/./; q'`
13103 test -d "$as_dir" && break
13104 done
13105 test -z "$as_dirs" || eval "mkdir $as_dirs"
13106 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13107
13108
13109 } # as_fn_mkdir_p
13110 if mkdir -p . 2>/dev/null; then
13111 as_mkdir_p='mkdir -p "$as_dir"'
13112 else
13113 test -d ./-p && rmdir ./-p
13114 as_mkdir_p=false
13115 fi
13116
13117
13118 # as_fn_executable_p FILE
13119 # -----------------------
13120 # Test if FILE is an executable regular file.
13121 as_fn_executable_p ()
13122 {
13123 test -f "$1" && test -x "$1"
13124 } # as_fn_executable_p
13125 as_test_x='test -x'
13126 as_executable_p=as_fn_executable_p
13127
13128 # Sed expression to map a string onto a valid CPP name.
13129 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13130 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13131
13132 # Sed expression to map a string onto a valid variable name.
13133 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13134 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13135
13136
13137 exec 6>&1
13138 ## ----------------------------------- ##
13139 ## Main body of $CONFIG_STATUS script. ##
13140 ## ----------------------------------- ##
13141 _ASEOF
13142 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13143
13144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13145 # Save the log message, to keep $0 and so on meaningful, and to
13146 # report actual input values of CONFIG_FILES etc. instead of their
13147 # values after options handling.
13148 ac_log="
13149 This file was extended by xauth $as_me 1.1.3, which was
13150 generated by GNU Autoconf 2.72. Invocation command line was
13151
13152 CONFIG_FILES = $CONFIG_FILES
13153 CONFIG_HEADERS = $CONFIG_HEADERS
13154 CONFIG_LINKS = $CONFIG_LINKS
13155 CONFIG_COMMANDS = $CONFIG_COMMANDS
13156 $ $0 $@
13157
13158 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13159 "
13160
13161 _ACEOF
13162
13163 case $ac_config_files in *"
13164 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13165 esac
13166
13167 case $ac_config_headers in *"
13168 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13169 esac
13170
13171
13172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13173 # Files that config.status was made for.
13174 config_files="$ac_config_files"
13175 config_headers="$ac_config_headers"
13176 config_commands="$ac_config_commands"
13177
13178 _ACEOF
13179
13180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13181 ac_cs_usage="\
13182 '$as_me' instantiates files and other configuration actions
13183 from templates according to the current configuration. Unless the files
13184 and actions are specified as TAGs, all are instantiated by default.
13185
13186 Usage: $0 [OPTION]... [TAG]...
13187
13188 -h, --help print this help, then exit
13189 -V, --version print version number and configuration settings, then exit
13190 --config print configuration, then exit
13191 -q, --quiet, --silent
13192 do not print progress messages
13193 -d, --debug don't remove temporary files
13194 --recheck update $as_me by reconfiguring in the same conditions
13195 --file=FILE[:TEMPLATE]
13196 instantiate the configuration file FILE
13197 --header=FILE[:TEMPLATE]
13198 instantiate the configuration header FILE
13199
13200 Configuration files:
13201 $config_files
13202
13203 Configuration headers:
13204 $config_headers
13205
13206 Configuration commands:
13207 $config_commands
13208
13209 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>."
13210
13211 _ACEOF
13212 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13213 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13215 ac_cs_config='$ac_cs_config_escaped'
13216 ac_cs_version="\\
13217 xauth config.status 1.1.3
13218 configured by $0, generated by GNU Autoconf 2.72,
13219 with options \\"\$ac_cs_config\\"
13220
13221 Copyright (C) 2023 Free Software Foundation, Inc.
13222 This config.status script is free software; the Free Software Foundation
13223 gives unlimited permission to copy, distribute and modify it."
13224
13225 ac_pwd='$ac_pwd'
13226 srcdir='$srcdir'
13227 INSTALL='$INSTALL'
13228 MKDIR_P='$MKDIR_P'
13229 AWK='$AWK'
13230 test -n "\$AWK" || AWK=awk
13231 _ACEOF
13232
13233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13234 # The default lists apply if the user does not specify any file.
13235 ac_need_defaults=:
13236 while test $# != 0
13237 do
13238 case $1 in
13239 --*=?*)
13240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13241 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13242 ac_shift=:
13243 ;;
13244 --*=)
13245 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13246 ac_optarg=
13247 ac_shift=:
13248 ;;
13249 *)
13250 ac_option=$1
13251 ac_optarg=$2
13252 ac_shift=shift
13253 ;;
13254 esac
13255
13256 case $ac_option in
13257 # Handling of the options.
13258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13259 ac_cs_recheck=: ;;
13260 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13261 printf "%s\n" "$ac_cs_version"; exit ;;
13262 --config | --confi | --conf | --con | --co | --c )
13263 printf "%s\n" "$ac_cs_config"; exit ;;
13264 --debug | --debu | --deb | --de | --d | -d )
13265 debug=: ;;
13266 --file | --fil | --fi | --f )
13267 $ac_shift
13268 case $ac_optarg in
13269 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13270 '') as_fn_error $? "missing file argument" ;;
13271 esac
13272 as_fn_append CONFIG_FILES " '$ac_optarg'"
13273 ac_need_defaults=false;;
13274 --header | --heade | --head | --hea )
13275 $ac_shift
13276 case $ac_optarg in
13277 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13278 esac
13279 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13280 ac_need_defaults=false;;
13281 --he | --h)
13282 # Conflict between --help and --header
13283 as_fn_error $? "ambiguous option: '$1'
13284 Try '$0 --help' for more information.";;
13285 --help | --hel | -h )
13286 printf "%s\n" "$ac_cs_usage"; exit ;;
13287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13289 ac_cs_silent=: ;;
13290
13291 # This is an error.
13292 -*) as_fn_error $? "unrecognized option: '$1'
13293 Try '$0 --help' for more information." ;;
13294
13295 *) as_fn_append ac_config_targets " $1"
13296 ac_need_defaults=false ;;
13297
13298 esac
13299 shift
13300 done
13301
13302 ac_configure_extra_args=
13303
13304 if $ac_cs_silent; then
13305 exec 6>/dev/null
13306 ac_configure_extra_args="$ac_configure_extra_args --silent"
13307 fi
13308
13309 _ACEOF
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311 if \$ac_cs_recheck; then
13312 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13313 shift
13314 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13315 CONFIG_SHELL='$SHELL'
13316 export CONFIG_SHELL
13317 exec "\$@"
13318 fi
13319
13320 _ACEOF
13321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13322 exec 5>>config.log
13323 {
13324 echo
13325 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13326 ## Running $as_me. ##
13327 _ASBOX
13328 printf "%s\n" "$ac_log"
13329 } >&5
13330
13331 _ACEOF
13332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13333 #
13334 # INIT-COMMANDS
13335 #
13336 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13337
13338 _ACEOF
13339
13340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341
13342 # Handling of arguments.
13343 for ac_config_target in $ac_config_targets
13344 do
13345 case $ac_config_target in
13346 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13347 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13348 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13349 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13350 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13351
13352 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13353 esac
13354 done
13355
13356
13357 # If the user did not use the arguments to specify the items to instantiate,
13358 # then the envvar interface is used. Set only those that are not.
13359 # We use the long form for the default assignment because of an extremely
13360 # bizarre bug on SunOS 4.1.3.
13361 if $ac_need_defaults; then
13362 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13363 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13364 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13365 fi
13366
13367 # Have a temporary directory for convenience. Make it in the build tree
13368 # simply because there is no reason against having it here, and in addition,
13369 # creating and moving files from /tmp can sometimes cause problems.
13370 # Hook for its removal unless debugging.
13371 # Note that there is a small window in which the directory will not be cleaned:
13372 # after its creation but before its name has been assigned to '$tmp'.
13373 $debug ||
13374 {
13375 tmp= ac_tmp=
13376 trap 'exit_status=$?
13377 : "${ac_tmp:=$tmp}"
13378 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13379 ' 0
13380 trap 'as_fn_exit 1' 1 2 13 15
13381 }
13382 # Create a (secure) tmp directory for tmp files.
13383
13384 {
13385 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13386 test -d "$tmp"
13387 } ||
13388 {
13389 tmp=./conf$$-$RANDOM
13390 (umask 077 && mkdir "$tmp")
13391 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13392 ac_tmp=$tmp
13393
13394 # Set up the scripts for CONFIG_FILES section.
13395 # No need to generate them if there are no CONFIG_FILES.
13396 # This happens for instance with './config.status config.h'.
13397 if test -n "$CONFIG_FILES"; then
13398
13399
13400 ac_cr=`echo X | tr X '\015'`
13401 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13402 # But we know of no other shell where ac_cr would be empty at this
13403 # point, so we can use a bashism as a fallback.
13404 if test "x$ac_cr" = x; then
13405 eval ac_cr=\$\'\\r\'
13406 fi
13407 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13408 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13409 ac_cs_awk_cr='\\r'
13410 else
13411 ac_cs_awk_cr=$ac_cr
13412 fi
13413
13414 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13415 _ACEOF
13416
13417
13418 {
13419 echo "cat >conf$$subs.awk <<_ACEOF" &&
13420 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13421 echo "_ACEOF"
13422 } >conf$$subs.sh ||
13423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13424 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13425 ac_delim='%!_!# '
13426 for ac_last_try in false false false false false :; do
13427 . ./conf$$subs.sh ||
13428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13429
13430 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13431 if test $ac_delim_n = $ac_delim_num; then
13432 break
13433 elif $ac_last_try; then
13434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13435 else
13436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13437 fi
13438 done
13439 rm -f conf$$subs.sh
13440
13441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13443 _ACEOF
13444 sed -n '
13445 h
13446 s/^/S["/; s/!.*/"]=/
13447 p
13448 g
13449 s/^[^!]*!//
13450 :repl
13451 t repl
13452 s/'"$ac_delim"'$//
13453 t delim
13454 :nl
13455 h
13456 s/\(.\{148\}\)..*/\1/
13457 t more1
13458 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13459 p
13460 n
13461 b repl
13462 :more1
13463 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13464 p
13465 g
13466 s/.\{148\}//
13467 t nl
13468 :delim
13469 h
13470 s/\(.\{148\}\)..*/\1/
13471 t more2
13472 s/["\\]/\\&/g; s/^/"/; s/$/"/
13473 p
13474 b
13475 :more2
13476 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13477 p
13478 g
13479 s/.\{148\}//
13480 t delim
13481 ' <conf$$subs.awk | sed '
13482 /^[^""]/{
13483 N
13484 s/\n//
13485 }
13486 ' >>$CONFIG_STATUS || ac_write_fail=1
13487 rm -f conf$$subs.awk
13488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489 _ACAWK
13490 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13491 for (key in S) S_is_set[key] = 1
13492 FS = ""
13493
13494 }
13495 {
13496 line = $ 0
13497 nfields = split(line, field, "@")
13498 substed = 0
13499 len = length(field[1])
13500 for (i = 2; i < nfields; i++) {
13501 key = field[i]
13502 keylen = length(key)
13503 if (S_is_set[key]) {
13504 value = S[key]
13505 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13506 len += length(value) + length(field[++i])
13507 substed = 1
13508 } else
13509 len += 1 + keylen
13510 }
13511
13512 print line
13513 }
13514
13515 _ACAWK
13516 _ACEOF
13517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13518 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13519 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13520 else
13521 cat
13522 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13523 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13524 _ACEOF
13525
13526 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13527 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13528 # trailing colons and then remove the whole line if VPATH becomes empty
13529 # (actually we leave an empty line to preserve line numbers).
13530 if test "x$srcdir" = x.; then
13531 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13532 h
13533 s///
13534 s/^/:/
13535 s/[ ]*$/:/
13536 s/:\$(srcdir):/:/g
13537 s/:\${srcdir}:/:/g
13538 s/:@srcdir@:/:/g
13539 s/^:*//
13540 s/:*$//
13541 x
13542 s/\(=[ ]*\).*/\1/
13543 G
13544 s/\n//
13545 s/^[^=]*=[ ]*$//
13546 }'
13547 fi
13548
13549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13550 fi # test -n "$CONFIG_FILES"
13551
13552 # Set up the scripts for CONFIG_HEADERS section.
13553 # No need to generate them if there are no CONFIG_HEADERS.
13554 # This happens for instance with './config.status Makefile'.
13555 if test -n "$CONFIG_HEADERS"; then
13556 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13557 BEGIN {
13558 _ACEOF
13559
13560 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13561 # here-document in config.status, that substitutes the proper values into
13562 # config.h.in to produce config.h.
13563
13564 # Create a delimiter string that does not exist in confdefs.h, to ease
13565 # handling of long lines.
13566 ac_delim='%!_!# '
13567 for ac_last_try in false false :; do
13568 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13569 if test -z "$ac_tt"; then
13570 break
13571 elif $ac_last_try; then
13572 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13573 else
13574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13575 fi
13576 done
13577
13578 # For the awk script, D is an array of macro values keyed by name,
13579 # likewise P contains macro parameters if any. Preserve backslash
13580 # newline sequences.
13581
13582 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13583 sed -n '
13584 s/.\{148\}/&'"$ac_delim"'/g
13585 t rset
13586 :rset
13587 s/^[ ]*#[ ]*define[ ][ ]*/ /
13588 t def
13589 d
13590 :def
13591 s/\\$//
13592 t bsnl
13593 s/["\\]/\\&/g
13594 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13595 D["\1"]=" \3"/p
13596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13597 d
13598 :bsnl
13599 s/["\\]/\\&/g
13600 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13601 D["\1"]=" \3\\\\\\n"\\/p
13602 t cont
13603 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13604 t cont
13605 d
13606 :cont
13607 n
13608 s/.\{148\}/&'"$ac_delim"'/g
13609 t clear
13610 :clear
13611 s/\\$//
13612 t bsnlc
13613 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13614 d
13615 :bsnlc
13616 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13617 b cont
13618 ' <confdefs.h | sed '
13619 s/'"$ac_delim"'/"\\\
13620 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13621
13622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623 for (key in D) D_is_set[key] = 1
13624 FS = ""
13625 }
13626 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13627 line = \$ 0
13628 split(line, arg, " ")
13629 if (arg[1] == "#") {
13630 defundef = arg[2]
13631 mac1 = arg[3]
13632 } else {
13633 defundef = substr(arg[1], 2)
13634 mac1 = arg[2]
13635 }
13636 split(mac1, mac2, "(") #)
13637 macro = mac2[1]
13638 prefix = substr(line, 1, index(line, defundef) - 1)
13639 if (D_is_set[macro]) {
13640 # Preserve the white space surrounding the "#".
13641 print prefix "define", macro P[macro] D[macro]
13642 next
13643 } else {
13644 # Replace #undef with comments. This is necessary, for example,
13645 # in the case of _POSIX_SOURCE, which is predefined and required
13646 # on some systems where configure will not decide to define it.
13647 if (defundef == "undef") {
13648 print "/*", prefix defundef, macro, "*/"
13649 next
13650 }
13651 }
13652 }
13653 { print }
13654 _ACAWK
13655 _ACEOF
13656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13657 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13658 fi # test -n "$CONFIG_HEADERS"
13659
13660
13661 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13662 shift
13663 for ac_tag
13664 do
13665 case $ac_tag in
13666 :[FHLC]) ac_mode=$ac_tag; continue;;
13667 esac
13668 case $ac_mode$ac_tag in
13669 :[FHL]*:*);;
13670 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13671 :[FH]-) ac_tag=-:-;;
13672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13673 esac
13674 ac_save_IFS=$IFS
13675 IFS=:
13676 set x $ac_tag
13677 IFS=$ac_save_IFS
13678 shift
13679 ac_file=$1
13680 shift
13681
13682 case $ac_mode in
13683 :L) ac_source=$1;;
13684 :[FH])
13685 ac_file_inputs=
13686 for ac_f
13687 do
13688 case $ac_f in
13689 -) ac_f="$ac_tmp/stdin";;
13690 *) # Look for the file first in the build tree, then in the source tree
13691 # (if the path is not absolute). The absolute path cannot be DOS-style,
13692 # because $ac_f cannot contain ':'.
13693 test -f "$ac_f" ||
13694 case $ac_f in
13695 [\\/$]*) false;;
13696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13697 esac ||
13698 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13699 esac
13700 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13701 as_fn_append ac_file_inputs " '$ac_f'"
13702 done
13703
13704 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13705 # use $as_me), people would be surprised to read:
13706 # /* config.h. Generated by config.status. */
13707 configure_input='Generated from '`
13708 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13709 `' by configure.'
13710 if test x"$ac_file" != x-; then
13711 configure_input="$ac_file. $configure_input"
13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13713 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13714 fi
13715 # Neutralize special characters interpreted by sed in replacement strings.
13716 case $configure_input in #(
13717 *\&* | *\|* | *\\* )
13718 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13719 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13720 *) ac_sed_conf_input=$configure_input;;
13721 esac
13722
13723 case $ac_tag in
13724 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13726 esac
13727 ;;
13728 esac
13729
13730 ac_dir=`$as_dirname -- "$ac_file" ||
13731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13732 X"$ac_file" : 'X\(//\)[^/]' \| \
13733 X"$ac_file" : 'X\(//\)$' \| \
13734 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13735 printf "%s\n" X"$ac_file" |
13736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13737 s//\1/
13738 q
13739 }
13740 /^X\(\/\/\)[^/].*/{
13741 s//\1/
13742 q
13743 }
13744 /^X\(\/\/\)$/{
13745 s//\1/
13746 q
13747 }
13748 /^X\(\/\).*/{
13749 s//\1/
13750 q
13751 }
13752 s/.*/./; q'`
13753 as_dir="$ac_dir"; as_fn_mkdir_p
13754 ac_builddir=.
13755
13756 case "$ac_dir" in
13757 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13758 *)
13759 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13760 # A ".." for each directory in $ac_dir_suffix.
13761 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13762 case $ac_top_builddir_sub in
13763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13765 esac ;;
13766 esac
13767 ac_abs_top_builddir=$ac_pwd
13768 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13769 # for backward compatibility:
13770 ac_top_builddir=$ac_top_build_prefix
13771
13772 case $srcdir in
13773 .) # We are building in place.
13774 ac_srcdir=.
13775 ac_top_srcdir=$ac_top_builddir_sub
13776 ac_abs_top_srcdir=$ac_pwd ;;
13777 [\\/]* | ?:[\\/]* ) # Absolute name.
13778 ac_srcdir=$srcdir$ac_dir_suffix;
13779 ac_top_srcdir=$srcdir
13780 ac_abs_top_srcdir=$srcdir ;;
13781 *) # Relative name.
13782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13783 ac_top_srcdir=$ac_top_build_prefix$srcdir
13784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13785 esac
13786 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13787
13788
13789 case $ac_mode in
13790 :F)
13791 #
13792 # CONFIG_FILE
13793 #
13794
13795 case $INSTALL in
13796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13797 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13798 esac
13799 ac_MKDIR_P=$MKDIR_P
13800 case $MKDIR_P in
13801 [\\/$]* | ?:[\\/]* ) ;;
13802 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13803 esac
13804 _ACEOF
13805
13806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13807 # If the template does not know about datarootdir, expand it.
13808 # FIXME: This hack should be removed a few years after 2.60.
13809 ac_datarootdir_hack=; ac_datarootdir_seen=
13810 ac_sed_dataroot='
13811 /datarootdir/ {
13812 p
13813 q
13814 }
13815 /@datadir@/p
13816 /@docdir@/p
13817 /@infodir@/p
13818 /@localedir@/p
13819 /@mandir@/p'
13820 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13821 *datarootdir*) ac_datarootdir_seen=yes;;
13822 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13824 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13825 _ACEOF
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 ac_datarootdir_hack='
13828 s&@datadir@&$datadir&g
13829 s&@docdir@&$docdir&g
13830 s&@infodir@&$infodir&g
13831 s&@localedir@&$localedir&g
13832 s&@mandir@&$mandir&g
13833 s&\\\${datarootdir}&$datarootdir&g' ;;
13834 esac
13835 _ACEOF
13836
13837 # Neutralize VPATH when '$srcdir' = '.'.
13838 # Shell code in configure.ac might set extrasub.
13839 # FIXME: do we really want to maintain this feature?
13840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13841 ac_sed_extra="$ac_vpsub
13842 $extrasub
13843 _ACEOF
13844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845 :t
13846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13847 s|@configure_input@|$ac_sed_conf_input|;t t
13848 s&@top_builddir@&$ac_top_builddir_sub&;t t
13849 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13850 s&@srcdir@&$ac_srcdir&;t t
13851 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13852 s&@top_srcdir@&$ac_top_srcdir&;t t
13853 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13854 s&@builddir@&$ac_builddir&;t t
13855 s&@abs_builddir@&$ac_abs_builddir&;t t
13856 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13857 s&@INSTALL@&$ac_INSTALL&;t t
13858 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13859 $ac_datarootdir_hack
13860 "
13861 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13862 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13863
13864 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13865 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13866 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13867 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13869 which seems to be undefined. Please make sure it is defined" >&5
13870 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13871 which seems to be undefined. Please make sure it is defined" >&2;}
13872
13873 rm -f "$ac_tmp/stdin"
13874 case $ac_file in
13875 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13876 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13877 esac \
13878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13879 ;;
13880 :H)
13881 #
13882 # CONFIG_HEADER
13883 #
13884 if test x"$ac_file" != x-; then
13885 {
13886 printf "%s\n" "/* $configure_input */" >&1 \
13887 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13888 } >"$ac_tmp/config.h" \
13889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13890 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13892 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13893 else
13894 rm -f "$ac_file"
13895 mv "$ac_tmp/config.h" "$ac_file" \
13896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13897 fi
13898 else
13899 printf "%s\n" "/* $configure_input */" >&1 \
13900 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13901 || as_fn_error $? "could not create -" "$LINENO" 5
13902 fi
13903 # Compute "$ac_file"'s index in $config_headers.
13904 _am_arg="$ac_file"
13905 _am_stamp_count=1
13906 for _am_header in $config_headers :; do
13907 case $_am_header in
13908 $_am_arg | $_am_arg:* )
13909 break ;;
13910 * )
13911 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13912 esac
13913 done
13914 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13915 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13916 X"$_am_arg" : 'X\(//\)[^/]' \| \
13917 X"$_am_arg" : 'X\(//\)$' \| \
13918 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13919 printf "%s\n" X"$_am_arg" |
13920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13921 s//\1/
13922 q
13923 }
13924 /^X\(\/\/\)[^/].*/{
13925 s//\1/
13926 q
13927 }
13928 /^X\(\/\/\)$/{
13929 s//\1/
13930 q
13931 }
13932 /^X\(\/\).*/{
13933 s//\1/
13934 q
13935 }
13936 s/.*/./; q'`/stamp-h$_am_stamp_count
13937 ;;
13938
13939 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13940 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13941 ;;
13942 esac
13943
13944
13945 case $ac_file$ac_mode in
13946 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13947 # Older Autoconf quotes --file arguments for eval, but not when files
13948 # are listed without --file. Let's play safe and only enable the eval
13949 # if we detect the quoting.
13950 # TODO: see whether this extra hack can be removed once we start
13951 # requiring Autoconf 2.70 or later.
13952 case $CONFIG_FILES in #(
13953 *\'*) :
13954 eval set x "$CONFIG_FILES" ;; #(
13955 *) :
13956 set x $CONFIG_FILES ;; #(
13957 *) :
13958 ;;
13959 esac
13960 shift
13961 # Used to flag and report bootstrapping failures.
13962 am_rc=0
13963 for am_mf
13964 do
13965 # Strip MF so we end up with the name of the file.
13966 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13967 # Check whether this is an Automake generated Makefile which includes
13968 # dependency-tracking related rules and includes.
13969 # Grep'ing the whole file directly is not great: AIX grep has a line
13970 # limit of 2048, but all sed's we know have understand at least 4000.
13971 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13972 || continue
13973 am_dirpart=`$as_dirname -- "$am_mf" ||
13974 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13975 X"$am_mf" : 'X\(//\)[^/]' \| \
13976 X"$am_mf" : 'X\(//\)$' \| \
13977 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13978 printf "%s\n" X"$am_mf" |
13979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13980 s//\1/
13981 q
13982 }
13983 /^X\(\/\/\)[^/].*/{
13984 s//\1/
13985 q
13986 }
13987 /^X\(\/\/\)$/{
13988 s//\1/
13989 q
13990 }
13991 /^X\(\/\).*/{
13992 s//\1/
13993 q
13994 }
13995 s/.*/./; q'`
13996 am_filepart=`$as_basename -- "$am_mf" ||
13997 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13998 X"$am_mf" : 'X\(//\)$' \| \
13999 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14000 printf "%s\n" X/"$am_mf" |
14001 sed '/^.*\/\([^/][^/]*\)\/*$/{
14002 s//\1/
14003 q
14004 }
14005 /^X\/\(\/\/\)$/{
14006 s//\1/
14007 q
14008 }
14009 /^X\/\(\/\).*/{
14010 s//\1/
14011 q
14012 }
14013 s/.*/./; q'`
14014 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14015 && sed -e '/# am--include-marker/d' "$am_filepart" \
14016 | $MAKE -f - am--depfiles" >&5
14017 (cd "$am_dirpart" \
14018 && sed -e '/# am--include-marker/d' "$am_filepart" \
14019 | $MAKE -f - am--depfiles) >&5 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } || am_rc=$?
14023 done
14024 if test $am_rc -ne 0; then
14025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14026 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14027 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14028 for automatic dependency tracking. If GNU make was not used, consider
14029 re-running the configure script with MAKE=\"gmake\" (or whatever is
14030 necessary). You can also try re-running configure with the
14031 '--disable-dependency-tracking' option to at least be able to build
14032 the package (albeit without support for automatic dependency tracking).
14033 See 'config.log' for more details" "$LINENO" 5; }
14034 fi
14035 { am_dirpart=; unset am_dirpart;}
14036 { am_filepart=; unset am_filepart;}
14037 { am_mf=; unset am_mf;}
14038 { am_rc=; unset am_rc;}
14039 rm -f conftest-deps.mk
14040 }
14041 ;;
14042
14043 esac
14044 done # for ac_tag
14045
14046
14047 as_fn_exit 0
14048 _ACEOF
14049 ac_clean_files=$ac_clean_files_save
14050
14051 test $ac_write_fail = 0 ||
14052 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14053
14054
14055 # configure is writing to config.log, and then calls config.status.
14056 # config.status does its own redirection, appending to config.log.
14057 # Unfortunately, on DOS this fails, as config.log is still kept open
14058 # by configure, so config.status won't be able to write to it; its
14059 # output is simply discarded. So we exec the FD to /dev/null,
14060 # effectively closing config.log, so it can be properly (re)opened and
14061 # appended to by config.status. When coming back to configure, we
14062 # need to make the FD available again.
14063 if test "$no_create" != yes; then
14064 ac_cs_success=:
14065 ac_config_status_args=
14066 test "$silent" = yes &&
14067 ac_config_status_args="$ac_config_status_args --quiet"
14068 exec 5>/dev/null
14069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14070 exec 5>>config.log
14071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14072 # would make configure fail if this is the last instruction.
14073 $ac_cs_success || as_fn_exit 1
14074 fi
14075 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14077 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14078 fi
14079
14080
14081