configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for iceauth 1.0.10.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/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/iceauth/-/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='iceauth'
607 PACKAGE_TARNAME='iceauth'
608 PACKAGE_VERSION='1.0.10'
609 PACKAGE_STRING='iceauth 1.0.10'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
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 ICEAUTH_LIBS
656 ICEAUTH_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 with_lint
783 enable_year2038
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 PKG_CONFIG
794 PKG_CONFIG_PATH
795 PKG_CONFIG_LIBDIR
796 ICEAUTH_CFLAGS
797 ICEAUTH_LIBS
798 LINT
799 LINT_FLAGS'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: '$ac_useropt'"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: '$ac_useropt'"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -runstatedir | --runstatedir | --runstatedi | --runstated \
1090 | --runstate | --runstat | --runsta | --runst | --runs \
1091 | --run | --ru | --r)
1092 ac_prev=runstatedir ;;
1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095 | --run=* | --ru=* | --r=*)
1096 runstatedir=$ac_optarg ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: '$ac_useropt'"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1158
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: '$ac_useropt'"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
1193 -*) as_fn_error $? "unrecognized option: '$ac_option'
1194 Try '$0 --help' for more information"
1195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
1209 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 ;;
1214
1215 esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir runstatedir
1236 do
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: '$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 printf "%s\n" X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313 else
1314 ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 'configure' configures iceauth 1.0.10 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print 'checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for '--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or '..']
1367
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374 By default, 'make install' will install all the files in
1375 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than '$ac_default_prefix' using '--prefix',
1377 for instance '--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/iceauth]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of iceauth 1.0.10:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-dependency-tracking
1428 do not reject slow dependency extractors
1429 --disable-dependency-tracking
1430 speeds up one-time build
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --disable-selective-werror
1434 Turn off selective compiler errors. (default:
1435 enabled)
1436 --enable-strict-compilation
1437 Enable all warnings from compiler and make them
1438 errors (default: disabled)
1439 --disable-largefile omit support for large files
1440 --enable-year2038 support timestamps after 2038
1441
1442 Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-lint Use a lint-style source code checker (default:
1446 disabled)
1447
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 PKG_CONFIG path to pkg-config utility
1457 PKG_CONFIG_PATH
1458 directories to add to pkg-config's search path
1459 PKG_CONFIG_LIBDIR
1460 path overriding pkg-config's built-in search path
1461 ICEAUTH_CFLAGS
1462 C compiler flags for ICEAUTH, overriding pkg-config
1463 ICEAUTH_LIBS
1464 linker flags for ICEAUTH, overriding pkg-config
1465 LINT Path to a lint-style command
1466 LINT_FLAGS Flags for the lint-style command
1467
1468 Use these variables to override the choices made by 'configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for configure.gnu first; this name is used for a wrapper for
1518 # Metaconfig's "Configure" on case-insensitive file systems.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1525 else
1526 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1529 done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534 cat <<\_ACEOF
1535 iceauth configure 1.0.10
1536 generated by GNU Autoconf 2.72
1537
1538 Copyright (C) 2023 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542 exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest.beam
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 printf "%s\n" "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext
1575 then :
1576 ac_retval=0
1577 else case e in #(
1578 e) printf "%s\n" "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1 ;;
1582 esac
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1590 # -------------------------------------------------------
1591 # Tests whether HEADER exists and can be compiled using the include files in
1592 # INCLUDES, setting the cache variable VAR accordingly.
1593 ac_fn_c_check_header_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 printf %s "checking for $2... " >&6; }
1598 if eval test \${$3+y}
1599 then :
1600 printf %s "(cached) " >&6
1601 else case e in #(
1602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1604 $4
1605 #include <$2>
1606 _ACEOF
1607 if ac_fn_c_try_compile "$LINENO"
1608 then :
1609 eval "$3=yes"
1610 else case e in #(
1611 e) eval "$3=no" ;;
1612 esac
1613 fi
1614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1615 esac
1616 fi
1617 eval ac_res=\$$3
1618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 printf "%s\n" "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621
1622 } # ac_fn_c_check_header_compile
1623
1624 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1625 # ------------------------------------------------------------------
1626 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1627 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1628 ac_fn_check_decl ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 as_decl_name=`echo $2|sed 's/ *(.*//'`
1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1633 printf %s "checking whether $as_decl_name is declared... " >&6; }
1634 if eval test \${$3+y}
1635 then :
1636 printf %s "(cached) " >&6
1637 else case e in #(
1638 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1639 eval ac_save_FLAGS=\$$6
1640 as_fn_append $6 " $5"
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1643 $4
1644 int
1645 main (void)
1646 {
1647 #ifndef $as_decl_name
1648 #ifdef __cplusplus
1649 (void) $as_decl_use;
1650 #else
1651 (void) $as_decl_name;
1652 #endif
1653 #endif
1654
1655 ;
1656 return 0;
1657 }
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"
1660 then :
1661 eval "$3=yes"
1662 else case e in #(
1663 e) eval "$3=no" ;;
1664 esac
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1667 eval $6=\$ac_save_FLAGS
1668 ;;
1669 esac
1670 fi
1671 eval ac_res=\$$3
1672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 printf "%s\n" "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_check_decl
1677
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_link ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 printf "%s\n" "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 test -x conftest$ac_exeext
1706 }
1707 then :
1708 ac_retval=0
1709 else case e in #(
1710 e) printf "%s\n" "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1 ;;
1714 esac
1715 fi
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_check_func LINENO FUNC VAR
1727 # ----------------------------------
1728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729 ac_fn_c_check_func ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 printf %s "checking for $2... " >&6; }
1734 if eval test \${$3+y}
1735 then :
1736 printf %s "(cached) " >&6
1737 else case e in #(
1738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1743
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (void); below. */
1746
1747 #include <limits.h>
1748 #undef $2
1749
1750 /* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1753 #ifdef __cplusplus
1754 extern "C"
1755 #endif
1756 char $2 (void);
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined __stub_$2 || defined __stub___$2
1761 choke me
1762 #endif
1763
1764 int
1765 main (void)
1766 {
1767 return $2 ();
1768 ;
1769 return 0;
1770 }
1771 _ACEOF
1772 if ac_fn_c_try_link "$LINENO"
1773 then :
1774 eval "$3=yes"
1775 else case e in #(
1776 e) eval "$3=no" ;;
1777 esac
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1780 conftest$ac_exeext conftest.$ac_ext ;;
1781 esac
1782 fi
1783 eval ac_res=\$$3
1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 printf "%s\n" "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788 } # ac_fn_c_check_func
1789 ac_configure_args_raw=
1790 for ac_arg
1791 do
1792 case $ac_arg in
1793 *\'*)
1794 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 esac
1796 as_fn_append ac_configure_args_raw " '$ac_arg'"
1797 done
1798
1799 case $ac_configure_args_raw in
1800 *$as_nl*)
1801 ac_safe_unquote= ;;
1802 *)
1803 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1804 ac_unsafe_a="$ac_unsafe_z#~"
1805 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1806 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1807 esac
1808
1809 cat >config.log <<_ACEOF
1810 This file contains any messages produced by compilers while
1811 running configure, to aid debugging if configure makes a mistake.
1812
1813 It was created by iceauth $as_me 1.0.10, which was
1814 generated by GNU Autoconf 2.72. Invocation command line was
1815
1816 $ $0$ac_configure_args_raw
1817
1818 _ACEOF
1819 exec 5>>config.log
1820 {
1821 cat <<_ASUNAME
1822 ## --------- ##
1823 ## Platform. ##
1824 ## --------- ##
1825
1826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1831
1832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1833 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1834
1835 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1836 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1838 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1839 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1840 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1841 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1842
1843 _ASUNAME
1844
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848 IFS=$as_save_IFS
1849 case $as_dir in #(((
1850 '') as_dir=./ ;;
1851 */) ;;
1852 *) as_dir=$as_dir/ ;;
1853 esac
1854 printf "%s\n" "PATH: $as_dir"
1855 done
1856 IFS=$as_save_IFS
1857
1858 } >&5
1859
1860 cat >&5 <<_ACEOF
1861
1862
1863 ## ----------- ##
1864 ## Core tests. ##
1865 ## ----------- ##
1866
1867 _ACEOF
1868
1869
1870 # Keep a trace of the command line.
1871 # Strip out --no-create and --no-recursion so they do not pile up.
1872 # Strip out --silent because we don't want to record it for future runs.
1873 # Also quote any args containing shell meta-characters.
1874 # Make two passes to allow for proper duplicate-argument suppression.
1875 ac_configure_args=
1876 ac_configure_args0=
1877 ac_configure_args1=
1878 ac_must_keep_next=false
1879 for ac_pass in 1 2
1880 do
1881 for ac_arg
1882 do
1883 case $ac_arg in
1884 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1886 | -silent | --silent | --silen | --sile | --sil)
1887 continue ;;
1888 *\'*)
1889 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 esac
1891 case $ac_pass in
1892 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1893 2)
1894 as_fn_append ac_configure_args1 " '$ac_arg'"
1895 if test $ac_must_keep_next = true; then
1896 ac_must_keep_next=false # Got value, back to normal.
1897 else
1898 case $ac_arg in
1899 *=* | --config-cache | -C | -disable-* | --disable-* \
1900 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1901 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1902 | -with-* | --with-* | -without-* | --without-* | --x)
1903 case "$ac_configure_args0 " in
1904 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1905 esac
1906 ;;
1907 -* ) ac_must_keep_next=true ;;
1908 esac
1909 fi
1910 as_fn_append ac_configure_args " '$ac_arg'"
1911 ;;
1912 esac
1913 done
1914 done
1915 { ac_configure_args0=; unset ac_configure_args0;}
1916 { ac_configure_args1=; unset ac_configure_args1;}
1917
1918 # When interrupted or exit'd, cleanup temporary files, and complete
1919 # config.log. We remove comments because anyway the quotes in there
1920 # would cause problems or look ugly.
1921 # WARNING: Use '\'' to represent an apostrophe within the trap.
1922 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1923 trap 'exit_status=$?
1924 # Sanitize IFS.
1925 IFS=" "" $as_nl"
1926 # Save into config.log some information that might help in debugging.
1927 {
1928 echo
1929
1930 printf "%s\n" "## ---------------- ##
1931 ## Cache variables. ##
1932 ## ---------------- ##"
1933 echo
1934 # The following way of writing the cache mishandles newlines in values,
1935 (
1936 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1937 eval ac_val=\$$ac_var
1938 case $ac_val in #(
1939 *${as_nl}*)
1940 case $ac_var in #(
1941 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1942 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1943 esac
1944 case $ac_var in #(
1945 _ | IFS | as_nl) ;; #(
1946 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1947 *) { eval $ac_var=; unset $ac_var;} ;;
1948 esac ;;
1949 esac
1950 done
1951 (set) 2>&1 |
1952 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1953 *${as_nl}ac_space=\ *)
1954 sed -n \
1955 "s/'\''/'\''\\\\'\'''\''/g;
1956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1957 ;; #(
1958 *)
1959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1960 ;;
1961 esac |
1962 sort
1963 )
1964 echo
1965
1966 printf "%s\n" "## ----------------- ##
1967 ## Output variables. ##
1968 ## ----------------- ##"
1969 echo
1970 for ac_var in $ac_subst_vars
1971 do
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 printf "%s\n" "$ac_var='\''$ac_val'\''"
1977 done | sort
1978 echo
1979
1980 if test -n "$ac_subst_files"; then
1981 printf "%s\n" "## ------------------- ##
1982 ## File substitutions. ##
1983 ## ------------------- ##"
1984 echo
1985 for ac_var in $ac_subst_files
1986 do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 esac
1991 printf "%s\n" "$ac_var='\''$ac_val'\''"
1992 done | sort
1993 echo
1994 fi
1995
1996 if test -s confdefs.h; then
1997 printf "%s\n" "## ----------- ##
1998 ## confdefs.h. ##
1999 ## ----------- ##"
2000 echo
2001 cat confdefs.h
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
2005 printf "%s\n" "$as_me: caught signal $ac_signal"
2006 printf "%s\n" "$as_me: exit $exit_status"
2007 } >&5
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2010 exit $exit_status
2011 ' 0
2012 for ac_signal in 1 2 13 15; do
2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2014 done
2015 ac_signal=0
2016
2017 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2018 rm -f -r conftest* confdefs.h
2019
2020 printf "%s\n" "/* confdefs.h */" > confdefs.h
2021
2022 # Predefined preprocessor variables.
2023
2024 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2025
2026 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2027
2028 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2029
2030 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2031
2032 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2033
2034 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2035
2036
2037 # Let the site file select an alternate cache file if it wants to.
2038 # Prefer an explicitly selected file to automatically selected ones.
2039 if test -n "$CONFIG_SITE"; then
2040 ac_site_files="$CONFIG_SITE"
2041 elif test "x$prefix" != xNONE; then
2042 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2043 else
2044 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2045 fi
2046
2047 for ac_site_file in $ac_site_files
2048 do
2049 case $ac_site_file in #(
2050 */*) :
2051 ;; #(
2052 *) :
2053 ac_site_file=./$ac_site_file ;;
2054 esac
2055 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2057 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2058 sed 's/^/| /' "$ac_site_file" >&5
2059 . "$ac_site_file" \
2060 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2061 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2062 as_fn_error $? "failed to load site script $ac_site_file
2063 See 'config.log' for more details" "$LINENO" 5; }
2064 fi
2065 done
2066
2067 if test -r "$cache_file"; then
2068 # Some versions of bash will fail to source /dev/null (special files
2069 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2070 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2073 case $cache_file in
2074 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075 *) . "./$cache_file";;
2076 esac
2077 fi
2078 else
2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2081 >$cache_file
2082 fi
2083
2084 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2085 # Test code for whether the C compiler supports C89 (global declarations)
2086 ac_c_conftest_c89_globals='
2087 /* Does the compiler advertise C89 conformance?
2088 Do not test the value of __STDC__, because some compilers set it to 0
2089 while being otherwise adequately conformant. */
2090 #if !defined __STDC__
2091 # error "Compiler does not advertise C89 conformance"
2092 #endif
2093
2094 #include <stddef.h>
2095 #include <stdarg.h>
2096 struct stat;
2097 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2098 struct buf { int x; };
2099 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2100 static char *e (char **p, int i)
2101 {
2102 return p[i];
2103 }
2104 static char *f (char * (*g) (char **, int), char **p, ...)
2105 {
2106 char *s;
2107 va_list v;
2108 va_start (v,p);
2109 s = g (p, va_arg (v,int));
2110 va_end (v);
2111 return s;
2112 }
2113
2114 /* C89 style stringification. */
2115 #define noexpand_stringify(a) #a
2116 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2117
2118 /* C89 style token pasting. Exercises some of the corner cases that
2119 e.g. old MSVC gets wrong, but not very hard. */
2120 #define noexpand_concat(a,b) a##b
2121 #define expand_concat(a,b) noexpand_concat(a,b)
2122 extern int vA;
2123 extern int vbee;
2124 #define aye A
2125 #define bee B
2126 int *pvA = &expand_concat(v,aye);
2127 int *pvbee = &noexpand_concat(v,bee);
2128
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not \xHH hex character constants.
2131 These do not provoke an error unfortunately, instead are silently treated
2132 as an "x". The following induces an error, until -std is added to get
2133 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2134 array size at least. It is necessary to write \x00 == 0 to get something
2135 that is true only with -std. */
2136 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2137
2138 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2139 inside strings and character constants. */
2140 #define FOO(x) '\''x'\''
2141 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2142
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2147 int, int);'
2148
2149 # Test code for whether the C compiler supports C89 (body of main).
2150 ac_c_conftest_c89_main='
2151 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2152 '
2153
2154 # Test code for whether the C compiler supports C99 (global declarations)
2155 ac_c_conftest_c99_globals='
2156 /* Does the compiler advertise C99 conformance? */
2157 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2158 # error "Compiler does not advertise C99 conformance"
2159 #endif
2160
2161 // See if C++-style comments work.
2162
2163 #include <stdbool.h>
2164 extern int puts (const char *);
2165 extern int printf (const char *, ...);
2166 extern int dprintf (int, const char *, ...);
2167 extern void *malloc (size_t);
2168 extern void free (void *);
2169
2170 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2171 // dprintf is used instead of fprintf to avoid needing to declare
2172 // FILE and stderr.
2173 #define debug(...) dprintf (2, __VA_ARGS__)
2174 #define showlist(...) puts (#__VA_ARGS__)
2175 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2176 static void
2177 test_varargs_macros (void)
2178 {
2179 int x = 1234;
2180 int y = 5678;
2181 debug ("Flag");
2182 debug ("X = %d\n", x);
2183 showlist (The first, second, and third items.);
2184 report (x>y, "x is %d but y is %d", x, y);
2185 }
2186
2187 // Check long long types.
2188 #define BIG64 18446744073709551615ull
2189 #define BIG32 4294967295ul
2190 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2191 #if !BIG_OK
2192 #error "your preprocessor is broken"
2193 #endif
2194 #if BIG_OK
2195 #else
2196 #error "your preprocessor is broken"
2197 #endif
2198 static long long int bignum = -9223372036854775807LL;
2199 static unsigned long long int ubignum = BIG64;
2200
2201 struct incomplete_array
2202 {
2203 int datasize;
2204 double data[];
2205 };
2206
2207 struct named_init {
2208 int number;
2209 const wchar_t *name;
2210 double average;
2211 };
2212
2213 typedef const char *ccp;
2214
2215 static inline int
2216 test_restrict (ccp restrict text)
2217 {
2218 // Iterate through items via the restricted pointer.
2219 // Also check for declarations in for loops.
2220 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2221 continue;
2222 return 0;
2223 }
2224
2225 // Check varargs and va_copy.
2226 static bool
2227 test_varargs (const char *format, ...)
2228 {
2229 va_list args;
2230 va_start (args, format);
2231 va_list args_copy;
2232 va_copy (args_copy, args);
2233
2234 const char *str = "";
2235 int number = 0;
2236 float fnumber = 0;
2237
2238 while (*format)
2239 {
2240 switch (*format++)
2241 {
2242 case '\''s'\'': // string
2243 str = va_arg (args_copy, const char *);
2244 break;
2245 case '\''d'\'': // int
2246 number = va_arg (args_copy, int);
2247 break;
2248 case '\''f'\'': // float
2249 fnumber = va_arg (args_copy, double);
2250 break;
2251 default:
2252 break;
2253 }
2254 }
2255 va_end (args_copy);
2256 va_end (args);
2257
2258 return *str && number && fnumber;
2259 }
2260 '
2261
2262 # Test code for whether the C compiler supports C99 (body of main).
2263 ac_c_conftest_c99_main='
2264 // Check bool.
2265 _Bool success = false;
2266 success |= (argc != 0);
2267
2268 // Check restrict.
2269 if (test_restrict ("String literal") == 0)
2270 success = true;
2271 char *restrict newvar = "Another string";
2272
2273 // Check varargs.
2274 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2275 test_varargs_macros ();
2276
2277 // Check flexible array members.
2278 struct incomplete_array *ia =
2279 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2280 ia->datasize = 10;
2281 for (int i = 0; i < ia->datasize; ++i)
2282 ia->data[i] = i * 1.234;
2283 // Work around memory leak warnings.
2284 free (ia);
2285
2286 // Check named initializers.
2287 struct named_init ni = {
2288 .number = 34,
2289 .name = L"Test wide string",
2290 .average = 543.34343,
2291 };
2292
2293 ni.number = 58;
2294
2295 int dynamic_array[ni.number];
2296 dynamic_array[0] = argv[0][0];
2297 dynamic_array[ni.number - 1] = 543;
2298
2299 // work around unused variable warnings
2300 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2301 || dynamic_array[ni.number - 1] != 543);
2302 '
2303
2304 # Test code for whether the C compiler supports C11 (global declarations)
2305 ac_c_conftest_c11_globals='
2306 /* Does the compiler advertise C11 conformance? */
2307 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2308 # error "Compiler does not advertise C11 conformance"
2309 #endif
2310
2311 // Check _Alignas.
2312 char _Alignas (double) aligned_as_double;
2313 char _Alignas (0) no_special_alignment;
2314 extern char aligned_as_int;
2315 char _Alignas (0) _Alignas (int) aligned_as_int;
2316
2317 // Check _Alignof.
2318 enum
2319 {
2320 int_alignment = _Alignof (int),
2321 int_array_alignment = _Alignof (int[100]),
2322 char_alignment = _Alignof (char)
2323 };
2324 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2325
2326 // Check _Noreturn.
2327 int _Noreturn does_not_return (void) { for (;;) continue; }
2328
2329 // Check _Static_assert.
2330 struct test_static_assert
2331 {
2332 int x;
2333 _Static_assert (sizeof (int) <= sizeof (long int),
2334 "_Static_assert does not work in struct");
2335 long int y;
2336 };
2337
2338 // Check UTF-8 literals.
2339 #define u8 syntax error!
2340 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2341
2342 // Check duplicate typedefs.
2343 typedef long *long_ptr;
2344 typedef long int *long_ptr;
2345 typedef long_ptr long_ptr;
2346
2347 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2348 struct anonymous
2349 {
2350 union {
2351 struct { int i; int j; };
2352 struct { int k; long int l; } w;
2353 };
2354 int m;
2355 } v1;
2356 '
2357
2358 # Test code for whether the C compiler supports C11 (body of main).
2359 ac_c_conftest_c11_main='
2360 _Static_assert ((offsetof (struct anonymous, i)
2361 == offsetof (struct anonymous, w.k)),
2362 "Anonymous union alignment botch");
2363 v1.i = 2;
2364 v1.w.k = 5;
2365 ok |= v1.i != 5;
2366 '
2367
2368 # Test code for whether the C compiler supports C11 (complete).
2369 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2370 ${ac_c_conftest_c99_globals}
2371 ${ac_c_conftest_c11_globals}
2372
2373 int
2374 main (int argc, char **argv)
2375 {
2376 int ok = 0;
2377 ${ac_c_conftest_c89_main}
2378 ${ac_c_conftest_c99_main}
2379 ${ac_c_conftest_c11_main}
2380 return ok;
2381 }
2382 "
2383
2384 # Test code for whether the C compiler supports C99 (complete).
2385 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2386 ${ac_c_conftest_c99_globals}
2387
2388 int
2389 main (int argc, char **argv)
2390 {
2391 int ok = 0;
2392 ${ac_c_conftest_c89_main}
2393 ${ac_c_conftest_c99_main}
2394 return ok;
2395 }
2396 "
2397
2398 # Test code for whether the C compiler supports C89 (complete).
2399 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2400
2401 int
2402 main (int argc, char **argv)
2403 {
2404 int ok = 0;
2405 ${ac_c_conftest_c89_main}
2406 return ok;
2407 }
2408 "
2409
2410 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2411 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2412 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2413 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2414 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2415 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2416 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2417 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2418 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2419 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2420
2421 # Auxiliary files required by this configure script.
2422 ac_aux_files="config.guess config.sub missing install-sh compile"
2423
2424 # Locations in which to look for auxiliary files.
2425 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2426
2427 # Search for a directory containing all of the required auxiliary files,
2428 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2429 # If we don't find one directory that contains all the files we need,
2430 # we report the set of missing files from the *first* directory in
2431 # $ac_aux_dir_candidates and give up.
2432 ac_missing_aux_files=""
2433 ac_first_candidate=:
2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 as_found=false
2437 for as_dir in $ac_aux_dir_candidates
2438 do
2439 IFS=$as_save_IFS
2440 case $as_dir in #(((
2441 '') as_dir=./ ;;
2442 */) ;;
2443 *) as_dir=$as_dir/ ;;
2444 esac
2445 as_found=:
2446
2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2448 ac_aux_dir_found=yes
2449 ac_install_sh=
2450 for ac_aux in $ac_aux_files
2451 do
2452 # As a special case, if "install-sh" is required, that requirement
2453 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2454 # and $ac_install_sh is set appropriately for whichever one is found.
2455 if test x"$ac_aux" = x"install-sh"
2456 then
2457 if test -f "${as_dir}install-sh"; then
2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2459 ac_install_sh="${as_dir}install-sh -c"
2460 elif test -f "${as_dir}install.sh"; then
2461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2462 ac_install_sh="${as_dir}install.sh -c"
2463 elif test -f "${as_dir}shtool"; then
2464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2465 ac_install_sh="${as_dir}shtool install -c"
2466 else
2467 ac_aux_dir_found=no
2468 if $ac_first_candidate; then
2469 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2470 else
2471 break
2472 fi
2473 fi
2474 else
2475 if test -f "${as_dir}${ac_aux}"; then
2476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2477 else
2478 ac_aux_dir_found=no
2479 if $ac_first_candidate; then
2480 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2481 else
2482 break
2483 fi
2484 fi
2485 fi
2486 done
2487 if test "$ac_aux_dir_found" = yes; then
2488 ac_aux_dir="$as_dir"
2489 break
2490 fi
2491 ac_first_candidate=false
2492
2493 as_found=false
2494 done
2495 IFS=$as_save_IFS
2496 if $as_found
2497 then :
2498
2499 else case e in #(
2500 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2501 esac
2502 fi
2503
2504
2505 # These three variables are undocumented and unsupported,
2506 # and are intended to be withdrawn in a future Autoconf release.
2507 # They can cause serious problems if a builder's source tree is in a directory
2508 # whose full name contains unusual characters.
2509 if test -f "${ac_aux_dir}config.guess"; then
2510 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2511 fi
2512 if test -f "${ac_aux_dir}config.sub"; then
2513 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2514 fi
2515 if test -f "$ac_aux_dir/configure"; then
2516 ac_configure="$SHELL ${ac_aux_dir}configure"
2517 fi
2518
2519 # Check that the precious variables saved in the cache have kept the same
2520 # value.
2521 ac_cache_corrupted=false
2522 for ac_var in $ac_precious_vars; do
2523 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2524 eval ac_new_set=\$ac_env_${ac_var}_set
2525 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2526 eval ac_new_val=\$ac_env_${ac_var}_value
2527 case $ac_old_set,$ac_new_set in
2528 set,)
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2530 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2531 ac_cache_corrupted=: ;;
2532 ,set)
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2534 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2535 ac_cache_corrupted=: ;;
2536 ,);;
2537 *)
2538 if test "x$ac_old_val" != "x$ac_new_val"; then
2539 # differences in whitespace do not lead to failure.
2540 ac_old_val_w=`echo x $ac_old_val`
2541 ac_new_val_w=`echo x $ac_new_val`
2542 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2544 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2545 ac_cache_corrupted=:
2546 else
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2548 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2549 eval $ac_var=\$ac_old_val
2550 fi
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2552 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2554 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2555 fi;;
2556 esac
2557 # Pass precious variables to config.status.
2558 if test "$ac_new_set" = set; then
2559 case $ac_new_val in
2560 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2561 *) ac_arg=$ac_var=$ac_new_val ;;
2562 esac
2563 case " $ac_configure_args " in
2564 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2565 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2566 esac
2567 fi
2568 done
2569 if $ac_cache_corrupted; then
2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2571 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2573 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2574 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2575 and start over" "$LINENO" 5
2576 fi
2577 ## -------------------- ##
2578 ## Main body of script. ##
2579 ## -------------------- ##
2580
2581 ac_ext=c
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586
2587
2588
2589 ac_config_headers="$ac_config_headers config.h"
2590
2591
2592 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2593 # Must be called before any macros that run the compiler (like
2594 # AC_PROG_LIBTOOL) to avoid autoconf errors.
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606 # Expand $ac_aux_dir to an absolute path.
2607 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2608
2609 ac_ext=c
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 printf %s "checking for $ac_word... " >&6; }
2619 if test ${ac_cv_prog_CC+y}
2620 then :
2621 printf %s "(cached) " >&6
2622 else case e in #(
2623 e) if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 case $as_dir in #(((
2631 '') as_dir=./ ;;
2632 */) ;;
2633 *) as_dir=$as_dir/ ;;
2634 esac
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi ;;
2646 esac
2647 fi
2648 CC=$ac_cv_prog_CC
2649 if test -n "$CC"; then
2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651 printf "%s\n" "$CC" >&6; }
2652 else
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 printf "%s\n" "no" >&6; }
2655 fi
2656
2657
2658 fi
2659 if test -z "$ac_cv_prog_CC"; then
2660 ac_ct_CC=$CC
2661 # Extract the first word of "gcc", so it can be a program name with args.
2662 set dummy gcc; ac_word=$2
2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 printf %s "checking for $ac_word... " >&6; }
2665 if test ${ac_cv_prog_ac_ct_CC+y}
2666 then :
2667 printf %s "(cached) " >&6
2668 else case e in #(
2669 e) if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 case $as_dir in #(((
2677 '') as_dir=./ ;;
2678 */) ;;
2679 *) as_dir=$as_dir/ ;;
2680 esac
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_ac_ct_CC="gcc"
2684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687 done
2688 done
2689 IFS=$as_save_IFS
2690
2691 fi ;;
2692 esac
2693 fi
2694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695 if test -n "$ac_ct_CC"; then
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2697 printf "%s\n" "$ac_ct_CC" >&6; }
2698 else
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 printf "%s\n" "no" >&6; }
2701 fi
2702
2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710 ac_tool_warned=yes ;;
2711 esac
2712 CC=$ac_ct_CC
2713 fi
2714 else
2715 CC="$ac_cv_prog_CC"
2716 fi
2717
2718 if test -z "$CC"; then
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}cc; ac_word=$2
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 printf %s "checking for $ac_word... " >&6; }
2724 if test ${ac_cv_prog_CC+y}
2725 then :
2726 printf %s "(cached) " >&6
2727 else case e in #(
2728 e) if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 case $as_dir in #(((
2736 '') as_dir=./ ;;
2737 */) ;;
2738 *) as_dir=$as_dir/ ;;
2739 esac
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="${ac_tool_prefix}cc"
2743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi ;;
2751 esac
2752 fi
2753 CC=$ac_cv_prog_CC
2754 if test -n "$CC"; then
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756 printf "%s\n" "$CC" >&6; }
2757 else
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 printf "%s\n" "no" >&6; }
2760 fi
2761
2762
2763 fi
2764 fi
2765 if test -z "$CC"; then
2766 # Extract the first word of "cc", so it can be a program name with args.
2767 set dummy cc; ac_word=$2
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 printf %s "checking for $ac_word... " >&6; }
2770 if test ${ac_cv_prog_CC+y}
2771 then :
2772 printf %s "(cached) " >&6
2773 else case e in #(
2774 e) if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 ac_prog_rejected=no
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 case $as_dir in #(((
2783 '') as_dir=./ ;;
2784 */) ;;
2785 *) as_dir=$as_dir/ ;;
2786 esac
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2789 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected=yes
2791 continue
2792 fi
2793 ac_cv_prog_CC="cc"
2794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy $ac_cv_prog_CC
2804 shift
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2809 shift
2810 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2811 fi
2812 fi
2813 fi ;;
2814 esac
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 printf "%s\n" "$CC" >&6; }
2820 else
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 printf "%s\n" "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 for ac_prog in cl.exe
2830 do
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 printf %s "checking for $ac_word... " >&6; }
2835 if test ${ac_cv_prog_CC+y}
2836 then :
2837 printf %s "(cached) " >&6
2838 else case e in #(
2839 e) if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 case $as_dir in #(((
2847 '') as_dir=./ ;;
2848 */) ;;
2849 *) as_dir=$as_dir/ ;;
2850 esac
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi ;;
2862 esac
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 printf "%s\n" "$CC" >&6; }
2868 else
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 printf "%s\n" "no" >&6; }
2871 fi
2872
2873
2874 test -n "$CC" && break
2875 done
2876 fi
2877 if test -z "$CC"; then
2878 ac_ct_CC=$CC
2879 for ac_prog in cl.exe
2880 do
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy $ac_prog; ac_word=$2
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 printf %s "checking for $ac_word... " >&6; }
2885 if test ${ac_cv_prog_ac_ct_CC+y}
2886 then :
2887 printf %s "(cached) " >&6
2888 else case e in #(
2889 e) if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 case $as_dir in #(((
2897 '') as_dir=./ ;;
2898 */) ;;
2899 *) as_dir=$as_dir/ ;;
2900 esac
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_ac_ct_CC="$ac_prog"
2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi ;;
2912 esac
2913 fi
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917 printf "%s\n" "$ac_ct_CC" >&6; }
2918 else
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 printf "%s\n" "no" >&6; }
2921 fi
2922
2923
2924 test -n "$ac_ct_CC" && break
2925 done
2926
2927 if test "x$ac_ct_CC" = x; then
2928 CC=""
2929 else
2930 case $cross_compiling:$ac_tool_warned in
2931 yes:)
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936 CC=$ac_ct_CC
2937 fi
2938 fi
2939
2940 fi
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2944 set dummy ${ac_tool_prefix}clang; ac_word=$2
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 printf %s "checking for $ac_word... " >&6; }
2947 if test ${ac_cv_prog_CC+y}
2948 then :
2949 printf %s "(cached) " >&6
2950 else case e in #(
2951 e) if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 case $as_dir in #(((
2959 '') as_dir=./ ;;
2960 */) ;;
2961 *) as_dir=$as_dir/ ;;
2962 esac
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_CC="${ac_tool_prefix}clang"
2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi ;;
2974 esac
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 printf "%s\n" "$CC" >&6; }
2980 else
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 printf "%s\n" "no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "clang", so it can be a program name with args.
2990 set dummy clang; ac_word=$2
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 printf %s "checking for $ac_word... " >&6; }
2993 if test ${ac_cv_prog_ac_ct_CC+y}
2994 then :
2995 printf %s "(cached) " >&6
2996 else case e in #(
2997 e) if test -n "$ac_ct_CC"; then
2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 case $as_dir in #(((
3005 '') as_dir=./ ;;
3006 */) ;;
3007 *) as_dir=$as_dir/ ;;
3008 esac
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_ac_ct_CC="clang"
3012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi ;;
3020 esac
3021 fi
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 printf "%s\n" "$ac_ct_CC" >&6; }
3026 else
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 printf "%s\n" "no" >&6; }
3029 fi
3030
3031 if test "x$ac_ct_CC" = x; then
3032 CC=""
3033 else
3034 case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3039 esac
3040 CC=$ac_ct_CC
3041 fi
3042 else
3043 CC="$ac_cv_prog_CC"
3044 fi
3045
3046 fi
3047
3048
3049 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3051 as_fn_error $? "no acceptable C compiler found in \$PATH
3052 See 'config.log' for more details" "$LINENO" 5; }
3053
3054 # Provide some information about the compiler.
3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3056 set X $ac_compile
3057 ac_compiler=$2
3058 for ac_option in --version -v -V -qversion -version; do
3059 { { ac_try="$ac_compiler $ac_option >&5"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 printf "%s\n" "$ac_try_echo"; } >&5
3066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3067 ac_status=$?
3068 if test -s conftest.err; then
3069 sed '10a\
3070 ... rest of stderr output deleted ...
3071 10q' conftest.err >conftest.er1
3072 cat conftest.er1 >&5
3073 fi
3074 rm -f conftest.er1 conftest.err
3075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }
3077 done
3078
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3081
3082 int
3083 main (void)
3084 {
3085
3086 ;
3087 return 0;
3088 }
3089 _ACEOF
3090 ac_clean_files_save=$ac_clean_files
3091 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3092 # Try to create an executable without -o first, disregard a.out.
3093 # It will help us diagnose broken compilers, and finding out an intuition
3094 # of exeext.
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3096 printf %s "checking whether the C compiler works... " >&6; }
3097 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3098
3099 # The possible output files:
3100 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3101
3102 ac_rmfiles=
3103 for ac_file in $ac_files
3104 do
3105 case $ac_file in
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3108 esac
3109 done
3110 rm -f $ac_rmfiles
3111
3112 if { { ac_try="$ac_link_default"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 printf "%s\n" "$ac_try_echo"; } >&5
3119 (eval "$ac_link_default") 2>&5
3120 ac_status=$?
3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }
3123 then :
3124 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3125 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3126 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3127 # so that the user can short-circuit this test for compilers unknown to
3128 # Autoconf.
3129 for ac_file in $ac_files ''
3130 do
3131 test -f "$ac_file" || continue
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3134 ;;
3135 [ab].out )
3136 # We found the default executable, but exeext='' is most
3137 # certainly right.
3138 break;;
3139 *.* )
3140 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3141 then :; else
3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143 fi
3144 # We set ac_cv_exeext here because the later test for it is not
3145 # safe: cross compilers may not add the suffix if given an '-o'
3146 # argument, so we may need to know it at that point already.
3147 # Even if this section looks crufty: it has the advantage of
3148 # actually working.
3149 break;;
3150 * )
3151 break;;
3152 esac
3153 done
3154 test "$ac_cv_exeext" = no && ac_cv_exeext=
3155
3156 else case e in #(
3157 e) ac_file='' ;;
3158 esac
3159 fi
3160 if test -z "$ac_file"
3161 then :
3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 printf "%s\n" "no" >&6; }
3164 printf "%s\n" "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3168 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3169 as_fn_error 77 "C compiler cannot create executables
3170 See 'config.log' for more details" "$LINENO" 5; }
3171 else case e in #(
3172 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173 printf "%s\n" "yes" >&6; } ;;
3174 esac
3175 fi
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3177 printf %s "checking for C compiler default output file name... " >&6; }
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3179 printf "%s\n" "$ac_file" >&6; }
3180 ac_exeext=$ac_cv_exeext
3181
3182 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3183 ac_clean_files=$ac_clean_files_save
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3185 printf %s "checking for suffix of executables... " >&6; }
3186 if { { ac_try="$ac_link"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 printf "%s\n" "$ac_try_echo"; } >&5
3193 (eval "$ac_link") 2>&5
3194 ac_status=$?
3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }
3197 then :
3198 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3199 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3200 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3201 # 'rm'.
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 break;;
3208 * ) break;;
3209 esac
3210 done
3211 else case e in #(
3212 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3213 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3214 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3215 See 'config.log' for more details" "$LINENO" 5; } ;;
3216 esac
3217 fi
3218 rm -f conftest conftest$ac_cv_exeext
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3220 printf "%s\n" "$ac_cv_exeext" >&6; }
3221
3222 rm -f conftest.$ac_ext
3223 EXEEXT=$ac_cv_exeext
3224 ac_exeext=$EXEEXT
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227 #include <stdio.h>
3228 int
3229 main (void)
3230 {
3231 FILE *f = fopen ("conftest.out", "w");
3232 if (!f)
3233 return 1;
3234 return ferror (f) || fclose (f) != 0;
3235
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 ac_clean_files="$ac_clean_files conftest.out"
3241 # Check that the compiler produces executables we can run. If not, either
3242 # the compiler is broken, or we cross compile.
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3244 printf %s "checking whether we are cross compiling... " >&6; }
3245 if test "$cross_compiling" != yes; then
3246 { { ac_try="$ac_link"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 printf "%s\n" "$ac_try_echo"; } >&5
3253 (eval "$ac_link") 2>&5
3254 ac_status=$?
3255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 if { ac_try='./conftest$ac_cv_exeext'
3258 { { case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 printf "%s\n" "$ac_try_echo"; } >&5
3264 (eval "$ac_try") 2>&5
3265 ac_status=$?
3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; }; then
3268 cross_compiling=no
3269 else
3270 if test "$cross_compiling" = maybe; then
3271 cross_compiling=yes
3272 else
3273 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3274 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3275 as_fn_error 77 "cannot run C compiled programs.
3276 If you meant to cross compile, use '--host'.
3277 See 'config.log' for more details" "$LINENO" 5; }
3278 fi
3279 fi
3280 fi
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3282 printf "%s\n" "$cross_compiling" >&6; }
3283
3284 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3285 conftest.o conftest.obj conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288 printf %s "checking for suffix of object files... " >&6; }
3289 if test ${ac_cv_objext+y}
3290 then :
3291 printf %s "(cached) " >&6
3292 else case e in #(
3293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3295
3296 int
3297 main (void)
3298 {
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.o conftest.obj
3305 if { { ac_try="$ac_compile"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 printf "%s\n" "$ac_try_echo"; } >&5
3312 (eval "$ac_compile") 2>&5
3313 ac_status=$?
3314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }
3316 then :
3317 for ac_file in conftest.o conftest.obj conftest.*; do
3318 test -f "$ac_file" || continue;
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3322 break;;
3323 esac
3324 done
3325 else case e in #(
3326 e) printf "%s\n" "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3330 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3331 as_fn_error $? "cannot compute suffix of object files: cannot compile
3332 See 'config.log' for more details" "$LINENO" 5; } ;;
3333 esac
3334 fi
3335 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3336 esac
3337 fi
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3339 printf "%s\n" "$ac_cv_objext" >&6; }
3340 OBJEXT=$ac_cv_objext
3341 ac_objext=$OBJEXT
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3343 printf %s "checking whether the compiler supports GNU C... " >&6; }
3344 if test ${ac_cv_c_compiler_gnu+y}
3345 then :
3346 printf %s "(cached) " >&6
3347 else case e in #(
3348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350
3351 int
3352 main (void)
3353 {
3354 #ifndef __GNUC__
3355 choke me
3356 #endif
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"
3363 then :
3364 ac_compiler_gnu=yes
3365 else case e in #(
3366 e) ac_compiler_gnu=no ;;
3367 esac
3368 fi
3369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371 ;;
3372 esac
3373 fi
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3375 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377
3378 if test $ac_compiler_gnu = yes; then
3379 GCC=yes
3380 else
3381 GCC=
3382 fi
3383 ac_test_CFLAGS=${CFLAGS+y}
3384 ac_save_CFLAGS=$CFLAGS
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3386 printf %s "checking whether $CC accepts -g... " >&6; }
3387 if test ${ac_cv_prog_cc_g+y}
3388 then :
3389 printf %s "(cached) " >&6
3390 else case e in #(
3391 e) ac_save_c_werror_flag=$ac_c_werror_flag
3392 ac_c_werror_flag=yes
3393 ac_cv_prog_cc_g=no
3394 CFLAGS="-g"
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main (void)
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"
3407 then :
3408 ac_cv_prog_cc_g=yes
3409 else case e in #(
3410 e) CFLAGS=""
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main (void)
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"
3423 then :
3424
3425 else case e in #(
3426 e) ac_c_werror_flag=$ac_save_c_werror_flag
3427 CFLAGS="-g"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main (void)
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"
3440 then :
3441 ac_cv_prog_cc_g=yes
3442 fi
3443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3444 esac
3445 fi
3446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3447 esac
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3450 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3451 esac
3452 fi
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3455 if test $ac_test_CFLAGS; then
3456 CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3459 CFLAGS="-g -O2"
3460 else
3461 CFLAGS="-g"
3462 fi
3463 else
3464 if test "$GCC" = yes; then
3465 CFLAGS="-O2"
3466 else
3467 CFLAGS=
3468 fi
3469 fi
3470 ac_prog_cc_stdc=no
3471 if test x$ac_prog_cc_stdc = xno
3472 then :
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3474 printf %s "checking for $CC option to enable C11 features... " >&6; }
3475 if test ${ac_cv_prog_cc_c11+y}
3476 then :
3477 printf %s "(cached) " >&6
3478 else case e in #(
3479 e) ac_cv_prog_cc_c11=no
3480 ac_save_CC=$CC
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 $ac_c_conftest_c11_program
3484 _ACEOF
3485 for ac_arg in '' -std=gnu11
3486 do
3487 CC="$ac_save_CC $ac_arg"
3488 if ac_fn_c_try_compile "$LINENO"
3489 then :
3490 ac_cv_prog_cc_c11=$ac_arg
3491 fi
3492 rm -f core conftest.err conftest.$ac_objext conftest.beam
3493 test "x$ac_cv_prog_cc_c11" != "xno" && break
3494 done
3495 rm -f conftest.$ac_ext
3496 CC=$ac_save_CC ;;
3497 esac
3498 fi
3499
3500 if test "x$ac_cv_prog_cc_c11" = xno
3501 then :
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3503 printf "%s\n" "unsupported" >&6; }
3504 else case e in #(
3505 e) if test "x$ac_cv_prog_cc_c11" = x
3506 then :
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508 printf "%s\n" "none needed" >&6; }
3509 else case e in #(
3510 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3511 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3512 CC="$CC $ac_cv_prog_cc_c11" ;;
3513 esac
3514 fi
3515 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3516 ac_prog_cc_stdc=c11 ;;
3517 esac
3518 fi
3519 fi
3520 if test x$ac_prog_cc_stdc = xno
3521 then :
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3523 printf %s "checking for $CC option to enable C99 features... " >&6; }
3524 if test ${ac_cv_prog_cc_c99+y}
3525 then :
3526 printf %s "(cached) " >&6
3527 else case e in #(
3528 e) ac_cv_prog_cc_c99=no
3529 ac_save_CC=$CC
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532 $ac_c_conftest_c99_program
3533 _ACEOF
3534 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3535 do
3536 CC="$ac_save_CC $ac_arg"
3537 if ac_fn_c_try_compile "$LINENO"
3538 then :
3539 ac_cv_prog_cc_c99=$ac_arg
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.beam
3542 test "x$ac_cv_prog_cc_c99" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC ;;
3546 esac
3547 fi
3548
3549 if test "x$ac_cv_prog_cc_c99" = xno
3550 then :
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552 printf "%s\n" "unsupported" >&6; }
3553 else case e in #(
3554 e) if test "x$ac_cv_prog_cc_c99" = x
3555 then :
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 printf "%s\n" "none needed" >&6; }
3558 else case e in #(
3559 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3560 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3561 CC="$CC $ac_cv_prog_cc_c99" ;;
3562 esac
3563 fi
3564 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3565 ac_prog_cc_stdc=c99 ;;
3566 esac
3567 fi
3568 fi
3569 if test x$ac_prog_cc_stdc = xno
3570 then :
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3572 printf %s "checking for $CC option to enable C89 features... " >&6; }
3573 if test ${ac_cv_prog_cc_c89+y}
3574 then :
3575 printf %s "(cached) " >&6
3576 else case e in #(
3577 e) ac_cv_prog_cc_c89=no
3578 ac_save_CC=$CC
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581 $ac_c_conftest_c89_program
3582 _ACEOF
3583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584 do
3585 CC="$ac_save_CC $ac_arg"
3586 if ac_fn_c_try_compile "$LINENO"
3587 then :
3588 ac_cv_prog_cc_c89=$ac_arg
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.beam
3591 test "x$ac_cv_prog_cc_c89" != "xno" && break
3592 done
3593 rm -f conftest.$ac_ext
3594 CC=$ac_save_CC ;;
3595 esac
3596 fi
3597
3598 if test "x$ac_cv_prog_cc_c89" = xno
3599 then :
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3601 printf "%s\n" "unsupported" >&6; }
3602 else case e in #(
3603 e) if test "x$ac_cv_prog_cc_c89" = x
3604 then :
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3606 printf "%s\n" "none needed" >&6; }
3607 else case e in #(
3608 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3609 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3610 CC="$CC $ac_cv_prog_cc_c89" ;;
3611 esac
3612 fi
3613 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3614 ac_prog_cc_stdc=c89 ;;
3615 esac
3616 fi
3617 fi
3618
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625
3626 ac_ext=c
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3632 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3633 if test ${am_cv_prog_cc_c_o+y}
3634 then :
3635 printf %s "(cached) " >&6
3636 else case e in #(
3637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639
3640 int
3641 main (void)
3642 {
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 # Make sure it works both with $CC and with simple cc.
3649 # Following AC_PROG_CC_C_O, we do the test twice because some
3650 # compilers refuse to overwrite an existing .o file with -o,
3651 # though they will create one.
3652 am_cv_prog_cc_c_o=yes
3653 for am_i in 1 2; do
3654 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3655 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } \
3659 && test -f conftest2.$ac_objext; then
3660 : OK
3661 else
3662 am_cv_prog_cc_c_o=no
3663 break
3664 fi
3665 done
3666 rm -f core conftest*
3667 unset am_i ;;
3668 esac
3669 fi
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3671 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3672 if test "$am_cv_prog_cc_c_o" != yes; then
3673 # Losing compiler, so override with the script.
3674 # FIXME: It is wrong to rewrite CC.
3675 # But if we don't then we get into trouble of one sort or another.
3676 # A longer-term fix would be to have automake use am__CC in this case,
3677 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3678 CC="$am_aux_dir/compile $CC"
3679 fi
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686
3687
3688 ac_header= ac_cache=
3689 for ac_item in $ac_header_c_list
3690 do
3691 if test $ac_cache; then
3692 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3693 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3694 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3695 fi
3696 ac_header= ac_cache=
3697 elif test $ac_header; then
3698 ac_cache=$ac_item
3699 else
3700 ac_header=$ac_item
3701 fi
3702 done
3703
3704
3705
3706
3707
3708
3709
3710
3711 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3712 then :
3713
3714 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3715
3716 fi
3717
3718
3719
3720
3721
3722
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3724 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3725 if test ${ac_cv_safe_to_define___extensions__+y}
3726 then :
3727 printf %s "(cached) " >&6
3728 else case e in #(
3729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731
3732 # define __EXTENSIONS__ 1
3733 $ac_includes_default
3734 int
3735 main (void)
3736 {
3737
3738 ;
3739 return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_c_try_compile "$LINENO"
3743 then :
3744 ac_cv_safe_to_define___extensions__=yes
3745 else case e in #(
3746 e) ac_cv_safe_to_define___extensions__=no ;;
3747 esac
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3750 esac
3751 fi
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3753 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3754
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3756 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3757 if test ${ac_cv_should_define__xopen_source+y}
3758 then :
3759 printf %s "(cached) " >&6
3760 else case e in #(
3761 e) ac_cv_should_define__xopen_source=no
3762 if test $ac_cv_header_wchar_h = yes
3763 then :
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766
3767 #include <wchar.h>
3768 mbstate_t x;
3769 int
3770 main (void)
3771 {
3772
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"
3778 then :
3779
3780 else case e in #(
3781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783
3784 #define _XOPEN_SOURCE 500
3785 #include <wchar.h>
3786 mbstate_t x;
3787 int
3788 main (void)
3789 {
3790
3791 ;
3792 return 0;
3793 }
3794 _ACEOF
3795 if ac_fn_c_try_compile "$LINENO"
3796 then :
3797 ac_cv_should_define__xopen_source=yes
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3800 esac
3801 fi
3802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3803 fi ;;
3804 esac
3805 fi
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3807 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3808
3809 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3810
3811 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3812
3813 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3814
3815 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3816
3817 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3818
3819 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3820
3821 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3822
3823 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3824
3825 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3826
3827 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3828
3829 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3830
3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3832
3833 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3834
3835 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3836
3837 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3838
3839 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3840
3841 if test $ac_cv_header_minix_config_h = yes
3842 then :
3843 MINIX=yes
3844 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3845
3846 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3847
3848 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3849
3850 else case e in #(
3851 e) MINIX= ;;
3852 esac
3853 fi
3854 if test $ac_cv_safe_to_define___extensions__ = yes
3855 then :
3856 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3857
3858 fi
3859 if test $ac_cv_should_define__xopen_source = yes
3860 then :
3861 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3862
3863 fi
3864
3865
3866 # Initialize Automake
3867 am__api_version='1.16'
3868
3869
3870 # Find a good install program. We prefer a C program (faster),
3871 # so one script is as good as another. But avoid the broken or
3872 # incompatible versions:
3873 # SysV /etc/install, /usr/sbin/install
3874 # SunOS /usr/etc/install
3875 # IRIX /sbin/install
3876 # AIX /bin/install
3877 # AmigaOS /C/install, which installs bootblocks on floppy discs
3878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3881 # OS/2's system install, which has a completely different semantic
3882 # ./install, which can be erroneously created by make from ./install.sh.
3883 # Reject install programs that cannot install multiple files.
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3885 printf %s "checking for a BSD-compatible install... " >&6; }
3886 if test -z "$INSTALL"; then
3887 if test ${ac_cv_path_install+y}
3888 then :
3889 printf %s "(cached) " >&6
3890 else case e in #(
3891 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 case $as_dir in #(((
3896 '') as_dir=./ ;;
3897 */) ;;
3898 *) as_dir=$as_dir/ ;;
3899 esac
3900 # Account for fact that we put trailing slashes in our PATH walk.
3901 case $as_dir in #((
3902 ./ | /[cC]/* | \
3903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3904 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3905 /usr/ucb/* ) ;;
3906 *)
3907 # OSF1 and SCO ODT 3.0 have their own names for install.
3908 # Don't use installbsd from OSF since it installs stuff as root
3909 # by default.
3910 for ac_prog in ginstall scoinst install; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3913 if test $ac_prog = install &&
3914 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3915 # AIX install. It has an incompatible calling convention.
3916 :
3917 elif test $ac_prog = install &&
3918 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3919 # program-specific install script used by HP pwplus--don't use.
3920 :
3921 else
3922 rm -rf conftest.one conftest.two conftest.dir
3923 echo one > conftest.one
3924 echo two > conftest.two
3925 mkdir conftest.dir
3926 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3927 test -s conftest.one && test -s conftest.two &&
3928 test -s conftest.dir/conftest.one &&
3929 test -s conftest.dir/conftest.two
3930 then
3931 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3932 break 3
3933 fi
3934 fi
3935 fi
3936 done
3937 done
3938 ;;
3939 esac
3940
3941 done
3942 IFS=$as_save_IFS
3943
3944 rm -rf conftest.one conftest.two conftest.dir
3945 ;;
3946 esac
3947 fi
3948 if test ${ac_cv_path_install+y}; then
3949 INSTALL=$ac_cv_path_install
3950 else
3951 # As a last resort, use the slow shell script. Don't cache a
3952 # value for INSTALL within a source directory, because that will
3953 # break other packages using the cache if that directory is
3954 # removed, or if the value is a relative name.
3955 INSTALL=$ac_install_sh
3956 fi
3957 fi
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3959 printf "%s\n" "$INSTALL" >&6; }
3960
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3970 printf %s "checking whether build environment is sane... " >&6; }
3971 # Reject unsafe characters in $srcdir or the absolute working directory
3972 # name. Accept space and tab only in the latter.
3973 am_lf='
3974 '
3975 case `pwd` in
3976 *[\\\"\#\$\&\'\`$am_lf]*)
3977 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3978 esac
3979 case $srcdir in
3980 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3981 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3982 esac
3983
3984 # Do 'set' in a subshell so we don't clobber the current shell's
3985 # arguments. Must try -L first in case configure is actually a
3986 # symlink; some systems play weird games with the mod time of symlinks
3987 # (eg FreeBSD returns the mod time of the symlink's containing
3988 # directory).
3989 if (
3990 am_has_slept=no
3991 for am_try in 1 2; do
3992 echo "timestamp, slept: $am_has_slept" > conftest.file
3993 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3994 if test "$*" = "X"; then
3995 # -L didn't work.
3996 set X `ls -t "$srcdir/configure" conftest.file`
3997 fi
3998 if test "$*" != "X $srcdir/configure conftest.file" \
3999 && test "$*" != "X conftest.file $srcdir/configure"; then
4000
4001 # If neither matched, then we have a broken ls. This can happen
4002 # if, for instance, CONFIG_SHELL is bash and it inherits a
4003 # broken ls alias from the environment. This has actually
4004 # happened. Such a system could not be considered "sane".
4005 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4006 alias in your environment" "$LINENO" 5
4007 fi
4008 if test "$2" = conftest.file || test $am_try -eq 2; then
4009 break
4010 fi
4011 # Just in case.
4012 sleep 1
4013 am_has_slept=yes
4014 done
4015 test "$2" = conftest.file
4016 )
4017 then
4018 # Ok.
4019 :
4020 else
4021 as_fn_error $? "newly created file is older than distributed files!
4022 Check your system clock" "$LINENO" 5
4023 fi
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025 printf "%s\n" "yes" >&6; }
4026 # If we didn't sleep, we still need to ensure time stamps of config.status and
4027 # generated files are strictly newer.
4028 am_sleep_pid=
4029 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4030 ( sleep 1 ) &
4031 am_sleep_pid=$!
4032 fi
4033
4034 rm -f conftest.file
4035
4036 test "$program_prefix" != NONE &&
4037 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4038 # Use a double $ so make ignores it.
4039 test "$program_suffix" != NONE &&
4040 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4041 # Double any \ or $.
4042 # By default was 's,x,x', remove it if useless.
4043 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4044 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4045
4046
4047 if test x"${MISSING+set}" != xset; then
4048 MISSING="\${SHELL} '$am_aux_dir/missing'"
4049 fi
4050 # Use eval to expand $SHELL
4051 if eval "$MISSING --is-lightweight"; then
4052 am_missing_run="$MISSING "
4053 else
4054 am_missing_run=
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4056 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4057 fi
4058
4059 if test x"${install_sh+set}" != xset; then
4060 case $am_aux_dir in
4061 *\ * | *\ *)
4062 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4063 *)
4064 install_sh="\${SHELL} $am_aux_dir/install-sh"
4065 esac
4066 fi
4067
4068 # Installed binaries are usually stripped using 'strip' when the user
4069 # run "make install-strip". However 'strip' might not be the right
4070 # tool to use in cross-compilation environments, therefore Automake
4071 # will honor the 'STRIP' environment variable to overrule this program.
4072 if test "$cross_compiling" != no; then
4073 if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4075 set dummy ${ac_tool_prefix}strip; ac_word=$2
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 printf %s "checking for $ac_word... " >&6; }
4078 if test ${ac_cv_prog_STRIP+y}
4079 then :
4080 printf %s "(cached) " >&6
4081 else case e in #(
4082 e) if test -n "$STRIP"; then
4083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088 IFS=$as_save_IFS
4089 case $as_dir in #(((
4090 '') as_dir=./ ;;
4091 */) ;;
4092 *) as_dir=$as_dir/ ;;
4093 esac
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100 done
4101 done
4102 IFS=$as_save_IFS
4103
4104 fi ;;
4105 esac
4106 fi
4107 STRIP=$ac_cv_prog_STRIP
4108 if test -n "$STRIP"; then
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4110 printf "%s\n" "$STRIP" >&6; }
4111 else
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 printf "%s\n" "no" >&6; }
4114 fi
4115
4116
4117 fi
4118 if test -z "$ac_cv_prog_STRIP"; then
4119 ac_ct_STRIP=$STRIP
4120 # Extract the first word of "strip", so it can be a program name with args.
4121 set dummy strip; ac_word=$2
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 printf %s "checking for $ac_word... " >&6; }
4124 if test ${ac_cv_prog_ac_ct_STRIP+y}
4125 then :
4126 printf %s "(cached) " >&6
4127 else case e in #(
4128 e) if test -n "$ac_ct_STRIP"; then
4129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134 IFS=$as_save_IFS
4135 case $as_dir in #(((
4136 '') as_dir=./ ;;
4137 */) ;;
4138 *) as_dir=$as_dir/ ;;
4139 esac
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_ac_ct_STRIP="strip"
4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 fi ;;
4151 esac
4152 fi
4153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4154 if test -n "$ac_ct_STRIP"; then
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4156 printf "%s\n" "$ac_ct_STRIP" >&6; }
4157 else
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 printf "%s\n" "no" >&6; }
4160 fi
4161
4162 if test "x$ac_ct_STRIP" = x; then
4163 STRIP=":"
4164 else
4165 case $cross_compiling:$ac_tool_warned in
4166 yes:)
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4169 ac_tool_warned=yes ;;
4170 esac
4171 STRIP=$ac_ct_STRIP
4172 fi
4173 else
4174 STRIP="$ac_cv_prog_STRIP"
4175 fi
4176
4177 fi
4178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4179
4180
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4182 printf %s "checking for a race-free mkdir -p... " >&6; }
4183 if test -z "$MKDIR_P"; then
4184 if test ${ac_cv_path_mkdir+y}
4185 then :
4186 printf %s "(cached) " >&6
4187 else case e in #(
4188 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4190 do
4191 IFS=$as_save_IFS
4192 case $as_dir in #(((
4193 '') as_dir=./ ;;
4194 */) ;;
4195 *) as_dir=$as_dir/ ;;
4196 esac
4197 for ac_prog in mkdir gmkdir; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4200 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4201 'mkdir ('*'coreutils) '* | \
4202 *'BusyBox '* | \
4203 'mkdir (fileutils) '4.1*)
4204 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4205 break 3;;
4206 esac
4207 done
4208 done
4209 done
4210 IFS=$as_save_IFS
4211 ;;
4212 esac
4213 fi
4214
4215 test -d ./--version && rmdir ./--version
4216 if test ${ac_cv_path_mkdir+y}; then
4217 MKDIR_P="$ac_cv_path_mkdir -p"
4218 else
4219 # As a last resort, use plain mkdir -p,
4220 # in the hope it doesn't have the bugs of ancient mkdir.
4221 MKDIR_P='mkdir -p'
4222 fi
4223 fi
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4225 printf "%s\n" "$MKDIR_P" >&6; }
4226
4227 for ac_prog in gawk mawk nawk awk
4228 do
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230 set dummy $ac_prog; ac_word=$2
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 printf %s "checking for $ac_word... " >&6; }
4233 if test ${ac_cv_prog_AWK+y}
4234 then :
4235 printf %s "(cached) " >&6
4236 else case e in #(
4237 e) if test -n "$AWK"; then
4238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 case $as_dir in #(((
4245 '') as_dir=./ ;;
4246 */) ;;
4247 *) as_dir=$as_dir/ ;;
4248 esac
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_AWK="$ac_prog"
4252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi ;;
4260 esac
4261 fi
4262 AWK=$ac_cv_prog_AWK
4263 if test -n "$AWK"; then
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4265 printf "%s\n" "$AWK" >&6; }
4266 else
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 printf "%s\n" "no" >&6; }
4269 fi
4270
4271
4272 test -n "$AWK" && break
4273 done
4274
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4276 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4277 set x ${MAKE-make}
4278 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4279 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4280 then :
4281 printf %s "(cached) " >&6
4282 else case e in #(
4283 e) cat >conftest.make <<\_ACEOF
4284 SHELL = /bin/sh
4285 all:
4286 @echo '@@@%%%=$(MAKE)=@@@%%%'
4287 _ACEOF
4288 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4289 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4290 *@@@%%%=?*=@@@%%%*)
4291 eval ac_cv_prog_make_${ac_make}_set=yes;;
4292 *)
4293 eval ac_cv_prog_make_${ac_make}_set=no;;
4294 esac
4295 rm -f conftest.make ;;
4296 esac
4297 fi
4298 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4300 printf "%s\n" "yes" >&6; }
4301 SET_MAKE=
4302 else
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 printf "%s\n" "no" >&6; }
4305 SET_MAKE="MAKE=${MAKE-make}"
4306 fi
4307
4308 rm -rf .tst 2>/dev/null
4309 mkdir .tst 2>/dev/null
4310 if test -d .tst; then
4311 am__leading_dot=.
4312 else
4313 am__leading_dot=_
4314 fi
4315 rmdir .tst 2>/dev/null
4316
4317 DEPDIR="${am__leading_dot}deps"
4318
4319 ac_config_commands="$ac_config_commands depfiles"
4320
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4322 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4323 cat > confinc.mk << 'END'
4324 am__doit:
4325 @echo this is the am__doit target >confinc.out
4326 .PHONY: am__doit
4327 END
4328 am__include="#"
4329 am__quote=
4330 # BSD make does it like this.
4331 echo '.include "confinc.mk" # ignored' > confmf.BSD
4332 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4333 echo 'include confinc.mk # ignored' > confmf.GNU
4334 _am_result=no
4335 for s in GNU BSD; do
4336 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4337 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }
4341 case $?:`cat confinc.out 2>/dev/null` in #(
4342 '0:this is the am__doit target') :
4343 case $s in #(
4344 BSD) :
4345 am__include='.include' am__quote='"' ;; #(
4346 *) :
4347 am__include='include' am__quote='' ;;
4348 esac ;; #(
4349 *) :
4350 ;;
4351 esac
4352 if test "$am__include" != "#"; then
4353 _am_result="yes ($s style)"
4354 break
4355 fi
4356 done
4357 rm -f confinc.* confmf.*
4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4359 printf "%s\n" "${_am_result}" >&6; }
4360
4361 # Check whether --enable-dependency-tracking was given.
4362 if test ${enable_dependency_tracking+y}
4363 then :
4364 enableval=$enable_dependency_tracking;
4365 fi
4366
4367 if test "x$enable_dependency_tracking" != xno; then
4368 am_depcomp="$ac_aux_dir/depcomp"
4369 AMDEPBACKSLASH='\'
4370 am__nodep='_no'
4371 fi
4372 if test "x$enable_dependency_tracking" != xno; then
4373 AMDEP_TRUE=
4374 AMDEP_FALSE='#'
4375 else
4376 AMDEP_TRUE='#'
4377 AMDEP_FALSE=
4378 fi
4379
4380
4381 # Check whether --enable-silent-rules was given.
4382 if test ${enable_silent_rules+y}
4383 then :
4384 enableval=$enable_silent_rules;
4385 fi
4386
4387 case $enable_silent_rules in # (((
4388 yes) AM_DEFAULT_VERBOSITY=0;;
4389 no) AM_DEFAULT_VERBOSITY=1;;
4390 *) AM_DEFAULT_VERBOSITY=1;;
4391 esac
4392 am_make=${MAKE-make}
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4394 printf %s "checking whether $am_make supports nested variables... " >&6; }
4395 if test ${am_cv_make_support_nested_variables+y}
4396 then :
4397 printf %s "(cached) " >&6
4398 else case e in #(
4399 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4400 BAR0=false
4401 BAR1=true
4402 V=1
4403 am__doit:
4404 @$(TRUE)
4405 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4406 am_cv_make_support_nested_variables=yes
4407 else
4408 am_cv_make_support_nested_variables=no
4409 fi ;;
4410 esac
4411 fi
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4413 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4414 if test $am_cv_make_support_nested_variables = yes; then
4415 AM_V='$(V)'
4416 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4417 else
4418 AM_V=$AM_DEFAULT_VERBOSITY
4419 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4420 fi
4421 AM_BACKSLASH='\'
4422
4423 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4424 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4425 # is not polluted with repeated "-I."
4426 am__isrc=' -I$(srcdir)'
4427 # test to see if srcdir already configured
4428 if test -f $srcdir/config.status; then
4429 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4430 fi
4431 fi
4432
4433 # test whether we have cygpath
4434 if test -z "$CYGPATH_W"; then
4435 if (cygpath --version) >/dev/null 2>/dev/null; then
4436 CYGPATH_W='cygpath -w'
4437 else
4438 CYGPATH_W=echo
4439 fi
4440 fi
4441
4442
4443 # Define the identity of the package.
4444 PACKAGE='iceauth'
4445 VERSION='1.0.10'
4446
4447
4448 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4449
4450
4451 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4452
4453 # Some tools Automake needs.
4454
4455 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4456
4457
4458 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4459
4460
4461 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4462
4463
4464 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4465
4466
4467 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4468
4469 # For better backward compatibility. To be removed once Automake 1.9.x
4470 # dies out for good. For more background, see:
4471 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4472 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4473 mkdir_p='$(MKDIR_P)'
4474
4475 # We need awk for the "check" target (and possibly the TAP driver). The
4476 # system "awk" is bad on some platforms.
4477 # Always define AMTAR for backward compatibility. Yes, it's still used
4478 # in the wild :-( We should find a proper way to deprecate it ...
4479 AMTAR='$${TAR-tar}'
4480
4481
4482 # We'll loop over all known methods to create a tar archive until one works.
4483 _am_tools='gnutar pax cpio none'
4484
4485 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4486
4487
4488
4489
4490
4491 depcc="$CC" am_compiler_list=
4492
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4494 printf %s "checking dependency style of $depcc... " >&6; }
4495 if test ${am_cv_CC_dependencies_compiler_type+y}
4496 then :
4497 printf %s "(cached) " >&6
4498 else case e in #(
4499 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4500 # We make a subdir and do the tests there. Otherwise we can end up
4501 # making bogus files that we don't know about and never remove. For
4502 # instance it was reported that on HP-UX the gcc test will end up
4503 # making a dummy file named 'D' -- because '-MD' means "put the output
4504 # in D".
4505 rm -rf conftest.dir
4506 mkdir conftest.dir
4507 # Copy depcomp to subdir because otherwise we won't find it if we're
4508 # using a relative directory.
4509 cp "$am_depcomp" conftest.dir
4510 cd conftest.dir
4511 # We will build objects and dependencies in a subdirectory because
4512 # it helps to detect inapplicable dependency modes. For instance
4513 # both Tru64's cc and ICC support -MD to output dependencies as a
4514 # side effect of compilation, but ICC will put the dependencies in
4515 # the current directory while Tru64 will put them in the object
4516 # directory.
4517 mkdir sub
4518
4519 am_cv_CC_dependencies_compiler_type=none
4520 if test "$am_compiler_list" = ""; then
4521 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4522 fi
4523 am__universal=false
4524 case " $depcc " in #(
4525 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4526 esac
4527
4528 for depmode in $am_compiler_list; do
4529 # Setup a source with many dependencies, because some compilers
4530 # like to wrap large dependency lists on column 80 (with \), and
4531 # we should not choose a depcomp mode which is confused by this.
4532 #
4533 # We need to recreate these files for each test, as the compiler may
4534 # overwrite some of them when testing with obscure command lines.
4535 # This happens at least with the AIX C compiler.
4536 : > sub/conftest.c
4537 for i in 1 2 3 4 5 6; do
4538 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4539 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4540 # Solaris 10 /bin/sh.
4541 echo '/* dummy */' > sub/conftst$i.h
4542 done
4543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4544
4545 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4546 # mode. It turns out that the SunPro C++ compiler does not properly
4547 # handle '-M -o', and we need to detect this. Also, some Intel
4548 # versions had trouble with output in subdirs.
4549 am__obj=sub/conftest.${OBJEXT-o}
4550 am__minus_obj="-o $am__obj"
4551 case $depmode in
4552 gcc)
4553 # This depmode causes a compiler race in universal mode.
4554 test "$am__universal" = false || continue
4555 ;;
4556 nosideeffect)
4557 # After this tag, mechanisms are not by side-effect, so they'll
4558 # only be used when explicitly requested.
4559 if test "x$enable_dependency_tracking" = xyes; then
4560 continue
4561 else
4562 break
4563 fi
4564 ;;
4565 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4566 # This compiler won't grok '-c -o', but also, the minuso test has
4567 # not run yet. These depmodes are late enough in the game, and
4568 # so weak that their functioning should not be impacted.
4569 am__obj=conftest.${OBJEXT-o}
4570 am__minus_obj=
4571 ;;
4572 none) break ;;
4573 esac
4574 if depmode=$depmode \
4575 source=sub/conftest.c object=$am__obj \
4576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4577 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4578 >/dev/null 2>conftest.err &&
4579 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4581 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4583 # icc doesn't choke on unknown options, it will just issue warnings
4584 # or remarks (even with -Werror). So we grep stderr for any message
4585 # that says an option was ignored or not supported.
4586 # When given -MP, icc 7.0 and 7.1 complain thusly:
4587 # icc: Command line warning: ignoring option '-M'; no argument required
4588 # The diagnosis changed in icc 8.0:
4589 # icc: Command line remark: option '-MP' not supported
4590 if (grep 'ignoring option' conftest.err ||
4591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4592 am_cv_CC_dependencies_compiler_type=$depmode
4593 break
4594 fi
4595 fi
4596 done
4597
4598 cd ..
4599 rm -rf conftest.dir
4600 else
4601 am_cv_CC_dependencies_compiler_type=none
4602 fi
4603 ;;
4604 esac
4605 fi
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4607 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4608 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4609
4610 if
4611 test "x$enable_dependency_tracking" != xno \
4612 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4613 am__fastdepCC_TRUE=
4614 am__fastdepCC_FALSE='#'
4615 else
4616 am__fastdepCC_TRUE='#'
4617 am__fastdepCC_FALSE=
4618 fi
4619
4620
4621 # Variables for tags utilities; see am/tags.am
4622 if test -z "$CTAGS"; then
4623 CTAGS=ctags
4624 fi
4625
4626 if test -z "$ETAGS"; then
4627 ETAGS=etags
4628 fi
4629
4630 if test -z "$CSCOPE"; then
4631 CSCOPE=cscope
4632 fi
4633
4634
4635
4636 # POSIX will say in a future version that running "rm -f" with no argument
4637 # is OK; and we want to be able to make that assumption in our Makefile
4638 # recipes. So use an aggressive probe to check that the usage we want is
4639 # actually supported "in the wild" to an acceptable degree.
4640 # See automake bug#10828.
4641 # To make any issue more visible, cause the running configure to be aborted
4642 # by default if the 'rm' program in use doesn't match our expectations; the
4643 # user can still override this though.
4644 if rm -f && rm -fr && rm -rf; then : OK; else
4645 cat >&2 <<'END'
4646 Oops!
4647
4648 Your 'rm' program seems unable to run without file operands specified
4649 on the command line, even when the '-f' option is present. This is contrary
4650 to the behaviour of most rm programs out there, and not conforming with
4651 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4652
4653 Please tell bug-automake@gnu.org about your system, including the value
4654 of your $PATH and any error possibly output before this message. This
4655 can help us improve future automake versions.
4656
4657 END
4658 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4659 echo 'Configuration will proceed anyway, since you have set the' >&2
4660 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4661 echo >&2
4662 else
4663 cat >&2 <<'END'
4664 Aborting the configuration process, to ensure you take notice of the issue.
4665
4666 You can download and install GNU coreutils to get an 'rm' implementation
4667 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4668
4669 If you want to complete the configuration process using your problematic
4670 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4671 to "yes", and re-run configure.
4672
4673 END
4674 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4675 fi
4676 fi
4677
4678
4679 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4692 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4693 if test ${ac_cv_c_undeclared_builtin_options+y}
4694 then :
4695 printf %s "(cached) " >&6
4696 else case e in #(
4697 e) ac_save_CFLAGS=$CFLAGS
4698 ac_cv_c_undeclared_builtin_options='cannot detect'
4699 for ac_arg in '' -fno-builtin; do
4700 CFLAGS="$ac_save_CFLAGS $ac_arg"
4701 # This test program should *not* compile successfully.
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704
4705 int
4706 main (void)
4707 {
4708 (void) strchr;
4709 ;
4710 return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"
4714 then :
4715
4716 else case e in #(
4717 e) # This test program should compile successfully.
4718 # No library function is consistently available on
4719 # freestanding implementations, so test against a dummy
4720 # declaration. Include always-available headers on the
4721 # off chance that they somehow elicit warnings.
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 #include <float.h>
4725 #include <limits.h>
4726 #include <stdarg.h>
4727 #include <stddef.h>
4728 extern void ac_decl (int, char *);
4729
4730 int
4731 main (void)
4732 {
4733 (void) ac_decl (0, (char *) 0);
4734 (void) ac_decl;
4735
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 if ac_fn_c_try_compile "$LINENO"
4741 then :
4742 if test x"$ac_arg" = x
4743 then :
4744 ac_cv_c_undeclared_builtin_options='none needed'
4745 else case e in #(
4746 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4747 esac
4748 fi
4749 break
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4752 esac
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4755 done
4756 CFLAGS=$ac_save_CFLAGS
4757 ;;
4758 esac
4759 fi
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4761 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4762 case $ac_cv_c_undeclared_builtin_options in #(
4763 'cannot detect') :
4764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4765 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4766 as_fn_error $? "cannot make $CC report undeclared builtins
4767 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4768 'none needed') :
4769 ac_c_undeclared_builtin_options='' ;; #(
4770 *) :
4771 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4772 esac
4773
4774
4775
4776
4777
4778 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4779 if test "x$ac_cv_have_decl___clang__" = xyes
4780 then :
4781 CLANGCC="yes"
4782 else case e in #(
4783 e) CLANGCC="no" ;;
4784 esac
4785 fi
4786 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4787 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4788 then :
4789 INTELCC="yes"
4790 else case e in #(
4791 e) INTELCC="no" ;;
4792 esac
4793 fi
4794 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4795 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4796 then :
4797 SUNCC="yes"
4798 else case e in #(
4799 e) SUNCC="no" ;;
4800 esac
4801 fi
4802
4803
4804
4805
4806
4807
4808
4809
4810 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4811 if test -n "$ac_tool_prefix"; then
4812 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4813 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 printf %s "checking for $ac_word... " >&6; }
4816 if test ${ac_cv_path_PKG_CONFIG+y}
4817 then :
4818 printf %s "(cached) " >&6
4819 else case e in #(
4820 e) case $PKG_CONFIG in
4821 [\\/]* | ?:[\\/]*)
4822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4823 ;;
4824 *)
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 case $as_dir in #(((
4830 '') as_dir=./ ;;
4831 */) ;;
4832 *) as_dir=$as_dir/ ;;
4833 esac
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4836 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840 done
4841 done
4842 IFS=$as_save_IFS
4843
4844 ;;
4845 esac ;;
4846 esac
4847 fi
4848 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4849 if test -n "$PKG_CONFIG"; then
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4851 printf "%s\n" "$PKG_CONFIG" >&6; }
4852 else
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 printf "%s\n" "no" >&6; }
4855 fi
4856
4857
4858 fi
4859 if test -z "$ac_cv_path_PKG_CONFIG"; then
4860 ac_pt_PKG_CONFIG=$PKG_CONFIG
4861 # Extract the first word of "pkg-config", so it can be a program name with args.
4862 set dummy pkg-config; ac_word=$2
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 printf %s "checking for $ac_word... " >&6; }
4865 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4866 then :
4867 printf %s "(cached) " >&6
4868 else case e in #(
4869 e) case $ac_pt_PKG_CONFIG in
4870 [\\/]* | ?:[\\/]*)
4871 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4872 ;;
4873 *)
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 case $as_dir in #(((
4879 '') as_dir=./ ;;
4880 */) ;;
4881 *) as_dir=$as_dir/ ;;
4882 esac
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4885 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893 ;;
4894 esac ;;
4895 esac
4896 fi
4897 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4898 if test -n "$ac_pt_PKG_CONFIG"; then
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4900 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4901 else
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 printf "%s\n" "no" >&6; }
4904 fi
4905
4906 if test "x$ac_pt_PKG_CONFIG" = x; then
4907 PKG_CONFIG=""
4908 else
4909 case $cross_compiling:$ac_tool_warned in
4910 yes:)
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913 ac_tool_warned=yes ;;
4914 esac
4915 PKG_CONFIG=$ac_pt_PKG_CONFIG
4916 fi
4917 else
4918 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4919 fi
4920
4921 fi
4922 if test -n "$PKG_CONFIG"; then
4923 _pkg_min_version=0.9.0
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4925 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4926 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928 printf "%s\n" "yes" >&6; }
4929 else
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 printf "%s\n" "no" >&6; }
4932 PKG_CONFIG=""
4933 fi
4934 fi
4935
4936
4937 # Make sure we can run config.sub.
4938 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4939 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4940
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4942 printf %s "checking build system type... " >&6; }
4943 if test ${ac_cv_build+y}
4944 then :
4945 printf %s "(cached) " >&6
4946 else case e in #(
4947 e) ac_build_alias=$build_alias
4948 test "x$ac_build_alias" = x &&
4949 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4950 test "x$ac_build_alias" = x &&
4951 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4952 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4953 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4954 ;;
4955 esac
4956 fi
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4958 printf "%s\n" "$ac_cv_build" >&6; }
4959 case $ac_cv_build in
4960 *-*-*) ;;
4961 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4962 esac
4963 build=$ac_cv_build
4964 ac_save_IFS=$IFS; IFS='-'
4965 set x $ac_cv_build
4966 shift
4967 build_cpu=$1
4968 build_vendor=$2
4969 shift; shift
4970 # Remember, the first character of IFS is used to create $*,
4971 # except with old shells:
4972 build_os=$*
4973 IFS=$ac_save_IFS
4974 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4975
4976
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4978 printf %s "checking host system type... " >&6; }
4979 if test ${ac_cv_host+y}
4980 then :
4981 printf %s "(cached) " >&6
4982 else case e in #(
4983 e) if test "x$host_alias" = x; then
4984 ac_cv_host=$ac_cv_build
4985 else
4986 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4987 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4988 fi
4989 ;;
4990 esac
4991 fi
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4993 printf "%s\n" "$ac_cv_host" >&6; }
4994 case $ac_cv_host in
4995 *-*-*) ;;
4996 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4997 esac
4998 host=$ac_cv_host
4999 ac_save_IFS=$IFS; IFS='-'
5000 set x $ac_cv_host
5001 shift
5002 host_cpu=$1
5003 host_vendor=$2
5004 shift; shift
5005 # Remember, the first character of IFS is used to create $*,
5006 # except with old shells:
5007 host_os=$*
5008 IFS=$ac_save_IFS
5009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5010
5011
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5013 printf %s "checking for a sed that does not truncate output... " >&6; }
5014 if test ${ac_cv_path_SED+y}
5015 then :
5016 printf %s "(cached) " >&6
5017 else case e in #(
5018 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5019 for ac_i in 1 2 3 4 5 6 7; do
5020 ac_script="$ac_script$as_nl$ac_script"
5021 done
5022 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5023 { ac_script=; unset ac_script;}
5024 if test -z "$SED"; then
5025 ac_path_SED_found=false
5026 # Loop through the user's path and test for each of PROGNAME-LIST
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030 IFS=$as_save_IFS
5031 case $as_dir in #(((
5032 '') as_dir=./ ;;
5033 */) ;;
5034 *) as_dir=$as_dir/ ;;
5035 esac
5036 for ac_prog in sed gsed
5037 do
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5040 as_fn_executable_p "$ac_path_SED" || continue
5041 # Check for GNU ac_path_SED and select it if it is found.
5042 # Check for GNU $ac_path_SED
5043 case `"$ac_path_SED" --version 2>&1` in #(
5044 *GNU*)
5045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5046 #(
5047 *)
5048 ac_count=0
5049 printf %s 0123456789 >"conftest.in"
5050 while :
5051 do
5052 cat "conftest.in" "conftest.in" >"conftest.tmp"
5053 mv "conftest.tmp" "conftest.in"
5054 cp "conftest.in" "conftest.nl"
5055 printf "%s\n" '' >> "conftest.nl"
5056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5058 as_fn_arith $ac_count + 1 && ac_count=$as_val
5059 if test $ac_count -gt ${ac_path_SED_max-0}; then
5060 # Best one so far, save it but keep looking for a better one
5061 ac_cv_path_SED="$ac_path_SED"
5062 ac_path_SED_max=$ac_count
5063 fi
5064 # 10*(2^10) chars as input seems more than enough
5065 test $ac_count -gt 10 && break
5066 done
5067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5068 esac
5069
5070 $ac_path_SED_found && break 3
5071 done
5072 done
5073 done
5074 IFS=$as_save_IFS
5075 if test -z "$ac_cv_path_SED"; then
5076 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5077 fi
5078 else
5079 ac_cv_path_SED=$SED
5080 fi
5081 ;;
5082 esac
5083 fi
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5085 printf "%s\n" "$ac_cv_path_SED" >&6; }
5086 SED="$ac_cv_path_SED"
5087 rm -f conftest.sed
5088
5089
5090
5091
5092
5093
5094 # Check whether --enable-selective-werror was given.
5095 if test ${enable_selective_werror+y}
5096 then :
5097 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5098 else case e in #(
5099 e) SELECTIVE_WERROR=yes ;;
5100 esac
5101 fi
5102
5103
5104
5105
5106
5107 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5108 if test "x$SUNCC" = "xyes"; then
5109 BASE_CFLAGS="-v"
5110 else
5111 BASE_CFLAGS=""
5112 fi
5113
5114 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 xorg_testset_save_CFLAGS="$CFLAGS"
5129
5130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5134 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5135 then :
5136 printf %s "(cached) " >&6
5137 else case e in #(
5138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 int i;
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"
5143 then :
5144 xorg_cv_cc_flag_unknown_warning_option=yes
5145 else case e in #(
5146 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5147 esac
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5150 esac
5151 fi
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5155 CFLAGS="$xorg_testset_save_CFLAGS"
5156 fi
5157
5158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5161 fi
5162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5166 then :
5167 printf %s "(cached) " >&6
5168 else case e in #(
5169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 int i;
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"
5174 then :
5175 xorg_cv_cc_flag_unused_command_line_argument=yes
5176 else case e in #(
5177 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5178 esac
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5181 esac
5182 fi
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5184 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5186 CFLAGS="$xorg_testset_save_CFLAGS"
5187 fi
5188
5189 found="no"
5190
5191 if test $found = "no" ; then
5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5194 fi
5195
5196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5198 fi
5199
5200 CFLAGS="$CFLAGS -Wall"
5201
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5203 printf %s "checking if $CC supports -Wall... " >&6; }
5204 cacheid=xorg_cv_cc_flag__Wall
5205 if eval test \${$cacheid+y}
5206 then :
5207 printf %s "(cached) " >&6
5208 else case e in #(
5209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 int i;
5212 int
5213 main (void)
5214 {
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_link "$LINENO"
5221 then :
5222 eval $cacheid=yes
5223 else case e in #(
5224 e) eval $cacheid=no ;;
5225 esac
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5228 conftest$ac_exeext conftest.$ac_ext ;;
5229 esac
5230 fi
5231
5232
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235 eval supported=\$$cacheid
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237 printf "%s\n" "$supported" >&6; }
5238 if test "$supported" = "yes" ; then
5239 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5240 found="yes"
5241 fi
5242 fi
5243
5244
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 -Wpointer-arith"
5331
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5333 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5334 cacheid=xorg_cv_cc_flag__Wpointer_arith
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 -Wpointer-arith"
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 -Wmissing-declarations"
5461
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5463 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5464 cacheid=xorg_cv_cc_flag__Wmissing_declarations
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 -Wmissing-declarations"
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 -Wformat=2"
5591
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5593 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5594 cacheid=xorg_cv_cc_flag__Wformat_2
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 -Wformat=2"
5630 found="yes"
5631 fi
5632 fi
5633
5634 if test $found = "no" ; then
5635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637 fi
5638
5639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5641 fi
5642
5643 CFLAGS="$CFLAGS -Wformat"
5644
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5646 printf %s "checking if $CC supports -Wformat... " >&6; }
5647 cacheid=xorg_cv_cc_flag__Wformat
5648 if eval test \${$cacheid+y}
5649 then :
5650 printf %s "(cached) " >&6
5651 else case e in #(
5652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 int i;
5655 int
5656 main (void)
5657 {
5658
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 if ac_fn_c_try_link "$LINENO"
5664 then :
5665 eval $cacheid=yes
5666 else case e in #(
5667 e) eval $cacheid=no ;;
5668 esac
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5671 conftest$ac_exeext conftest.$ac_ext ;;
5672 esac
5673 fi
5674
5675
5676 CFLAGS="$xorg_testset_save_CFLAGS"
5677
5678 eval supported=\$$cacheid
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5680 printf "%s\n" "$supported" >&6; }
5681 if test "$supported" = "yes" ; then
5682 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5683 found="yes"
5684 fi
5685 fi
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 xorg_testset_save_CFLAGS="$CFLAGS"
5704
5705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5709 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5710 then :
5711 printf %s "(cached) " >&6
5712 else case e in #(
5713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 int i;
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"
5718 then :
5719 xorg_cv_cc_flag_unknown_warning_option=yes
5720 else case e in #(
5721 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5722 esac
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5725 esac
5726 fi
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5728 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5730 CFLAGS="$xorg_testset_save_CFLAGS"
5731 fi
5732
5733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 fi
5737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5739 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5740 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else case e in #(
5744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 int i;
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"
5749 then :
5750 xorg_cv_cc_flag_unused_command_line_argument=yes
5751 else case e in #(
5752 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5753 esac
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5756 esac
5757 fi
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5759 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5761 CFLAGS="$xorg_testset_save_CFLAGS"
5762 fi
5763
5764 found="no"
5765
5766 if test $found = "no" ; then
5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769 fi
5770
5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5773 fi
5774
5775 CFLAGS="$CFLAGS -Wstrict-prototypes"
5776
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5778 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5779 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5780 if eval test \${$cacheid+y}
5781 then :
5782 printf %s "(cached) " >&6
5783 else case e in #(
5784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 int i;
5787 int
5788 main (void)
5789 {
5790
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 if ac_fn_c_try_link "$LINENO"
5796 then :
5797 eval $cacheid=yes
5798 else case e in #(
5799 e) eval $cacheid=no ;;
5800 esac
5801 fi
5802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5803 conftest$ac_exeext conftest.$ac_ext ;;
5804 esac
5805 fi
5806
5807
5808 CFLAGS="$xorg_testset_save_CFLAGS"
5809
5810 eval supported=\$$cacheid
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5812 printf "%s\n" "$supported" >&6; }
5813 if test "$supported" = "yes" ; then
5814 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5815 found="yes"
5816 fi
5817 fi
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 -Wmissing-prototypes"
5906
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5908 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5909 cacheid=xorg_cv_cc_flag__Wmissing_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 -Wmissing-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 -Wnested-externs"
6036
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6038 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6039 cacheid=xorg_cv_cc_flag__Wnested_externs
6040 if eval test \${$cacheid+y}
6041 then :
6042 printf %s "(cached) " >&6
6043 else 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 -Wnested-externs"
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 -Wbad-function-cast"
6166
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6168 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6169 cacheid=xorg_cv_cc_flag__Wbad_function_cast
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 -Wbad-function-cast"
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 -Wold-style-definition"
6296
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6298 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6299 cacheid=xorg_cv_cc_flag__Wold_style_definition
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 -Wold-style-definition"
6335 found="yes"
6336 fi
6337 fi
6338
6339 if test $found = "no" ; then
6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6342 fi
6343
6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6346 fi
6347
6348 CFLAGS="$CFLAGS -fd"
6349
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6351 printf %s "checking if $CC supports -fd... " >&6; }
6352 cacheid=xorg_cv_cc_flag__fd
6353 if eval test \${$cacheid+y}
6354 then :
6355 printf %s "(cached) " >&6
6356 else case e in #(
6357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 int i;
6360 int
6361 main (void)
6362 {
6363
6364 ;
6365 return 0;
6366 }
6367 _ACEOF
6368 if ac_fn_c_try_link "$LINENO"
6369 then :
6370 eval $cacheid=yes
6371 else case e in #(
6372 e) eval $cacheid=no ;;
6373 esac
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6376 conftest$ac_exeext conftest.$ac_ext ;;
6377 esac
6378 fi
6379
6380
6381 CFLAGS="$xorg_testset_save_CFLAGS"
6382
6383 eval supported=\$$cacheid
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385 printf "%s\n" "$supported" >&6; }
6386 if test "$supported" = "yes" ; then
6387 BASE_CFLAGS="$BASE_CFLAGS -fd"
6388 found="yes"
6389 fi
6390 fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 xorg_testset_save_CFLAGS="$CFLAGS"
6407
6408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6411 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6412 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6413 then :
6414 printf %s "(cached) " >&6
6415 else case e in #(
6416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418 int i;
6419 _ACEOF
6420 if ac_fn_c_try_compile "$LINENO"
6421 then :
6422 xorg_cv_cc_flag_unknown_warning_option=yes
6423 else case e in #(
6424 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6425 esac
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6428 esac
6429 fi
6430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6431 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6433 CFLAGS="$xorg_testset_save_CFLAGS"
6434 fi
6435
6436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439 fi
6440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6442 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6443 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6444 then :
6445 printf %s "(cached) " >&6
6446 else case e in #(
6447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 int i;
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"
6452 then :
6453 xorg_cv_cc_flag_unused_command_line_argument=yes
6454 else case e in #(
6455 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6456 esac
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6459 esac
6460 fi
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6462 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6464 CFLAGS="$xorg_testset_save_CFLAGS"
6465 fi
6466
6467 found="no"
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 -Wdeclaration-after-statement"
6479
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6481 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6482 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
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 -Wdeclaration-after-statement"
6518 found="yes"
6519 fi
6520 fi
6521
6522
6523
6524
6525
6526 # This chunk adds additional warnings that could catch undesired effects.
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540 xorg_testset_save_CFLAGS="$CFLAGS"
6541
6542 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6545 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6546 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6547 then :
6548 printf %s "(cached) " >&6
6549 else case e in #(
6550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 int i;
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"
6555 then :
6556 xorg_cv_cc_flag_unknown_warning_option=yes
6557 else case e in #(
6558 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6559 esac
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6562 esac
6563 fi
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6565 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6567 CFLAGS="$xorg_testset_save_CFLAGS"
6568 fi
6569
6570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573 fi
6574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6576 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6577 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6578 then :
6579 printf %s "(cached) " >&6
6580 else case e in #(
6581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 int i;
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"
6586 then :
6587 xorg_cv_cc_flag_unused_command_line_argument=yes
6588 else case e in #(
6589 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6590 esac
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6593 esac
6594 fi
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6596 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6598 CFLAGS="$xorg_testset_save_CFLAGS"
6599 fi
6600
6601 found="no"
6602
6603 if test $found = "no" ; then
6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6606 fi
6607
6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6610 fi
6611
6612 CFLAGS="$CFLAGS -Wunused"
6613
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6615 printf %s "checking if $CC supports -Wunused... " >&6; }
6616 cacheid=xorg_cv_cc_flag__Wunused
6617 if eval test \${$cacheid+y}
6618 then :
6619 printf %s "(cached) " >&6
6620 else case e in #(
6621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 int i;
6624 int
6625 main (void)
6626 {
6627
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 if ac_fn_c_try_link "$LINENO"
6633 then :
6634 eval $cacheid=yes
6635 else case e in #(
6636 e) eval $cacheid=no ;;
6637 esac
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6640 conftest$ac_exeext conftest.$ac_ext ;;
6641 esac
6642 fi
6643
6644
6645 CFLAGS="$xorg_testset_save_CFLAGS"
6646
6647 eval supported=\$$cacheid
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6649 printf "%s\n" "$supported" >&6; }
6650 if test "$supported" = "yes" ; then
6651 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6652 found="yes"
6653 fi
6654 fi
6655
6656
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 -Wuninitialized"
6743
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6745 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6746 cacheid=xorg_cv_cc_flag__Wuninitialized
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 -Wuninitialized"
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 -Wshadow"
6873
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6875 printf %s "checking if $CC supports -Wshadow... " >&6; }
6876 cacheid=xorg_cv_cc_flag__Wshadow
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 -Wshadow"
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 -Wmissing-noreturn"
7003
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7005 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7006 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
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 -Wmissing-noreturn"
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-format-attribute"
7133
7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7135 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7136 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
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-format-attribute"
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 -Wredundant-decls"
7263
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7265 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7266 cacheid=xorg_cv_cc_flag__Wredundant_decls
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 -Wredundant-decls"
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 -Wlogical-op"
7393
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7395 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7396 cacheid=xorg_cv_cc_flag__Wlogical_op
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 -Wlogical-op"
7432 found="yes"
7433 fi
7434 fi
7435
7436
7437
7438 # These are currently disabled because they are noisy. They will be enabled
7439 # in the future once the codebase is sufficiently modernized to silence
7440 # them. For now, I don't want them to drown out the other warnings.
7441 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7442 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7443 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7444
7445 # Turn some warnings into errors, so we don't accidentally get successful builds
7446 # when there are problems that should be fixed.
7447
7448 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 xorg_testset_save_CFLAGS="$CFLAGS"
7463
7464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7468 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7469 then :
7470 printf %s "(cached) " >&6
7471 else case e in #(
7472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 int i;
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"
7477 then :
7478 xorg_cv_cc_flag_unknown_warning_option=yes
7479 else case e in #(
7480 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7481 esac
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7484 esac
7485 fi
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7489 CFLAGS="$xorg_testset_save_CFLAGS"
7490 fi
7491
7492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495 fi
7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7500 then :
7501 printf %s "(cached) " >&6
7502 else case e in #(
7503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 int i;
7506 _ACEOF
7507 if ac_fn_c_try_compile "$LINENO"
7508 then :
7509 xorg_cv_cc_flag_unused_command_line_argument=yes
7510 else case e in #(
7511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7512 esac
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7515 esac
7516 fi
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7520 CFLAGS="$xorg_testset_save_CFLAGS"
7521 fi
7522
7523 found="no"
7524
7525 if test $found = "no" ; then
7526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7528 fi
7529
7530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7532 fi
7533
7534 CFLAGS="$CFLAGS -Werror=implicit"
7535
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7537 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7538 cacheid=xorg_cv_cc_flag__Werror_implicit
7539 if eval test \${$cacheid+y}
7540 then :
7541 printf %s "(cached) " >&6
7542 else case e in #(
7543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 int i;
7546 int
7547 main (void)
7548 {
7549
7550 ;
7551 return 0;
7552 }
7553 _ACEOF
7554 if ac_fn_c_try_link "$LINENO"
7555 then :
7556 eval $cacheid=yes
7557 else case e in #(
7558 e) eval $cacheid=no ;;
7559 esac
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7562 conftest$ac_exeext conftest.$ac_ext ;;
7563 esac
7564 fi
7565
7566
7567 CFLAGS="$xorg_testset_save_CFLAGS"
7568
7569 eval supported=\$$cacheid
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7571 printf "%s\n" "$supported" >&6; }
7572 if test "$supported" = "yes" ; then
7573 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7574 found="yes"
7575 fi
7576 fi
7577
7578 if test $found = "no" ; then
7579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7581 fi
7582
7583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7585 fi
7586
7587 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7588
7589 { 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
7590 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7591 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7592 if eval test \${$cacheid+y}
7593 then :
7594 printf %s "(cached) " >&6
7595 else case e in #(
7596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 int i;
7599 int
7600 main (void)
7601 {
7602
7603 ;
7604 return 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_link "$LINENO"
7608 then :
7609 eval $cacheid=yes
7610 else case e in #(
7611 e) eval $cacheid=no ;;
7612 esac
7613 fi
7614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7615 conftest$ac_exeext conftest.$ac_ext ;;
7616 esac
7617 fi
7618
7619
7620 CFLAGS="$xorg_testset_save_CFLAGS"
7621
7622 eval supported=\$$cacheid
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624 printf "%s\n" "$supported" >&6; }
7625 if test "$supported" = "yes" ; then
7626 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7627 found="yes"
7628 fi
7629 fi
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 xorg_testset_save_CFLAGS="$CFLAGS"
7646
7647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652 then :
7653 printf %s "(cached) " >&6
7654 else case e in #(
7655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 int i;
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"
7660 then :
7661 xorg_cv_cc_flag_unknown_warning_option=yes
7662 else case e in #(
7663 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7664 esac
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7667 esac
7668 fi
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7670 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7672 CFLAGS="$xorg_testset_save_CFLAGS"
7673 fi
7674
7675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678 fi
7679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7681 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7682 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7683 then :
7684 printf %s "(cached) " >&6
7685 else case e in #(
7686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 int i;
7689 _ACEOF
7690 if ac_fn_c_try_compile "$LINENO"
7691 then :
7692 xorg_cv_cc_flag_unused_command_line_argument=yes
7693 else case e in #(
7694 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7695 esac
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7698 esac
7699 fi
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7703 CFLAGS="$xorg_testset_save_CFLAGS"
7704 fi
7705
7706 found="no"
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 -Werror=nonnull"
7718
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7720 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7721 cacheid=xorg_cv_cc_flag__Werror_nonnull
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 -Werror=nonnull"
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=init-self"
7848
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7850 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7851 cacheid=xorg_cv_cc_flag__Werror_init_self
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=init-self"
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=main"
7978
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7980 printf %s "checking if $CC supports -Werror=main... " >&6; }
7981 cacheid=xorg_cv_cc_flag__Werror_main
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=main"
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=missing-braces"
8108
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8110 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8111 cacheid=xorg_cv_cc_flag__Werror_missing_braces
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=missing-braces"
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=sequence-point"
8238
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8240 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8241 cacheid=xorg_cv_cc_flag__Werror_sequence_point
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=sequence-point"
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=return-type"
8368
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8370 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8371 cacheid=xorg_cv_cc_flag__Werror_return_type
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=return-type"
8407 found="yes"
8408 fi
8409 fi
8410
8411 if test $found = "no" ; then
8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414 fi
8415
8416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8418 fi
8419
8420 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8421
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8423 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8424 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8425 if eval test \${$cacheid+y}
8426 then :
8427 printf %s "(cached) " >&6
8428 else case e in #(
8429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 int i;
8432 int
8433 main (void)
8434 {
8435
8436 ;
8437 return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"
8441 then :
8442 eval $cacheid=yes
8443 else case e in #(
8444 e) eval $cacheid=no ;;
8445 esac
8446 fi
8447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8448 conftest$ac_exeext conftest.$ac_ext ;;
8449 esac
8450 fi
8451
8452
8453 CFLAGS="$xorg_testset_save_CFLAGS"
8454
8455 eval supported=\$$cacheid
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8457 printf "%s\n" "$supported" >&6; }
8458 if test "$supported" = "yes" ; then
8459 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8460 found="yes"
8461 fi
8462 fi
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478 xorg_testset_save_CFLAGS="$CFLAGS"
8479
8480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8485 then :
8486 printf %s "(cached) " >&6
8487 else case e in #(
8488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 int i;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"
8493 then :
8494 xorg_cv_cc_flag_unknown_warning_option=yes
8495 else case e in #(
8496 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8497 esac
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8500 esac
8501 fi
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8503 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8505 CFLAGS="$xorg_testset_save_CFLAGS"
8506 fi
8507
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511 fi
8512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8514 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8515 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8516 then :
8517 printf %s "(cached) " >&6
8518 else case e in #(
8519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 int i;
8522 _ACEOF
8523 if ac_fn_c_try_compile "$LINENO"
8524 then :
8525 xorg_cv_cc_flag_unused_command_line_argument=yes
8526 else case e in #(
8527 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8528 esac
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8531 esac
8532 fi
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8534 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8536 CFLAGS="$xorg_testset_save_CFLAGS"
8537 fi
8538
8539 found="no"
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 -Werror=trigraphs"
8551
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8553 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8554 cacheid=xorg_cv_cc_flag__Werror_trigraphs
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 -Werror=trigraphs"
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=array-bounds"
8681
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8683 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8684 cacheid=xorg_cv_cc_flag__Werror_array_bounds
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=array-bounds"
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=write-strings"
8811
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8813 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8814 cacheid=xorg_cv_cc_flag__Werror_write_strings
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=write-strings"
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=address"
8941
8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8943 printf %s "checking if $CC supports -Werror=address... " >&6; }
8944 cacheid=xorg_cv_cc_flag__Werror_address
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=address"
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=int-to-pointer-cast"
9071
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9073 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9074 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
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=int-to-pointer-cast"
9110 found="yes"
9111 fi
9112 fi
9113
9114 if test $found = "no" ; then
9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117 fi
9118
9119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9121 fi
9122
9123 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9124
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9126 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9127 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9128 if eval test \${$cacheid+y}
9129 then :
9130 printf %s "(cached) " >&6
9131 else case e in #(
9132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 int i;
9135 int
9136 main (void)
9137 {
9138
9139 ;
9140 return 0;
9141 }
9142 _ACEOF
9143 if ac_fn_c_try_link "$LINENO"
9144 then :
9145 eval $cacheid=yes
9146 else case e in #(
9147 e) eval $cacheid=no ;;
9148 esac
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9151 conftest$ac_exeext conftest.$ac_ext ;;
9152 esac
9153 fi
9154
9155
9156 CFLAGS="$xorg_testset_save_CFLAGS"
9157
9158 eval supported=\$$cacheid
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9160 printf "%s\n" "$supported" >&6; }
9161 if test "$supported" = "yes" ; then
9162 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9163 found="yes"
9164 fi
9165 fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181 xorg_testset_save_CFLAGS="$CFLAGS"
9182
9183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9188 then :
9189 printf %s "(cached) " >&6
9190 else case e in #(
9191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 int i;
9194 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"
9196 then :
9197 xorg_cv_cc_flag_unknown_warning_option=yes
9198 else case e in #(
9199 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9200 esac
9201 fi
9202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9203 esac
9204 fi
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9208 CFLAGS="$xorg_testset_save_CFLAGS"
9209 fi
9210
9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214 fi
9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9219 then :
9220 printf %s "(cached) " >&6
9221 else case e in #(
9222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 int i;
9225 _ACEOF
9226 if ac_fn_c_try_compile "$LINENO"
9227 then :
9228 xorg_cv_cc_flag_unused_command_line_argument=yes
9229 else case e in #(
9230 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9231 esac
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9234 esac
9235 fi
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239 CFLAGS="$xorg_testset_save_CFLAGS"
9240 fi
9241
9242 found="no"
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 -Werror=pointer-to-int-cast"
9254
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9256 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9257 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
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 -Werror=pointer-to-int-cast"
9293 found="yes"
9294 fi
9295 fi
9296
9297 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9298 else
9299 { 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
9300 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;}
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314 xorg_testset_save_CFLAGS="$CFLAGS"
9315
9316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9319 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9320 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9321 then :
9322 printf %s "(cached) " >&6
9323 else case e in #(
9324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 int i;
9327 _ACEOF
9328 if ac_fn_c_try_compile "$LINENO"
9329 then :
9330 xorg_cv_cc_flag_unknown_warning_option=yes
9331 else case e in #(
9332 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9333 esac
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9336 esac
9337 fi
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9341 CFLAGS="$xorg_testset_save_CFLAGS"
9342 fi
9343
9344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347 fi
9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9352 then :
9353 printf %s "(cached) " >&6
9354 else case e in #(
9355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 int i;
9358 _ACEOF
9359 if ac_fn_c_try_compile "$LINENO"
9360 then :
9361 xorg_cv_cc_flag_unused_command_line_argument=yes
9362 else case e in #(
9363 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9364 esac
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9367 esac
9368 fi
9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9370 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9372 CFLAGS="$xorg_testset_save_CFLAGS"
9373 fi
9374
9375 found="no"
9376
9377 if test $found = "no" ; then
9378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380 fi
9381
9382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9384 fi
9385
9386 CFLAGS="$CFLAGS -Wimplicit"
9387
9388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9389 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9390 cacheid=xorg_cv_cc_flag__Wimplicit
9391 if eval test \${$cacheid+y}
9392 then :
9393 printf %s "(cached) " >&6
9394 else case e in #(
9395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 int i;
9398 int
9399 main (void)
9400 {
9401
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"
9407 then :
9408 eval $cacheid=yes
9409 else case e in #(
9410 e) eval $cacheid=no ;;
9411 esac
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9414 conftest$ac_exeext conftest.$ac_ext ;;
9415 esac
9416 fi
9417
9418
9419 CFLAGS="$xorg_testset_save_CFLAGS"
9420
9421 eval supported=\$$cacheid
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9423 printf "%s\n" "$supported" >&6; }
9424 if test "$supported" = "yes" ; then
9425 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9426 found="yes"
9427 fi
9428 fi
9429
9430
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 -Wnonnull"
9517
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9519 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9520 cacheid=xorg_cv_cc_flag__Wnonnull
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 -Wnonnull"
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 -Winit-self"
9647
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9649 printf %s "checking if $CC supports -Winit-self... " >&6; }
9650 cacheid=xorg_cv_cc_flag__Winit_self
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 -Winit-self"
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 -Wmain"
9777
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9779 printf %s "checking if $CC supports -Wmain... " >&6; }
9780 cacheid=xorg_cv_cc_flag__Wmain
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 -Wmain"
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 -Wmissing-braces"
9907
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9909 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9910 cacheid=xorg_cv_cc_flag__Wmissing_braces
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 -Wmissing-braces"
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 -Wsequence-point"
10037
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10039 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10040 cacheid=xorg_cv_cc_flag__Wsequence_point
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 -Wsequence-point"
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 -Wreturn-type"
10167
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10169 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10170 cacheid=xorg_cv_cc_flag__Wreturn_type
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 -Wreturn-type"
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 -Wtrigraphs"
10297
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10299 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10300 cacheid=xorg_cv_cc_flag__Wtrigraphs
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 -Wtrigraphs"
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 -Warray-bounds"
10427
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10429 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10430 cacheid=xorg_cv_cc_flag__Warray_bounds
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 -Warray-bounds"
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 -Wwrite-strings"
10557
10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10559 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10560 cacheid=xorg_cv_cc_flag__Wwrite_strings
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 -Wwrite-strings"
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 -Waddress"
10687
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10689 printf %s "checking if $CC supports -Waddress... " >&6; }
10690 cacheid=xorg_cv_cc_flag__Waddress
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 -Waddress"
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 -Wint-to-pointer-cast"
10817
10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10819 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10820 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
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 -Wint-to-pointer-cast"
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 -Wpointer-to-int-cast"
10947
10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10949 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10950 cacheid=xorg_cv_cc_flag__Wpointer_to_int_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 -Wpointer-to-int-cast"
10986 found="yes"
10987 fi
10988 fi
10989
10990
10991 fi
10992
10993
10994
10995
10996
10997
10998
10999 CWARNFLAGS="$BASE_CFLAGS"
11000 if test "x$GCC" = xyes ; then
11001 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11002 fi
11003
11004
11005
11006
11007
11008
11009
11010
11011 # Check whether --enable-strict-compilation was given.
11012 if test ${enable_strict_compilation+y}
11013 then :
11014 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11015 else case e in #(
11016 e) STRICT_COMPILE=no ;;
11017 esac
11018 fi
11019
11020
11021
11022
11023
11024
11025 STRICT_CFLAGS=""
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039 xorg_testset_save_CFLAGS="$CFLAGS"
11040
11041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11044 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11045 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11046 then :
11047 printf %s "(cached) " >&6
11048 else case e in #(
11049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11051 int i;
11052 _ACEOF
11053 if ac_fn_c_try_compile "$LINENO"
11054 then :
11055 xorg_cv_cc_flag_unknown_warning_option=yes
11056 else case e in #(
11057 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11058 esac
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11061 esac
11062 fi
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11064 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11066 CFLAGS="$xorg_testset_save_CFLAGS"
11067 fi
11068
11069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11072 fi
11073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11075 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11076 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11077 then :
11078 printf %s "(cached) " >&6
11079 else case e in #(
11080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082 int i;
11083 _ACEOF
11084 if ac_fn_c_try_compile "$LINENO"
11085 then :
11086 xorg_cv_cc_flag_unused_command_line_argument=yes
11087 else case e in #(
11088 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11089 esac
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11092 esac
11093 fi
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11095 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11097 CFLAGS="$xorg_testset_save_CFLAGS"
11098 fi
11099
11100 found="no"
11101
11102 if test $found = "no" ; then
11103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11105 fi
11106
11107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11109 fi
11110
11111 CFLAGS="$CFLAGS -pedantic"
11112
11113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11114 printf %s "checking if $CC supports -pedantic... " >&6; }
11115 cacheid=xorg_cv_cc_flag__pedantic
11116 if eval test \${$cacheid+y}
11117 then :
11118 printf %s "(cached) " >&6
11119 else case e in #(
11120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122 int i;
11123 int
11124 main (void)
11125 {
11126
11127 ;
11128 return 0;
11129 }
11130 _ACEOF
11131 if ac_fn_c_try_link "$LINENO"
11132 then :
11133 eval $cacheid=yes
11134 else case e in #(
11135 e) eval $cacheid=no ;;
11136 esac
11137 fi
11138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11139 conftest$ac_exeext conftest.$ac_ext ;;
11140 esac
11141 fi
11142
11143
11144 CFLAGS="$xorg_testset_save_CFLAGS"
11145
11146 eval supported=\$$cacheid
11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11148 printf "%s\n" "$supported" >&6; }
11149 if test "$supported" = "yes" ; then
11150 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11151 found="yes"
11152 fi
11153 fi
11154
11155
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 -Werror"
11242
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11244 printf %s "checking if $CC supports -Werror... " >&6; }
11245 cacheid=xorg_cv_cc_flag__Werror
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 -Werror"
11281 found="yes"
11282 fi
11283 fi
11284
11285 if test $found = "no" ; then
11286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11288 fi
11289
11290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11292 fi
11293
11294 CFLAGS="$CFLAGS -errwarn"
11295
11296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11297 printf %s "checking if $CC supports -errwarn... " >&6; }
11298 cacheid=xorg_cv_cc_flag__errwarn
11299 if eval test \${$cacheid+y}
11300 then :
11301 printf %s "(cached) " >&6
11302 else case e in #(
11303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305 int i;
11306 int
11307 main (void)
11308 {
11309
11310 ;
11311 return 0;
11312 }
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"
11315 then :
11316 eval $cacheid=yes
11317 else case e in #(
11318 e) eval $cacheid=no ;;
11319 esac
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11322 conftest$ac_exeext conftest.$ac_ext ;;
11323 esac
11324 fi
11325
11326
11327 CFLAGS="$xorg_testset_save_CFLAGS"
11328
11329 eval supported=\$$cacheid
11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11331 printf "%s\n" "$supported" >&6; }
11332 if test "$supported" = "yes" ; then
11333 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11334 found="yes"
11335 fi
11336 fi
11337
11338
11339
11340 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11341 # activate it with -Werror, so we add it here explicitly.
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355 xorg_testset_save_CFLAGS="$CFLAGS"
11356
11357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11360 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11361 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11362 then :
11363 printf %s "(cached) " >&6
11364 else case e in #(
11365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367 int i;
11368 _ACEOF
11369 if ac_fn_c_try_compile "$LINENO"
11370 then :
11371 xorg_cv_cc_flag_unknown_warning_option=yes
11372 else case e in #(
11373 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11374 esac
11375 fi
11376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11377 esac
11378 fi
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11382 CFLAGS="$xorg_testset_save_CFLAGS"
11383 fi
11384
11385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11388 fi
11389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11393 then :
11394 printf %s "(cached) " >&6
11395 else case e in #(
11396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11398 int i;
11399 _ACEOF
11400 if ac_fn_c_try_compile "$LINENO"
11401 then :
11402 xorg_cv_cc_flag_unused_command_line_argument=yes
11403 else case e in #(
11404 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11405 esac
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11408 esac
11409 fi
11410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11411 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11413 CFLAGS="$xorg_testset_save_CFLAGS"
11414 fi
11415
11416 found="no"
11417
11418 if test $found = "no" ; then
11419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11421 fi
11422
11423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11425 fi
11426
11427 CFLAGS="$CFLAGS -Werror=attributes"
11428
11429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11430 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11431 cacheid=xorg_cv_cc_flag__Werror_attributes
11432 if eval test \${$cacheid+y}
11433 then :
11434 printf %s "(cached) " >&6
11435 else case e in #(
11436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438 int i;
11439 int
11440 main (void)
11441 {
11442
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"
11448 then :
11449 eval $cacheid=yes
11450 else case e in #(
11451 e) eval $cacheid=no ;;
11452 esac
11453 fi
11454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11455 conftest$ac_exeext conftest.$ac_ext ;;
11456 esac
11457 fi
11458
11459
11460 CFLAGS="$xorg_testset_save_CFLAGS"
11461
11462 eval supported=\$$cacheid
11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11464 printf "%s\n" "$supported" >&6; }
11465 if test "$supported" = "yes" ; then
11466 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11467 found="yes"
11468 fi
11469 fi
11470
11471
11472
11473 if test "x$STRICT_COMPILE" = "xyes"; then
11474 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11475 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11476 fi
11477
11478
11479
11480
11481
11482
11483
11484
11485 cat >>confdefs.h <<_ACEOF
11486 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11487 _ACEOF
11488
11489 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11490 if test "x$PVM" = "x"; then
11491 PVM="0"
11492 fi
11493
11494 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11495
11496 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11497 if test "x$PVP" = "x"; then
11498 PVP="0"
11499 fi
11500
11501 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11502
11503
11504
11505 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11506 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11507 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11508 touch \$(top_srcdir)/ChangeLog; \
11509 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11510
11511
11512
11513
11514 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11515 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11516 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11517 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11518 touch \$(top_srcdir)/INSTALL; \
11519 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11520
11521
11522
11523
11524
11525
11526 case $host_os in
11527 solaris*)
11528 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11529 # check for a man page file found in later versions that use
11530 # traditional section numbers instead
11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11532 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11533 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11534 then :
11535 printf %s "(cached) " >&6
11536 else case e in #(
11537 e) test "$cross_compiling" = yes &&
11538 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11539 if test -r "/usr/share/man/man7/attributes.7"; then
11540 ac_cv_file__usr_share_man_man7_attributes_7=yes
11541 else
11542 ac_cv_file__usr_share_man_man7_attributes_7=no
11543 fi ;;
11544 esac
11545 fi
11546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11547 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11548 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11549 then :
11550 SYSV_MAN_SECTIONS=false
11551 else case e in #(
11552 e) SYSV_MAN_SECTIONS=true ;;
11553 esac
11554 fi
11555
11556 ;;
11557 *) SYSV_MAN_SECTIONS=false ;;
11558 esac
11559
11560 if test x$APP_MAN_SUFFIX = x ; then
11561 APP_MAN_SUFFIX=1
11562 fi
11563 if test x$APP_MAN_DIR = x ; then
11564 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11565 fi
11566
11567 if test x$LIB_MAN_SUFFIX = x ; then
11568 LIB_MAN_SUFFIX=3
11569 fi
11570 if test x$LIB_MAN_DIR = x ; then
11571 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11572 fi
11573
11574 if test x$FILE_MAN_SUFFIX = x ; then
11575 case $SYSV_MAN_SECTIONS in
11576 true) FILE_MAN_SUFFIX=4 ;;
11577 *) FILE_MAN_SUFFIX=5 ;;
11578 esac
11579 fi
11580 if test x$FILE_MAN_DIR = x ; then
11581 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11582 fi
11583
11584 if test x$MISC_MAN_SUFFIX = x ; then
11585 case $SYSV_MAN_SECTIONS in
11586 true) MISC_MAN_SUFFIX=5 ;;
11587 *) MISC_MAN_SUFFIX=7 ;;
11588 esac
11589 fi
11590 if test x$MISC_MAN_DIR = x ; then
11591 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11592 fi
11593
11594 if test x$DRIVER_MAN_SUFFIX = x ; then
11595 case $SYSV_MAN_SECTIONS in
11596 true) DRIVER_MAN_SUFFIX=7 ;;
11597 *) DRIVER_MAN_SUFFIX=4 ;;
11598 esac
11599 fi
11600 if test x$DRIVER_MAN_DIR = x ; then
11601 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11602 fi
11603
11604 if test x$ADMIN_MAN_SUFFIX = x ; then
11605 case $SYSV_MAN_SECTIONS in
11606 true) ADMIN_MAN_SUFFIX=1m ;;
11607 *) ADMIN_MAN_SUFFIX=8 ;;
11608 esac
11609 fi
11610 if test x$ADMIN_MAN_DIR = x ; then
11611 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11612 fi
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628 XORG_MAN_PAGE="X Version 11"
11629
11630 MAN_SUBSTS="\
11631 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11632 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11633 -e 's|__xservername__|Xorg|g' \
11634 -e 's|__xconfigfile__|xorg.conf|g' \
11635 -e 's|__projectroot__|\$(prefix)|g' \
11636 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11637 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11638 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11639 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11640 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11641 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11642 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11643
11644
11645
11646 # Check whether --enable-silent-rules was given.
11647 if test ${enable_silent_rules+y}
11648 then :
11649 enableval=$enable_silent_rules;
11650 fi
11651
11652 case $enable_silent_rules in # (((
11653 yes) AM_DEFAULT_VERBOSITY=0;;
11654 no) AM_DEFAULT_VERBOSITY=1;;
11655 *) AM_DEFAULT_VERBOSITY=0;;
11656 esac
11657 am_make=${MAKE-make}
11658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11659 printf %s "checking whether $am_make supports nested variables... " >&6; }
11660 if test ${am_cv_make_support_nested_variables+y}
11661 then :
11662 printf %s "(cached) " >&6
11663 else case e in #(
11664 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11665 BAR0=false
11666 BAR1=true
11667 V=1
11668 am__doit:
11669 @$(TRUE)
11670 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11671 am_cv_make_support_nested_variables=yes
11672 else
11673 am_cv_make_support_nested_variables=no
11674 fi ;;
11675 esac
11676 fi
11677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11678 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11679 if test $am_cv_make_support_nested_variables = yes; then
11680 AM_V='$(V)'
11681 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11682 else
11683 AM_V=$AM_DEFAULT_VERBOSITY
11684 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11685 fi
11686 AM_BACKSLASH='\'
11687
11688
11689
11690
11691 # Checks for typedefs, structures, and compiler characteristics.
11692 # Check whether --enable-largefile was given.
11693 if test ${enable_largefile+y}
11694 then :
11695 enableval=$enable_largefile;
11696 fi
11697 if test "$enable_largefile,$enable_year2038" != no,no
11698 then :
11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11700 printf %s "checking for $CC option to enable large file support... " >&6; }
11701 if test ${ac_cv_sys_largefile_opts+y}
11702 then :
11703 printf %s "(cached) " >&6
11704 else case e in #(
11705 e) ac_save_CC="$CC"
11706 ac_opt_found=no
11707 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11708 if test x"$ac_opt" != x"none needed"
11709 then :
11710 CC="$ac_save_CC $ac_opt"
11711 fi
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714 #include <sys/types.h>
11715 #ifndef FTYPE
11716 # define FTYPE off_t
11717 #endif
11718 /* Check that FTYPE can represent 2**63 - 1 correctly.
11719 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11720 since some C++ compilers masquerading as C compilers
11721 incorrectly reject 9223372036854775807. */
11722 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11723 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11724 && LARGE_FTYPE % 2147483647 == 1)
11725 ? 1 : -1];
11726 int
11727 main (void)
11728 {
11729
11730 ;
11731 return 0;
11732 }
11733 _ACEOF
11734 if ac_fn_c_try_compile "$LINENO"
11735 then :
11736 if test x"$ac_opt" = x"none needed"
11737 then :
11738 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11739 CC="$CC -DFTYPE=ino_t"
11740 if ac_fn_c_try_compile "$LINENO"
11741 then :
11742
11743 else case e in #(
11744 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11745 if ac_fn_c_try_compile "$LINENO"
11746 then :
11747 ac_opt='-D_FILE_OFFSET_BITS=64'
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11750 esac
11751 fi
11752 rm -f core conftest.err conftest.$ac_objext conftest.beam
11753 fi
11754 ac_cv_sys_largefile_opts=$ac_opt
11755 ac_opt_found=yes
11756 fi
11757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11758 test $ac_opt_found = no || break
11759 done
11760 CC="$ac_save_CC"
11761
11762 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11763 esac
11764 fi
11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11766 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11767
11768 ac_have_largefile=yes
11769 case $ac_cv_sys_largefile_opts in #(
11770 "none needed") :
11771 ;; #(
11772 "supported through gnulib") :
11773 ;; #(
11774 "support not detected") :
11775 ac_have_largefile=no ;; #(
11776 "-D_FILE_OFFSET_BITS=64") :
11777
11778 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11779 ;; #(
11780 "-D_LARGE_FILES=1") :
11781
11782 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11783 ;; #(
11784 "-n32") :
11785 CC="$CC -n32" ;; #(
11786 *) :
11787 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11788 esac
11789
11790 if test "$enable_year2038" != no
11791 then :
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11793 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11794 if test ${ac_cv_sys_year2038_opts+y}
11795 then :
11796 printf %s "(cached) " >&6
11797 else case e in #(
11798 e) ac_save_CPPFLAGS="$CPPFLAGS"
11799 ac_opt_found=no
11800 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
11801 if test x"$ac_opt" != x"none needed"
11802 then :
11803 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11804 fi
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807
11808 #include <time.h>
11809 /* Check that time_t can represent 2**32 - 1 correctly. */
11810 #define LARGE_TIME_T \\
11811 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11812 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11813 && LARGE_TIME_T % 65537 == 0)
11814 ? 1 : -1];
11815
11816 int
11817 main (void)
11818 {
11819
11820 ;
11821 return 0;
11822 }
11823 _ACEOF
11824 if ac_fn_c_try_compile "$LINENO"
11825 then :
11826 ac_cv_sys_year2038_opts="$ac_opt"
11827 ac_opt_found=yes
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11830 test $ac_opt_found = no || break
11831 done
11832 CPPFLAGS="$ac_save_CPPFLAGS"
11833 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11834 esac
11835 fi
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11837 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11838
11839 ac_have_year2038=yes
11840 case $ac_cv_sys_year2038_opts in #(
11841 "none needed") :
11842 ;; #(
11843 "support not detected") :
11844 ac_have_year2038=no ;; #(
11845 "-D_TIME_BITS=64") :
11846
11847 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11848 ;; #(
11849 "-D__MINGW_USE_VC2005_COMPAT") :
11850
11851 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11852 ;; #(
11853 "-U_USE_32_BIT_TIME_T"*) :
11854 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11855 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11856 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11857 will stop working after mid-January 2038. Remove
11858 _USE_32BIT_TIME_T from the compiler flags.
11859 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11860 *) :
11861 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11862 esac
11863
11864 fi
11865
11866 fi
11867
11868 # Checks for library functions.
11869 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
11870 if test "x$ac_cv_func_reallocarray" = xyes
11871 then :
11872 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
11873
11874 fi
11875
11876
11877 # Checks for pkg-config packages
11878
11879 pkg_failed=no
11880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICEAUTH" >&5
11881 printf %s "checking for ICEAUTH... " >&6; }
11882
11883 if test -n "$ICEAUTH_CFLAGS"; then
11884 pkg_cv_ICEAUTH_CFLAGS="$ICEAUTH_CFLAGS"
11885 elif test -n "$PKG_CONFIG"; then
11886 if test -n "$PKG_CONFIG" && \
11887 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5
11888 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5
11889 ac_status=$?
11890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11891 test $ac_status = 0; }; then
11892 pkg_cv_ICEAUTH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 ice" 2>/dev/null`
11893 test "x$?" != "x0" && pkg_failed=yes
11894 else
11895 pkg_failed=yes
11896 fi
11897 else
11898 pkg_failed=untried
11899 fi
11900 if test -n "$ICEAUTH_LIBS"; then
11901 pkg_cv_ICEAUTH_LIBS="$ICEAUTH_LIBS"
11902 elif test -n "$PKG_CONFIG"; then
11903 if test -n "$PKG_CONFIG" && \
11904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5
11905 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5
11906 ac_status=$?
11907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11908 test $ac_status = 0; }; then
11909 pkg_cv_ICEAUTH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 ice" 2>/dev/null`
11910 test "x$?" != "x0" && pkg_failed=yes
11911 else
11912 pkg_failed=yes
11913 fi
11914 else
11915 pkg_failed=untried
11916 fi
11917
11918
11919
11920 if test $pkg_failed = yes; then
11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 printf "%s\n" "no" >&6; }
11923
11924 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11925 _pkg_short_errors_supported=yes
11926 else
11927 _pkg_short_errors_supported=no
11928 fi
11929 if test $_pkg_short_errors_supported = yes; then
11930 ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1`
11931 else
11932 ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1`
11933 fi
11934 # Put the nasty error message in config.log where it belongs
11935 echo "$ICEAUTH_PKG_ERRORS" >&5
11936
11937 as_fn_error $? "Package requirements (xproto >= 7.0.22 ice) were not met:
11938
11939 $ICEAUTH_PKG_ERRORS
11940
11941 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11942 installed software in a non-standard prefix.
11943
11944 Alternatively, you may set the environment variables ICEAUTH_CFLAGS
11945 and ICEAUTH_LIBS to avoid the need to call pkg-config.
11946 See the pkg-config man page for more details." "$LINENO" 5
11947 elif test $pkg_failed = untried; then
11948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 printf "%s\n" "no" >&6; }
11950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11951 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11952 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11953 is in your PATH or set the PKG_CONFIG environment variable to the full
11954 path to pkg-config.
11955
11956 Alternatively, you may set the environment variables ICEAUTH_CFLAGS
11957 and ICEAUTH_LIBS to avoid the need to call pkg-config.
11958 See the pkg-config man page for more details.
11959
11960 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11961 See 'config.log' for more details" "$LINENO" 5; }
11962 else
11963 ICEAUTH_CFLAGS=$pkg_cv_ICEAUTH_CFLAGS
11964 ICEAUTH_LIBS=$pkg_cv_ICEAUTH_LIBS
11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 printf "%s\n" "yes" >&6; }
11967
11968 fi
11969
11970
11971
11972
11973
11974
11975 # Check whether --with-lint was given.
11976 if test ${with_lint+y}
11977 then :
11978 withval=$with_lint; use_lint=$withval
11979 else case e in #(
11980 e) use_lint=no ;;
11981 esac
11982 fi
11983
11984
11985 # Obtain platform specific info like program name and options
11986 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11987 case $host_os in
11988 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11989 lint_name=splint
11990 lint_options="-badflag"
11991 ;;
11992 *freebsd* | *netbsd*)
11993 lint_name=lint
11994 lint_options="-u -b"
11995 ;;
11996 *solaris*)
11997 lint_name=lint
11998 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11999 ;;
12000 esac
12001
12002 # Test for the presence of the program (either guessed by the code or spelled out by the user)
12003 if test "x$use_lint" = x"yes" ; then
12004 # Extract the first word of "$lint_name", so it can be a program name with args.
12005 set dummy $lint_name; ac_word=$2
12006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007 printf %s "checking for $ac_word... " >&6; }
12008 if test ${ac_cv_path_LINT+y}
12009 then :
12010 printf %s "(cached) " >&6
12011 else case e in #(
12012 e) case $LINT in
12013 [\\/]* | ?:[\\/]*)
12014 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12015 ;;
12016 *)
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12019 do
12020 IFS=$as_save_IFS
12021 case $as_dir in #(((
12022 '') as_dir=./ ;;
12023 */) ;;
12024 *) as_dir=$as_dir/ ;;
12025 esac
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12028 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12030 break 2
12031 fi
12032 done
12033 done
12034 IFS=$as_save_IFS
12035
12036 ;;
12037 esac ;;
12038 esac
12039 fi
12040 LINT=$ac_cv_path_LINT
12041 if test -n "$LINT"; then
12042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12043 printf "%s\n" "$LINT" >&6; }
12044 else
12045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 printf "%s\n" "no" >&6; }
12047 fi
12048
12049
12050 if test "x$LINT" = "x"; then
12051 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12052 fi
12053 elif test "x$use_lint" = x"no" ; then
12054 if test "x$LINT" != "x"; then
12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12056 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12057 fi
12058 else
12059 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12060 fi
12061
12062 # User supplied flags override default flags
12063 if test "x$LINT_FLAGS" != "x"; then
12064 lint_options=$LINT_FLAGS
12065 fi
12066
12067 LINT_FLAGS=$lint_options
12068
12069 if test "x$LINT" != x; then
12070 LINT_TRUE=
12071 LINT_FALSE='#'
12072 else
12073 LINT_TRUE='#'
12074 LINT_FALSE=
12075 fi
12076
12077
12078
12079
12080 ac_config_files="$ac_config_files Makefile man/Makefile"
12081
12082 cat >confcache <<\_ACEOF
12083 # This file is a shell script that caches the results of configure
12084 # tests run on this system so they can be shared between configure
12085 # scripts and configure runs, see configure's option --config-cache.
12086 # It is not useful on other systems. If it contains results you don't
12087 # want to keep, you may remove or edit it.
12088 #
12089 # config.status only pays attention to the cache file if you give it
12090 # the --recheck option to rerun configure.
12091 #
12092 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12093 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12094 # following values.
12095
12096 _ACEOF
12097
12098 # The following way of writing the cache mishandles newlines in values,
12099 # but we know of no workaround that is simple, portable, and efficient.
12100 # So, we kill variables containing newlines.
12101 # Ultrix sh set writes to stderr and can't be redirected directly,
12102 # and sets the high bit in the cache file unless we assign to the vars.
12103 (
12104 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12105 eval ac_val=\$$ac_var
12106 case $ac_val in #(
12107 *${as_nl}*)
12108 case $ac_var in #(
12109 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12110 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12111 esac
12112 case $ac_var in #(
12113 _ | IFS | as_nl) ;; #(
12114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12115 *) { eval $ac_var=; unset $ac_var;} ;;
12116 esac ;;
12117 esac
12118 done
12119
12120 (set) 2>&1 |
12121 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12122 *${as_nl}ac_space=\ *)
12123 # 'set' does not quote correctly, so add quotes: double-quote
12124 # substitution turns \\\\ into \\, and sed turns \\ into \.
12125 sed -n \
12126 "s/'/'\\\\''/g;
12127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12128 ;; #(
12129 *)
12130 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12132 ;;
12133 esac |
12134 sort
12135 ) |
12136 sed '
12137 /^ac_cv_env_/b end
12138 t clear
12139 :clear
12140 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12141 t end
12142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12143 :end' >>confcache
12144 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12145 if test -w "$cache_file"; then
12146 if test "x$cache_file" != "x/dev/null"; then
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12148 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12149 if test ! -f "$cache_file" || test -h "$cache_file"; then
12150 cat confcache >"$cache_file"
12151 else
12152 case $cache_file in #(
12153 */* | ?:*)
12154 mv -f confcache "$cache_file"$$ &&
12155 mv -f "$cache_file"$$ "$cache_file" ;; #(
12156 *)
12157 mv -f confcache "$cache_file" ;;
12158 esac
12159 fi
12160 fi
12161 else
12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12163 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12164 fi
12165 fi
12166 rm -f confcache
12167
12168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12169 # Let make expand exec_prefix.
12170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12171
12172 DEFS=-DHAVE_CONFIG_H
12173
12174 ac_libobjs=
12175 ac_ltlibobjs=
12176 U=
12177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12178 # 1. Remove the extension, and $U if already installed.
12179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12180 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12182 # will be set to the directory where LIBOBJS objects are built.
12183 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12184 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12185 done
12186 LIBOBJS=$ac_libobjs
12187
12188 LTLIBOBJS=$ac_ltlibobjs
12189
12190
12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12192 printf %s "checking that generated files are newer than configure... " >&6; }
12193 if test -n "$am_sleep_pid"; then
12194 # Hide warnings about reused PIDs.
12195 wait $am_sleep_pid 2>/dev/null
12196 fi
12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12198 printf "%s\n" "done" >&6; }
12199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12200 as_fn_error $? "conditional \"AMDEP\" was never defined.
12201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12202 fi
12203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12204 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12206 fi
12207 if test -n "$EXEEXT"; then
12208 am__EXEEXT_TRUE=
12209 am__EXEEXT_FALSE='#'
12210 else
12211 am__EXEEXT_TRUE='#'
12212 am__EXEEXT_FALSE=
12213 fi
12214
12215 # Check whether --enable-year2038 was given.
12216 if test ${enable_year2038+y}
12217 then :
12218 enableval=$enable_year2038;
12219 fi
12220
12221 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12222 as_fn_error $? "conditional \"LINT\" was never defined.
12223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12224 fi
12225
12226 : "${CONFIG_STATUS=./config.status}"
12227 ac_write_fail=0
12228 ac_clean_files_save=$ac_clean_files
12229 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12231 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12232 as_write_fail=0
12233 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12234 #! $SHELL
12235 # Generated by $as_me.
12236 # Run this file to recreate the current configuration.
12237 # Compiler output produced by configure, useful for debugging
12238 # configure, is in config.log if it exists.
12239
12240 debug=false
12241 ac_cs_recheck=false
12242 ac_cs_silent=false
12243
12244 SHELL=\${CONFIG_SHELL-$SHELL}
12245 export SHELL
12246 _ASEOF
12247 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12248 ## -------------------- ##
12249 ## M4sh Initialization. ##
12250 ## -------------------- ##
12251
12252 # Be more Bourne compatible
12253 DUALCASE=1; export DUALCASE # for MKS sh
12254 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12255 then :
12256 emulate sh
12257 NULLCMD=:
12258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12259 # is contrary to our usage. Disable this feature.
12260 alias -g '${1+"$@"}'='"$@"'
12261 setopt NO_GLOB_SUBST
12262 else case e in #(
12263 e) case `(set -o) 2>/dev/null` in #(
12264 *posix*) :
12265 set -o posix ;; #(
12266 *) :
12267 ;;
12268 esac ;;
12269 esac
12270 fi
12271
12272
12273
12274 # Reset variables that may have inherited troublesome values from
12275 # the environment.
12276
12277 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12278 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12279 # side effect of setting IFS to empty, thus disabling word splitting.)
12280 # Quoting is to prevent editors from complaining about space-tab.
12281 as_nl='
12282 '
12283 export as_nl
12284 IFS=" "" $as_nl"
12285
12286 PS1='$ '
12287 PS2='> '
12288 PS4='+ '
12289
12290 # Ensure predictable behavior from utilities with locale-dependent output.
12291 LC_ALL=C
12292 export LC_ALL
12293 LANGUAGE=C
12294 export LANGUAGE
12295
12296 # We cannot yet rely on "unset" to work, but we need these variables
12297 # to be unset--not just set to an empty or harmless value--now, to
12298 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12299 # also avoids known problems related to "unset" and subshell syntax
12300 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12301 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12302 do eval test \${$as_var+y} \
12303 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12304 done
12305
12306 # Ensure that fds 0, 1, and 2 are open.
12307 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12308 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12309 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12310
12311 # The user is always right.
12312 if ${PATH_SEPARATOR+false} :; then
12313 PATH_SEPARATOR=:
12314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12316 PATH_SEPARATOR=';'
12317 }
12318 fi
12319
12320
12321 # Find who we are. Look in the path if we contain no directory separator.
12322 as_myself=
12323 case $0 in #((
12324 *[\\/]* ) as_myself=$0 ;;
12325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328 IFS=$as_save_IFS
12329 case $as_dir in #(((
12330 '') as_dir=./ ;;
12331 */) ;;
12332 *) as_dir=$as_dir/ ;;
12333 esac
12334 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12335 done
12336 IFS=$as_save_IFS
12337
12338 ;;
12339 esac
12340 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12341 # in which case we are not to be found in the path.
12342 if test "x$as_myself" = x; then
12343 as_myself=$0
12344 fi
12345 if test ! -f "$as_myself"; then
12346 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12347 exit 1
12348 fi
12349
12350
12351
12352 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12353 # ----------------------------------------
12354 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12355 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12356 # script with STATUS, using 1 if that was 0.
12357 as_fn_error ()
12358 {
12359 as_status=$1; test $as_status -eq 0 && as_status=1
12360 if test "$4"; then
12361 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12363 fi
12364 printf "%s\n" "$as_me: error: $2" >&2
12365 as_fn_exit $as_status
12366 } # as_fn_error
12367
12368
12369 # as_fn_set_status STATUS
12370 # -----------------------
12371 # Set $? to STATUS, without forking.
12372 as_fn_set_status ()
12373 {
12374 return $1
12375 } # as_fn_set_status
12376
12377 # as_fn_exit STATUS
12378 # -----------------
12379 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12380 as_fn_exit ()
12381 {
12382 set +e
12383 as_fn_set_status $1
12384 exit $1
12385 } # as_fn_exit
12386
12387 # as_fn_unset VAR
12388 # ---------------
12389 # Portably unset VAR.
12390 as_fn_unset ()
12391 {
12392 { eval $1=; unset $1;}
12393 }
12394 as_unset=as_fn_unset
12395
12396 # as_fn_append VAR VALUE
12397 # ----------------------
12398 # Append the text in VALUE to the end of the definition contained in VAR. Take
12399 # advantage of any shell optimizations that allow amortized linear growth over
12400 # repeated appends, instead of the typical quadratic growth present in naive
12401 # implementations.
12402 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12403 then :
12404 eval 'as_fn_append ()
12405 {
12406 eval $1+=\$2
12407 }'
12408 else case e in #(
12409 e) as_fn_append ()
12410 {
12411 eval $1=\$$1\$2
12412 } ;;
12413 esac
12414 fi # as_fn_append
12415
12416 # as_fn_arith ARG...
12417 # ------------------
12418 # Perform arithmetic evaluation on the ARGs, and store the result in the
12419 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12420 # must be portable across $(()) and expr.
12421 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12422 then :
12423 eval 'as_fn_arith ()
12424 {
12425 as_val=$(( $* ))
12426 }'
12427 else case e in #(
12428 e) as_fn_arith ()
12429 {
12430 as_val=`expr "$@" || test $? -eq 1`
12431 } ;;
12432 esac
12433 fi # as_fn_arith
12434
12435
12436 if expr a : '\(a\)' >/dev/null 2>&1 &&
12437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12438 as_expr=expr
12439 else
12440 as_expr=false
12441 fi
12442
12443 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12444 as_basename=basename
12445 else
12446 as_basename=false
12447 fi
12448
12449 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12450 as_dirname=dirname
12451 else
12452 as_dirname=false
12453 fi
12454
12455 as_me=`$as_basename -- "$0" ||
12456 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12457 X"$0" : 'X\(//\)$' \| \
12458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12459 printf "%s\n" X/"$0" |
12460 sed '/^.*\/\([^/][^/]*\)\/*$/{
12461 s//\1/
12462 q
12463 }
12464 /^X\/\(\/\/\)$/{
12465 s//\1/
12466 q
12467 }
12468 /^X\/\(\/\).*/{
12469 s//\1/
12470 q
12471 }
12472 s/.*/./; q'`
12473
12474 # Avoid depending upon Character Ranges.
12475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12478 as_cr_digits='0123456789'
12479 as_cr_alnum=$as_cr_Letters$as_cr_digits
12480
12481
12482 # Determine whether it's possible to make 'echo' print without a newline.
12483 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12484 # for compatibility with existing Makefiles.
12485 ECHO_C= ECHO_N= ECHO_T=
12486 case `echo -n x` in #(((((
12487 -n*)
12488 case `echo 'xy\c'` in
12489 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12490 xy) ECHO_C='\c';;
12491 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12492 ECHO_T=' ';;
12493 esac;;
12494 *)
12495 ECHO_N='-n';;
12496 esac
12497
12498 # For backward compatibility with old third-party macros, we provide
12499 # the shell variables $as_echo and $as_echo_n. New code should use
12500 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12501 as_echo='printf %s\n'
12502 as_echo_n='printf %s'
12503
12504 rm -f conf$$ conf$$.exe conf$$.file
12505 if test -d conf$$.dir; then
12506 rm -f conf$$.dir/conf$$.file
12507 else
12508 rm -f conf$$.dir
12509 mkdir conf$$.dir 2>/dev/null
12510 fi
12511 if (echo >conf$$.file) 2>/dev/null; then
12512 if ln -s conf$$.file conf$$ 2>/dev/null; then
12513 as_ln_s='ln -s'
12514 # ... but there are two gotchas:
12515 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12516 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12517 # In both cases, we have to default to 'cp -pR'.
12518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12519 as_ln_s='cp -pR'
12520 elif ln conf$$.file conf$$ 2>/dev/null; then
12521 as_ln_s=ln
12522 else
12523 as_ln_s='cp -pR'
12524 fi
12525 else
12526 as_ln_s='cp -pR'
12527 fi
12528 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12529 rmdir conf$$.dir 2>/dev/null
12530
12531
12532 # as_fn_mkdir_p
12533 # -------------
12534 # Create "$as_dir" as a directory, including parents if necessary.
12535 as_fn_mkdir_p ()
12536 {
12537
12538 case $as_dir in #(
12539 -*) as_dir=./$as_dir;;
12540 esac
12541 test -d "$as_dir" || eval $as_mkdir_p || {
12542 as_dirs=
12543 while :; do
12544 case $as_dir in #(
12545 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12546 *) as_qdir=$as_dir;;
12547 esac
12548 as_dirs="'$as_qdir' $as_dirs"
12549 as_dir=`$as_dirname -- "$as_dir" ||
12550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12551 X"$as_dir" : 'X\(//\)[^/]' \| \
12552 X"$as_dir" : 'X\(//\)$' \| \
12553 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12554 printf "%s\n" X"$as_dir" |
12555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12556 s//\1/
12557 q
12558 }
12559 /^X\(\/\/\)[^/].*/{
12560 s//\1/
12561 q
12562 }
12563 /^X\(\/\/\)$/{
12564 s//\1/
12565 q
12566 }
12567 /^X\(\/\).*/{
12568 s//\1/
12569 q
12570 }
12571 s/.*/./; q'`
12572 test -d "$as_dir" && break
12573 done
12574 test -z "$as_dirs" || eval "mkdir $as_dirs"
12575 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12576
12577
12578 } # as_fn_mkdir_p
12579 if mkdir -p . 2>/dev/null; then
12580 as_mkdir_p='mkdir -p "$as_dir"'
12581 else
12582 test -d ./-p && rmdir ./-p
12583 as_mkdir_p=false
12584 fi
12585
12586
12587 # as_fn_executable_p FILE
12588 # -----------------------
12589 # Test if FILE is an executable regular file.
12590 as_fn_executable_p ()
12591 {
12592 test -f "$1" && test -x "$1"
12593 } # as_fn_executable_p
12594 as_test_x='test -x'
12595 as_executable_p=as_fn_executable_p
12596
12597 # Sed expression to map a string onto a valid CPP name.
12598 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12599 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12600
12601 # Sed expression to map a string onto a valid variable name.
12602 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12603 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12604
12605
12606 exec 6>&1
12607 ## ----------------------------------- ##
12608 ## Main body of $CONFIG_STATUS script. ##
12609 ## ----------------------------------- ##
12610 _ASEOF
12611 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12612
12613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12614 # Save the log message, to keep $0 and so on meaningful, and to
12615 # report actual input values of CONFIG_FILES etc. instead of their
12616 # values after options handling.
12617 ac_log="
12618 This file was extended by iceauth $as_me 1.0.10, which was
12619 generated by GNU Autoconf 2.72. Invocation command line was
12620
12621 CONFIG_FILES = $CONFIG_FILES
12622 CONFIG_HEADERS = $CONFIG_HEADERS
12623 CONFIG_LINKS = $CONFIG_LINKS
12624 CONFIG_COMMANDS = $CONFIG_COMMANDS
12625 $ $0 $@
12626
12627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12628 "
12629
12630 _ACEOF
12631
12632 case $ac_config_files in *"
12633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12634 esac
12635
12636 case $ac_config_headers in *"
12637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12638 esac
12639
12640
12641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12642 # Files that config.status was made for.
12643 config_files="$ac_config_files"
12644 config_headers="$ac_config_headers"
12645 config_commands="$ac_config_commands"
12646
12647 _ACEOF
12648
12649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12650 ac_cs_usage="\
12651 '$as_me' instantiates files and other configuration actions
12652 from templates according to the current configuration. Unless the files
12653 and actions are specified as TAGs, all are instantiated by default.
12654
12655 Usage: $0 [OPTION]... [TAG]...
12656
12657 -h, --help print this help, then exit
12658 -V, --version print version number and configuration settings, then exit
12659 --config print configuration, then exit
12660 -q, --quiet, --silent
12661 do not print progress messages
12662 -d, --debug don't remove temporary files
12663 --recheck update $as_me by reconfiguring in the same conditions
12664 --file=FILE[:TEMPLATE]
12665 instantiate the configuration file FILE
12666 --header=FILE[:TEMPLATE]
12667 instantiate the configuration header FILE
12668
12669 Configuration files:
12670 $config_files
12671
12672 Configuration headers:
12673 $config_headers
12674
12675 Configuration commands:
12676 $config_commands
12677
12678 Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues>."
12679
12680 _ACEOF
12681 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12682 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12684 ac_cs_config='$ac_cs_config_escaped'
12685 ac_cs_version="\\
12686 iceauth config.status 1.0.10
12687 configured by $0, generated by GNU Autoconf 2.72,
12688 with options \\"\$ac_cs_config\\"
12689
12690 Copyright (C) 2023 Free Software Foundation, Inc.
12691 This config.status script is free software; the Free Software Foundation
12692 gives unlimited permission to copy, distribute and modify it."
12693
12694 ac_pwd='$ac_pwd'
12695 srcdir='$srcdir'
12696 INSTALL='$INSTALL'
12697 MKDIR_P='$MKDIR_P'
12698 AWK='$AWK'
12699 test -n "\$AWK" || AWK=awk
12700 _ACEOF
12701
12702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12703 # The default lists apply if the user does not specify any file.
12704 ac_need_defaults=:
12705 while test $# != 0
12706 do
12707 case $1 in
12708 --*=?*)
12709 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12710 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12711 ac_shift=:
12712 ;;
12713 --*=)
12714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12715 ac_optarg=
12716 ac_shift=:
12717 ;;
12718 *)
12719 ac_option=$1
12720 ac_optarg=$2
12721 ac_shift=shift
12722 ;;
12723 esac
12724
12725 case $ac_option in
12726 # Handling of the options.
12727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12728 ac_cs_recheck=: ;;
12729 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12730 printf "%s\n" "$ac_cs_version"; exit ;;
12731 --config | --confi | --conf | --con | --co | --c )
12732 printf "%s\n" "$ac_cs_config"; exit ;;
12733 --debug | --debu | --deb | --de | --d | -d )
12734 debug=: ;;
12735 --file | --fil | --fi | --f )
12736 $ac_shift
12737 case $ac_optarg in
12738 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12739 '') as_fn_error $? "missing file argument" ;;
12740 esac
12741 as_fn_append CONFIG_FILES " '$ac_optarg'"
12742 ac_need_defaults=false;;
12743 --header | --heade | --head | --hea )
12744 $ac_shift
12745 case $ac_optarg in
12746 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12747 esac
12748 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12749 ac_need_defaults=false;;
12750 --he | --h)
12751 # Conflict between --help and --header
12752 as_fn_error $? "ambiguous option: '$1'
12753 Try '$0 --help' for more information.";;
12754 --help | --hel | -h )
12755 printf "%s\n" "$ac_cs_usage"; exit ;;
12756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12757 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12758 ac_cs_silent=: ;;
12759
12760 # This is an error.
12761 -*) as_fn_error $? "unrecognized option: '$1'
12762 Try '$0 --help' for more information." ;;
12763
12764 *) as_fn_append ac_config_targets " $1"
12765 ac_need_defaults=false ;;
12766
12767 esac
12768 shift
12769 done
12770
12771 ac_configure_extra_args=
12772
12773 if $ac_cs_silent; then
12774 exec 6>/dev/null
12775 ac_configure_extra_args="$ac_configure_extra_args --silent"
12776 fi
12777
12778 _ACEOF
12779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12780 if \$ac_cs_recheck; then
12781 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12782 shift
12783 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12784 CONFIG_SHELL='$SHELL'
12785 export CONFIG_SHELL
12786 exec "\$@"
12787 fi
12788
12789 _ACEOF
12790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12791 exec 5>>config.log
12792 {
12793 echo
12794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12795 ## Running $as_me. ##
12796 _ASBOX
12797 printf "%s\n" "$ac_log"
12798 } >&5
12799
12800 _ACEOF
12801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12802 #
12803 # INIT-COMMANDS
12804 #
12805 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12806
12807 _ACEOF
12808
12809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12810
12811 # Handling of arguments.
12812 for ac_config_target in $ac_config_targets
12813 do
12814 case $ac_config_target in
12815 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12816 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12818 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12819
12820 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12821 esac
12822 done
12823
12824
12825 # If the user did not use the arguments to specify the items to instantiate,
12826 # then the envvar interface is used. Set only those that are not.
12827 # We use the long form for the default assignment because of an extremely
12828 # bizarre bug on SunOS 4.1.3.
12829 if $ac_need_defaults; then
12830 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12831 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12832 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12833 fi
12834
12835 # Have a temporary directory for convenience. Make it in the build tree
12836 # simply because there is no reason against having it here, and in addition,
12837 # creating and moving files from /tmp can sometimes cause problems.
12838 # Hook for its removal unless debugging.
12839 # Note that there is a small window in which the directory will not be cleaned:
12840 # after its creation but before its name has been assigned to '$tmp'.
12841 $debug ||
12842 {
12843 tmp= ac_tmp=
12844 trap 'exit_status=$?
12845 : "${ac_tmp:=$tmp}"
12846 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12847 ' 0
12848 trap 'as_fn_exit 1' 1 2 13 15
12849 }
12850 # Create a (secure) tmp directory for tmp files.
12851
12852 {
12853 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12854 test -d "$tmp"
12855 } ||
12856 {
12857 tmp=./conf$$-$RANDOM
12858 (umask 077 && mkdir "$tmp")
12859 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12860 ac_tmp=$tmp
12861
12862 # Set up the scripts for CONFIG_FILES section.
12863 # No need to generate them if there are no CONFIG_FILES.
12864 # This happens for instance with './config.status config.h'.
12865 if test -n "$CONFIG_FILES"; then
12866
12867
12868 ac_cr=`echo X | tr X '\015'`
12869 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12870 # But we know of no other shell where ac_cr would be empty at this
12871 # point, so we can use a bashism as a fallback.
12872 if test "x$ac_cr" = x; then
12873 eval ac_cr=\$\'\\r\'
12874 fi
12875 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12876 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12877 ac_cs_awk_cr='\\r'
12878 else
12879 ac_cs_awk_cr=$ac_cr
12880 fi
12881
12882 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12883 _ACEOF
12884
12885
12886 {
12887 echo "cat >conf$$subs.awk <<_ACEOF" &&
12888 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12889 echo "_ACEOF"
12890 } >conf$$subs.sh ||
12891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12892 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12893 ac_delim='%!_!# '
12894 for ac_last_try in false false false false false :; do
12895 . ./conf$$subs.sh ||
12896 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12897
12898 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12899 if test $ac_delim_n = $ac_delim_num; then
12900 break
12901 elif $ac_last_try; then
12902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12903 else
12904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12905 fi
12906 done
12907 rm -f conf$$subs.sh
12908
12909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12910 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12911 _ACEOF
12912 sed -n '
12913 h
12914 s/^/S["/; s/!.*/"]=/
12915 p
12916 g
12917 s/^[^!]*!//
12918 :repl
12919 t repl
12920 s/'"$ac_delim"'$//
12921 t delim
12922 :nl
12923 h
12924 s/\(.\{148\}\)..*/\1/
12925 t more1
12926 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12927 p
12928 n
12929 b repl
12930 :more1
12931 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12932 p
12933 g
12934 s/.\{148\}//
12935 t nl
12936 :delim
12937 h
12938 s/\(.\{148\}\)..*/\1/
12939 t more2
12940 s/["\\]/\\&/g; s/^/"/; s/$/"/
12941 p
12942 b
12943 :more2
12944 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12945 p
12946 g
12947 s/.\{148\}//
12948 t delim
12949 ' <conf$$subs.awk | sed '
12950 /^[^""]/{
12951 N
12952 s/\n//
12953 }
12954 ' >>$CONFIG_STATUS || ac_write_fail=1
12955 rm -f conf$$subs.awk
12956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12957 _ACAWK
12958 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12959 for (key in S) S_is_set[key] = 1
12960 FS = ""
12961
12962 }
12963 {
12964 line = $ 0
12965 nfields = split(line, field, "@")
12966 substed = 0
12967 len = length(field[1])
12968 for (i = 2; i < nfields; i++) {
12969 key = field[i]
12970 keylen = length(key)
12971 if (S_is_set[key]) {
12972 value = S[key]
12973 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12974 len += length(value) + length(field[++i])
12975 substed = 1
12976 } else
12977 len += 1 + keylen
12978 }
12979
12980 print line
12981 }
12982
12983 _ACAWK
12984 _ACEOF
12985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12986 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12987 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12988 else
12989 cat
12990 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12991 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12992 _ACEOF
12993
12994 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12995 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12996 # trailing colons and then remove the whole line if VPATH becomes empty
12997 # (actually we leave an empty line to preserve line numbers).
12998 if test "x$srcdir" = x.; then
12999 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13000 h
13001 s///
13002 s/^/:/
13003 s/[ ]*$/:/
13004 s/:\$(srcdir):/:/g
13005 s/:\${srcdir}:/:/g
13006 s/:@srcdir@:/:/g
13007 s/^:*//
13008 s/:*$//
13009 x
13010 s/\(=[ ]*\).*/\1/
13011 G
13012 s/\n//
13013 s/^[^=]*=[ ]*$//
13014 }'
13015 fi
13016
13017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13018 fi # test -n "$CONFIG_FILES"
13019
13020 # Set up the scripts for CONFIG_HEADERS section.
13021 # No need to generate them if there are no CONFIG_HEADERS.
13022 # This happens for instance with './config.status Makefile'.
13023 if test -n "$CONFIG_HEADERS"; then
13024 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13025 BEGIN {
13026 _ACEOF
13027
13028 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13029 # here-document in config.status, that substitutes the proper values into
13030 # config.h.in to produce config.h.
13031
13032 # Create a delimiter string that does not exist in confdefs.h, to ease
13033 # handling of long lines.
13034 ac_delim='%!_!# '
13035 for ac_last_try in false false :; do
13036 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13037 if test -z "$ac_tt"; then
13038 break
13039 elif $ac_last_try; then
13040 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13041 else
13042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13043 fi
13044 done
13045
13046 # For the awk script, D is an array of macro values keyed by name,
13047 # likewise P contains macro parameters if any. Preserve backslash
13048 # newline sequences.
13049
13050 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13051 sed -n '
13052 s/.\{148\}/&'"$ac_delim"'/g
13053 t rset
13054 :rset
13055 s/^[ ]*#[ ]*define[ ][ ]*/ /
13056 t def
13057 d
13058 :def
13059 s/\\$//
13060 t bsnl
13061 s/["\\]/\\&/g
13062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13063 D["\1"]=" \3"/p
13064 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13065 d
13066 :bsnl
13067 s/["\\]/\\&/g
13068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13069 D["\1"]=" \3\\\\\\n"\\/p
13070 t cont
13071 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13072 t cont
13073 d
13074 :cont
13075 n
13076 s/.\{148\}/&'"$ac_delim"'/g
13077 t clear
13078 :clear
13079 s/\\$//
13080 t bsnlc
13081 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13082 d
13083 :bsnlc
13084 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13085 b cont
13086 ' <confdefs.h | sed '
13087 s/'"$ac_delim"'/"\\\
13088 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13089
13090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13091 for (key in D) D_is_set[key] = 1
13092 FS = ""
13093 }
13094 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13095 line = \$ 0
13096 split(line, arg, " ")
13097 if (arg[1] == "#") {
13098 defundef = arg[2]
13099 mac1 = arg[3]
13100 } else {
13101 defundef = substr(arg[1], 2)
13102 mac1 = arg[2]
13103 }
13104 split(mac1, mac2, "(") #)
13105 macro = mac2[1]
13106 prefix = substr(line, 1, index(line, defundef) - 1)
13107 if (D_is_set[macro]) {
13108 # Preserve the white space surrounding the "#".
13109 print prefix "define", macro P[macro] D[macro]
13110 next
13111 } else {
13112 # Replace #undef with comments. This is necessary, for example,
13113 # in the case of _POSIX_SOURCE, which is predefined and required
13114 # on some systems where configure will not decide to define it.
13115 if (defundef == "undef") {
13116 print "/*", prefix defundef, macro, "*/"
13117 next
13118 }
13119 }
13120 }
13121 { print }
13122 _ACAWK
13123 _ACEOF
13124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13125 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13126 fi # test -n "$CONFIG_HEADERS"
13127
13128
13129 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13130 shift
13131 for ac_tag
13132 do
13133 case $ac_tag in
13134 :[FHLC]) ac_mode=$ac_tag; continue;;
13135 esac
13136 case $ac_mode$ac_tag in
13137 :[FHL]*:*);;
13138 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13139 :[FH]-) ac_tag=-:-;;
13140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13141 esac
13142 ac_save_IFS=$IFS
13143 IFS=:
13144 set x $ac_tag
13145 IFS=$ac_save_IFS
13146 shift
13147 ac_file=$1
13148 shift
13149
13150 case $ac_mode in
13151 :L) ac_source=$1;;
13152 :[FH])
13153 ac_file_inputs=
13154 for ac_f
13155 do
13156 case $ac_f in
13157 -) ac_f="$ac_tmp/stdin";;
13158 *) # Look for the file first in the build tree, then in the source tree
13159 # (if the path is not absolute). The absolute path cannot be DOS-style,
13160 # because $ac_f cannot contain ':'.
13161 test -f "$ac_f" ||
13162 case $ac_f in
13163 [\\/$]*) false;;
13164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13165 esac ||
13166 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13167 esac
13168 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13169 as_fn_append ac_file_inputs " '$ac_f'"
13170 done
13171
13172 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13173 # use $as_me), people would be surprised to read:
13174 # /* config.h. Generated by config.status. */
13175 configure_input='Generated from '`
13176 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13177 `' by configure.'
13178 if test x"$ac_file" != x-; then
13179 configure_input="$ac_file. $configure_input"
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13181 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13182 fi
13183 # Neutralize special characters interpreted by sed in replacement strings.
13184 case $configure_input in #(
13185 *\&* | *\|* | *\\* )
13186 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13187 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13188 *) ac_sed_conf_input=$configure_input;;
13189 esac
13190
13191 case $ac_tag in
13192 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13194 esac
13195 ;;
13196 esac
13197
13198 ac_dir=`$as_dirname -- "$ac_file" ||
13199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13200 X"$ac_file" : 'X\(//\)[^/]' \| \
13201 X"$ac_file" : 'X\(//\)$' \| \
13202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13203 printf "%s\n" X"$ac_file" |
13204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13205 s//\1/
13206 q
13207 }
13208 /^X\(\/\/\)[^/].*/{
13209 s//\1/
13210 q
13211 }
13212 /^X\(\/\/\)$/{
13213 s//\1/
13214 q
13215 }
13216 /^X\(\/\).*/{
13217 s//\1/
13218 q
13219 }
13220 s/.*/./; q'`
13221 as_dir="$ac_dir"; as_fn_mkdir_p
13222 ac_builddir=.
13223
13224 case "$ac_dir" in
13225 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13226 *)
13227 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13228 # A ".." for each directory in $ac_dir_suffix.
13229 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13230 case $ac_top_builddir_sub in
13231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13233 esac ;;
13234 esac
13235 ac_abs_top_builddir=$ac_pwd
13236 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13237 # for backward compatibility:
13238 ac_top_builddir=$ac_top_build_prefix
13239
13240 case $srcdir in
13241 .) # We are building in place.
13242 ac_srcdir=.
13243 ac_top_srcdir=$ac_top_builddir_sub
13244 ac_abs_top_srcdir=$ac_pwd ;;
13245 [\\/]* | ?:[\\/]* ) # Absolute name.
13246 ac_srcdir=$srcdir$ac_dir_suffix;
13247 ac_top_srcdir=$srcdir
13248 ac_abs_top_srcdir=$srcdir ;;
13249 *) # Relative name.
13250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13251 ac_top_srcdir=$ac_top_build_prefix$srcdir
13252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13253 esac
13254 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13255
13256
13257 case $ac_mode in
13258 :F)
13259 #
13260 # CONFIG_FILE
13261 #
13262
13263 case $INSTALL in
13264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13265 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13266 esac
13267 ac_MKDIR_P=$MKDIR_P
13268 case $MKDIR_P in
13269 [\\/$]* | ?:[\\/]* ) ;;
13270 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13271 esac
13272 _ACEOF
13273
13274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13275 # If the template does not know about datarootdir, expand it.
13276 # FIXME: This hack should be removed a few years after 2.60.
13277 ac_datarootdir_hack=; ac_datarootdir_seen=
13278 ac_sed_dataroot='
13279 /datarootdir/ {
13280 p
13281 q
13282 }
13283 /@datadir@/p
13284 /@docdir@/p
13285 /@infodir@/p
13286 /@localedir@/p
13287 /@mandir@/p'
13288 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13289 *datarootdir*) ac_datarootdir_seen=yes;;
13290 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13292 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13293 _ACEOF
13294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13295 ac_datarootdir_hack='
13296 s&@datadir@&$datadir&g
13297 s&@docdir@&$docdir&g
13298 s&@infodir@&$infodir&g
13299 s&@localedir@&$localedir&g
13300 s&@mandir@&$mandir&g
13301 s&\\\${datarootdir}&$datarootdir&g' ;;
13302 esac
13303 _ACEOF
13304
13305 # Neutralize VPATH when '$srcdir' = '.'.
13306 # Shell code in configure.ac might set extrasub.
13307 # FIXME: do we really want to maintain this feature?
13308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13309 ac_sed_extra="$ac_vpsub
13310 $extrasub
13311 _ACEOF
13312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13313 :t
13314 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13315 s|@configure_input@|$ac_sed_conf_input|;t t
13316 s&@top_builddir@&$ac_top_builddir_sub&;t t
13317 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13318 s&@srcdir@&$ac_srcdir&;t t
13319 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13320 s&@top_srcdir@&$ac_top_srcdir&;t t
13321 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13322 s&@builddir@&$ac_builddir&;t t
13323 s&@abs_builddir@&$ac_abs_builddir&;t t
13324 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13325 s&@INSTALL@&$ac_INSTALL&;t t
13326 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13327 $ac_datarootdir_hack
13328 "
13329 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13330 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13331
13332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13333 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13335 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13337 which seems to be undefined. Please make sure it is defined" >&5
13338 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13339 which seems to be undefined. Please make sure it is defined" >&2;}
13340
13341 rm -f "$ac_tmp/stdin"
13342 case $ac_file in
13343 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13344 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13345 esac \
13346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13347 ;;
13348 :H)
13349 #
13350 # CONFIG_HEADER
13351 #
13352 if test x"$ac_file" != x-; then
13353 {
13354 printf "%s\n" "/* $configure_input */" >&1 \
13355 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13356 } >"$ac_tmp/config.h" \
13357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13358 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13360 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13361 else
13362 rm -f "$ac_file"
13363 mv "$ac_tmp/config.h" "$ac_file" \
13364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13365 fi
13366 else
13367 printf "%s\n" "/* $configure_input */" >&1 \
13368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13369 || as_fn_error $? "could not create -" "$LINENO" 5
13370 fi
13371 # Compute "$ac_file"'s index in $config_headers.
13372 _am_arg="$ac_file"
13373 _am_stamp_count=1
13374 for _am_header in $config_headers :; do
13375 case $_am_header in
13376 $_am_arg | $_am_arg:* )
13377 break ;;
13378 * )
13379 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13380 esac
13381 done
13382 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13383 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13384 X"$_am_arg" : 'X\(//\)[^/]' \| \
13385 X"$_am_arg" : 'X\(//\)$' \| \
13386 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13387 printf "%s\n" X"$_am_arg" |
13388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13389 s//\1/
13390 q
13391 }
13392 /^X\(\/\/\)[^/].*/{
13393 s//\1/
13394 q
13395 }
13396 /^X\(\/\/\)$/{
13397 s//\1/
13398 q
13399 }
13400 /^X\(\/\).*/{
13401 s//\1/
13402 q
13403 }
13404 s/.*/./; q'`/stamp-h$_am_stamp_count
13405 ;;
13406
13407 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13408 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13409 ;;
13410 esac
13411
13412
13413 case $ac_file$ac_mode in
13414 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13415 # Older Autoconf quotes --file arguments for eval, but not when files
13416 # are listed without --file. Let's play safe and only enable the eval
13417 # if we detect the quoting.
13418 # TODO: see whether this extra hack can be removed once we start
13419 # requiring Autoconf 2.70 or later.
13420 case $CONFIG_FILES in #(
13421 *\'*) :
13422 eval set x "$CONFIG_FILES" ;; #(
13423 *) :
13424 set x $CONFIG_FILES ;; #(
13425 *) :
13426 ;;
13427 esac
13428 shift
13429 # Used to flag and report bootstrapping failures.
13430 am_rc=0
13431 for am_mf
13432 do
13433 # Strip MF so we end up with the name of the file.
13434 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13435 # Check whether this is an Automake generated Makefile which includes
13436 # dependency-tracking related rules and includes.
13437 # Grep'ing the whole file directly is not great: AIX grep has a line
13438 # limit of 2048, but all sed's we know have understand at least 4000.
13439 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13440 || continue
13441 am_dirpart=`$as_dirname -- "$am_mf" ||
13442 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13443 X"$am_mf" : 'X\(//\)[^/]' \| \
13444 X"$am_mf" : 'X\(//\)$' \| \
13445 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13446 printf "%s\n" X"$am_mf" |
13447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13448 s//\1/
13449 q
13450 }
13451 /^X\(\/\/\)[^/].*/{
13452 s//\1/
13453 q
13454 }
13455 /^X\(\/\/\)$/{
13456 s//\1/
13457 q
13458 }
13459 /^X\(\/\).*/{
13460 s//\1/
13461 q
13462 }
13463 s/.*/./; q'`
13464 am_filepart=`$as_basename -- "$am_mf" ||
13465 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13466 X"$am_mf" : 'X\(//\)$' \| \
13467 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13468 printf "%s\n" X/"$am_mf" |
13469 sed '/^.*\/\([^/][^/]*\)\/*$/{
13470 s//\1/
13471 q
13472 }
13473 /^X\/\(\/\/\)$/{
13474 s//\1/
13475 q
13476 }
13477 /^X\/\(\/\).*/{
13478 s//\1/
13479 q
13480 }
13481 s/.*/./; q'`
13482 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13483 && sed -e '/# am--include-marker/d' "$am_filepart" \
13484 | $MAKE -f - am--depfiles" >&5
13485 (cd "$am_dirpart" \
13486 && sed -e '/# am--include-marker/d' "$am_filepart" \
13487 | $MAKE -f - am--depfiles) >&5 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } || am_rc=$?
13491 done
13492 if test $am_rc -ne 0; then
13493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13494 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13495 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13496 for automatic dependency tracking. If GNU make was not used, consider
13497 re-running the configure script with MAKE=\"gmake\" (or whatever is
13498 necessary). You can also try re-running configure with the
13499 '--disable-dependency-tracking' option to at least be able to build
13500 the package (albeit without support for automatic dependency tracking).
13501 See 'config.log' for more details" "$LINENO" 5; }
13502 fi
13503 { am_dirpart=; unset am_dirpart;}
13504 { am_filepart=; unset am_filepart;}
13505 { am_mf=; unset am_mf;}
13506 { am_rc=; unset am_rc;}
13507 rm -f conftest-deps.mk
13508 }
13509 ;;
13510
13511 esac
13512 done # for ac_tag
13513
13514
13515 as_fn_exit 0
13516 _ACEOF
13517 ac_clean_files=$ac_clean_files_save
13518
13519 test $ac_write_fail = 0 ||
13520 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13521
13522
13523 # configure is writing to config.log, and then calls config.status.
13524 # config.status does its own redirection, appending to config.log.
13525 # Unfortunately, on DOS this fails, as config.log is still kept open
13526 # by configure, so config.status won't be able to write to it; its
13527 # output is simply discarded. So we exec the FD to /dev/null,
13528 # effectively closing config.log, so it can be properly (re)opened and
13529 # appended to by config.status. When coming back to configure, we
13530 # need to make the FD available again.
13531 if test "$no_create" != yes; then
13532 ac_cs_success=:
13533 ac_config_status_args=
13534 test "$silent" = yes &&
13535 ac_config_status_args="$ac_config_status_args --quiet"
13536 exec 5>/dev/null
13537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13538 exec 5>>config.log
13539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13540 # would make configure fail if this is the last instruction.
13541 $ac_cs_success || as_fn_exit 1
13542 fi
13543 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13545 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13546 fi
13547
13548
13549