configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for xset 1.2.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 # contradicts POSIX and common usage. Disable this.
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 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190 test \$(( 1 + 1 )) = 2 || exit 1"
191 if (eval "$as_required") 2>/dev/null
192 then :
193 as_have_required=yes
194 else case e in #(
195 e) as_have_required=no ;;
196 esac
197 fi
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else case e in #(
202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203 as_found=false
204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 do
206 IFS=$as_save_IFS
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
212 as_found=:
213 case $as_dir in #(
214 /*)
215 for as_base in sh bash ksh sh5; do
216 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir$as_base
218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else case e in #(
236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
240 fi ;;
241 esac
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 case $# in # ((
262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
264 esac
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf '%s\n' "$0: This script requires a shell more modern than all"
274 printf '%s\n' "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and
280 $0: https://gitlab.freedesktop.org/xorg/app/xset/-/issues
281 $0: about your system, including any error possibly output
282 $0: before this message. Then install a modern shell, or
283 $0: manually run the script under such a shell if you do
284 $0: have one."
285 fi
286 exit 1
287 fi ;;
288 esac
289 fi
290 fi
291 SHELL=${CONFIG_SHELL-/bin/sh}
292 export SHELL
293 # Unset more variables known to interfere with behavior of common tools.
294 CLICOLOR_FORCE= GREP_OPTIONS=
295 unset CLICOLOR_FORCE GREP_OPTIONS
296
297 ## --------------------- ##
298 ## M4sh Shell Functions. ##
299 ## --------------------- ##
300 # as_fn_unset VAR
301 # ---------------
302 # Portably unset VAR.
303 as_fn_unset ()
304 {
305 { eval $1=; unset $1;}
306 }
307 as_unset=as_fn_unset
308
309
310 # as_fn_set_status STATUS
311 # -----------------------
312 # Set $? to STATUS, without forking.
313 as_fn_set_status ()
314 {
315 return $1
316 } # as_fn_set_status
317
318 # as_fn_exit STATUS
319 # -----------------
320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
321 as_fn_exit ()
322 {
323 set +e
324 as_fn_set_status $1
325 exit $1
326 } # as_fn_exit
327
328 # as_fn_mkdir_p
329 # -------------
330 # Create "$as_dir" as a directory, including parents if necessary.
331 as_fn_mkdir_p ()
332 {
333
334 case $as_dir in #(
335 -*) as_dir=./$as_dir;;
336 esac
337 test -d "$as_dir" || eval $as_mkdir_p || {
338 as_dirs=
339 while :; do
340 case $as_dir in #(
341 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 *) as_qdir=$as_dir;;
343 esac
344 as_dirs="'$as_qdir' $as_dirs"
345 as_dir=`$as_dirname -- "$as_dir" ||
346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
347 X"$as_dir" : 'X\(//\)[^/]' \| \
348 X"$as_dir" : 'X\(//\)$' \| \
349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
350 printf '%s\n' X"$as_dir" |
351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)[^/].*/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)$/{
360 s//\1/
361 q
362 }
363 /^X\(\/\).*/{
364 s//\1/
365 q
366 }
367 s/.*/./; q'`
368 test -d "$as_dir" && break
369 done
370 test -z "$as_dirs" || eval "mkdir $as_dirs"
371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
373
374 } # as_fn_mkdir_p
375
376 # as_fn_executable_p FILE
377 # -----------------------
378 # Test if FILE is an executable regular file.
379 as_fn_executable_p ()
380 {
381 test -f "$1" && test -x "$1"
382 } # as_fn_executable_p
383 # as_fn_append VAR VALUE
384 # ----------------------
385 # Append the text in VALUE to the end of the definition contained in VAR. Take
386 # advantage of any shell optimizations that allow amortized linear growth over
387 # repeated appends, instead of the typical quadratic growth present in naive
388 # implementations.
389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
390 then :
391 eval 'as_fn_append ()
392 {
393 eval $1+=\$2
394 }'
395 else case e in #(
396 e) as_fn_append ()
397 {
398 eval $1=\$$1\$2
399 } ;;
400 esac
401 fi # as_fn_append
402
403 # as_fn_arith ARG...
404 # ------------------
405 # Perform arithmetic evaluation on the ARGs, and store the result in the
406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
407 # must be portable across $(()) and expr.
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 then :
410 eval 'as_fn_arith ()
411 {
412 as_val=$(( $* ))
413 }'
414 else case e in #(
415 e) as_fn_arith ()
416 {
417 as_val=`expr "$@" || test $? -eq 1`
418 } ;;
419 esac
420 fi # as_fn_arith
421
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf '%s\n' "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf '%s\n' X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 t clear
496 :clear
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522 rm -f conf$$ conf$$.exe conf$$.file
523 if test -d conf$$.dir; then
524 rm -f conf$$.dir/conf$$.file
525 else
526 rm -f conf$$.dir
527 mkdir conf$$.dir 2>/dev/null
528 fi
529 if (echo >conf$$.file) 2>/dev/null; then
530 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s='ln -s'
532 # ... but there are two gotchas:
533 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
534 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
535 # In both cases, we have to default to 'cp -pR'.
536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 as_ln_s='cp -pR'
538 elif ln conf$$.file conf$$ 2>/dev/null; then
539 as_ln_s=ln
540 else
541 as_ln_s='cp -pR'
542 fi
543 else
544 as_ln_s='cp -pR'
545 fi
546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
547 rmdir conf$$.dir 2>/dev/null
548
549 if mkdir -p . 2>/dev/null; then
550 as_mkdir_p='mkdir -p "$as_dir"'
551 else
552 test -d ./-p && rmdir ./-p
553 as_mkdir_p=false
554 fi
555
556 as_test_x='test -x'
557 as_executable_p=as_fn_executable_p
558
559 # Sed expression to map a string onto a valid CPP name.
560 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
561 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
562
563 # Sed expression to map a string onto a valid variable name.
564 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
565 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
566
567
568 test -n "$DJDIR" || exec 7<&0 </dev/null
569 exec 6>&1
570
571 # Name of the host.
572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
573 # so uname gets run too.
574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575
576 #
577 # Initializations.
578 #
579 ac_default_prefix=/usr/local
580 ac_clean_CONFIG_STATUS=
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='xset'
591 PACKAGE_TARNAME='xset'
592 PACKAGE_VERSION='1.2.6'
593 PACKAGE_STRING='xset 1.2.6'
594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xset/-/issues'
595 PACKAGE_URL=''
596
597 ac_unique_file="Makefile.am"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stddef.h>
601 #ifdef HAVE_STDIO_H
602 # include <stdio.h>
603 #endif
604 #ifdef HAVE_STDLIB_H
605 # include <stdlib.h>
606 #endif
607 #ifdef HAVE_STRING_H
608 # include <string.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_STRINGS_H
617 # include <strings.h>
618 #endif
619 #ifdef HAVE_SYS_TYPES_H
620 # include <sys/types.h>
621 #endif
622 #ifdef HAVE_SYS_STAT_H
623 # include <sys/stat.h>
624 #endif
625 #ifdef HAVE_UNISTD_H
626 # include <unistd.h>
627 #endif"
628
629 ac_header_c_list=
630 ac_subst_vars='am__EXEEXT_FALSE
631 am__EXEEXT_TRUE
632 LTLIBOBJS
633 LIBOBJS
634 SET_FONTCACHE_LIBS
635 SET_FONTCACHE_CFLAGS
636 SET_XF86MISC_LIBS
637 SET_XF86MISC_CFLAGS
638 SET_XKB_LIBS
639 SET_XKB_CFLAGS
640 SET_XEXT_LIBS
641 SET_XEXT_CFLAGS
642 SET_X11_LIBS
643 SET_X11_CFLAGS
644 XSET_LIBS
645 XSET_CFLAGS
646 MAN_SUBSTS
647 XORG_MAN_PAGE
648 ADMIN_MAN_DIR
649 DRIVER_MAN_DIR
650 MISC_MAN_DIR
651 FILE_MAN_DIR
652 LIB_MAN_DIR
653 APP_MAN_DIR
654 ADMIN_MAN_SUFFIX
655 DRIVER_MAN_SUFFIX
656 MISC_MAN_SUFFIX
657 FILE_MAN_SUFFIX
658 LIB_MAN_SUFFIX
659 APP_MAN_SUFFIX
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 INSTALL_CMD
670 PKG_CONFIG_LIBDIR
671 PKG_CONFIG_PATH
672 PKG_CONFIG
673 CHANGELOG_CMD
674 STRICT_CFLAGS
675 CWARNFLAGS
676 BASE_CFLAGS
677 am__xargs_n
678 am__rm_f_notfound
679 AM_BACKSLASH
680 AM_DEFAULT_VERBOSITY
681 AM_DEFAULT_V
682 AM_V
683 CSCOPE
684 ETAGS
685 CTAGS
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__include
694 DEPDIR
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 runstatedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL
764 am__quote'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_dependency_tracking
769 enable_silent_rules
770 enable_selective_werror
771 enable_strict_compilation
772 with_xf86misc
773 with_fontcache
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 PKG_CONFIG
784 PKG_CONFIG_PATH
785 PKG_CONFIG_LIBDIR
786 XSET_CFLAGS
787 XSET_LIBS
788 SET_X11_CFLAGS
789 SET_X11_LIBS
790 SET_XEXT_CFLAGS
791 SET_XEXT_LIBS
792 SET_XKB_CFLAGS
793 SET_XKB_LIBS
794 SET_XF86MISC_CFLAGS
795 SET_XF86MISC_LIBS
796 SET_FONTCACHE_CFLAGS
797 SET_FONTCACHE_LIBS'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 runstatedir='${localstatedir}/run'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
864 esac
865
866 case $ac_dashdash$ac_option in
867 --)
868 ac_dashdash=yes ;;
869
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
874
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
879
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
886
887 --config-cache | -C)
888 cache_file=config.cache ;;
889
890 -datadir | --datadir | --datadi | --datad)
891 ac_prev=datadir ;;
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
894
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
901
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: '$ac_useropt'"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
917
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
922
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
927
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: '$ac_useropt'"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=\$ac_optarg ;;
943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -runstatedir | --runstatedir | --runstatedi | --runstated \
1088 | --runstate | --runstat | --runsta | --runst | --runs \
1089 | --run | --ru | --r)
1090 ac_prev=runstatedir ;;
1091 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1092 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1093 | --run=* | --ru=* | --r=*)
1094 runstatedir=$ac_optarg ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: '$ac_useropt'"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
1156
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: '$ac_useropt'"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
1172
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1176
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1183
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1190
1191 -*) as_fn_error $? "unrecognized option: '$ac_option'
1192 Try '$0 --help' for more information"
1193 ;;
1194
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1201 esac
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1204
1205 *)
1206 # FIXME: should be removed in autoconf 3.0.
1207 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211 ;;
1212
1213 esac
1214 done
1215
1216 if test -n "$ac_prev"; then
1217 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1219 fi
1220
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 esac
1227 fi
1228
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir runstatedir
1234 do
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
1243 case $ac_val in
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 esac
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 done
1249
1250 # There might be people who depend on the old broken behavior: '$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1253 build=$build_alias
1254 host=$host_alias
1255 target=$target_alias
1256
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1263 fi
1264 fi
1265
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269 test "$silent" = yes && exec 6>/dev/null
1270
1271
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 printf '%s\n' X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\).*/{
1303 s//\1/
1304 q
1305 }
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1310 fi
1311 else
1312 ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 fi
1318 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1325 fi
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1338
1339 #
1340 # Report the --help message.
1341 #
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 'configure' configures xset 1.2.6 to adapt to many kinds of systems.
1347
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1352
1353 Defaults for the options are specified in brackets.
1354
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print 'checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for '--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or '..']
1365
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1371
1372 By default, 'make install' will install all the files in
1373 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than '$ac_default_prefix' using '--prefix',
1375 for instance '--prefix=\$HOME'.
1376
1377 For better control, use the options below.
1378
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/xset]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1401
1402 cat <<\_ACEOF
1403
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 _ACEOF
1413 fi
1414
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of xset 1.2.6:";;
1418 esac
1419 cat <<\_ACEOF
1420
1421 Optional Features:
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
1429 --enable-silent-rules less verbose build output (undo: "make V=1")
1430 --disable-silent-rules verbose build output (undo: "make V=0")
1431 --disable-selective-werror
1432 Turn off selective compiler errors. (default:
1433 enabled)
1434 --enable-strict-compilation
1435 Enable all warnings from compiler and make them
1436 errors (default: disabled)
1437
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-xf86misc Enable xf86misc support.
1442 --without-fontcache Disable fontcache support.
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 PKG_CONFIG path to pkg-config utility
1453 PKG_CONFIG_PATH
1454 directories to add to pkg-config's search path
1455 PKG_CONFIG_LIBDIR
1456 path overriding pkg-config's built-in search path
1457 XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1458 XSET_LIBS linker flags for XSET, overriding pkg-config
1459 SET_X11_CFLAGS
1460 C compiler flags for SET_X11, overriding pkg-config
1461 SET_X11_LIBS
1462 linker flags for SET_X11, overriding pkg-config
1463 SET_XEXT_CFLAGS
1464 C compiler flags for SET_XEXT, overriding pkg-config
1465 SET_XEXT_LIBS
1466 linker flags for SET_XEXT, overriding pkg-config
1467 SET_XKB_CFLAGS
1468 C compiler flags for SET_XKB, overriding pkg-config
1469 SET_XKB_LIBS
1470 linker flags for SET_XKB, overriding pkg-config
1471 SET_XF86MISC_CFLAGS
1472 C compiler flags for SET_XF86MISC, overriding pkg-config
1473 SET_XF86MISC_LIBS
1474 linker flags for SET_XF86MISC, overriding pkg-config
1475 SET_FONTCACHE_CFLAGS
1476 C compiler flags for SET_FONTCACHE, overriding pkg-config
1477 SET_FONTCACHE_LIBS
1478 linker flags for SET_FONTCACHE, overriding pkg-config
1479
1480 Use these variables to override the choices made by 'configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1482
1483 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>.
1484 _ACEOF
1485 ac_status=$?
1486 fi
1487
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1495
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *)
1499 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1511
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for configure.gnu first; this name is used for a wrapper for
1530 # Metaconfig's "Configure" on case-insensitive file systems.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1537 else
1538 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 fi || ac_status=$?
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1541 done
1542 fi
1543
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546 cat <<\_ACEOF
1547 xset configure 1.2.6
1548 generated by GNU Autoconf 2.73
1549
1550 Copyright (C) 2026 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554 exit
1555 fi
1556
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1560
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest.beam
1568 if { { ac_try="$ac_compile"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 printf '%s\n' "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext
1587 then :
1588 ac_retval=0
1589 else case e in #(
1590 e) printf '%s\n' "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1 ;;
1594 esac
1595 fi
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_compile
1600
1601 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602 # -------------------------------------------------------
1603 # Tests whether HEADER exists and can be compiled using the include files in
1604 # INCLUDES, setting the cache variable VAR accordingly.
1605 ac_fn_c_check_header_compile ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 printf %s "checking for $2... " >&6; }
1610 if eval test \${$3+y}
1611 then :
1612 printf %s "(cached) " >&6
1613 else case e in #(
1614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 $4
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"
1620 then :
1621 eval "$3=yes"
1622 else case e in #(
1623 e) eval "$3=no" ;;
1624 esac
1625 fi
1626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1627 esac
1628 fi
1629 eval ac_res=\$$3
1630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 printf '%s\n' "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_header_compile
1635
1636 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1637 # ------------------------------------------------------------------
1638 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1639 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1640 ac_fn_check_decl ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 as_decl_name=`echo $2|sed 's/ *(.*//'`
1644 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1645 printf %s "checking whether $as_decl_name is declared... " >&6; }
1646 if eval test \${$3+y}
1647 then :
1648 printf %s "(cached) " >&6
1649 else case e in #(
1650 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1651 eval ac_save_FLAGS=\$$6
1652 as_fn_append $6 " $5"
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 int
1657 main (void)
1658 {
1659 #ifndef $as_decl_name
1660 #ifdef __cplusplus
1661 (void) $as_decl_use;
1662 #else
1663 (void) $as_decl_name;
1664 #endif
1665 #endif
1666
1667 ;
1668 return 0;
1669 }
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"
1672 then :
1673 eval "$3=yes"
1674 else case e in #(
1675 e) eval "$3=no" ;;
1676 esac
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1679 eval $6=\$ac_save_FLAGS
1680 ;;
1681 esac
1682 fi
1683 eval ac_res=\$$3
1684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 printf '%s\n' "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688 } # ac_fn_check_decl
1689
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_link ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf '%s\n' "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 test -x conftest$ac_exeext
1718 }
1719 then :
1720 ac_retval=0
1721 else case e in #(
1722 e) printf '%s\n' "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1 ;;
1726 esac
1727 fi
1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730 # interfere with the next link command; also delete a directory that is
1731 # left behind by Apple's compiler. We do this before executing the actions.
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_link
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 printf %s "checking for $2... " >&6; }
1746 if eval test \${$3+y}
1747 then :
1748 printf %s "(cached) " >&6
1749 else case e in #(
1750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1754 #define $2 innocuous_$2
1755
1756 /* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char $2 (void); below. */
1758
1759 #include <limits.h>
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 (void);
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main (void)
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"
1785 then :
1786 eval "$3=yes"
1787 else case e in #(
1788 e) eval "$3=no" ;;
1789 esac
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1792 conftest$ac_exeext conftest.$ac_ext ;;
1793 esac
1794 fi
1795 eval ac_res=\$$3
1796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 printf '%s\n' "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_func
1801 ac_configure_args_raw=
1802 for ac_arg
1803 do
1804 case $ac_arg in
1805 *\'*)
1806 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1807 esac
1808 as_fn_append ac_configure_args_raw " '$ac_arg'"
1809 done
1810
1811 case $ac_configure_args_raw in
1812 *$as_nl*)
1813 ac_safe_unquote= ;;
1814 *)
1815 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1816 ac_unsafe_a="$ac_unsafe_z#~"
1817 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1818 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1819 esac
1820
1821 cat >config.log <<_ACEOF
1822 This file contains any messages produced by compilers while
1823 running configure, to aid debugging if configure makes a mistake.
1824
1825 It was created by xset $as_me 1.2.6, which was
1826 generated by GNU Autoconf 2.73. Invocation command line was
1827
1828 $ $0$ac_configure_args_raw
1829
1830 _ACEOF
1831 exec 5>>config.log
1832 {
1833 cat <<_ASUNAME
1834 ## --------- ##
1835 ## Platform. ##
1836 ## --------- ##
1837
1838 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1843
1844 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1846
1847 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1848 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1849 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1851 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1852 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1853 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1854
1855 _ASUNAME
1856
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860 IFS=$as_save_IFS
1861 case $as_dir in #(((
1862 '') as_dir=./ ;;
1863 */) ;;
1864 *) as_dir=$as_dir/ ;;
1865 esac
1866 printf '%s\n' "PATH: $as_dir"
1867 done
1868 IFS=$as_save_IFS
1869
1870 } >&5
1871
1872 cat >&5 <<_ACEOF
1873
1874
1875 ## ----------- ##
1876 ## Core tests. ##
1877 ## ----------- ##
1878
1879 _ACEOF
1880
1881
1882 # Keep a trace of the command line.
1883 # Strip out --no-create and --no-recursion so they do not pile up.
1884 # Strip out --silent because we don't want to record it for future runs.
1885 # Also quote any args containing shell meta-characters.
1886 # Make two passes to allow for proper duplicate-argument suppression.
1887 ac_configure_args=
1888 ac_configure_args0=
1889 ac_configure_args1=
1890 ac_must_keep_next=false
1891 for ac_pass in 1 2
1892 do
1893 for ac_arg
1894 do
1895 case $ac_arg in
1896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1898 | -silent | --silent | --silen | --sile | --sil)
1899 continue ;;
1900 *\'*)
1901 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 esac
1903 case $ac_pass in
1904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1905 2)
1906 as_fn_append ac_configure_args1 " '$ac_arg'"
1907 if test $ac_must_keep_next = true; then
1908 ac_must_keep_next=false # Got value, back to normal.
1909 else
1910 case $ac_arg in
1911 *=* | --config-cache | -C | -disable-* | --disable-* \
1912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1914 | -with-* | --with-* | -without-* | --without-* | --x)
1915 case "$ac_configure_args0 " in
1916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1917 esac
1918 ;;
1919 -* ) ac_must_keep_next=true ;;
1920 esac
1921 fi
1922 as_fn_append ac_configure_args " '$ac_arg'"
1923 ;;
1924 esac
1925 done
1926 done
1927 { ac_configure_args0=; unset ac_configure_args0;}
1928 { ac_configure_args1=; unset ac_configure_args1;}
1929
1930 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
1931 ac_cache_dump ()
1932 {
1933 # The following way of writing the cache mishandles newlines in values,
1934 # but we know of no workaround that is simple, portable, and efficient.
1935 # So, we kill variables containing newlines.
1936 # Ultrix sh set writes to stderr and can't be redirected directly,
1937 # and sets the high bit in the cache file unless we assign to the vars.
1938 (
1939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1940 eval ac_val=\$$ac_var
1941 case $ac_val in #(
1942 *${as_nl}*)
1943 case $ac_var in #(
1944 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946 esac
1947 case $ac_var in #(
1948 _ | IFS | as_nl) ;; #(
1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950 *) { eval $ac_var=; unset $ac_var;} ;;
1951 esac ;;
1952 esac
1953 done
1954
1955 (set) 2>&1 |
1956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1958 # 'set' does not quote correctly, so add quotes: double-quote
1959 # substitution turns \\\\ into \\, and sed turns \\ into \.
1960 sed -n \
1961 "s/'/'\\\\''/g;
1962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1963 ;; #(
1964 *)
1965 # 'set' quotes correctly as required by POSIX, so do not add quotes.
1966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1967 ;;
1968 esac |
1969 sort
1970 )
1971 }
1972
1973 # Print debugging info to stdout.
1974 ac_dump_debugging_info ()
1975 {
1976 echo
1977
1978 printf '%s\n' "## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##"
1981 echo
1982 ac_cache_dump
1983 echo
1984
1985 printf '%s\n' "## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##"
1988 echo
1989 for ac_var in $ac_subst_vars
1990 do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1994 esac
1995 printf '%s\n' "$ac_var='$ac_val'"
1996 done | sort
1997 echo
1998
1999 if test -n "$ac_subst_files"; then
2000 printf '%s\n' "## ------------------- ##
2001 ## File substitutions. ##
2002 ## ------------------- ##"
2003 echo
2004 for ac_var in $ac_subst_files
2005 do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in
2008 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2009 esac
2010 printf '%s\n' "$ac_var='$ac_val'"
2011 done | sort
2012 echo
2013 fi
2014
2015 if test -s confdefs.h; then
2016 printf '%s\n' "## ----------- ##
2017 ## confdefs.h. ##
2018 ## ----------- ##"
2019 echo
2020 cat confdefs.h
2021 echo
2022 fi
2023 test "$ac_signal" != 0 &&
2024 printf '%s\n' "$as_me: caught signal $ac_signal"
2025 printf '%s\n' "$as_me: exit $exit_status"
2026 }
2027
2028 # When interrupted or exit'd, cleanup temporary files, and complete
2029 # config.log.
2030 ac_exit_trap ()
2031 {
2032 exit_status=
2033 # Sanitize IFS.
2034 IFS=" "" $as_nl"
2035 # Save into config.log some information that might help in debugging.
2036 ac_dump_debugging_info >&5
2037 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2039 exit $exit_status
2040 }
2041
2042 trap 'ac_exit_trap $?' 0
2043 for ac_signal in 1 2 13 15; do
2044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2045 done
2046 ac_signal=0
2047
2048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2049 rm -f -r conftest* confdefs.h
2050
2051 printf '%s\n' "/* confdefs.h */" > confdefs.h
2052
2053 # Predefined preprocessor variables.
2054
2055 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2056
2057 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2058
2059 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2060
2061 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2062
2063 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2064
2065 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2066
2067
2068 # Let the site file select an alternate cache file if it wants to.
2069 # Prefer an explicitly selected file to automatically selected ones.
2070 if test -n "$CONFIG_SITE"; then
2071 ac_site_files="$CONFIG_SITE"
2072 elif test "x$prefix" != xNONE; then
2073 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2074 else
2075 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2076 fi
2077
2078 for ac_site_file in $ac_site_files
2079 do
2080 case $ac_site_file in #(
2081 */*) :
2082 ;; #(
2083 *) :
2084 ac_site_file=./$ac_site_file ;;
2085 esac
2086 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2088 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2089 sed 's/^/| /' "$ac_site_file" >&5
2090 . "$ac_site_file" \
2091 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2092 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2093 as_fn_error $? "failed to load site script $ac_site_file
2094 See 'config.log' for more details" "$LINENO" 5; }
2095 fi
2096 done
2097
2098 if test -r "$cache_file"; then
2099 # Some versions of bash will fail to source /dev/null (special files
2100 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2101 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2103 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2104 case $cache_file in
2105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106 *) . "./$cache_file";;
2107 esac
2108 fi
2109 else
2110 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2111 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2112 >$cache_file
2113 fi
2114
2115 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2116 # Test code for whether the C compiler supports C23 (global declarations)
2117 ac_c_conftest_c23_globals='
2118 /* Does the compiler advertise conformance to C17 or earlier?
2119 Although GCC 14 does not do that, even with -std=gnu23,
2120 it is close enough, and defines __STDC_VERSION == 202000L. */
2121 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2122 # error "Compiler advertises conformance to C17 or earlier"
2123 #endif
2124
2125 // Check alignas.
2126 char alignas (double) c23_aligned_as_double;
2127 char alignas (0) c23_no_special_alignment;
2128 extern char c23_aligned_as_int;
2129 char alignas (0) alignas (int) c23_aligned_as_int;
2130
2131 // Check alignof.
2132 enum
2133 {
2134 c23_int_alignment = alignof (int),
2135 c23_int_array_alignment = alignof (int[100]),
2136 c23_char_alignment = alignof (char)
2137 };
2138 static_assert (0 < -alignof (int), "alignof is signed");
2139
2140 int function_with_unnamed_parameter (int) { return 0; }
2141
2142 void c23_noreturn ();
2143
2144 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2145 The parens pacify GCC 15. */
2146 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2147
2148 bool check_that_bool_works = true | false | !nullptr;
2149 #if !true
2150 # error "true does not work in #if"
2151 #endif
2152 #if false
2153 #elifdef __STDC_VERSION__
2154 #else
2155 # error "#elifdef does not work"
2156 #endif
2157
2158 #ifndef __has_c_attribute
2159 # error "__has_c_attribute not defined"
2160 #endif
2161
2162 #ifndef __has_include
2163 # error "__has_include not defined"
2164 #endif
2165
2166 #define LPAREN() (
2167 #define FORTY_TWO(x) 42
2168 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2169 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2170
2171 static_assert (0b101010 == 42);
2172 static_assert (0B101010 == 42);
2173 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2174 static_assert (0.500'\''000'\''000 == 0.5);
2175
2176 enum unsignedish : unsigned int { uione = 1 };
2177 static_assert (0 < -uione);
2178
2179 #include <stddef.h>
2180 constexpr nullptr_t null_pointer = nullptr;
2181
2182 static typeof (1 + 1L) two () { return 2; }
2183 static long int three () { return 3; }
2184 '
2185
2186 # Test code for whether the C compiler supports C23 (body of main).
2187 ac_c_conftest_c23_main='
2188 {
2189 label_before_declaration:
2190 int arr[10] = {};
2191 if (arr[0])
2192 goto label_before_declaration;
2193 if (!arr[0])
2194 goto label_at_end_of_block;
2195 label_at_end_of_block:
2196 }
2197 ok |= !null_pointer;
2198 ok |= two != three;
2199 '
2200
2201 # Test code for whether the C compiler supports C23 (complete).
2202 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2203
2204 int
2205 main (int, char **)
2206 {
2207 int ok = 0;
2208 ${ac_c_conftest_c23_main}
2209 return ok;
2210 }
2211 "
2212
2213 # Test code for whether the C compiler supports C89 (global declarations)
2214 ac_c_conftest_c89_globals='
2215 /* Do not test the value of __STDC__, because some compilers define it to 0
2216 or do not define it, while otherwise adequately conforming. */
2217
2218 #include <stddef.h>
2219 #include <stdarg.h>
2220 struct stat;
2221 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2222 struct buf { int x; };
2223 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2224 static char *e (char **p, int i)
2225 {
2226 return p[i];
2227 }
2228 static char *f (char * (*g) (char **, int), char **p, ...)
2229 {
2230 char *s;
2231 va_list v;
2232 va_start (v,p);
2233 s = g (p, va_arg (v,int));
2234 va_end (v);
2235 return s;
2236 }
2237
2238 /* C89 style stringification. */
2239 #define noexpand_stringify(a) #a
2240 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2241
2242 /* C89 style token pasting. Exercises some of the corner cases that
2243 e.g. old MSVC gets wrong, but not very hard. */
2244 #define noexpand_concat(a,b) a##b
2245 #define expand_concat(a,b) noexpand_concat(a,b)
2246 extern int vA;
2247 extern int vbee;
2248 #define aye A
2249 #define bee B
2250 int *pvA = &expand_concat(v,aye);
2251 int *pvbee = &noexpand_concat(v,bee);
2252
2253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2254 function prototypes and stuff, but not \xHH hex character constants.
2255 These do not provoke an error unfortunately, instead are silently treated
2256 as an "x". The following induces an error, until -std is added to get
2257 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2258 array size at least. It is necessary to write \x00 == 0 to get something
2259 that is true only with -std. */
2260 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2261
2262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2263 inside strings and character constants. */
2264 #define FOO(x) '\''x'\''
2265 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2266
2267 int test (int i, double x);
2268 struct s1 {int (*f) (int a);};
2269 struct s2 {int (*f) (double a);};
2270 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2271 int, int);'
2272
2273 # Test code for whether the C compiler supports C89 (body of main).
2274 ac_c_conftest_c89_main='
2275 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2276 '
2277
2278 # Test code for whether the C compiler supports C99 (global declarations)
2279 ac_c_conftest_c99_globals='
2280 /* Does the compiler advertise C99 conformance? */
2281 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2282 # error "Compiler does not advertise C99 conformance"
2283 #endif
2284
2285 // See if C++-style comments work.
2286
2287 #include <stdbool.h>
2288 extern int puts (const char *);
2289 extern int printf (const char *, ...);
2290 extern int dprintf (int, const char *, ...);
2291 extern void *malloc (size_t);
2292 extern void free (void *);
2293
2294 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2295 // dprintf is used instead of fprintf to avoid needing to declare
2296 // FILE and stderr, and "aND" is used instead of "and" to work around
2297 // GCC bug 40564 which is irrelevant here.
2298 #define debug(...) dprintf (2, __VA_ARGS__)
2299 #define showlist(...) puts (#__VA_ARGS__)
2300 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2301 static void
2302 test_varargs_macros (void)
2303 {
2304 int x = 1234;
2305 int y = 5678;
2306 debug ("Flag");
2307 debug ("X = %d\n", x);
2308 showlist (The first, second, aND third items.);
2309 report (x>y, "x is %d but y is %d", x, y);
2310 }
2311
2312 // Check long long types.
2313 #define BIG64 18446744073709551615ull
2314 #define BIG32 4294967295ul
2315 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2316 #if !BIG_OK
2317 #error "your preprocessor is broken"
2318 #endif
2319 #if BIG_OK
2320 #else
2321 #error "your preprocessor is broken"
2322 #endif
2323 static long long int bignum = -9223372036854775807LL;
2324 static unsigned long long int ubignum = BIG64;
2325
2326 struct incomplete_array
2327 {
2328 int datasize;
2329 double data[];
2330 };
2331
2332 struct named_init {
2333 int number;
2334 const wchar_t *name;
2335 double average;
2336 };
2337
2338 typedef const char *ccp;
2339
2340 static inline int
2341 test_restrict (ccp restrict text)
2342 {
2343 // Iterate through items via the restricted pointer.
2344 // Also check for declarations in for loops.
2345 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2346 continue;
2347 return 0;
2348 }
2349
2350 // Check varargs and va_copy.
2351 static bool
2352 test_varargs (const char *format, ...)
2353 {
2354 va_list args;
2355 va_start (args, format);
2356 va_list args_copy;
2357 va_copy (args_copy, args);
2358
2359 const char *str = "";
2360 int number = 0;
2361 float fnumber = 0;
2362
2363 while (*format)
2364 {
2365 switch (*format++)
2366 {
2367 case '\''s'\'': // string
2368 str = va_arg (args_copy, const char *);
2369 break;
2370 case '\''d'\'': // int
2371 number = va_arg (args_copy, int);
2372 break;
2373 case '\''f'\'': // float
2374 fnumber = va_arg (args_copy, double);
2375 break;
2376 default:
2377 break;
2378 }
2379 }
2380 va_end (args_copy);
2381 va_end (args);
2382
2383 return *str && number && fnumber;
2384 }
2385 '
2386
2387 # Test code for whether the C compiler supports C99 (body of main).
2388 ac_c_conftest_c99_main='
2389 // Check bool.
2390 _Bool success = false;
2391 success |= (argc != 0);
2392
2393 // Check restrict.
2394 if (test_restrict ("String literal") == 0)
2395 success = true;
2396 const char *restrict newvar = "Another string";
2397
2398 // Check varargs.
2399 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2400 test_varargs_macros ();
2401
2402 // Check flexible array members.
2403 static struct incomplete_array *volatile incomplete_array_pointer;
2404 struct incomplete_array *ia = incomplete_array_pointer;
2405 ia->datasize = 10;
2406 for (int i = 0; i < ia->datasize; ++i)
2407 ia->data[i] = i * 1.234;
2408 // Work around memory leak warnings.
2409 free (ia);
2410
2411 // Check named initializers.
2412 struct named_init ni = {
2413 .number = 34,
2414 .name = L"Test wide string",
2415 .average = 543.34343,
2416 };
2417
2418 ni.number = 58;
2419
2420 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2421 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2422
2423 // work around unused variable warnings
2424 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2425 || ni.number != 58);
2426 '
2427
2428 # Test code for whether the C compiler supports C11 (global declarations)
2429 ac_c_conftest_c11_globals='
2430 /* Does the compiler advertise C11 conformance? */
2431 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2432 # error "Compiler does not advertise C11 conformance"
2433 #endif
2434
2435 // Check _Alignas.
2436 char _Alignas (double) aligned_as_double;
2437 char _Alignas (0) no_special_alignment;
2438 extern char aligned_as_int;
2439 char _Alignas (0) _Alignas (int) aligned_as_int;
2440
2441 // Check _Alignof.
2442 enum
2443 {
2444 int_alignment = _Alignof (int),
2445 int_array_alignment = _Alignof (int[100]),
2446 char_alignment = _Alignof (char)
2447 };
2448 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2449
2450 // Check _Noreturn.
2451 int _Noreturn does_not_return (void) { for (;;) continue; }
2452
2453 // Check _Static_assert.
2454 struct test_static_assert
2455 {
2456 int x;
2457 _Static_assert (sizeof (int) <= sizeof (long int),
2458 "_Static_assert does not work in struct");
2459 long int y;
2460 };
2461
2462 // Check UTF-8 literals.
2463 #define u8 syntax error!
2464 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2465
2466 // Check duplicate typedefs.
2467 typedef long *long_ptr;
2468 typedef long int *long_ptr;
2469 typedef long_ptr long_ptr;
2470
2471 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2472 struct anonymous
2473 {
2474 union {
2475 struct { int i; int j; };
2476 struct { int k; long int l; } w;
2477 };
2478 int m;
2479 } v1;
2480 '
2481
2482 # Test code for whether the C compiler supports C11 (body of main).
2483 ac_c_conftest_c11_main='
2484 _Static_assert ((offsetof (struct anonymous, i)
2485 == offsetof (struct anonymous, w.k)),
2486 "Anonymous union alignment botch");
2487 v1.i = 2;
2488 v1.w.k = 5;
2489 ok |= v1.i != 5;
2490 '
2491
2492 # Test code for whether the C compiler supports C11 (complete).
2493 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2494 ${ac_c_conftest_c99_globals}
2495 ${ac_c_conftest_c11_globals}
2496
2497 int
2498 main (int argc, char **argv)
2499 {
2500 int ok = 0;
2501 ${ac_c_conftest_c89_main}
2502 ${ac_c_conftest_c99_main}
2503 ${ac_c_conftest_c11_main}
2504 return ok;
2505 }
2506 "
2507
2508 # Test code for whether the C compiler supports C99 (complete).
2509 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2510 ${ac_c_conftest_c99_globals}
2511
2512 int
2513 main (int argc, char **argv)
2514 {
2515 int ok = 0;
2516 ${ac_c_conftest_c89_main}
2517 ${ac_c_conftest_c99_main}
2518 return ok;
2519 }
2520 "
2521
2522 # Test code for whether the C compiler supports C89 (complete).
2523 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2524
2525 int
2526 main (int argc, char **argv)
2527 {
2528 int ok = 0;
2529 ${ac_c_conftest_c89_main}
2530 return ok;
2531 }
2532 "
2533
2534 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2535 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2536 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2537 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2538 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2539 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2540 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2541 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2542 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2543 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2544
2545 # Auxiliary files required by this configure script.
2546 ac_aux_files="config.guess config.sub missing install-sh compile"
2547
2548 # Locations in which to look for auxiliary files.
2549 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2550
2551 # Search for a directory containing all of the required auxiliary files,
2552 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2553 # If we don't find one directory that contains all the files we need,
2554 # we report the set of missing files from the *first* directory in
2555 # $ac_aux_dir_candidates and give up.
2556 ac_missing_aux_files=""
2557 ac_first_candidate=:
2558 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 as_found=false
2561 for as_dir in $ac_aux_dir_candidates
2562 do
2563 IFS=$as_save_IFS
2564 case $as_dir in #(((
2565 '') as_dir=./ ;;
2566 */) ;;
2567 *) as_dir=$as_dir/ ;;
2568 esac
2569 as_found=:
2570
2571 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2572 ac_aux_dir_found=yes
2573 ac_install_sh=
2574 for ac_aux in $ac_aux_files
2575 do
2576 # As a special case, if "install-sh" is required, that requirement
2577 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2578 # and $ac_install_sh is set appropriately for whichever one is found.
2579 if test x"$ac_aux" = x"install-sh"
2580 then
2581 if test -f "${as_dir}install-sh"; then
2582 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2583 ac_install_sh="${as_dir}install-sh -c"
2584 elif test -f "${as_dir}install.sh"; then
2585 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2586 ac_install_sh="${as_dir}install.sh -c"
2587 elif test -f "${as_dir}shtool"; then
2588 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2589 ac_install_sh="${as_dir}shtool install -c"
2590 else
2591 ac_aux_dir_found=no
2592 if $ac_first_candidate; then
2593 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2594 else
2595 break
2596 fi
2597 fi
2598 else
2599 if test -f "${as_dir}${ac_aux}"; then
2600 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2601 else
2602 ac_aux_dir_found=no
2603 if $ac_first_candidate; then
2604 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2605 else
2606 break
2607 fi
2608 fi
2609 fi
2610 done
2611 if test "$ac_aux_dir_found" = yes; then
2612 ac_aux_dir="$as_dir"
2613 break
2614 fi
2615 ac_first_candidate=false
2616
2617 as_found=false
2618 done
2619 IFS=$as_save_IFS
2620 if $as_found
2621 then :
2622
2623 else case e in #(
2624 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2625 esac
2626 fi
2627
2628
2629 # These three variables are undocumented and unsupported,
2630 # and are intended to be withdrawn in a future Autoconf release.
2631 # They can cause serious problems if a builder's source tree is in a directory
2632 # whose full name contains unusual characters.
2633 if test -f "${ac_aux_dir}config.guess"; then
2634 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2635 fi
2636 if test -f "${ac_aux_dir}config.sub"; then
2637 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2638 fi
2639 if test -f "$ac_aux_dir/configure"; then
2640 ac_configure="$SHELL ${ac_aux_dir}configure"
2641 fi
2642
2643 # Check that the precious variables saved in the cache have kept the same
2644 # value.
2645 ac_cache_corrupted=false
2646 for ac_var in $ac_precious_vars; do
2647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648 eval ac_new_set=\$ac_env_${ac_var}_set
2649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650 eval ac_new_val=\$ac_env_${ac_var}_value
2651 case $ac_old_set,$ac_new_set in
2652 set,)
2653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2654 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2656 ,set)
2657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2658 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2659 ac_cache_corrupted=: ;;
2660 ,);;
2661 *)
2662 if test "x$ac_old_val" != "x$ac_new_val"; then
2663 # differences in whitespace do not lead to failure.
2664 ac_old_val_w=
2665 for ac_val in x $ac_old_val; do
2666 ac_old_val_w="$ac_old_val_w $ac_val"
2667 done
2668 ac_new_val_w=
2669 for ac_val in x $ac_new_val; do
2670 ac_new_val_w="$ac_new_val_w $ac_val"
2671 done
2672 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2674 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2675 ac_cache_corrupted=:
2676 else
2677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2678 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2679 eval $ac_var=\$ac_old_val
2680 fi
2681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2682 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2684 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2685 fi;;
2686 esac
2687 # Pass precious variables to config.status.
2688 if test "$ac_new_set" = set; then
2689 case $ac_new_val in
2690 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2691 *) ac_arg=$ac_var=$ac_new_val ;;
2692 esac
2693 case " $ac_configure_args " in
2694 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2695 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2696 esac
2697 fi
2698 done
2699 if $ac_cache_corrupted; then
2700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2701 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2702 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2703 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2704 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2705 and start over" "$LINENO" 5
2706 fi
2707 ## -------------------- ##
2708 ## Main body of script. ##
2709 ## -------------------- ##
2710
2711
2712 # Determine whether it's possible to make 'echo' print without a newline.
2713 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2714 # for compatibility with existing Makefiles.
2715 ECHO_C= ECHO_N= ECHO_T=
2716 case `echo -n x` in #(((((
2717 -n*)
2718 case `echo 'xy\c'` in
2719 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2720 xy) ECHO_C='\c';;
2721 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2722 ECHO_T=' ';;
2723 esac;;
2724 *)
2725 ECHO_N='-n';;
2726 esac
2727
2728 ac_ext=c
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734
2735
2736 ac_config_headers="$ac_config_headers config.h"
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752 # Expand $ac_aux_dir to an absolute path.
2753 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2754
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760 if test -n "$ac_tool_prefix"; then
2761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 printf %s "checking for $ac_word... " >&6; }
2765 if test ${ac_cv_prog_CC+y}
2766 then :
2767 printf %s "(cached) " >&6
2768 else case e in #(
2769 e) if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 case $as_dir in #(((
2777 '') as_dir=./ ;;
2778 */) ;;
2779 *) as_dir=$as_dir/ ;;
2780 esac
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi ;;
2792 esac
2793 fi
2794 CC=$ac_cv_prog_CC
2795 if test -n "$CC"; then
2796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797 printf '%s\n' "$CC" >&6; }
2798 else
2799 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 printf '%s\n' "no" >&6; }
2801 fi
2802
2803
2804 fi
2805 if test -z "$ac_cv_prog_CC"; then
2806 ac_ct_CC=$CC
2807 # Extract the first word of "gcc", so it can be a program name with args.
2808 set dummy gcc; ac_word=$2
2809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 printf %s "checking for $ac_word... " >&6; }
2811 if test ${ac_cv_prog_ac_ct_CC+y}
2812 then :
2813 printf %s "(cached) " >&6
2814 else case e in #(
2815 e) if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 case $as_dir in #(((
2823 '') as_dir=./ ;;
2824 */) ;;
2825 *) as_dir=$as_dir/ ;;
2826 esac
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="gcc"
2830 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi ;;
2838 esac
2839 fi
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 printf '%s\n' "$ac_ct_CC" >&6; }
2844 else
2845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 printf '%s\n' "no" >&6; }
2847 fi
2848
2849 if test "x$ac_ct_CC" = x; then
2850 CC=""
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858 CC=$ac_ct_CC
2859 fi
2860 else
2861 CC="$ac_cv_prog_CC"
2862 fi
2863
2864 if test -z "$CC"; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}cc; ac_word=$2
2868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 printf %s "checking for $ac_word... " >&6; }
2870 if test ${ac_cv_prog_CC+y}
2871 then :
2872 printf %s "(cached) " >&6
2873 else case e in #(
2874 e) if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 case $as_dir in #(((
2882 '') as_dir=./ ;;
2883 */) ;;
2884 *) as_dir=$as_dir/ ;;
2885 esac
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_CC="${ac_tool_prefix}cc"
2889 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi ;;
2897 esac
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 printf '%s\n' "$CC" >&6; }
2903 else
2904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 printf '%s\n' "no" >&6; }
2906 fi
2907
2908
2909 fi
2910 fi
2911 if test -z "$CC"; then
2912 # Extract the first word of "cc", so it can be a program name with args.
2913 set dummy cc; ac_word=$2
2914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 printf %s "checking for $ac_word... " >&6; }
2916 if test ${ac_cv_prog_CC+y}
2917 then :
2918 printf %s "(cached) " >&6
2919 else case e in #(
2920 e) if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923 ac_prog_rejected=no
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 case $as_dir in #(((
2929 '') as_dir=./ ;;
2930 */) ;;
2931 *) as_dir=$as_dir/ ;;
2932 esac
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2935 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936 ac_prog_rejected=yes
2937 continue
2938 fi
2939 ac_cv_prog_CC="cc"
2940 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 if test $ac_prog_rejected = yes; then
2948 # We found a bogon in the path, so make sure we never use it.
2949 set dummy $ac_cv_prog_CC
2950 shift
2951 if test $# != 0; then
2952 # We chose a different compiler from the bogus one.
2953 # However, it has the same basename, so the bogon will be chosen
2954 # first if we set CC to just the basename; use the full file name.
2955 shift
2956 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2957 fi
2958 fi
2959 fi ;;
2960 esac
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965 printf '%s\n' "$CC" >&6; }
2966 else
2967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 printf '%s\n' "no" >&6; }
2969 fi
2970
2971
2972 fi
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 for ac_prog in cl.exe
2976 do
2977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 printf %s "checking for $ac_word... " >&6; }
2981 if test ${ac_cv_prog_CC+y}
2982 then :
2983 printf %s "(cached) " >&6
2984 else case e in #(
2985 e) if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 case $as_dir in #(((
2993 '') as_dir=./ ;;
2994 */) ;;
2995 *) as_dir=$as_dir/ ;;
2996 esac
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi ;;
3008 esac
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 printf '%s\n' "$CC" >&6; }
3014 else
3015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 printf '%s\n' "no" >&6; }
3017 fi
3018
3019
3020 test -n "$CC" && break
3021 done
3022 fi
3023 if test -z "$CC"; then
3024 ac_ct_CC=$CC
3025 for ac_prog in cl.exe
3026 do
3027 # Extract the first word of "$ac_prog", so it can be a program name with args.
3028 set dummy $ac_prog; ac_word=$2
3029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 printf %s "checking for $ac_word... " >&6; }
3031 if test ${ac_cv_prog_ac_ct_CC+y}
3032 then :
3033 printf %s "(cached) " >&6
3034 else case e in #(
3035 e) if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 case $as_dir in #(((
3043 '') as_dir=./ ;;
3044 */) ;;
3045 *) as_dir=$as_dir/ ;;
3046 esac
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_ac_ct_CC="$ac_prog"
3050 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi ;;
3058 esac
3059 fi
3060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3061 if test -n "$ac_ct_CC"; then
3062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3063 printf '%s\n' "$ac_ct_CC" >&6; }
3064 else
3065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 printf '%s\n' "no" >&6; }
3067 fi
3068
3069
3070 test -n "$ac_ct_CC" && break
3071 done
3072
3073 if test "x$ac_ct_CC" = x; then
3074 CC=""
3075 else
3076 case $cross_compiling:$ac_tool_warned in
3077 yes:)
3078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3079 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3080 ac_tool_warned=yes ;;
3081 esac
3082 CC=$ac_ct_CC
3083 fi
3084 fi
3085
3086 fi
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}clang; ac_word=$2
3091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 printf %s "checking for $ac_word... " >&6; }
3093 if test ${ac_cv_prog_CC+y}
3094 then :
3095 printf %s "(cached) " >&6
3096 else case e in #(
3097 e) if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 case $as_dir in #(((
3105 '') as_dir=./ ;;
3106 */) ;;
3107 *) as_dir=$as_dir/ ;;
3108 esac
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_CC="${ac_tool_prefix}clang"
3112 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi ;;
3120 esac
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 printf '%s\n' "$CC" >&6; }
3126 else
3127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 printf '%s\n' "no" >&6; }
3129 fi
3130
3131
3132 fi
3133 if test -z "$ac_cv_prog_CC"; then
3134 ac_ct_CC=$CC
3135 # Extract the first word of "clang", so it can be a program name with args.
3136 set dummy clang; ac_word=$2
3137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 printf %s "checking for $ac_word... " >&6; }
3139 if test ${ac_cv_prog_ac_ct_CC+y}
3140 then :
3141 printf %s "(cached) " >&6
3142 else case e in #(
3143 e) if test -n "$ac_ct_CC"; then
3144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149 IFS=$as_save_IFS
3150 case $as_dir in #(((
3151 '') as_dir=./ ;;
3152 */) ;;
3153 *) as_dir=$as_dir/ ;;
3154 esac
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_ac_ct_CC="clang"
3158 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi ;;
3166 esac
3167 fi
3168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169 if test -n "$ac_ct_CC"; then
3170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171 printf '%s\n' "$ac_ct_CC" >&6; }
3172 else
3173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 printf '%s\n' "no" >&6; }
3175 fi
3176
3177 if test "x$ac_ct_CC" = x; then
3178 CC=""
3179 else
3180 case $cross_compiling:$ac_tool_warned in
3181 yes:)
3182 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3185 esac
3186 CC=$ac_ct_CC
3187 fi
3188 else
3189 CC="$ac_cv_prog_CC"
3190 fi
3191
3192 fi
3193
3194
3195 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3196 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3197 as_fn_error $? "no acceptable C compiler found in \$PATH
3198 See 'config.log' for more details" "$LINENO" 5; }
3199
3200 # Provide some information about the compiler.
3201 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion -version; do
3205 { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 printf '%s\n' "$ac_try_echo"; } >&5
3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 ac_status=$?
3214 if test -s conftest.err; then
3215 sed '10a\
3216 ... rest of stderr output deleted ...
3217 10q' conftest.err >conftest.er1
3218 cat conftest.er1 >&5
3219 fi
3220 rm -f conftest.er1 conftest.err
3221 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 done
3224
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227
3228 int
3229 main (void)
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 printf %s "checking whether the C compiler works... " >&6; }
3243 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3250 do
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 esac
3255 done
3256 rm -f $ac_rmfiles
3257
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 printf '%s\n' "$ac_try_echo"; } >&5
3265 (eval "$ac_link_default") 2>&5
3266 ac_status=$?
3267 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 then :
3270 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3271 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3274 # Autoconf.
3275 for ac_file in $ac_files ''
3276 do
3277 test -f "$ac_file" || continue
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280 ;;
3281 [ab].out )
3282 # We found the default executable, but exeext='' is most
3283 # certainly right.
3284 break;;
3285 *.* )
3286 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3287 then :; else
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 fi
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an '-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3294 # actually working.
3295 break;;
3296 * )
3297 break;;
3298 esac
3299 done
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301
3302 else case e in #(
3303 e) ac_file='' ;;
3304 esac
3305 fi
3306 if test -z "$ac_file"
3307 then :
3308 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 printf '%s\n' "no" >&6; }
3310 printf '%s\n' "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3314 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3315 as_fn_error 77 "C compiler cannot create executables
3316 See 'config.log' for more details" "$LINENO" 5; }
3317 else case e in #(
3318 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319 printf '%s\n' "yes" >&6; } ;;
3320 esac
3321 fi
3322 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323 printf %s "checking for C compiler default output file name... " >&6; }
3324 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3325 printf '%s\n' "$ac_file" >&6; }
3326 ac_exeext=$ac_cv_exeext
3327
3328 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3329 ac_clean_files=$ac_clean_files_save
3330 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3331 printf %s "checking for suffix of executables... " >&6; }
3332 if { { ac_try="$ac_link"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 printf '%s\n' "$ac_try_echo"; } >&5
3339 (eval "$ac_link") 2>&5
3340 ac_status=$?
3341 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }
3343 then :
3344 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3345 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3346 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3347 # 'rm'.
3348 for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 break;;
3354 * ) break;;
3355 esac
3356 done
3357 else case e in #(
3358 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3359 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3361 See 'config.log' for more details" "$LINENO" 5; } ;;
3362 esac
3363 fi
3364 rm -f conftest conftest$ac_cv_exeext
3365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3366 printf '%s\n' "$ac_cv_exeext" >&6; }
3367
3368 rm -f conftest.$ac_ext
3369 EXEEXT=$ac_cv_exeext
3370 ac_exeext=$EXEEXT
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373 #include <stdio.h>
3374 int
3375 main (void)
3376 {
3377 FILE *f = fopen ("conftest.out", "w");
3378 if (!f)
3379 return 1;
3380 return ferror (f) || fclose (f) != 0;
3381
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 ac_clean_files="$ac_clean_files conftest.out"
3387 # Check that the compiler produces executables we can run. If not, either
3388 # the compiler is broken, or we cross compile.
3389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3390 printf %s "checking whether we are cross compiling... " >&6; }
3391 if test "$cross_compiling" != yes; then
3392 { { ac_try="$ac_link"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 printf '%s\n' "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3400 ac_status=$?
3401 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }
3403 if { ac_try='./conftest$ac_cv_exeext'
3404 { { case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 printf '%s\n' "$ac_try_echo"; } >&5
3410 (eval "$ac_try") 2>&5
3411 ac_status=$?
3412 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; }; then
3414 cross_compiling=no
3415 else
3416 if test "$cross_compiling" = maybe; then
3417 cross_compiling=yes
3418 else
3419 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3420 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3421 as_fn_error 77 "cannot run C compiled programs.
3422 If you meant to cross compile, use '--host'.
3423 See 'config.log' for more details" "$LINENO" 5; }
3424 fi
3425 fi
3426 fi
3427 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3428 printf '%s\n' "$cross_compiling" >&6; }
3429
3430 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3431 conftest.o conftest.obj conftest.out
3432 ac_clean_files=$ac_clean_files_save
3433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3434 printf %s "checking for suffix of object files... " >&6; }
3435 if test ${ac_cv_objext+y}
3436 then :
3437 printf %s "(cached) " >&6
3438 else case e in #(
3439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441
3442 int
3443 main (void)
3444 {
3445
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 rm -f conftest.o conftest.obj
3451 if { { ac_try="$ac_compile"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 printf '%s\n' "$ac_try_echo"; } >&5
3458 (eval "$ac_compile") 2>&5
3459 ac_status=$?
3460 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }
3462 then :
3463 for ac_file in conftest.o conftest.obj conftest.*; do
3464 test -f "$ac_file" || continue;
3465 case $ac_file in
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3467 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3468 break;;
3469 esac
3470 done
3471 else case e in #(
3472 e) printf '%s\n' "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3476 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3477 as_fn_error $? "cannot compute suffix of object files: cannot compile
3478 See 'config.log' for more details" "$LINENO" 5; } ;;
3479 esac
3480 fi
3481 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3482 esac
3483 fi
3484 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3485 printf '%s\n' "$ac_cv_objext" >&6; }
3486 OBJEXT=$ac_cv_objext
3487 ac_objext=$OBJEXT
3488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3489 printf %s "checking whether the compiler supports GNU C... " >&6; }
3490 if test ${ac_cv_c_compiler_gnu+y}
3491 then :
3492 printf %s "(cached) " >&6
3493 else case e in #(
3494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main (void)
3499 {
3500 #ifndef __GNUC__
3501 choke me
3502 #endif
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 if ac_fn_c_try_compile "$LINENO"
3509 then :
3510 ac_compiler_gnu=yes
3511 else case e in #(
3512 e) ac_compiler_gnu=no ;;
3513 esac
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3516 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3517 ;;
3518 esac
3519 fi
3520 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3521 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
3524 if test $ac_compiler_gnu = yes; then
3525 GCC=yes
3526 else
3527 GCC=
3528 fi
3529 ac_test_CFLAGS=${CFLAGS+y}
3530 ac_save_CFLAGS=$CFLAGS
3531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3532 printf %s "checking whether $CC accepts -g... " >&6; }
3533 if test ${ac_cv_prog_cc_g+y}
3534 then :
3535 printf %s "(cached) " >&6
3536 else case e in #(
3537 e) ac_save_c_werror_flag=$ac_c_werror_flag
3538 ac_c_werror_flag=yes
3539 ac_cv_prog_cc_g=no
3540 CFLAGS="-g"
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main (void)
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"
3553 then :
3554 ac_cv_prog_cc_g=yes
3555 else case e in #(
3556 e) CFLAGS=""
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main (void)
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"
3569 then :
3570
3571 else case e in #(
3572 e) ac_c_werror_flag=$ac_save_c_werror_flag
3573 CFLAGS="-g"
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576
3577 int
3578 main (void)
3579 {
3580
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"
3586 then :
3587 ac_cv_prog_cc_g=yes
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3590 esac
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3593 esac
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3596 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3597 esac
3598 fi
3599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3600 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
3601 if test $ac_test_CFLAGS; then
3602 CFLAGS=$ac_save_CFLAGS
3603 elif test $ac_cv_prog_cc_g = yes; then
3604 if test "$GCC" = yes; then
3605 CFLAGS="-g -O2"
3606 else
3607 CFLAGS="-g"
3608 fi
3609 else
3610 if test "$GCC" = yes; then
3611 CFLAGS="-O2"
3612 else
3613 CFLAGS=
3614 fi
3615 fi
3616 ac_prog_cc_stdc=no
3617 if test x$ac_prog_cc_stdc = xno
3618 then :
3619 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
3620 printf %s "checking for $CC option to enable C23 features... " >&6; }
3621 if test ${ac_cv_prog_cc_c23+y}
3622 then :
3623 printf %s "(cached) " >&6
3624 else case e in #(
3625 e) ac_cv_prog_cc_c23=no
3626 ac_save_CC=$CC
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 $ac_c_conftest_c23_program
3630 _ACEOF
3631 for ac_arg in '' -std=gnu23
3632 do
3633 CC="$ac_save_CC $ac_arg"
3634 if ac_fn_c_try_compile "$LINENO"
3635 then :
3636 ac_cv_prog_cc_c23=$ac_arg
3637 fi
3638 rm -f core conftest.err conftest.$ac_objext conftest.beam
3639 test "x$ac_cv_prog_cc_c23" != "xno" && break
3640 done
3641 rm -f conftest.$ac_ext
3642 CC=$ac_save_CC ;;
3643 esac
3644 fi
3645
3646 if test "x$ac_cv_prog_cc_c23" = xno
3647 then :
3648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3649 printf '%s\n' "unsupported" >&6; }
3650 else case e in #(
3651 e) if test "x$ac_cv_prog_cc_c23" = x
3652 then :
3653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 printf '%s\n' "none needed" >&6; }
3655 else case e in #(
3656 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
3657 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
3658 CC="$CC $ac_cv_prog_cc_c23" ;;
3659 esac
3660 fi
3661 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
3662 ac_prog_cc_stdc=c23 ;;
3663 esac
3664 fi
3665 fi
3666 if test x$ac_prog_cc_stdc = xno
3667 then :
3668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3669 printf %s "checking for $CC option to enable C11 features... " >&6; }
3670 if test ${ac_cv_prog_cc_c11+y}
3671 then :
3672 printf %s "(cached) " >&6
3673 else case e in #(
3674 e) ac_cv_prog_cc_c11=no
3675 ac_save_CC=$CC
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 $ac_c_conftest_c11_program
3679 _ACEOF
3680 for ac_arg in '' -std=gnu11 -std:c11
3681 do
3682 CC="$ac_save_CC $ac_arg"
3683 if ac_fn_c_try_compile "$LINENO"
3684 then :
3685 ac_cv_prog_cc_c11=$ac_arg
3686 fi
3687 rm -f core conftest.err conftest.$ac_objext conftest.beam
3688 test "x$ac_cv_prog_cc_c11" != "xno" && break
3689 done
3690 rm -f conftest.$ac_ext
3691 CC=$ac_save_CC ;;
3692 esac
3693 fi
3694
3695 if test "x$ac_cv_prog_cc_c11" = xno
3696 then :
3697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698 printf '%s\n' "unsupported" >&6; }
3699 else case e in #(
3700 e) if test "x$ac_cv_prog_cc_c11" = x
3701 then :
3702 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3703 printf '%s\n' "none needed" >&6; }
3704 else case e in #(
3705 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3706 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
3707 CC="$CC $ac_cv_prog_cc_c11" ;;
3708 esac
3709 fi
3710 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3711 ac_prog_cc_stdc=c11 ;;
3712 esac
3713 fi
3714 fi
3715 if test x$ac_prog_cc_stdc = xno
3716 then :
3717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3718 printf %s "checking for $CC option to enable C99 features... " >&6; }
3719 if test ${ac_cv_prog_cc_c99+y}
3720 then :
3721 printf %s "(cached) " >&6
3722 else case e in #(
3723 e) ac_cv_prog_cc_c99=no
3724 ac_save_CC=$CC
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 $ac_c_conftest_c99_program
3728 _ACEOF
3729 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3730 do
3731 CC="$ac_save_CC $ac_arg"
3732 if ac_fn_c_try_compile "$LINENO"
3733 then :
3734 ac_cv_prog_cc_c99=$ac_arg
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.beam
3737 test "x$ac_cv_prog_cc_c99" != "xno" && break
3738 done
3739 rm -f conftest.$ac_ext
3740 CC=$ac_save_CC ;;
3741 esac
3742 fi
3743
3744 if test "x$ac_cv_prog_cc_c99" = xno
3745 then :
3746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3747 printf '%s\n' "unsupported" >&6; }
3748 else case e in #(
3749 e) if test "x$ac_cv_prog_cc_c99" = x
3750 then :
3751 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3752 printf '%s\n' "none needed" >&6; }
3753 else case e in #(
3754 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3755 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
3756 CC="$CC $ac_cv_prog_cc_c99" ;;
3757 esac
3758 fi
3759 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3760 ac_prog_cc_stdc=c99 ;;
3761 esac
3762 fi
3763 fi
3764 if test x$ac_prog_cc_stdc = xno
3765 then :
3766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3767 printf %s "checking for $CC option to enable C89 features... " >&6; }
3768 if test ${ac_cv_prog_cc_c89+y}
3769 then :
3770 printf %s "(cached) " >&6
3771 else case e in #(
3772 e) ac_cv_prog_cc_c89=no
3773 ac_save_CC=$CC
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776 $ac_c_conftest_c89_program
3777 _ACEOF
3778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3779 do
3780 CC="$ac_save_CC $ac_arg"
3781 if ac_fn_c_try_compile "$LINENO"
3782 then :
3783 ac_cv_prog_cc_c89=$ac_arg
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.beam
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
3787 done
3788 rm -f conftest.$ac_ext
3789 CC=$ac_save_CC ;;
3790 esac
3791 fi
3792
3793 if test "x$ac_cv_prog_cc_c89" = xno
3794 then :
3795 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3796 printf '%s\n' "unsupported" >&6; }
3797 else case e in #(
3798 e) if test "x$ac_cv_prog_cc_c89" = x
3799 then :
3800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3801 printf '%s\n' "none needed" >&6; }
3802 else case e in #(
3803 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3804 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
3805 CC="$CC $ac_cv_prog_cc_c89" ;;
3806 esac
3807 fi
3808 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3809 ac_prog_cc_stdc=c89 ;;
3810 esac
3811 fi
3812 fi
3813
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3827 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3828 if test ${am_cv_prog_cc_c_o+y}
3829 then :
3830 printf %s "(cached) " >&6
3831 else case e in #(
3832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834
3835 int
3836 main (void)
3837 {
3838
3839 ;
3840 return 0;
3841 }
3842 _ACEOF
3843 # Make sure it works both with $CC and with simple cc.
3844 # Following AC_PROG_CC_C_O, we do the test twice because some
3845 # compilers refuse to overwrite an existing .o file with -o,
3846 # though they will create one.
3847 am_cv_prog_cc_c_o=yes
3848 for am_i in 1 2; do
3849 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3850 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } \
3854 && test -f conftest2.$ac_objext; then
3855 : OK
3856 else
3857 am_cv_prog_cc_c_o=no
3858 break
3859 fi
3860 done
3861 # aligned with autoconf, so not including core; see bug#72225.
3862 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3863 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3864 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3865 unset am_i ;;
3866 esac
3867 fi
3868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3869 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
3870 if test "$am_cv_prog_cc_c_o" != yes; then
3871 # Losing compiler, so override with the script.
3872 # FIXME: It is wrong to rewrite CC.
3873 # But if we don't then we get into trouble of one sort or another.
3874 # A longer-term fix would be to have automake use am__CC in this case,
3875 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3876 CC="$am_aux_dir/compile $CC"
3877 fi
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883
3884
3885
3886 ac_header= ac_cache=
3887 for ac_item in $ac_header_c_list
3888 do
3889 if test $ac_cache; then
3890 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3891 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3892 printf '%s\n' "#define $ac_item 1" >> confdefs.h
3893 fi
3894 ac_header= ac_cache=
3895 elif test $ac_header; then
3896 ac_cache=$ac_item
3897 else
3898 ac_header=$ac_item
3899 fi
3900 done
3901
3902
3903
3904
3905
3906
3907
3908
3909 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3910 then :
3911
3912 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
3913
3914 fi
3915
3916
3917
3918
3919
3920
3921 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3922 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3923 if test ${ac_cv_safe_to_define___extensions__+y}
3924 then :
3925 printf %s "(cached) " >&6
3926 else case e in #(
3927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929
3930 # define __EXTENSIONS__ 1
3931 $ac_includes_default
3932 int
3933 main (void)
3934 {
3935
3936 ;
3937 return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"
3941 then :
3942 ac_cv_safe_to_define___extensions__=yes
3943 else case e in #(
3944 e) ac_cv_safe_to_define___extensions__=no ;;
3945 esac
3946 fi
3947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3948 esac
3949 fi
3950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3951 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
3952
3953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3954 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3955 if test ${ac_cv_should_define__xopen_source+y}
3956 then :
3957 printf %s "(cached) " >&6
3958 else case e in #(
3959 e) ac_cv_should_define__xopen_source=no
3960 if test $ac_cv_header_wchar_h = yes
3961 then :
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 #include <wchar.h>
3966 mbstate_t x;
3967 int
3968 main (void)
3969 {
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"
3976 then :
3977
3978 else case e in #(
3979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3981
3982 #define _XOPEN_SOURCE 500
3983 #include <wchar.h>
3984 mbstate_t x;
3985 int
3986 main (void)
3987 {
3988
3989 ;
3990 return 0;
3991 }
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"
3994 then :
3995 ac_cv_should_define__xopen_source=yes
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3998 esac
3999 fi
4000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4001 fi ;;
4002 esac
4003 fi
4004 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4005 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
4006
4007 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
4008
4009 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
4010
4011 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4012
4013 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
4014
4015 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4016
4017 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
4018
4019 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
4020
4021 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4022
4023 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4024
4025 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4026
4027 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4028
4029 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4030
4031 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4032
4033 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4034
4035 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4036
4037 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4038
4039 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
4040
4041 if test $ac_cv_header_minix_config_h = yes
4042 then :
4043 MINIX=yes
4044 printf '%s\n' "#define _MINIX 1" >>confdefs.h
4045
4046 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
4047
4048 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
4049
4050 else case e in #(
4051 e) MINIX= ;;
4052 esac
4053 fi
4054 if test $ac_cv_safe_to_define___extensions__ = yes
4055 then :
4056 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
4057
4058 fi
4059 if test $ac_cv_should_define__xopen_source = yes
4060 then :
4061 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
4062
4063 fi
4064
4065
4066 # Initialize Automake
4067 am__api_version='1.18'
4068
4069
4070 # Find a good install program. We prefer a C program (faster),
4071 # so one script is as good as another. But avoid the broken or
4072 # incompatible versions:
4073 # SysV /etc/install, /usr/sbin/install
4074 # SunOS /usr/etc/install
4075 # IRIX /sbin/install
4076 # AIX /bin/install
4077 # AmigaOS /C/install, which installs bootblocks on floppy discs
4078 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4079 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4080 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4081 # OS/2's system install, which has a completely different semantic
4082 # ./install, which can be erroneously created by make from ./install.sh.
4083 # Reject install programs that cannot install multiple files.
4084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4085 printf %s "checking for a BSD-compatible install... " >&6; }
4086 if test -z "$INSTALL"; then
4087 if test ${ac_cv_path_install+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else case e in #(
4091 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094 IFS=$as_save_IFS
4095 case $as_dir in #(((
4096 '') as_dir=./ ;;
4097 */) ;;
4098 *) as_dir=$as_dir/ ;;
4099 esac
4100 # Account for fact that we put trailing slashes in our PATH walk.
4101 case $as_dir in #((
4102 ./ | /[cC]/* | \
4103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4104 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4105 /usr/ucb/* ) ;;
4106 *)
4107 # OSF/1 and SCO ODT 3.0 have their own names for install.
4108 # Don't use installbsd from OSF/1 since it installs stuff as root
4109 # by default.
4110 for ac_prog in ginstall scoinst install; do
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4113 if test $ac_prog = install &&
4114 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4115 # AIX install. It has an incompatible calling convention.
4116 :
4117 elif test $ac_prog = install &&
4118 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4119 # program-specific install script used by HP pwplus--don't use.
4120 :
4121 else
4122 rm -rf conftest.one conftest.two conftest.dir
4123 echo one > conftest.one
4124 echo two > conftest.two
4125 mkdir conftest.dir
4126 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4127 test -s conftest.one && test -s conftest.two &&
4128 test -s conftest.dir/conftest.one &&
4129 test -s conftest.dir/conftest.two
4130 then
4131 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4132 break 3
4133 fi
4134 fi
4135 fi
4136 done
4137 done
4138 ;;
4139 esac
4140
4141 done
4142 IFS=$as_save_IFS
4143
4144 rm -rf conftest.one conftest.two conftest.dir
4145 ;;
4146 esac
4147 fi
4148 if test ${ac_cv_path_install+y}; then
4149 INSTALL=$ac_cv_path_install
4150 else
4151 # As a last resort, use the slow shell script. Don't cache a
4152 # value for INSTALL within a source directory, because that will
4153 # break other packages using the cache if that directory is
4154 # removed, or if the value is a relative name.
4155 INSTALL=$ac_install_sh
4156 fi
4157 fi
4158 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4159 printf '%s\n' "$INSTALL" >&6; }
4160
4161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4162 # It thinks the first close brace ends the variable substitution.
4163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4164
4165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4166
4167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4168
4169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4170 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4171 if test ${am_cv_sleep_fractional_seconds+y}
4172 then :
4173 printf %s "(cached) " >&6
4174 else case e in #(
4175 e) if sleep 0.001 2>/dev/null
4176 then :
4177 am_cv_sleep_fractional_seconds=yes
4178 else case e in #(
4179 e) am_cv_sleep_fractional_seconds=no ;;
4180 esac
4181 fi
4182 ;;
4183 esac
4184 fi
4185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4186 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
4187
4188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4189 printf %s "checking filesystem timestamp resolution... " >&6; }
4190 if test ${am_cv_filesystem_timestamp_resolution+y}
4191 then :
4192 printf %s "(cached) " >&6
4193 else case e in #(
4194 e) # Default to the worst case.
4195 am_cv_filesystem_timestamp_resolution=2
4196
4197 # Only try to go finer than 1 sec if sleep can do it.
4198 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4199 # - 1 sec is not much of a win compared to 2 sec, and
4200 # - it takes 2 seconds to perform the test whether 1 sec works.
4201 #
4202 # Instead, just use the default 2s on platforms that have 1s resolution,
4203 # accept the extra 1s delay when using $sleep in the Automake tests, in
4204 # exchange for not incurring the 2s delay for running the test for all
4205 # packages.
4206 #
4207 am_try_resolutions=
4208 if test "$am_cv_sleep_fractional_seconds" = yes; then
4209 # Even a millisecond often causes a bunch of false positives,
4210 # so just try a hundredth of a second. The time saved between .001 and
4211 # .01 is not terribly consequential.
4212 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4213 fi
4214
4215 # In order to catch current-generation FAT out, we must *modify* files
4216 # that already exist; the *creation* timestamp is finer. Use names
4217 # that make ls -t sort them differently when they have equal
4218 # timestamps than when they have distinct timestamps, keeping
4219 # in mind that ls -t prints the *newest* file first.
4220 rm -f conftest.ts?
4221 : > conftest.ts1
4222 : > conftest.ts2
4223 : > conftest.ts3
4224
4225 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4226 # clobber the current shell's arguments. (Outer-level square brackets
4227 # are removed by m4; they're present so that m4 does not expand
4228 # <dollar><star>; be careful, easy to get confused.)
4229 if (
4230 set X `ls -t conftest.ts[12]` &&
4231 {
4232 test "$*" != "X conftest.ts1 conftest.ts2" ||
4233 test "$*" != "X conftest.ts2 conftest.ts1";
4234 }
4235 ); then :; else
4236 # If neither matched, then we have a broken ls. This can happen
4237 # if, for instance, CONFIG_SHELL is bash and it inherits a
4238 # broken ls alias from the environment. This has actually
4239 # happened. Such a system could not be considered "sane".
4240 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4241 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4242 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4243 as_fn_error $? "ls -t produces unexpected output.
4244 Make sure there is not a broken ls alias in your environment.
4245 See 'config.log' for more details" "$LINENO" 5; }
4246 fi
4247
4248 for am_try_res in $am_try_resolutions; do
4249 # Any one fine-grained sleep might happen to cross the boundary
4250 # between two values of a coarser actual resolution, but if we do
4251 # two fine-grained sleeps in a row, at least one of them will fall
4252 # entirely within a coarse interval.
4253 echo alpha > conftest.ts1
4254 sleep $am_try_res
4255 echo beta > conftest.ts2
4256 sleep $am_try_res
4257 echo gamma > conftest.ts3
4258
4259 # We assume that 'ls -t' will make use of high-resolution
4260 # timestamps if the operating system supports them at all.
4261 if (set X `ls -t conftest.ts?` &&
4262 test "$2" = conftest.ts3 &&
4263 test "$3" = conftest.ts2 &&
4264 test "$4" = conftest.ts1); then
4265 #
4266 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4267 # because we don't need to test make.
4268 make_ok=true
4269 if test $am_try_res != 1; then
4270 # But if we've succeeded so far with a subsecond resolution, we
4271 # have one more thing to check: make. It can happen that
4272 # everything else supports the subsecond mtimes, but make doesn't;
4273 # notably on macOS, which ships make 3.81 from 2006 (the last one
4274 # released under GPLv2). https://bugs.gnu.org/68808
4275 #
4276 # We test $MAKE if it is defined in the environment, else "make".
4277 # It might get overridden later, but our hope is that in practice
4278 # it does not matter: it is the system "make" which is (by far)
4279 # the most likely to be broken, whereas if the user overrides it,
4280 # probably they did so with a better, or at least not worse, make.
4281 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4282 #
4283 # Create a Makefile (real tab character here):
4284 rm -f conftest.mk
4285 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4286 echo ' touch conftest.ts2' >>conftest.mk
4287 #
4288 # Now, running
4289 # touch conftest.ts1; touch conftest.ts2; make
4290 # should touch ts1 because ts2 is newer. This could happen by luck,
4291 # but most often, it will fail if make's support is insufficient. So
4292 # test for several consecutive successes.
4293 #
4294 # (We reuse conftest.ts[12] because we still want to modify existing
4295 # files, not create new ones, per above.)
4296 n=0
4297 make=${MAKE-make}
4298 until test $n -eq 3; do
4299 echo one > conftest.ts1
4300 sleep $am_try_res
4301 echo two > conftest.ts2 # ts2 should now be newer than ts1
4302 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4303 make_ok=false
4304 break # out of $n loop
4305 fi
4306 n=`expr $n + 1`
4307 done
4308 fi
4309 #
4310 if $make_ok; then
4311 # Everything we know to check worked out, so call this resolution good.
4312 am_cv_filesystem_timestamp_resolution=$am_try_res
4313 break # out of $am_try_res loop
4314 fi
4315 # Otherwise, we'll go on to check the next resolution.
4316 fi
4317 done
4318 rm -f conftest.ts?
4319 # (end _am_filesystem_timestamp_resolution)
4320 ;;
4321 esac
4322 fi
4323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4324 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
4325
4326 # This check should not be cached, as it may vary across builds of
4327 # different projects.
4328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4329 printf %s "checking whether build environment is sane... " >&6; }
4330 # Reject unsafe characters in $srcdir or the absolute working directory
4331 # name. Accept space and tab only in the latter.
4332 am_lf='
4333 '
4334 case `pwd` in
4335 *[\\\"\#\$\&\'\`$am_lf]*)
4336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 printf '%s\n' "no" >&6; }
4338 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4339 esac
4340 case $srcdir in
4341 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 printf '%s\n' "no" >&6; }
4344 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4345 esac
4346
4347 # Do 'set' in a subshell so we don't clobber the current shell's
4348 # arguments. Must try -L first in case configure is actually a
4349 # symlink; some systems play weird games with the mod time of symlinks
4350 # (eg FreeBSD returns the mod time of the symlink's containing
4351 # directory).
4352 am_build_env_is_sane=no
4353 am_has_slept=no
4354 rm -f conftest.file
4355 for am_try in 1 2; do
4356 echo "timestamp, slept: $am_has_slept" > conftest.file
4357 if (
4358 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4359 if test "$*" = "X"; then
4360 # -L didn't work.
4361 set X `ls -t "$srcdir/configure" conftest.file`
4362 fi
4363 test "$2" = conftest.file
4364 ); then
4365 am_build_env_is_sane=yes
4366 break
4367 fi
4368 # Just in case.
4369 sleep "$am_cv_filesystem_timestamp_resolution"
4370 am_has_slept=yes
4371 done
4372
4373 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4374 printf '%s\n' "$am_build_env_is_sane" >&6; }
4375 if test "$am_build_env_is_sane" = no; then
4376 as_fn_error $? "newly created file is older than distributed files!
4377 Check your system clock" "$LINENO" 5
4378 fi
4379
4380 # If we didn't sleep, we still need to ensure time stamps of config.status and
4381 # generated files are strictly newer.
4382 am_sleep_pid=
4383 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4384 then :
4385
4386 else case e in #(
4387 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4388 am_sleep_pid=$!
4389 ;;
4390 esac
4391 fi
4392
4393 rm -f conftest.file
4394
4395 test "$program_prefix" != NONE &&
4396 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4397 # Use a double $ so make ignores it.
4398 test "$program_suffix" != NONE &&
4399 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4400 # Double any \ or $.
4401 # By default was 's,x,x', remove it if useless.
4402 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4403 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4404
4405
4406 if test x"${MISSING+set}" != xset; then
4407 MISSING="\${SHELL} '$am_aux_dir/missing'"
4408 fi
4409 # Use eval to expand $SHELL
4410 if eval "$MISSING --is-lightweight"; then
4411 am_missing_run="$MISSING "
4412 else
4413 am_missing_run=
4414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4415 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4416 fi
4417
4418 if test x"${install_sh+set}" != xset; then
4419 case $am_aux_dir in
4420 *\ * | *\ *)
4421 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4422 *)
4423 install_sh="\${SHELL} $am_aux_dir/install-sh"
4424 esac
4425 fi
4426
4427 # Installed binaries are usually stripped using 'strip' when the user
4428 # run "make install-strip". However 'strip' might not be the right
4429 # tool to use in cross-compilation environments, therefore Automake
4430 # will honor the 'STRIP' environment variable to overrule this program.
4431 if test "$cross_compiling" != no; then
4432 if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4434 set dummy ${ac_tool_prefix}strip; ac_word=$2
4435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 printf %s "checking for $ac_word... " >&6; }
4437 if test ${ac_cv_prog_STRIP+y}
4438 then :
4439 printf %s "(cached) " >&6
4440 else case e in #(
4441 e) if test -n "$STRIP"; then
4442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447 IFS=$as_save_IFS
4448 case $as_dir in #(((
4449 '') as_dir=./ ;;
4450 */) ;;
4451 *) as_dir=$as_dir/ ;;
4452 esac
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4456 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi ;;
4464 esac
4465 fi
4466 STRIP=$ac_cv_prog_STRIP
4467 if test -n "$STRIP"; then
4468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4469 printf '%s\n' "$STRIP" >&6; }
4470 else
4471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 printf '%s\n' "no" >&6; }
4473 fi
4474
4475
4476 fi
4477 if test -z "$ac_cv_prog_STRIP"; then
4478 ac_ct_STRIP=$STRIP
4479 # Extract the first word of "strip", so it can be a program name with args.
4480 set dummy strip; ac_word=$2
4481 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 printf %s "checking for $ac_word... " >&6; }
4483 if test ${ac_cv_prog_ac_ct_STRIP+y}
4484 then :
4485 printf %s "(cached) " >&6
4486 else case e in #(
4487 e) if test -n "$ac_ct_STRIP"; then
4488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493 IFS=$as_save_IFS
4494 case $as_dir in #(((
4495 '') as_dir=./ ;;
4496 */) ;;
4497 *) as_dir=$as_dir/ ;;
4498 esac
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_STRIP="strip"
4502 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 fi ;;
4510 esac
4511 fi
4512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4513 if test -n "$ac_ct_STRIP"; then
4514 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4515 printf '%s\n' "$ac_ct_STRIP" >&6; }
4516 else
4517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 printf '%s\n' "no" >&6; }
4519 fi
4520
4521 if test "x$ac_ct_STRIP" = x; then
4522 STRIP=":"
4523 else
4524 case $cross_compiling:$ac_tool_warned in
4525 yes:)
4526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528 ac_tool_warned=yes ;;
4529 esac
4530 STRIP=$ac_ct_STRIP
4531 fi
4532 else
4533 STRIP="$ac_cv_prog_STRIP"
4534 fi
4535
4536 fi
4537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4538
4539
4540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4541 printf %s "checking for a race-free mkdir -p... " >&6; }
4542 if test -z "$MKDIR_P"; then
4543 if test ${ac_cv_path_mkdir+y}
4544 then :
4545 printf %s "(cached) " >&6
4546 else case e in #(
4547 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4549 do
4550 IFS=$as_save_IFS
4551 case $as_dir in #(((
4552 '') as_dir=./ ;;
4553 */) ;;
4554 *) as_dir=$as_dir/ ;;
4555 esac
4556 for ac_prog in mkdir gmkdir; do
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4559 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4560 'mkdir ('*'coreutils) '* | \
4561 *'BusyBox '* | \
4562 'mkdir (fileutils) '4.1*)
4563 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4564 break 3;;
4565 esac
4566 done
4567 done
4568 done
4569 IFS=$as_save_IFS
4570 ;;
4571 esac
4572 fi
4573
4574 test -d ./--version && rmdir ./--version
4575 if test ${ac_cv_path_mkdir+y}; then
4576 MKDIR_P="$ac_cv_path_mkdir -p"
4577 else
4578 # As a last resort, use plain mkdir -p,
4579 # in the hope it doesn't have the bugs of ancient mkdir.
4580 MKDIR_P='mkdir -p'
4581 fi
4582 fi
4583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4584 printf '%s\n' "$MKDIR_P" >&6; }
4585
4586 for ac_prog in gawk mawk nawk awk 'busybox awk'
4587 do
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 printf %s "checking for $ac_word... " >&6; }
4592 if test ${ac_cv_prog_AWK+y}
4593 then :
4594 printf %s "(cached) " >&6
4595 else case e in #(
4596 e) if test -n "$AWK"; then
4597 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 case $as_dir in #(((
4604 '') as_dir=./ ;;
4605 */) ;;
4606 *) as_dir=$as_dir/ ;;
4607 esac
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_AWK="$ac_prog"
4611 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi ;;
4619 esac
4620 fi
4621 AWK=$ac_cv_prog_AWK
4622 if test -n "$AWK"; then
4623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4624 printf '%s\n' "$AWK" >&6; }
4625 else
4626 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 printf '%s\n' "no" >&6; }
4628 fi
4629
4630
4631 test -n "$AWK" && break
4632 done
4633
4634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4635 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4636 set x ${MAKE-make}
4637 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4638 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4639 then :
4640 printf %s "(cached) " >&6
4641 else case e in #(
4642 e) cat >conftest.make <<\_ACEOF
4643 SHELL = /bin/sh
4644 all:
4645 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
4646 _ACEOF
4647 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4649 *@@@%%%=?*=@@@%%%*)
4650 eval ac_cv_prog_make_${ac_make}_set=yes;;
4651 *)
4652 eval ac_cv_prog_make_${ac_make}_set=no;;
4653 esac
4654 rm -f conftest.make ;;
4655 esac
4656 fi
4657 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4659 printf '%s\n' "yes" >&6; }
4660 SET_MAKE=
4661 else
4662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 printf '%s\n' "no" >&6; }
4664 SET_MAKE="MAKE=${MAKE-make}"
4665 fi
4666
4667 rm -rf .tst 2>/dev/null
4668 mkdir .tst 2>/dev/null
4669 if test -d .tst; then
4670 am__leading_dot=.
4671 else
4672 am__leading_dot=_
4673 fi
4674 rmdir .tst 2>/dev/null
4675
4676 DEPDIR="${am__leading_dot}deps"
4677
4678 ac_config_commands="$ac_config_commands depfiles"
4679
4680 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4681 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4682 cat > confinc.mk << 'END'
4683 am__doit:
4684 @echo this is the am__doit target >confinc.out
4685 .PHONY: am__doit
4686 END
4687 am__include="#"
4688 am__quote=
4689 # BSD make does it like this.
4690 echo '.include "confinc.mk" # ignored' > confmf.BSD
4691 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4692 echo 'include confinc.mk # ignored' > confmf.GNU
4693 _am_result=no
4694 for s in GNU BSD; do
4695 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4696 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }
4700 case $?:`cat confinc.out 2>/dev/null` in #(
4701 '0:this is the am__doit target') :
4702 case $s in #(
4703 BSD) :
4704 am__include='.include' am__quote='"' ;; #(
4705 *) :
4706 am__include='include' am__quote='' ;;
4707 esac ;; #(
4708 *) :
4709 ;;
4710 esac
4711 if test "$am__include" != "#"; then
4712 _am_result="yes ($s style)"
4713 break
4714 fi
4715 done
4716 rm -f confinc.* confmf.*
4717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4718 printf '%s\n' "${_am_result}" >&6; }
4719
4720 # Check whether --enable-dependency-tracking was given.
4721 if test ${enable_dependency_tracking+y}
4722 then :
4723 enableval=$enable_dependency_tracking;
4724 fi
4725
4726 if test "x$enable_dependency_tracking" != xno; then
4727 am_depcomp="$ac_aux_dir/depcomp"
4728 AMDEPBACKSLASH='\'
4729 am__nodep='_no'
4730 fi
4731 if test "x$enable_dependency_tracking" != xno; then
4732 AMDEP_TRUE=
4733 AMDEP_FALSE='#'
4734 else
4735 AMDEP_TRUE='#'
4736 AMDEP_FALSE=
4737 fi
4738
4739
4740 AM_DEFAULT_VERBOSITY=1
4741 # Check whether --enable-silent-rules was given.
4742 if test ${enable_silent_rules+y}
4743 then :
4744 enableval=$enable_silent_rules;
4745 fi
4746
4747 am_make=${MAKE-make}
4748 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4749 printf %s "checking whether $am_make supports nested variables... " >&6; }
4750 if test ${am_cv_make_support_nested_variables+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else case e in #(
4754 e) if printf '%s\n' 'TRUE=$(BAR$(V))
4755 BAR0=false
4756 BAR1=true
4757 V=1
4758 am__doit:
4759 @$(TRUE)
4760 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4761 am_cv_make_support_nested_variables=yes
4762 else
4763 am_cv_make_support_nested_variables=no
4764 fi ;;
4765 esac
4766 fi
4767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4768 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
4769 AM_BACKSLASH='\'
4770
4771 am__rm_f_notfound=
4772 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4773 then :
4774
4775 else case e in #(
4776 e) am__rm_f_notfound='""' ;;
4777 esac
4778 fi
4779
4780
4781 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4782 printf %s "checking xargs -n works... " >&6; }
4783 if test ${am_cv_xargs_n_works+y}
4784 then :
4785 printf %s "(cached) " >&6
4786 else case e in #(
4787 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4788 3"
4789 then :
4790 am_cv_xargs_n_works=yes
4791 else case e in #(
4792 e) am_cv_xargs_n_works=no ;;
4793 esac
4794 fi ;;
4795 esac
4796 fi
4797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4798 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
4799 if test "$am_cv_xargs_n_works" = yes
4800 then :
4801 am__xargs_n='xargs -n'
4802 else case e in #(
4803 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4804 ;;
4805 esac
4806 fi
4807
4808 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4809 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4810 # is not polluted with repeated "-I."
4811 am__isrc=' -I$(srcdir)'
4812 # test to see if srcdir already configured
4813 if test -f $srcdir/config.status; then
4814 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4815 fi
4816 fi
4817
4818 # test whether we have cygpath
4819 if test -z "$CYGPATH_W"; then
4820 if (cygpath --version) >/dev/null 2>/dev/null; then
4821 CYGPATH_W='cygpath -w'
4822 else
4823 CYGPATH_W=echo
4824 fi
4825 fi
4826
4827
4828 # Define the identity of the package.
4829 PACKAGE='xset'
4830 VERSION='1.2.6'
4831
4832
4833 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4834
4835
4836 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
4837
4838 # Some tools Automake needs.
4839
4840 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4841
4842
4843 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4844
4845
4846 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4847
4848
4849 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4850
4851
4852 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4853
4854 # For better backward compatibility. To be removed once Automake 1.9.x
4855 # dies out for good. For more background, see:
4856 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4857 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4858 mkdir_p='$(MKDIR_P)'
4859
4860 # We need awk for the "check" target (and possibly the TAP driver). The
4861 # system "awk" is bad on some platforms.
4862 # Always define AMTAR for backward compatibility. Yes, it's still used
4863 # in the wild :-( We should find a proper way to deprecate it ...
4864 AMTAR='$${TAR-tar}'
4865
4866
4867 # We'll loop over all known methods to create a tar archive until one works.
4868 _am_tools='gnutar plaintar pax cpio none'
4869
4870 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4871 # There is notably a 21 bits limit for the UID and the GID. In fact,
4872 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4873 # and bug#13588).
4874 am_max_uid=2097151 # 2^21 - 1
4875 am_max_gid=$am_max_uid
4876 # The $UID and $GID variables are not portable, so we need to resort
4877 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4878 # below are definitely unexpected, so allow the users to see them
4879 # (that is, avoid stderr redirection).
4880 am_uid=`id -u || echo unknown`
4881 am_gid=`id -g || echo unknown`
4882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4883 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4884 if test x$am_uid = xunknown; then
4885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4886 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4887 elif test $am_uid -le $am_max_uid; then
4888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4889 printf '%s\n' "yes" >&6; }
4890 else
4891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 printf '%s\n' "no" >&6; }
4893 _am_tools=none
4894 fi
4895 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4896 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4897 if test x$gm_gid = xunknown; then
4898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4899 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4900 elif test $am_gid -le $am_max_gid; then
4901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902 printf '%s\n' "yes" >&6; }
4903 else
4904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 printf '%s\n' "no" >&6; }
4906 _am_tools=none
4907 fi
4908
4909 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4910 printf %s "checking how to create a ustar tar archive... " >&6; }
4911
4912 # Go ahead even if we have the value already cached. We do so because we
4913 # need to set the values for the 'am__tar' and 'am__untar' variables.
4914 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4915
4916 for _am_tool in $_am_tools; do
4917 case $_am_tool in
4918 gnutar)
4919 for _am_tar in tar gnutar gtar; do
4920 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4921 ($_am_tar --version) >&5 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } && break
4925 done
4926 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4927 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4928 am__untar="$_am_tar -xf -"
4929 ;;
4930 plaintar)
4931 # Must skip GNU tar: if it does not support --format= it doesn't create
4932 # ustar tarball either.
4933 (tar --version) >/dev/null 2>&1 && continue
4934 am__tar='tar chf - "$$tardir"'
4935 am__tar_='tar chf - "$tardir"'
4936 am__untar='tar xf -'
4937 ;;
4938 pax)
4939 am__tar='pax -L -x ustar -w "$$tardir"'
4940 am__tar_='pax -L -x ustar -w "$tardir"'
4941 am__untar='pax -r'
4942 ;;
4943 cpio)
4944 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4945 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4946 am__untar='cpio -i -H ustar -d'
4947 ;;
4948 none)
4949 am__tar=false
4950 am__tar_=false
4951 am__untar=false
4952 ;;
4953 esac
4954
4955 # If the value was cached, stop now. We just wanted to have am__tar
4956 # and am__untar set.
4957 test -n "${am_cv_prog_tar_ustar}" && break
4958
4959 # tar/untar a dummy directory, and stop if the command works.
4960 rm -rf conftest.dir
4961 mkdir conftest.dir
4962 echo GrepMe > conftest.dir/file
4963 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4964 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }
4968 rm -rf conftest.dir
4969 if test -s conftest.tar; then
4970 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4971 ($am__untar <conftest.tar) >&5 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }
4975 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4976 (cat conftest.dir/file) >&5 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }
4980 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4981 fi
4982 done
4983 rm -rf conftest.dir
4984
4985 if test ${am_cv_prog_tar_ustar+y}
4986 then :
4987 printf %s "(cached) " >&6
4988 else case e in #(
4989 e) am_cv_prog_tar_ustar=$_am_tool ;;
4990 esac
4991 fi
4992
4993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4994 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
4995
4996
4997
4998
4999
5000 depcc="$CC" am_compiler_list=
5001
5002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5003 printf %s "checking dependency style of $depcc... " >&6; }
5004 if test ${am_cv_CC_dependencies_compiler_type+y}
5005 then :
5006 printf %s "(cached) " >&6
5007 else case e in #(
5008 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5009 # We make a subdir and do the tests there. Otherwise we can end up
5010 # making bogus files that we don't know about and never remove. For
5011 # instance it was reported that on HP-UX the gcc test will end up
5012 # making a dummy file named 'D' -- because '-MD' means "put the output
5013 # in D".
5014 rm -rf conftest.dir
5015 mkdir conftest.dir
5016 # Copy depcomp to subdir because otherwise we won't find it if we're
5017 # using a relative directory.
5018 cp "$am_depcomp" conftest.dir
5019 cd conftest.dir
5020 # We will build objects and dependencies in a subdirectory because
5021 # it helps to detect inapplicable dependency modes. For instance
5022 # both Tru64's cc and ICC support -MD to output dependencies as a
5023 # side effect of compilation, but ICC will put the dependencies in
5024 # the current directory while Tru64 will put them in the object
5025 # directory.
5026 mkdir sub
5027
5028 am_cv_CC_dependencies_compiler_type=none
5029 if test "$am_compiler_list" = ""; then
5030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5031 fi
5032 am__universal=false
5033 case " $depcc " in #(
5034 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5035 esac
5036
5037 for depmode in $am_compiler_list; do
5038 # Setup a source with many dependencies, because some compilers
5039 # like to wrap large dependency lists on column 80 (with \), and
5040 # we should not choose a depcomp mode which is confused by this.
5041 #
5042 # We need to recreate these files for each test, as the compiler may
5043 # overwrite some of them when testing with obscure command lines.
5044 # This happens at least with the AIX C compiler.
5045 : > sub/conftest.c
5046 for i in 1 2 3 4 5 6; do
5047 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5048 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5049 # Solaris 10 /bin/sh.
5050 echo '/* dummy */' > sub/conftst$i.h
5051 done
5052 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5053
5054 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5055 # mode. It turns out that the SunPro C++ compiler does not properly
5056 # handle '-M -o', and we need to detect this. Also, some Intel
5057 # versions had trouble with output in subdirs.
5058 am__obj=sub/conftest.${OBJEXT-o}
5059 am__minus_obj="-o $am__obj"
5060 case $depmode in
5061 gcc)
5062 # This depmode causes a compiler race in universal mode.
5063 test "$am__universal" = false || continue
5064 ;;
5065 nosideeffect)
5066 # After this tag, mechanisms are not by side-effect, so they'll
5067 # only be used when explicitly requested.
5068 if test "x$enable_dependency_tracking" = xyes; then
5069 continue
5070 else
5071 break
5072 fi
5073 ;;
5074 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5075 # This compiler won't grok '-c -o', but also, the minuso test has
5076 # not run yet. These depmodes are late enough in the game, and
5077 # so weak that their functioning should not be impacted.
5078 am__obj=conftest.${OBJEXT-o}
5079 am__minus_obj=
5080 ;;
5081 none) break ;;
5082 esac
5083 if depmode=$depmode \
5084 source=sub/conftest.c object=$am__obj \
5085 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5086 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5087 >/dev/null 2>conftest.err &&
5088 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5089 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5090 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5091 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5092 # icc doesn't choke on unknown options, it will just issue warnings
5093 # or remarks (even with -Werror). So we grep stderr for any message
5094 # that says an option was ignored or not supported.
5095 # When given -MP, icc 7.0 and 7.1 complain thus:
5096 # icc: Command line warning: ignoring option '-M'; no argument required
5097 # The diagnosis changed in icc 8.0:
5098 # icc: Command line remark: option '-MP' not supported
5099 if (grep 'ignoring option' conftest.err ||
5100 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5101 am_cv_CC_dependencies_compiler_type=$depmode
5102 break
5103 fi
5104 fi
5105 done
5106
5107 cd ..
5108 rm -rf conftest.dir
5109 else
5110 am_cv_CC_dependencies_compiler_type=none
5111 fi
5112 ;;
5113 esac
5114 fi
5115 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5116 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5117 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5118
5119 if
5120 test "x$enable_dependency_tracking" != xno \
5121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5122 am__fastdepCC_TRUE=
5123 am__fastdepCC_FALSE='#'
5124 else
5125 am__fastdepCC_TRUE='#'
5126 am__fastdepCC_FALSE=
5127 fi
5128
5129
5130 # Variables for tags utilities; see am/tags.am
5131 if test -z "$CTAGS"; then
5132 CTAGS=ctags
5133 fi
5134
5135 if test -z "$ETAGS"; then
5136 ETAGS=etags
5137 fi
5138
5139 if test -z "$CSCOPE"; then
5140 CSCOPE=cscope
5141 fi
5142
5143
5144
5145
5146
5147
5148
5149
5150 # Require xorg-macros: XORG_MANPAGE_SECTIONS
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
5163 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
5164 if test ${ac_cv_c_undeclared_builtin_options+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else case e in #(
5168 e) ac_save_CFLAGS=$CFLAGS
5169 ac_cv_c_undeclared_builtin_options='cannot detect'
5170 for ac_arg in '' -fno-builtin; do
5171 CFLAGS="$ac_save_CFLAGS $ac_arg"
5172 # This test program should *not* compile successfully.
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175
5176 int
5177 main (void)
5178 {
5179 (void) strchr;
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"
5185 then :
5186
5187 else case e in #(
5188 e) # This test program should compile successfully.
5189 # No library function is consistently available on
5190 # freestanding implementations, so test against a dummy
5191 # declaration. Include always-available headers on the
5192 # off chance that they somehow elicit warnings.
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 #include <float.h>
5196 #include <limits.h>
5197 #include <stdarg.h>
5198 #include <stddef.h>
5199 extern void ac_decl (int, char *);
5200
5201 int
5202 main (void)
5203 {
5204 (void) ac_decl (0, (char *) 0);
5205 (void) ac_decl;
5206
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_compile "$LINENO"
5212 then :
5213 if test x"$ac_arg" = x
5214 then :
5215 ac_cv_c_undeclared_builtin_options='none needed'
5216 else case e in #(
5217 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5218 esac
5219 fi
5220 break
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5223 esac
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226 done
5227 CFLAGS=$ac_save_CFLAGS
5228 ;;
5229 esac
5230 fi
5231 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5232 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
5233 case $ac_cv_c_undeclared_builtin_options in #(
5234 'cannot detect') :
5235 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5236 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5237 as_fn_error $? "cannot make $CC report undeclared builtins
5238 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5239 'none needed') :
5240 ac_c_undeclared_builtin_options='' ;; #(
5241 *) :
5242 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5243 esac
5244
5245 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
5246 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
5247 if test ${ac_cv_c_future_darwin_options+y}
5248 then :
5249 printf %s "(cached) " >&6
5250 else case e in #(
5251 e) ac_compile_saved="$ac_compile"
5252 ac_compile="$ac_compile -Werror=unguarded-availability-new"
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #if ! (defined __APPLE__ && defined __MACH__)
5256 #error "-Werror=unguarded-availability-new not needed here"
5257 #endif
5258
5259 int
5260 main (void)
5261 {
5262
5263 ;
5264 return 0;
5265 }
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"
5268 then :
5269 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
5270 else case e in #(
5271 e) ac_cv_c_future_darwin_options='none needed' ;;
5272 esac
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5275 ac_compile="$ac_compile_saved"
5276 ;;
5277 esac
5278 fi
5279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
5280 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
5281 case $ac_cv_c_future_darwin_options in #(
5282 'none needed') :
5283 ac_c_future_darwin_options='' ;; #(
5284 *) :
5285 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
5286 esac
5287
5288
5289
5290
5291
5292 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5293 if test "x$ac_cv_have_decl___clang__" = xyes
5294 then :
5295 CLANGCC="yes"
5296 else case e in #(
5297 e) CLANGCC="no" ;;
5298 esac
5299 fi
5300 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5301 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5302 then :
5303 INTELCC="yes"
5304 else case e in #(
5305 e) INTELCC="no" ;;
5306 esac
5307 fi
5308 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5309 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5310 then :
5311 SUNCC="yes"
5312 else case e in #(
5313 e) SUNCC="no" ;;
5314 esac
5315 fi
5316
5317
5318
5319
5320
5321
5322
5323
5324 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5325 if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5327 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 printf %s "checking for $ac_word... " >&6; }
5330 if test ${ac_cv_path_PKG_CONFIG+y}
5331 then :
5332 printf %s "(cached) " >&6
5333 else case e in #(
5334 e) case $PKG_CONFIG in
5335 [\\/]* | ?:[\\/]*)
5336 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5337 ;;
5338 *)
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342 IFS=$as_save_IFS
5343 case $as_dir in #(((
5344 '') as_dir=./ ;;
5345 */) ;;
5346 *) as_dir=$as_dir/ ;;
5347 esac
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5350 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5351 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358 ;;
5359 esac ;;
5360 esac
5361 fi
5362 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5363 if test -n "$PKG_CONFIG"; then
5364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5365 printf '%s\n' "$PKG_CONFIG" >&6; }
5366 else
5367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 printf '%s\n' "no" >&6; }
5369 fi
5370
5371
5372 fi
5373 if test -z "$ac_cv_path_PKG_CONFIG"; then
5374 ac_pt_PKG_CONFIG=$PKG_CONFIG
5375 # Extract the first word of "pkg-config", so it can be a program name with args.
5376 set dummy pkg-config; ac_word=$2
5377 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 printf %s "checking for $ac_word... " >&6; }
5379 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5380 then :
5381 printf %s "(cached) " >&6
5382 else case e in #(
5383 e) case $ac_pt_PKG_CONFIG in
5384 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5386 ;;
5387 *)
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 case $as_dir in #(((
5393 '') as_dir=./ ;;
5394 */) ;;
5395 *) as_dir=$as_dir/ ;;
5396 esac
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5399 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5400 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5401 break 2
5402 fi
5403 done
5404 done
5405 IFS=$as_save_IFS
5406
5407 ;;
5408 esac ;;
5409 esac
5410 fi
5411 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5412 if test -n "$ac_pt_PKG_CONFIG"; then
5413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5414 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5415 else
5416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 printf '%s\n' "no" >&6; }
5418 fi
5419
5420 if test "x$ac_pt_PKG_CONFIG" = x; then
5421 PKG_CONFIG=""
5422 else
5423 case $cross_compiling:$ac_tool_warned in
5424 yes:)
5425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5428 esac
5429 PKG_CONFIG=$ac_pt_PKG_CONFIG
5430 fi
5431 else
5432 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5433 fi
5434
5435 fi
5436 if test -n "$PKG_CONFIG"; then
5437 _pkg_min_version=0.9.0
5438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5439 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5440 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5441 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 printf '%s\n' "yes" >&6; }
5443 else
5444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 printf '%s\n' "no" >&6; }
5446 PKG_CONFIG=""
5447 fi
5448 fi
5449
5450
5451 # Make sure we can run config.sub.
5452 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5453 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5454
5455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5456 printf %s "checking build system type... " >&6; }
5457 if test ${ac_cv_build+y}
5458 then :
5459 printf %s "(cached) " >&6
5460 else case e in #(
5461 e) ac_build_alias=$build_alias
5462 test "x$ac_build_alias" = x &&
5463 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5464 test "x$ac_build_alias" = x &&
5465 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5466 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5467 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5468 ;;
5469 esac
5470 fi
5471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5472 printf '%s\n' "$ac_cv_build" >&6; }
5473 case $ac_cv_build in
5474 *-*-*) ;;
5475 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5476 esac
5477 build=$ac_cv_build
5478 ac_save_IFS=$IFS; IFS='-'
5479 set x $ac_cv_build
5480 shift
5481 build_cpu=$1
5482 build_vendor=$2
5483 shift; shift
5484 # Remember, the first character of IFS is used to create $*,
5485 # except with old shells:
5486 build_os=$*
5487 IFS=$ac_save_IFS
5488 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5489
5490
5491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5492 printf %s "checking host system type... " >&6; }
5493 if test ${ac_cv_host+y}
5494 then :
5495 printf %s "(cached) " >&6
5496 else case e in #(
5497 e) if test "x$host_alias" = x; then
5498 ac_cv_host=$ac_cv_build
5499 else
5500 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5501 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5502 fi
5503 ;;
5504 esac
5505 fi
5506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5507 printf '%s\n' "$ac_cv_host" >&6; }
5508 case $ac_cv_host in
5509 *-*-*) ;;
5510 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5511 esac
5512 host=$ac_cv_host
5513 ac_save_IFS=$IFS; IFS='-'
5514 set x $ac_cv_host
5515 shift
5516 host_cpu=$1
5517 host_vendor=$2
5518 shift; shift
5519 # Remember, the first character of IFS is used to create $*,
5520 # except with old shells:
5521 host_os=$*
5522 IFS=$ac_save_IFS
5523 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5524
5525
5526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5527 printf %s "checking for a sed that does not truncate output... " >&6; }
5528 if test ${ac_cv_path_SED+y}
5529 then :
5530 printf %s "(cached) " >&6
5531 else case e in #(
5532 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5533 for ac_i in 1 2 3 4 5 6 7; do
5534 ac_script="$ac_script$as_nl$ac_script"
5535 done
5536 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5537 { ac_script=; unset ac_script;}
5538 if test -z "$SED"; then
5539 ac_path_SED_found=false
5540 # Loop through the user's path and test for each of PROGNAME-LIST
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 case $as_dir in #(((
5546 '') as_dir=./ ;;
5547 */) ;;
5548 *) as_dir=$as_dir/ ;;
5549 esac
5550 for ac_prog in sed gsed
5551 do
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5554 as_fn_executable_p "$ac_path_SED" || continue
5555 # Check for GNU ac_path_SED and select it if it is found.
5556 # Check for GNU $ac_path_SED
5557 case `"$ac_path_SED" --version 2>&1` in #(
5558 *GNU*)
5559 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5560 #(
5561 *)
5562 ac_count=0
5563 printf %s 0123456789 >"conftest.in"
5564 while :
5565 do
5566 cat "conftest.in" "conftest.in" >"conftest.tmp"
5567 mv "conftest.tmp" "conftest.in"
5568 cp "conftest.in" "conftest.nl"
5569 printf '%s\n' '' >> "conftest.nl"
5570 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572 as_fn_arith $ac_count + 1 && ac_count=$as_val
5573 if test $ac_count -gt ${ac_path_SED_max-0}; then
5574 # Best one so far, save it but keep looking for a better one
5575 ac_cv_path_SED="$ac_path_SED"
5576 ac_path_SED_max=$ac_count
5577 fi
5578 # 10*(2^10) chars as input seems more than enough
5579 test $ac_count -gt 10 && break
5580 done
5581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5582 esac
5583
5584 $ac_path_SED_found && break 3
5585 done
5586 done
5587 done
5588 IFS=$as_save_IFS
5589 if test -z "$ac_cv_path_SED"; then
5590 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5591 fi
5592 else
5593 ac_cv_path_SED=$SED
5594 fi
5595 ;;
5596 esac
5597 fi
5598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5599 printf '%s\n' "$ac_cv_path_SED" >&6; }
5600 SED="$ac_cv_path_SED"
5601 rm -f conftest.sed
5602
5603
5604
5605
5606
5607
5608 # Check whether --enable-selective-werror was given.
5609 if test ${enable_selective_werror+y}
5610 then :
5611 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5612 else case e in #(
5613 e) SELECTIVE_WERROR=yes ;;
5614 esac
5615 fi
5616
5617
5618
5619
5620
5621 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5622 if test "x$SUNCC" = "xyes"; then
5623 BASE_CFLAGS="-v"
5624 else
5625 BASE_CFLAGS=""
5626 fi
5627
5628 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642 xorg_testset_save_CFLAGS="$CFLAGS"
5643
5644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5647 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5648 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"
5657 then :
5658 xorg_cv_cc_flag_unknown_warning_option=yes
5659 else case e in #(
5660 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5661 esac
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5664 esac
5665 fi
5666 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5667 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5669 CFLAGS="$xorg_testset_save_CFLAGS"
5670 fi
5671
5672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5675 fi
5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5678 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5679 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5680 then :
5681 printf %s "(cached) " >&6
5682 else case e in #(
5683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 int i;
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"
5688 then :
5689 xorg_cv_cc_flag_unused_command_line_argument=yes
5690 else case e in #(
5691 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5692 esac
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5695 esac
5696 fi
5697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5698 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5701 fi
5702
5703 found="no"
5704
5705 if test $found = "no" ; then
5706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5708 fi
5709
5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712 fi
5713
5714 CFLAGS="$CFLAGS -Wall"
5715
5716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5717 printf %s "checking if $CC supports -Wall... " >&6; }
5718 cacheid=xorg_cv_cc_flag__Wall
5719 if eval test \${$cacheid+y}
5720 then :
5721 printf %s "(cached) " >&6
5722 else case e in #(
5723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 int i;
5726 int
5727 main (void)
5728 {
5729
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_link "$LINENO"
5735 then :
5736 eval $cacheid=yes
5737 else case e in #(
5738 e) eval $cacheid=no ;;
5739 esac
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5742 conftest$ac_exeext conftest.$ac_ext ;;
5743 esac
5744 fi
5745
5746
5747 CFLAGS="$xorg_testset_save_CFLAGS"
5748
5749 eval supported=\$$cacheid
5750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5751 printf '%s\n' "$supported" >&6; }
5752 if test "$supported" = "yes" ; then
5753 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5754 found="yes"
5755 fi
5756 fi
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 xorg_testset_save_CFLAGS="$CFLAGS"
5773
5774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5776 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5777 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5778 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else case e in #(
5782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 int i;
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"
5787 then :
5788 xorg_cv_cc_flag_unknown_warning_option=yes
5789 else case e in #(
5790 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5791 esac
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5794 esac
5795 fi
5796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5797 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800 fi
5801
5802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5805 fi
5806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5807 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5808 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5809 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5810 then :
5811 printf %s "(cached) " >&6
5812 else case e in #(
5813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 _ACEOF
5817 if ac_fn_c_try_compile "$LINENO"
5818 then :
5819 xorg_cv_cc_flag_unused_command_line_argument=yes
5820 else case e in #(
5821 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5822 esac
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5825 esac
5826 fi
5827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5828 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5830 CFLAGS="$xorg_testset_save_CFLAGS"
5831 fi
5832
5833 found="no"
5834
5835 if test $found = "no" ; then
5836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5838 fi
5839
5840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5842 fi
5843
5844 CFLAGS="$CFLAGS -Wpointer-arith"
5845
5846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5847 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5848 cacheid=xorg_cv_cc_flag__Wpointer_arith
5849 if eval test \${$cacheid+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else case e in #(
5853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 int
5857 main (void)
5858 {
5859
5860 ;
5861 return 0;
5862 }
5863 _ACEOF
5864 if ac_fn_c_try_link "$LINENO"
5865 then :
5866 eval $cacheid=yes
5867 else case e in #(
5868 e) eval $cacheid=no ;;
5869 esac
5870 fi
5871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5872 conftest$ac_exeext conftest.$ac_ext ;;
5873 esac
5874 fi
5875
5876
5877 CFLAGS="$xorg_testset_save_CFLAGS"
5878
5879 eval supported=\$$cacheid
5880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5881 printf '%s\n' "$supported" >&6; }
5882 if test "$supported" = "yes" ; then
5883 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5884 found="yes"
5885 fi
5886 fi
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902 xorg_testset_save_CFLAGS="$CFLAGS"
5903
5904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5906 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5907 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5908 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5909 then :
5910 printf %s "(cached) " >&6
5911 else case e in #(
5912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 int i;
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"
5917 then :
5918 xorg_cv_cc_flag_unknown_warning_option=yes
5919 else case e in #(
5920 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5921 esac
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5924 esac
5925 fi
5926 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5927 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5929 CFLAGS="$xorg_testset_save_CFLAGS"
5930 fi
5931
5932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935 fi
5936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5937 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5938 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5939 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5940 then :
5941 printf %s "(cached) " >&6
5942 else case e in #(
5943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 int i;
5946 _ACEOF
5947 if ac_fn_c_try_compile "$LINENO"
5948 then :
5949 xorg_cv_cc_flag_unused_command_line_argument=yes
5950 else case e in #(
5951 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5952 esac
5953 fi
5954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5955 esac
5956 fi
5957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5958 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5960 CFLAGS="$xorg_testset_save_CFLAGS"
5961 fi
5962
5963 found="no"
5964
5965 if test $found = "no" ; then
5966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968 fi
5969
5970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5972 fi
5973
5974 CFLAGS="$CFLAGS -Wmissing-declarations"
5975
5976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5977 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5978 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5979 if eval test \${$cacheid+y}
5980 then :
5981 printf %s "(cached) " >&6
5982 else case e in #(
5983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 int i;
5986 int
5987 main (void)
5988 {
5989
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 if ac_fn_c_try_link "$LINENO"
5995 then :
5996 eval $cacheid=yes
5997 else case e in #(
5998 e) eval $cacheid=no ;;
5999 esac
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6002 conftest$ac_exeext conftest.$ac_ext ;;
6003 esac
6004 fi
6005
6006
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008
6009 eval supported=\$$cacheid
6010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6011 printf '%s\n' "$supported" >&6; }
6012 if test "$supported" = "yes" ; then
6013 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6014 found="yes"
6015 fi
6016 fi
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032 xorg_testset_save_CFLAGS="$CFLAGS"
6033
6034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6037 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6038 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else case e in #(
6042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 int i;
6045 _ACEOF
6046 if ac_fn_c_try_compile "$LINENO"
6047 then :
6048 xorg_cv_cc_flag_unknown_warning_option=yes
6049 else case e in #(
6050 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6051 esac
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6054 esac
6055 fi
6056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6057 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6060 fi
6061
6062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065 fi
6066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6068 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6069 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6070 then :
6071 printf %s "(cached) " >&6
6072 else case e in #(
6073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 int i;
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"
6078 then :
6079 xorg_cv_cc_flag_unused_command_line_argument=yes
6080 else case e in #(
6081 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6082 esac
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6085 esac
6086 fi
6087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6088 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6090 CFLAGS="$xorg_testset_save_CFLAGS"
6091 fi
6092
6093 found="no"
6094
6095 if test $found = "no" ; then
6096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6098 fi
6099
6100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6102 fi
6103
6104 CFLAGS="$CFLAGS -Wformat=2"
6105
6106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6107 printf %s "checking if $CC supports -Wformat=2... " >&6; }
6108 cacheid=xorg_cv_cc_flag__Wformat_2
6109 if eval test \${$cacheid+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 int i;
6116 int
6117 main (void)
6118 {
6119
6120 ;
6121 return 0;
6122 }
6123 _ACEOF
6124 if ac_fn_c_try_link "$LINENO"
6125 then :
6126 eval $cacheid=yes
6127 else case e in #(
6128 e) eval $cacheid=no ;;
6129 esac
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6132 conftest$ac_exeext conftest.$ac_ext ;;
6133 esac
6134 fi
6135
6136
6137 CFLAGS="$xorg_testset_save_CFLAGS"
6138
6139 eval supported=\$$cacheid
6140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6141 printf '%s\n' "$supported" >&6; }
6142 if test "$supported" = "yes" ; then
6143 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6144 found="yes"
6145 fi
6146 fi
6147
6148 if test $found = "no" ; then
6149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151 fi
6152
6153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155 fi
6156
6157 CFLAGS="$CFLAGS -Wformat"
6158
6159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6160 printf %s "checking if $CC supports -Wformat... " >&6; }
6161 cacheid=xorg_cv_cc_flag__Wformat
6162 if eval test \${$cacheid+y}
6163 then :
6164 printf %s "(cached) " >&6
6165 else case e in #(
6166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 int i;
6169 int
6170 main (void)
6171 {
6172
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_link "$LINENO"
6178 then :
6179 eval $cacheid=yes
6180 else case e in #(
6181 e) eval $cacheid=no ;;
6182 esac
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6185 conftest$ac_exeext conftest.$ac_ext ;;
6186 esac
6187 fi
6188
6189
6190 CFLAGS="$xorg_testset_save_CFLAGS"
6191
6192 eval supported=\$$cacheid
6193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6194 printf '%s\n' "$supported" >&6; }
6195 if test "$supported" = "yes" ; then
6196 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6197 found="yes"
6198 fi
6199 fi
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 xorg_testset_save_CFLAGS="$CFLAGS"
6218
6219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6223 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6224 then :
6225 printf %s "(cached) " >&6
6226 else case e in #(
6227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 int i;
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"
6232 then :
6233 xorg_cv_cc_flag_unknown_warning_option=yes
6234 else case e in #(
6235 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6236 esac
6237 fi
6238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6239 esac
6240 fi
6241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6242 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6244 CFLAGS="$xorg_testset_save_CFLAGS"
6245 fi
6246
6247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6250 fi
6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6253 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6254 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6255 then :
6256 printf %s "(cached) " >&6
6257 else case e in #(
6258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 int i;
6261 _ACEOF
6262 if ac_fn_c_try_compile "$LINENO"
6263 then :
6264 xorg_cv_cc_flag_unused_command_line_argument=yes
6265 else case e in #(
6266 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6267 esac
6268 fi
6269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6270 esac
6271 fi
6272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6273 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276 fi
6277
6278 found="no"
6279
6280 if test $found = "no" ; then
6281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283 fi
6284
6285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6287 fi
6288
6289 CFLAGS="$CFLAGS -Wstrict-prototypes"
6290
6291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6292 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6293 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6294 if eval test \${$cacheid+y}
6295 then :
6296 printf %s "(cached) " >&6
6297 else case e in #(
6298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 int i;
6301 int
6302 main (void)
6303 {
6304
6305 ;
6306 return 0;
6307 }
6308 _ACEOF
6309 if ac_fn_c_try_link "$LINENO"
6310 then :
6311 eval $cacheid=yes
6312 else case e in #(
6313 e) eval $cacheid=no ;;
6314 esac
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6317 conftest$ac_exeext conftest.$ac_ext ;;
6318 esac
6319 fi
6320
6321
6322 CFLAGS="$xorg_testset_save_CFLAGS"
6323
6324 eval supported=\$$cacheid
6325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6326 printf '%s\n' "$supported" >&6; }
6327 if test "$supported" = "yes" ; then
6328 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6329 found="yes"
6330 fi
6331 fi
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 xorg_testset_save_CFLAGS="$CFLAGS"
6348
6349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6352 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6353 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"
6362 then :
6363 xorg_cv_cc_flag_unknown_warning_option=yes
6364 else case e in #(
6365 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6366 esac
6367 fi
6368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6369 esac
6370 fi
6371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6372 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6374 CFLAGS="$xorg_testset_save_CFLAGS"
6375 fi
6376
6377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6380 fi
6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6385 then :
6386 printf %s "(cached) " >&6
6387 else case e in #(
6388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 int i;
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"
6393 then :
6394 xorg_cv_cc_flag_unused_command_line_argument=yes
6395 else case e in #(
6396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6397 esac
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6400 esac
6401 fi
6402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6403 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6405 CFLAGS="$xorg_testset_save_CFLAGS"
6406 fi
6407
6408 found="no"
6409
6410 if test $found = "no" ; then
6411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6413 fi
6414
6415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6417 fi
6418
6419 CFLAGS="$CFLAGS -Wmissing-prototypes"
6420
6421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6422 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6423 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6424 if eval test \${$cacheid+y}
6425 then :
6426 printf %s "(cached) " >&6
6427 else case e in #(
6428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 int i;
6431 int
6432 main (void)
6433 {
6434
6435 ;
6436 return 0;
6437 }
6438 _ACEOF
6439 if ac_fn_c_try_link "$LINENO"
6440 then :
6441 eval $cacheid=yes
6442 else case e in #(
6443 e) eval $cacheid=no ;;
6444 esac
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6447 conftest$ac_exeext conftest.$ac_ext ;;
6448 esac
6449 fi
6450
6451
6452 CFLAGS="$xorg_testset_save_CFLAGS"
6453
6454 eval supported=\$$cacheid
6455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6456 printf '%s\n' "$supported" >&6; }
6457 if test "$supported" = "yes" ; then
6458 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6459 found="yes"
6460 fi
6461 fi
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477 xorg_testset_save_CFLAGS="$CFLAGS"
6478
6479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6482 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6483 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
6491 if ac_fn_c_try_compile "$LINENO"
6492 then :
6493 xorg_cv_cc_flag_unknown_warning_option=yes
6494 else case e in #(
6495 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6496 esac
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6499 esac
6500 fi
6501 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6502 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6504 CFLAGS="$xorg_testset_save_CFLAGS"
6505 fi
6506
6507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510 fi
6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6512 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6513 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6514 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6515 then :
6516 printf %s "(cached) " >&6
6517 else case e in #(
6518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 int i;
6521 _ACEOF
6522 if ac_fn_c_try_compile "$LINENO"
6523 then :
6524 xorg_cv_cc_flag_unused_command_line_argument=yes
6525 else case e in #(
6526 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6527 esac
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6530 esac
6531 fi
6532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6533 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6536 fi
6537
6538 found="no"
6539
6540 if test $found = "no" ; then
6541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6543 fi
6544
6545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6547 fi
6548
6549 CFLAGS="$CFLAGS -Wnested-externs"
6550
6551 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6552 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6553 cacheid=xorg_cv_cc_flag__Wnested_externs
6554 if eval test \${$cacheid+y}
6555 then :
6556 printf %s "(cached) " >&6
6557 else case e in #(
6558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560 int i;
6561 int
6562 main (void)
6563 {
6564
6565 ;
6566 return 0;
6567 }
6568 _ACEOF
6569 if ac_fn_c_try_link "$LINENO"
6570 then :
6571 eval $cacheid=yes
6572 else case e in #(
6573 e) eval $cacheid=no ;;
6574 esac
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6577 conftest$ac_exeext conftest.$ac_ext ;;
6578 esac
6579 fi
6580
6581
6582 CFLAGS="$xorg_testset_save_CFLAGS"
6583
6584 eval supported=\$$cacheid
6585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6586 printf '%s\n' "$supported" >&6; }
6587 if test "$supported" = "yes" ; then
6588 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6589 found="yes"
6590 fi
6591 fi
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607 xorg_testset_save_CFLAGS="$CFLAGS"
6608
6609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else case e in #(
6617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 int i;
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"
6622 then :
6623 xorg_cv_cc_flag_unknown_warning_option=yes
6624 else case e in #(
6625 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6626 esac
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6629 esac
6630 fi
6631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6632 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6634 CFLAGS="$xorg_testset_save_CFLAGS"
6635 fi
6636
6637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640 fi
6641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6645 then :
6646 printf %s "(cached) " >&6
6647 else case e in #(
6648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 int i;
6651 _ACEOF
6652 if ac_fn_c_try_compile "$LINENO"
6653 then :
6654 xorg_cv_cc_flag_unused_command_line_argument=yes
6655 else case e in #(
6656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6657 esac
6658 fi
6659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6660 esac
6661 fi
6662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6663 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6665 CFLAGS="$xorg_testset_save_CFLAGS"
6666 fi
6667
6668 found="no"
6669
6670 if test $found = "no" ; then
6671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673 fi
6674
6675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677 fi
6678
6679 CFLAGS="$CFLAGS -Wbad-function-cast"
6680
6681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6682 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6683 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6684 if eval test \${$cacheid+y}
6685 then :
6686 printf %s "(cached) " >&6
6687 else case e in #(
6688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6690 int i;
6691 int
6692 main (void)
6693 {
6694
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 if ac_fn_c_try_link "$LINENO"
6700 then :
6701 eval $cacheid=yes
6702 else case e in #(
6703 e) eval $cacheid=no ;;
6704 esac
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6707 conftest$ac_exeext conftest.$ac_ext ;;
6708 esac
6709 fi
6710
6711
6712 CFLAGS="$xorg_testset_save_CFLAGS"
6713
6714 eval supported=\$$cacheid
6715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6716 printf '%s\n' "$supported" >&6; }
6717 if test "$supported" = "yes" ; then
6718 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6719 found="yes"
6720 fi
6721 fi
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737 xorg_testset_save_CFLAGS="$CFLAGS"
6738
6739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6743 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6744 then :
6745 printf %s "(cached) " >&6
6746 else case e in #(
6747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"
6752 then :
6753 xorg_cv_cc_flag_unknown_warning_option=yes
6754 else case e in #(
6755 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6756 esac
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6759 esac
6760 fi
6761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6762 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6764 CFLAGS="$xorg_testset_save_CFLAGS"
6765 fi
6766
6767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770 fi
6771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6773 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6774 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6775 then :
6776 printf %s "(cached) " >&6
6777 else case e in #(
6778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 int i;
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"
6783 then :
6784 xorg_cv_cc_flag_unused_command_line_argument=yes
6785 else case e in #(
6786 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6787 esac
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6790 esac
6791 fi
6792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6793 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6795 CFLAGS="$xorg_testset_save_CFLAGS"
6796 fi
6797
6798 found="no"
6799
6800 if test $found = "no" ; then
6801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6803 fi
6804
6805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6807 fi
6808
6809 CFLAGS="$CFLAGS -Wold-style-definition"
6810
6811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6812 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6813 cacheid=xorg_cv_cc_flag__Wold_style_definition
6814 if eval test \${$cacheid+y}
6815 then :
6816 printf %s "(cached) " >&6
6817 else case e in #(
6818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 int i;
6821 int
6822 main (void)
6823 {
6824
6825 ;
6826 return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_link "$LINENO"
6830 then :
6831 eval $cacheid=yes
6832 else case e in #(
6833 e) eval $cacheid=no ;;
6834 esac
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6837 conftest$ac_exeext conftest.$ac_ext ;;
6838 esac
6839 fi
6840
6841
6842 CFLAGS="$xorg_testset_save_CFLAGS"
6843
6844 eval supported=\$$cacheid
6845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6846 printf '%s\n' "$supported" >&6; }
6847 if test "$supported" = "yes" ; then
6848 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6849 found="yes"
6850 fi
6851 fi
6852
6853 if test $found = "no" ; then
6854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6856 fi
6857
6858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6860 fi
6861
6862 CFLAGS="$CFLAGS -fd"
6863
6864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6865 printf %s "checking if $CC supports -fd... " >&6; }
6866 cacheid=xorg_cv_cc_flag__fd
6867 if eval test \${$cacheid+y}
6868 then :
6869 printf %s "(cached) " >&6
6870 else case e in #(
6871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 int i;
6874 int
6875 main (void)
6876 {
6877
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 if ac_fn_c_try_link "$LINENO"
6883 then :
6884 eval $cacheid=yes
6885 else case e in #(
6886 e) eval $cacheid=no ;;
6887 esac
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6890 conftest$ac_exeext conftest.$ac_ext ;;
6891 esac
6892 fi
6893
6894
6895 CFLAGS="$xorg_testset_save_CFLAGS"
6896
6897 eval supported=\$$cacheid
6898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6899 printf '%s\n' "$supported" >&6; }
6900 if test "$supported" = "yes" ; then
6901 BASE_CFLAGS="$BASE_CFLAGS -fd"
6902 found="yes"
6903 fi
6904 fi
6905
6906
6907
6908
6909
6910 # This chunk adds additional warnings that could catch undesired effects.
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924 xorg_testset_save_CFLAGS="$CFLAGS"
6925
6926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6929 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6930 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6931 then :
6932 printf %s "(cached) " >&6
6933 else case e in #(
6934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 int i;
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"
6939 then :
6940 xorg_cv_cc_flag_unknown_warning_option=yes
6941 else case e in #(
6942 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6943 esac
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6946 esac
6947 fi
6948 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6949 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6951 CFLAGS="$xorg_testset_save_CFLAGS"
6952 fi
6953
6954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6957 fi
6958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6962 then :
6963 printf %s "(cached) " >&6
6964 else case e in #(
6965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967 int i;
6968 _ACEOF
6969 if ac_fn_c_try_compile "$LINENO"
6970 then :
6971 xorg_cv_cc_flag_unused_command_line_argument=yes
6972 else case e in #(
6973 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6974 esac
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6977 esac
6978 fi
6979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6980 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6982 CFLAGS="$xorg_testset_save_CFLAGS"
6983 fi
6984
6985 found="no"
6986
6987 if test $found = "no" ; then
6988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990 fi
6991
6992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6994 fi
6995
6996 CFLAGS="$CFLAGS -Wunused"
6997
6998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6999 printf %s "checking if $CC supports -Wunused... " >&6; }
7000 cacheid=xorg_cv_cc_flag__Wunused
7001 if eval test \${$cacheid+y}
7002 then :
7003 printf %s "(cached) " >&6
7004 else case e in #(
7005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 int i;
7008 int
7009 main (void)
7010 {
7011
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"
7017 then :
7018 eval $cacheid=yes
7019 else case e in #(
7020 e) eval $cacheid=no ;;
7021 esac
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7024 conftest$ac_exeext conftest.$ac_ext ;;
7025 esac
7026 fi
7027
7028
7029 CFLAGS="$xorg_testset_save_CFLAGS"
7030
7031 eval supported=\$$cacheid
7032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7033 printf '%s\n' "$supported" >&6; }
7034 if test "$supported" = "yes" ; then
7035 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7036 found="yes"
7037 fi
7038 fi
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054 xorg_testset_save_CFLAGS="$CFLAGS"
7055
7056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7059 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7060 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7061 then :
7062 printf %s "(cached) " >&6
7063 else case e in #(
7064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 int i;
7067 _ACEOF
7068 if ac_fn_c_try_compile "$LINENO"
7069 then :
7070 xorg_cv_cc_flag_unknown_warning_option=yes
7071 else case e in #(
7072 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7073 esac
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7076 esac
7077 fi
7078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7079 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7081 CFLAGS="$xorg_testset_save_CFLAGS"
7082 fi
7083
7084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 fi
7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7089 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7090 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7091 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7092 then :
7093 printf %s "(cached) " >&6
7094 else case e in #(
7095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 int i;
7098 _ACEOF
7099 if ac_fn_c_try_compile "$LINENO"
7100 then :
7101 xorg_cv_cc_flag_unused_command_line_argument=yes
7102 else case e in #(
7103 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7104 esac
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7107 esac
7108 fi
7109 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7110 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7112 CFLAGS="$xorg_testset_save_CFLAGS"
7113 fi
7114
7115 found="no"
7116
7117 if test $found = "no" ; then
7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7120 fi
7121
7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124 fi
7125
7126 CFLAGS="$CFLAGS -Wuninitialized"
7127
7128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7129 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7130 cacheid=xorg_cv_cc_flag__Wuninitialized
7131 if eval test \${$cacheid+y}
7132 then :
7133 printf %s "(cached) " >&6
7134 else case e in #(
7135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 int i;
7138 int
7139 main (void)
7140 {
7141
7142 ;
7143 return 0;
7144 }
7145 _ACEOF
7146 if ac_fn_c_try_link "$LINENO"
7147 then :
7148 eval $cacheid=yes
7149 else case e in #(
7150 e) eval $cacheid=no ;;
7151 esac
7152 fi
7153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7154 conftest$ac_exeext conftest.$ac_ext ;;
7155 esac
7156 fi
7157
7158
7159 CFLAGS="$xorg_testset_save_CFLAGS"
7160
7161 eval supported=\$$cacheid
7162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7163 printf '%s\n' "$supported" >&6; }
7164 if test "$supported" = "yes" ; then
7165 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7166 found="yes"
7167 fi
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 xorg_testset_save_CFLAGS="$CFLAGS"
7185
7186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7189 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7190 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7191 then :
7192 printf %s "(cached) " >&6
7193 else case e in #(
7194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 int i;
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"
7199 then :
7200 xorg_cv_cc_flag_unknown_warning_option=yes
7201 else case e in #(
7202 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7203 esac
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7206 esac
7207 fi
7208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7209 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7211 CFLAGS="$xorg_testset_save_CFLAGS"
7212 fi
7213
7214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217 fi
7218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7222 then :
7223 printf %s "(cached) " >&6
7224 else case e in #(
7225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 int i;
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"
7230 then :
7231 xorg_cv_cc_flag_unused_command_line_argument=yes
7232 else case e in #(
7233 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7234 esac
7235 fi
7236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7237 esac
7238 fi
7239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7240 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7242 CFLAGS="$xorg_testset_save_CFLAGS"
7243 fi
7244
7245 found="no"
7246
7247 if test $found = "no" ; then
7248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7250 fi
7251
7252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7254 fi
7255
7256 CFLAGS="$CFLAGS -Wshadow"
7257
7258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7259 printf %s "checking if $CC supports -Wshadow... " >&6; }
7260 cacheid=xorg_cv_cc_flag__Wshadow
7261 if eval test \${$cacheid+y}
7262 then :
7263 printf %s "(cached) " >&6
7264 else case e in #(
7265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 int i;
7268 int
7269 main (void)
7270 {
7271
7272 ;
7273 return 0;
7274 }
7275 _ACEOF
7276 if ac_fn_c_try_link "$LINENO"
7277 then :
7278 eval $cacheid=yes
7279 else case e in #(
7280 e) eval $cacheid=no ;;
7281 esac
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7284 conftest$ac_exeext conftest.$ac_ext ;;
7285 esac
7286 fi
7287
7288
7289 CFLAGS="$xorg_testset_save_CFLAGS"
7290
7291 eval supported=\$$cacheid
7292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7293 printf '%s\n' "$supported" >&6; }
7294 if test "$supported" = "yes" ; then
7295 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7296 found="yes"
7297 fi
7298 fi
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 xorg_testset_save_CFLAGS="$CFLAGS"
7315
7316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7319 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7320 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7321 then :
7322 printf %s "(cached) " >&6
7323 else case e in #(
7324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 int i;
7327 _ACEOF
7328 if ac_fn_c_try_compile "$LINENO"
7329 then :
7330 xorg_cv_cc_flag_unknown_warning_option=yes
7331 else case e in #(
7332 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7333 esac
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7336 esac
7337 fi
7338 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7339 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7341 CFLAGS="$xorg_testset_save_CFLAGS"
7342 fi
7343
7344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7347 fi
7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7352 then :
7353 printf %s "(cached) " >&6
7354 else case e in #(
7355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 int i;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"
7360 then :
7361 xorg_cv_cc_flag_unused_command_line_argument=yes
7362 else case e in #(
7363 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7364 esac
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7367 esac
7368 fi
7369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7370 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7372 CFLAGS="$xorg_testset_save_CFLAGS"
7373 fi
7374
7375 found="no"
7376
7377 if test $found = "no" ; then
7378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7380 fi
7381
7382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7384 fi
7385
7386 CFLAGS="$CFLAGS -Wmissing-noreturn"
7387
7388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7389 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7390 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7391 if eval test \${$cacheid+y}
7392 then :
7393 printf %s "(cached) " >&6
7394 else case e in #(
7395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 int i;
7398 int
7399 main (void)
7400 {
7401
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_link "$LINENO"
7407 then :
7408 eval $cacheid=yes
7409 else case e in #(
7410 e) eval $cacheid=no ;;
7411 esac
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7414 conftest$ac_exeext conftest.$ac_ext ;;
7415 esac
7416 fi
7417
7418
7419 CFLAGS="$xorg_testset_save_CFLAGS"
7420
7421 eval supported=\$$cacheid
7422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7423 printf '%s\n' "$supported" >&6; }
7424 if test "$supported" = "yes" ; then
7425 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7426 found="yes"
7427 fi
7428 fi
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 xorg_testset_save_CFLAGS="$CFLAGS"
7445
7446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7449 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7450 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7451 then :
7452 printf %s "(cached) " >&6
7453 else case e in #(
7454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456 int i;
7457 _ACEOF
7458 if ac_fn_c_try_compile "$LINENO"
7459 then :
7460 xorg_cv_cc_flag_unknown_warning_option=yes
7461 else case e in #(
7462 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7463 esac
7464 fi
7465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7466 esac
7467 fi
7468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7469 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7471 CFLAGS="$xorg_testset_save_CFLAGS"
7472 fi
7473
7474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7477 fi
7478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7479 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7480 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7481 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7482 then :
7483 printf %s "(cached) " >&6
7484 else case e in #(
7485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 int i;
7488 _ACEOF
7489 if ac_fn_c_try_compile "$LINENO"
7490 then :
7491 xorg_cv_cc_flag_unused_command_line_argument=yes
7492 else case e in #(
7493 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7494 esac
7495 fi
7496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7497 esac
7498 fi
7499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7500 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7502 CFLAGS="$xorg_testset_save_CFLAGS"
7503 fi
7504
7505 found="no"
7506
7507 if test $found = "no" ; then
7508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510 fi
7511
7512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514 fi
7515
7516 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7517
7518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7519 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7520 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7521 if eval test \${$cacheid+y}
7522 then :
7523 printf %s "(cached) " >&6
7524 else case e in #(
7525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 int i;
7528 int
7529 main (void)
7530 {
7531
7532 ;
7533 return 0;
7534 }
7535 _ACEOF
7536 if ac_fn_c_try_link "$LINENO"
7537 then :
7538 eval $cacheid=yes
7539 else case e in #(
7540 e) eval $cacheid=no ;;
7541 esac
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7544 conftest$ac_exeext conftest.$ac_ext ;;
7545 esac
7546 fi
7547
7548
7549 CFLAGS="$xorg_testset_save_CFLAGS"
7550
7551 eval supported=\$$cacheid
7552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7553 printf '%s\n' "$supported" >&6; }
7554 if test "$supported" = "yes" ; then
7555 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7556 found="yes"
7557 fi
7558 fi
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574 xorg_testset_save_CFLAGS="$CFLAGS"
7575
7576 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7579 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7580 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7581 then :
7582 printf %s "(cached) " >&6
7583 else case e in #(
7584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 int i;
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"
7589 then :
7590 xorg_cv_cc_flag_unknown_warning_option=yes
7591 else case e in #(
7592 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7593 esac
7594 fi
7595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7596 esac
7597 fi
7598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7599 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7601 CFLAGS="$xorg_testset_save_CFLAGS"
7602 fi
7603
7604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607 fi
7608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7609 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7610 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7611 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7612 then :
7613 printf %s "(cached) " >&6
7614 else case e in #(
7615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 int i;
7618 _ACEOF
7619 if ac_fn_c_try_compile "$LINENO"
7620 then :
7621 xorg_cv_cc_flag_unused_command_line_argument=yes
7622 else case e in #(
7623 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7624 esac
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7627 esac
7628 fi
7629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7630 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7632 CFLAGS="$xorg_testset_save_CFLAGS"
7633 fi
7634
7635 found="no"
7636
7637 if test $found = "no" ; then
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640 fi
7641
7642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7644 fi
7645
7646 CFLAGS="$CFLAGS -Wredundant-decls"
7647
7648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7649 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7650 cacheid=xorg_cv_cc_flag__Wredundant_decls
7651 if eval test \${$cacheid+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 int
7659 main (void)
7660 {
7661
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"
7667 then :
7668 eval $cacheid=yes
7669 else case e in #(
7670 e) eval $cacheid=no ;;
7671 esac
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7674 conftest$ac_exeext conftest.$ac_ext ;;
7675 esac
7676 fi
7677
7678
7679 CFLAGS="$xorg_testset_save_CFLAGS"
7680
7681 eval supported=\$$cacheid
7682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7683 printf '%s\n' "$supported" >&6; }
7684 if test "$supported" = "yes" ; then
7685 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7686 found="yes"
7687 fi
7688 fi
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 xorg_testset_save_CFLAGS="$CFLAGS"
7705
7706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7710 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7711 then :
7712 printf %s "(cached) " >&6
7713 else case e in #(
7714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 int i;
7717 _ACEOF
7718 if ac_fn_c_try_compile "$LINENO"
7719 then :
7720 xorg_cv_cc_flag_unknown_warning_option=yes
7721 else case e in #(
7722 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7723 esac
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7726 esac
7727 fi
7728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7729 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7731 CFLAGS="$xorg_testset_save_CFLAGS"
7732 fi
7733
7734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7737 fi
7738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7740 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7741 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7742 then :
7743 printf %s "(cached) " >&6
7744 else case e in #(
7745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 int i;
7748 _ACEOF
7749 if ac_fn_c_try_compile "$LINENO"
7750 then :
7751 xorg_cv_cc_flag_unused_command_line_argument=yes
7752 else case e in #(
7753 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7754 esac
7755 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7757 esac
7758 fi
7759 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7760 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7762 CFLAGS="$xorg_testset_save_CFLAGS"
7763 fi
7764
7765 found="no"
7766
7767 if test $found = "no" ; then
7768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770 fi
7771
7772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774 fi
7775
7776 CFLAGS="$CFLAGS -Wlogical-op"
7777
7778 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7779 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7780 cacheid=xorg_cv_cc_flag__Wlogical_op
7781 if eval test \${$cacheid+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 int
7789 main (void)
7790 {
7791
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_link "$LINENO"
7797 then :
7798 eval $cacheid=yes
7799 else case e in #(
7800 e) eval $cacheid=no ;;
7801 esac
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7804 conftest$ac_exeext conftest.$ac_ext ;;
7805 esac
7806 fi
7807
7808
7809 CFLAGS="$xorg_testset_save_CFLAGS"
7810
7811 eval supported=\$$cacheid
7812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7813 printf '%s\n' "$supported" >&6; }
7814 if test "$supported" = "yes" ; then
7815 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7816 found="yes"
7817 fi
7818 fi
7819
7820
7821
7822 # These are currently disabled because they are noisy. They will be enabled
7823 # in the future once the codebase is sufficiently modernized to silence
7824 # them. For now, I don't want them to drown out the other warnings.
7825 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7826 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7827 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7828
7829 # Turn some warnings into errors, so we don't accidentally get successful builds
7830 # when there are problems that should be fixed.
7831
7832 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 xorg_testset_save_CFLAGS="$CFLAGS"
7847
7848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7851 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7852 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
7860 if ac_fn_c_try_compile "$LINENO"
7861 then :
7862 xorg_cv_cc_flag_unknown_warning_option=yes
7863 else case e in #(
7864 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7865 esac
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7868 esac
7869 fi
7870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7871 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7873 CFLAGS="$xorg_testset_save_CFLAGS"
7874 fi
7875
7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879 fi
7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7882 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7883 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7884 then :
7885 printf %s "(cached) " >&6
7886 else case e in #(
7887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889 int i;
7890 _ACEOF
7891 if ac_fn_c_try_compile "$LINENO"
7892 then :
7893 xorg_cv_cc_flag_unused_command_line_argument=yes
7894 else case e in #(
7895 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7896 esac
7897 fi
7898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7899 esac
7900 fi
7901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7902 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7904 CFLAGS="$xorg_testset_save_CFLAGS"
7905 fi
7906
7907 found="no"
7908
7909 if test $found = "no" ; then
7910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912 fi
7913
7914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916 fi
7917
7918 CFLAGS="$CFLAGS -Werror=implicit"
7919
7920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7921 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7922 cacheid=xorg_cv_cc_flag__Werror_implicit
7923 if eval test \${$cacheid+y}
7924 then :
7925 printf %s "(cached) " >&6
7926 else case e in #(
7927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 int i;
7930 int
7931 main (void)
7932 {
7933
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_link "$LINENO"
7939 then :
7940 eval $cacheid=yes
7941 else case e in #(
7942 e) eval $cacheid=no ;;
7943 esac
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7946 conftest$ac_exeext conftest.$ac_ext ;;
7947 esac
7948 fi
7949
7950
7951 CFLAGS="$xorg_testset_save_CFLAGS"
7952
7953 eval supported=\$$cacheid
7954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7955 printf '%s\n' "$supported" >&6; }
7956 if test "$supported" = "yes" ; then
7957 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7958 found="yes"
7959 fi
7960 fi
7961
7962 if test $found = "no" ; then
7963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7965 fi
7966
7967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7969 fi
7970
7971 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7972
7973 { 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
7974 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7975 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7976 if eval test \${$cacheid+y}
7977 then :
7978 printf %s "(cached) " >&6
7979 else case e in #(
7980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 int i;
7983 int
7984 main (void)
7985 {
7986
7987 ;
7988 return 0;
7989 }
7990 _ACEOF
7991 if ac_fn_c_try_link "$LINENO"
7992 then :
7993 eval $cacheid=yes
7994 else case e in #(
7995 e) eval $cacheid=no ;;
7996 esac
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7999 conftest$ac_exeext conftest.$ac_ext ;;
8000 esac
8001 fi
8002
8003
8004 CFLAGS="$xorg_testset_save_CFLAGS"
8005
8006 eval supported=\$$cacheid
8007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8008 printf '%s\n' "$supported" >&6; }
8009 if test "$supported" = "yes" ; then
8010 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8011 found="yes"
8012 fi
8013 fi
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 xorg_testset_save_CFLAGS="$CFLAGS"
8030
8031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8034 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8035 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8036 then :
8037 printf %s "(cached) " >&6
8038 else case e in #(
8039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041 int i;
8042 _ACEOF
8043 if ac_fn_c_try_compile "$LINENO"
8044 then :
8045 xorg_cv_cc_flag_unknown_warning_option=yes
8046 else case e in #(
8047 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8048 esac
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8051 esac
8052 fi
8053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8054 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8056 CFLAGS="$xorg_testset_save_CFLAGS"
8057 fi
8058
8059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8062 fi
8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8065 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8066 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8067 then :
8068 printf %s "(cached) " >&6
8069 else case e in #(
8070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 int i;
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"
8075 then :
8076 xorg_cv_cc_flag_unused_command_line_argument=yes
8077 else case e in #(
8078 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8079 esac
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8082 esac
8083 fi
8084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087 CFLAGS="$xorg_testset_save_CFLAGS"
8088 fi
8089
8090 found="no"
8091
8092 if test $found = "no" ; then
8093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095 fi
8096
8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099 fi
8100
8101 CFLAGS="$CFLAGS -Werror=nonnull"
8102
8103 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8104 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8105 cacheid=xorg_cv_cc_flag__Werror_nonnull
8106 if eval test \${$cacheid+y}
8107 then :
8108 printf %s "(cached) " >&6
8109 else case e in #(
8110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 int
8114 main (void)
8115 {
8116
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"
8122 then :
8123 eval $cacheid=yes
8124 else case e in #(
8125 e) eval $cacheid=no ;;
8126 esac
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8129 conftest$ac_exeext conftest.$ac_ext ;;
8130 esac
8131 fi
8132
8133
8134 CFLAGS="$xorg_testset_save_CFLAGS"
8135
8136 eval supported=\$$cacheid
8137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8138 printf '%s\n' "$supported" >&6; }
8139 if test "$supported" = "yes" ; then
8140 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8141 found="yes"
8142 fi
8143 fi
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159 xorg_testset_save_CFLAGS="$CFLAGS"
8160
8161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8164 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8165 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8166 then :
8167 printf %s "(cached) " >&6
8168 else case e in #(
8169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171 int i;
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"
8174 then :
8175 xorg_cv_cc_flag_unknown_warning_option=yes
8176 else case e in #(
8177 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8178 esac
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8181 esac
8182 fi
8183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8184 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8186 CFLAGS="$xorg_testset_save_CFLAGS"
8187 fi
8188
8189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192 fi
8193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8195 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8196 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8197 then :
8198 printf %s "(cached) " >&6
8199 else case e in #(
8200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202 int i;
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"
8205 then :
8206 xorg_cv_cc_flag_unused_command_line_argument=yes
8207 else case e in #(
8208 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8209 esac
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8212 esac
8213 fi
8214 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8215 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 found="no"
8221
8222 if test $found = "no" ; then
8223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225 fi
8226
8227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229 fi
8230
8231 CFLAGS="$CFLAGS -Werror=init-self"
8232
8233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8234 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8235 cacheid=xorg_cv_cc_flag__Werror_init_self
8236 if eval test \${$cacheid+y}
8237 then :
8238 printf %s "(cached) " >&6
8239 else case e in #(
8240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 int i;
8243 int
8244 main (void)
8245 {
8246
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"
8252 then :
8253 eval $cacheid=yes
8254 else case e in #(
8255 e) eval $cacheid=no ;;
8256 esac
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8259 conftest$ac_exeext conftest.$ac_ext ;;
8260 esac
8261 fi
8262
8263
8264 CFLAGS="$xorg_testset_save_CFLAGS"
8265
8266 eval supported=\$$cacheid
8267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8268 printf '%s\n' "$supported" >&6; }
8269 if test "$supported" = "yes" ; then
8270 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8271 found="yes"
8272 fi
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 xorg_testset_save_CFLAGS="$CFLAGS"
8290
8291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8294 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8295 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8296 then :
8297 printf %s "(cached) " >&6
8298 else case e in #(
8299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 int i;
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"
8304 then :
8305 xorg_cv_cc_flag_unknown_warning_option=yes
8306 else case e in #(
8307 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8308 esac
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8311 esac
8312 fi
8313 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8314 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8316 CFLAGS="$xorg_testset_save_CFLAGS"
8317 fi
8318
8319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322 fi
8323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8325 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8326 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8327 then :
8328 printf %s "(cached) " >&6
8329 else case e in #(
8330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332 int i;
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"
8335 then :
8336 xorg_cv_cc_flag_unused_command_line_argument=yes
8337 else case e in #(
8338 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8339 esac
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8342 esac
8343 fi
8344 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8345 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8347 CFLAGS="$xorg_testset_save_CFLAGS"
8348 fi
8349
8350 found="no"
8351
8352 if test $found = "no" ; then
8353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355 fi
8356
8357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8359 fi
8360
8361 CFLAGS="$CFLAGS -Werror=main"
8362
8363 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8364 printf %s "checking if $CC supports -Werror=main... " >&6; }
8365 cacheid=xorg_cv_cc_flag__Werror_main
8366 if eval test \${$cacheid+y}
8367 then :
8368 printf %s "(cached) " >&6
8369 else case e in #(
8370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 int i;
8373 int
8374 main (void)
8375 {
8376
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_link "$LINENO"
8382 then :
8383 eval $cacheid=yes
8384 else case e in #(
8385 e) eval $cacheid=no ;;
8386 esac
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8389 conftest$ac_exeext conftest.$ac_ext ;;
8390 esac
8391 fi
8392
8393
8394 CFLAGS="$xorg_testset_save_CFLAGS"
8395
8396 eval supported=\$$cacheid
8397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8398 printf '%s\n' "$supported" >&6; }
8399 if test "$supported" = "yes" ; then
8400 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8401 found="yes"
8402 fi
8403 fi
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419 xorg_testset_save_CFLAGS="$CFLAGS"
8420
8421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8424 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8425 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
8433 if ac_fn_c_try_compile "$LINENO"
8434 then :
8435 xorg_cv_cc_flag_unknown_warning_option=yes
8436 else case e in #(
8437 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8438 esac
8439 fi
8440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8441 esac
8442 fi
8443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8444 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8446 CFLAGS="$xorg_testset_save_CFLAGS"
8447 fi
8448
8449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452 fi
8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8455 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8456 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8457 then :
8458 printf %s "(cached) " >&6
8459 else case e in #(
8460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int i;
8463 _ACEOF
8464 if ac_fn_c_try_compile "$LINENO"
8465 then :
8466 xorg_cv_cc_flag_unused_command_line_argument=yes
8467 else case e in #(
8468 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8469 esac
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8472 esac
8473 fi
8474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8475 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8477 CFLAGS="$xorg_testset_save_CFLAGS"
8478 fi
8479
8480 found="no"
8481
8482 if test $found = "no" ; then
8483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485 fi
8486
8487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8489 fi
8490
8491 CFLAGS="$CFLAGS -Werror=missing-braces"
8492
8493 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8494 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8495 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8496 if eval test \${$cacheid+y}
8497 then :
8498 printf %s "(cached) " >&6
8499 else case e in #(
8500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 int i;
8503 int
8504 main (void)
8505 {
8506
8507 ;
8508 return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_link "$LINENO"
8512 then :
8513 eval $cacheid=yes
8514 else case e in #(
8515 e) eval $cacheid=no ;;
8516 esac
8517 fi
8518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8519 conftest$ac_exeext conftest.$ac_ext ;;
8520 esac
8521 fi
8522
8523
8524 CFLAGS="$xorg_testset_save_CFLAGS"
8525
8526 eval supported=\$$cacheid
8527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8528 printf '%s\n' "$supported" >&6; }
8529 if test "$supported" = "yes" ; then
8530 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8531 found="yes"
8532 fi
8533 fi
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549 xorg_testset_save_CFLAGS="$CFLAGS"
8550
8551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8554 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8555 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"
8564 then :
8565 xorg_cv_cc_flag_unknown_warning_option=yes
8566 else case e in #(
8567 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8568 esac
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8571 esac
8572 fi
8573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8574 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8576 CFLAGS="$xorg_testset_save_CFLAGS"
8577 fi
8578
8579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582 fi
8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8585 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8586 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8587 then :
8588 printf %s "(cached) " >&6
8589 else case e in #(
8590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 int i;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"
8595 then :
8596 xorg_cv_cc_flag_unused_command_line_argument=yes
8597 else case e in #(
8598 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8599 esac
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8602 esac
8603 fi
8604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8605 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8607 CFLAGS="$xorg_testset_save_CFLAGS"
8608 fi
8609
8610 found="no"
8611
8612 if test $found = "no" ; then
8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615 fi
8616
8617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8619 fi
8620
8621 CFLAGS="$CFLAGS -Werror=sequence-point"
8622
8623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8624 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8625 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8626 if eval test \${$cacheid+y}
8627 then :
8628 printf %s "(cached) " >&6
8629 else case e in #(
8630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 int i;
8633 int
8634 main (void)
8635 {
8636
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 if ac_fn_c_try_link "$LINENO"
8642 then :
8643 eval $cacheid=yes
8644 else case e in #(
8645 e) eval $cacheid=no ;;
8646 esac
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8649 conftest$ac_exeext conftest.$ac_ext ;;
8650 esac
8651 fi
8652
8653
8654 CFLAGS="$xorg_testset_save_CFLAGS"
8655
8656 eval supported=\$$cacheid
8657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8658 printf '%s\n' "$supported" >&6; }
8659 if test "$supported" = "yes" ; then
8660 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8661 found="yes"
8662 fi
8663 fi
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679 xorg_testset_save_CFLAGS="$CFLAGS"
8680
8681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8684 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8685 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
8693 if ac_fn_c_try_compile "$LINENO"
8694 then :
8695 xorg_cv_cc_flag_unknown_warning_option=yes
8696 else case e in #(
8697 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8698 esac
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8701 esac
8702 fi
8703 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8704 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8706 CFLAGS="$xorg_testset_save_CFLAGS"
8707 fi
8708
8709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712 fi
8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8715 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8716 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8717 then :
8718 printf %s "(cached) " >&6
8719 else case e in #(
8720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 int i;
8723 _ACEOF
8724 if ac_fn_c_try_compile "$LINENO"
8725 then :
8726 xorg_cv_cc_flag_unused_command_line_argument=yes
8727 else case e in #(
8728 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8729 esac
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8732 esac
8733 fi
8734 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8735 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8737 CFLAGS="$xorg_testset_save_CFLAGS"
8738 fi
8739
8740 found="no"
8741
8742 if test $found = "no" ; then
8743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745 fi
8746
8747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749 fi
8750
8751 CFLAGS="$CFLAGS -Werror=return-type"
8752
8753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8754 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8755 cacheid=xorg_cv_cc_flag__Werror_return_type
8756 if eval test \${$cacheid+y}
8757 then :
8758 printf %s "(cached) " >&6
8759 else case e in #(
8760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762 int i;
8763 int
8764 main (void)
8765 {
8766
8767 ;
8768 return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"
8772 then :
8773 eval $cacheid=yes
8774 else case e in #(
8775 e) eval $cacheid=no ;;
8776 esac
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8779 conftest$ac_exeext conftest.$ac_ext ;;
8780 esac
8781 fi
8782
8783
8784 CFLAGS="$xorg_testset_save_CFLAGS"
8785
8786 eval supported=\$$cacheid
8787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8788 printf '%s\n' "$supported" >&6; }
8789 if test "$supported" = "yes" ; then
8790 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8791 found="yes"
8792 fi
8793 fi
8794
8795 if test $found = "no" ; then
8796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798 fi
8799
8800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8802 fi
8803
8804 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8805
8806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8807 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8808 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8809 if eval test \${$cacheid+y}
8810 then :
8811 printf %s "(cached) " >&6
8812 else case e in #(
8813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 int i;
8816 int
8817 main (void)
8818 {
8819
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_c_try_link "$LINENO"
8825 then :
8826 eval $cacheid=yes
8827 else case e in #(
8828 e) eval $cacheid=no ;;
8829 esac
8830 fi
8831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8832 conftest$ac_exeext conftest.$ac_ext ;;
8833 esac
8834 fi
8835
8836
8837 CFLAGS="$xorg_testset_save_CFLAGS"
8838
8839 eval supported=\$$cacheid
8840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8841 printf '%s\n' "$supported" >&6; }
8842 if test "$supported" = "yes" ; then
8843 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8844 found="yes"
8845 fi
8846 fi
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862 xorg_testset_save_CFLAGS="$CFLAGS"
8863
8864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8867 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8868 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8869 then :
8870 printf %s "(cached) " >&6
8871 else case e in #(
8872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 int i;
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"
8877 then :
8878 xorg_cv_cc_flag_unknown_warning_option=yes
8879 else case e in #(
8880 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8881 esac
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8884 esac
8885 fi
8886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8887 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8889 CFLAGS="$xorg_testset_save_CFLAGS"
8890 fi
8891
8892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895 fi
8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8898 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8899 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8900 then :
8901 printf %s "(cached) " >&6
8902 else case e in #(
8903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 int i;
8906 _ACEOF
8907 if ac_fn_c_try_compile "$LINENO"
8908 then :
8909 xorg_cv_cc_flag_unused_command_line_argument=yes
8910 else case e in #(
8911 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8912 esac
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8915 esac
8916 fi
8917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8918 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8920 CFLAGS="$xorg_testset_save_CFLAGS"
8921 fi
8922
8923 found="no"
8924
8925 if test $found = "no" ; then
8926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8928 fi
8929
8930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932 fi
8933
8934 CFLAGS="$CFLAGS -Werror=trigraphs"
8935
8936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8937 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8938 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8939 if eval test \${$cacheid+y}
8940 then :
8941 printf %s "(cached) " >&6
8942 else case e in #(
8943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 int i;
8946 int
8947 main (void)
8948 {
8949
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 if ac_fn_c_try_link "$LINENO"
8955 then :
8956 eval $cacheid=yes
8957 else case e in #(
8958 e) eval $cacheid=no ;;
8959 esac
8960 fi
8961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8962 conftest$ac_exeext conftest.$ac_ext ;;
8963 esac
8964 fi
8965
8966
8967 CFLAGS="$xorg_testset_save_CFLAGS"
8968
8969 eval supported=\$$cacheid
8970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8971 printf '%s\n' "$supported" >&6; }
8972 if test "$supported" = "yes" ; then
8973 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8974 found="yes"
8975 fi
8976 fi
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992 xorg_testset_save_CFLAGS="$CFLAGS"
8993
8994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8997 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8998 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8999 then :
9000 printf %s "(cached) " >&6
9001 else case e in #(
9002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 int i;
9005 _ACEOF
9006 if ac_fn_c_try_compile "$LINENO"
9007 then :
9008 xorg_cv_cc_flag_unknown_warning_option=yes
9009 else case e in #(
9010 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9011 esac
9012 fi
9013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9014 esac
9015 fi
9016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9017 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9019 CFLAGS="$xorg_testset_save_CFLAGS"
9020 fi
9021
9022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025 fi
9026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9028 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9029 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9030 then :
9031 printf %s "(cached) " >&6
9032 else case e in #(
9033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 int i;
9036 _ACEOF
9037 if ac_fn_c_try_compile "$LINENO"
9038 then :
9039 xorg_cv_cc_flag_unused_command_line_argument=yes
9040 else case e in #(
9041 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9042 esac
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9045 esac
9046 fi
9047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9048 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9050 CFLAGS="$xorg_testset_save_CFLAGS"
9051 fi
9052
9053 found="no"
9054
9055 if test $found = "no" ; then
9056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9058 fi
9059
9060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9062 fi
9063
9064 CFLAGS="$CFLAGS -Werror=array-bounds"
9065
9066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9067 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9068 cacheid=xorg_cv_cc_flag__Werror_array_bounds
9069 if eval test \${$cacheid+y}
9070 then :
9071 printf %s "(cached) " >&6
9072 else case e in #(
9073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 int i;
9076 int
9077 main (void)
9078 {
9079
9080 ;
9081 return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"
9085 then :
9086 eval $cacheid=yes
9087 else case e in #(
9088 e) eval $cacheid=no ;;
9089 esac
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9092 conftest$ac_exeext conftest.$ac_ext ;;
9093 esac
9094 fi
9095
9096
9097 CFLAGS="$xorg_testset_save_CFLAGS"
9098
9099 eval supported=\$$cacheid
9100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9101 printf '%s\n' "$supported" >&6; }
9102 if test "$supported" = "yes" ; then
9103 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9104 found="yes"
9105 fi
9106 fi
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122 xorg_testset_save_CFLAGS="$CFLAGS"
9123
9124 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9127 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9128 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
9136 if ac_fn_c_try_compile "$LINENO"
9137 then :
9138 xorg_cv_cc_flag_unknown_warning_option=yes
9139 else case e in #(
9140 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9141 esac
9142 fi
9143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9144 esac
9145 fi
9146 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9147 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9149 CFLAGS="$xorg_testset_save_CFLAGS"
9150 fi
9151
9152 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9155 fi
9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9157 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9158 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9159 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9160 then :
9161 printf %s "(cached) " >&6
9162 else case e in #(
9163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 int i;
9166 _ACEOF
9167 if ac_fn_c_try_compile "$LINENO"
9168 then :
9169 xorg_cv_cc_flag_unused_command_line_argument=yes
9170 else case e in #(
9171 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9172 esac
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9175 esac
9176 fi
9177 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9178 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9180 CFLAGS="$xorg_testset_save_CFLAGS"
9181 fi
9182
9183 found="no"
9184
9185 if test $found = "no" ; then
9186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9188 fi
9189
9190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9192 fi
9193
9194 CFLAGS="$CFLAGS -Werror=write-strings"
9195
9196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9197 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9198 cacheid=xorg_cv_cc_flag__Werror_write_strings
9199 if eval test \${$cacheid+y}
9200 then :
9201 printf %s "(cached) " >&6
9202 else case e in #(
9203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 int i;
9206 int
9207 main (void)
9208 {
9209
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"
9215 then :
9216 eval $cacheid=yes
9217 else case e in #(
9218 e) eval $cacheid=no ;;
9219 esac
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9222 conftest$ac_exeext conftest.$ac_ext ;;
9223 esac
9224 fi
9225
9226
9227 CFLAGS="$xorg_testset_save_CFLAGS"
9228
9229 eval supported=\$$cacheid
9230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9231 printf '%s\n' "$supported" >&6; }
9232 if test "$supported" = "yes" ; then
9233 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9234 found="yes"
9235 fi
9236 fi
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252 xorg_testset_save_CFLAGS="$CFLAGS"
9253
9254 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9256 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9257 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9258 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
9266 if ac_fn_c_try_compile "$LINENO"
9267 then :
9268 xorg_cv_cc_flag_unknown_warning_option=yes
9269 else case e in #(
9270 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9271 esac
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9274 esac
9275 fi
9276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9277 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9279 CFLAGS="$xorg_testset_save_CFLAGS"
9280 fi
9281
9282 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9285 fi
9286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9288 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9289 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9290 then :
9291 printf %s "(cached) " >&6
9292 else case e in #(
9293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295 int i;
9296 _ACEOF
9297 if ac_fn_c_try_compile "$LINENO"
9298 then :
9299 xorg_cv_cc_flag_unused_command_line_argument=yes
9300 else case e in #(
9301 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9302 esac
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9305 esac
9306 fi
9307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9308 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311 fi
9312
9313 found="no"
9314
9315 if test $found = "no" ; then
9316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318 fi
9319
9320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9322 fi
9323
9324 CFLAGS="$CFLAGS -Werror=address"
9325
9326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9327 printf %s "checking if $CC supports -Werror=address... " >&6; }
9328 cacheid=xorg_cv_cc_flag__Werror_address
9329 if eval test \${$cacheid+y}
9330 then :
9331 printf %s "(cached) " >&6
9332 else case e in #(
9333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 int i;
9336 int
9337 main (void)
9338 {
9339
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"
9345 then :
9346 eval $cacheid=yes
9347 else case e in #(
9348 e) eval $cacheid=no ;;
9349 esac
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9352 conftest$ac_exeext conftest.$ac_ext ;;
9353 esac
9354 fi
9355
9356
9357 CFLAGS="$xorg_testset_save_CFLAGS"
9358
9359 eval supported=\$$cacheid
9360 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9361 printf '%s\n' "$supported" >&6; }
9362 if test "$supported" = "yes" ; then
9363 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9364 found="yes"
9365 fi
9366 fi
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382 xorg_testset_save_CFLAGS="$CFLAGS"
9383
9384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9387 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9388 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else case e in #(
9392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 int i;
9395 _ACEOF
9396 if ac_fn_c_try_compile "$LINENO"
9397 then :
9398 xorg_cv_cc_flag_unknown_warning_option=yes
9399 else case e in #(
9400 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9401 esac
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9404 esac
9405 fi
9406 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9407 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9409 CFLAGS="$xorg_testset_save_CFLAGS"
9410 fi
9411
9412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9415 fi
9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9418 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9419 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9420 then :
9421 printf %s "(cached) " >&6
9422 else case e in #(
9423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 int i;
9426 _ACEOF
9427 if ac_fn_c_try_compile "$LINENO"
9428 then :
9429 xorg_cv_cc_flag_unused_command_line_argument=yes
9430 else case e in #(
9431 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9432 esac
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9435 esac
9436 fi
9437 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9438 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9440 CFLAGS="$xorg_testset_save_CFLAGS"
9441 fi
9442
9443 found="no"
9444
9445 if test $found = "no" ; then
9446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448 fi
9449
9450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9452 fi
9453
9454 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9455
9456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9457 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9458 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9459 if eval test \${$cacheid+y}
9460 then :
9461 printf %s "(cached) " >&6
9462 else case e in #(
9463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465 int i;
9466 int
9467 main (void)
9468 {
9469
9470 ;
9471 return 0;
9472 }
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"
9475 then :
9476 eval $cacheid=yes
9477 else case e in #(
9478 e) eval $cacheid=no ;;
9479 esac
9480 fi
9481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9482 conftest$ac_exeext conftest.$ac_ext ;;
9483 esac
9484 fi
9485
9486
9487 CFLAGS="$xorg_testset_save_CFLAGS"
9488
9489 eval supported=\$$cacheid
9490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9491 printf '%s\n' "$supported" >&6; }
9492 if test "$supported" = "yes" ; then
9493 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9494 found="yes"
9495 fi
9496 fi
9497
9498 if test $found = "no" ; then
9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 fi
9502
9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505 fi
9506
9507 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9508
9509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9510 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9511 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9512 if eval test \${$cacheid+y}
9513 then :
9514 printf %s "(cached) " >&6
9515 else case e in #(
9516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 int i;
9519 int
9520 main (void)
9521 {
9522
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"
9528 then :
9529 eval $cacheid=yes
9530 else case e in #(
9531 e) eval $cacheid=no ;;
9532 esac
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9535 conftest$ac_exeext conftest.$ac_ext ;;
9536 esac
9537 fi
9538
9539
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541
9542 eval supported=\$$cacheid
9543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9544 printf '%s\n' "$supported" >&6; }
9545 if test "$supported" = "yes" ; then
9546 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9547 found="yes"
9548 fi
9549 fi
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565 xorg_testset_save_CFLAGS="$CFLAGS"
9566
9567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9570 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9571 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9572 then :
9573 printf %s "(cached) " >&6
9574 else case e in #(
9575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 int i;
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"
9580 then :
9581 xorg_cv_cc_flag_unknown_warning_option=yes
9582 else case e in #(
9583 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9584 esac
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9587 esac
9588 fi
9589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592 CFLAGS="$xorg_testset_save_CFLAGS"
9593 fi
9594
9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598 fi
9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 int i;
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"
9611 then :
9612 xorg_cv_cc_flag_unused_command_line_argument=yes
9613 else case e in #(
9614 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9615 esac
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9618 esac
9619 fi
9620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9621 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624 fi
9625
9626 found="no"
9627
9628 if test $found = "no" ; then
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 fi
9632
9633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635 fi
9636
9637 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9638
9639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9640 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9641 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9642 if eval test \${$cacheid+y}
9643 then :
9644 printf %s "(cached) " >&6
9645 else case e in #(
9646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 int i;
9649 int
9650 main (void)
9651 {
9652
9653 ;
9654 return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"
9658 then :
9659 eval $cacheid=yes
9660 else case e in #(
9661 e) eval $cacheid=no ;;
9662 esac
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9665 conftest$ac_exeext conftest.$ac_ext ;;
9666 esac
9667 fi
9668
9669
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671
9672 eval supported=\$$cacheid
9673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9674 printf '%s\n' "$supported" >&6; }
9675 if test "$supported" = "yes" ; then
9676 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9677 found="yes"
9678 fi
9679 fi
9680
9681 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9682 else
9683 { 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
9684 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;}
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698 xorg_testset_save_CFLAGS="$CFLAGS"
9699
9700 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9702 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9703 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9704 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9705 then :
9706 printf %s "(cached) " >&6
9707 else case e in #(
9708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 int i;
9711 _ACEOF
9712 if ac_fn_c_try_compile "$LINENO"
9713 then :
9714 xorg_cv_cc_flag_unknown_warning_option=yes
9715 else case e in #(
9716 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9717 esac
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9720 esac
9721 fi
9722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9723 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9725 CFLAGS="$xorg_testset_save_CFLAGS"
9726 fi
9727
9728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9731 fi
9732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9734 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9735 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9736 then :
9737 printf %s "(cached) " >&6
9738 else case e in #(
9739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 int i;
9742 _ACEOF
9743 if ac_fn_c_try_compile "$LINENO"
9744 then :
9745 xorg_cv_cc_flag_unused_command_line_argument=yes
9746 else case e in #(
9747 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9748 esac
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9751 esac
9752 fi
9753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9754 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9756 CFLAGS="$xorg_testset_save_CFLAGS"
9757 fi
9758
9759 found="no"
9760
9761 if test $found = "no" ; then
9762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9764 fi
9765
9766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9768 fi
9769
9770 CFLAGS="$CFLAGS -Wimplicit"
9771
9772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9773 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9774 cacheid=xorg_cv_cc_flag__Wimplicit
9775 if eval test \${$cacheid+y}
9776 then :
9777 printf %s "(cached) " >&6
9778 else case e in #(
9779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9781 int i;
9782 int
9783 main (void)
9784 {
9785
9786 ;
9787 return 0;
9788 }
9789 _ACEOF
9790 if ac_fn_c_try_link "$LINENO"
9791 then :
9792 eval $cacheid=yes
9793 else case e in #(
9794 e) eval $cacheid=no ;;
9795 esac
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9798 conftest$ac_exeext conftest.$ac_ext ;;
9799 esac
9800 fi
9801
9802
9803 CFLAGS="$xorg_testset_save_CFLAGS"
9804
9805 eval supported=\$$cacheid
9806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9807 printf '%s\n' "$supported" >&6; }
9808 if test "$supported" = "yes" ; then
9809 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9810 found="yes"
9811 fi
9812 fi
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828 xorg_testset_save_CFLAGS="$CFLAGS"
9829
9830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9834 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9835 then :
9836 printf %s "(cached) " >&6
9837 else case e in #(
9838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840 int i;
9841 _ACEOF
9842 if ac_fn_c_try_compile "$LINENO"
9843 then :
9844 xorg_cv_cc_flag_unknown_warning_option=yes
9845 else case e in #(
9846 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9847 esac
9848 fi
9849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9850 esac
9851 fi
9852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9853 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9855 CFLAGS="$xorg_testset_save_CFLAGS"
9856 fi
9857
9858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9861 fi
9862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9864 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9865 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9866 then :
9867 printf %s "(cached) " >&6
9868 else case e in #(
9869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int i;
9872 _ACEOF
9873 if ac_fn_c_try_compile "$LINENO"
9874 then :
9875 xorg_cv_cc_flag_unused_command_line_argument=yes
9876 else case e in #(
9877 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9878 esac
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9881 esac
9882 fi
9883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9884 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9886 CFLAGS="$xorg_testset_save_CFLAGS"
9887 fi
9888
9889 found="no"
9890
9891 if test $found = "no" ; then
9892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9894 fi
9895
9896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9898 fi
9899
9900 CFLAGS="$CFLAGS -Wnonnull"
9901
9902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9903 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9904 cacheid=xorg_cv_cc_flag__Wnonnull
9905 if eval test \${$cacheid+y}
9906 then :
9907 printf %s "(cached) " >&6
9908 else case e in #(
9909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9911 int i;
9912 int
9913 main (void)
9914 {
9915
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 if ac_fn_c_try_link "$LINENO"
9921 then :
9922 eval $cacheid=yes
9923 else case e in #(
9924 e) eval $cacheid=no ;;
9925 esac
9926 fi
9927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9928 conftest$ac_exeext conftest.$ac_ext ;;
9929 esac
9930 fi
9931
9932
9933 CFLAGS="$xorg_testset_save_CFLAGS"
9934
9935 eval supported=\$$cacheid
9936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9937 printf '%s\n' "$supported" >&6; }
9938 if test "$supported" = "yes" ; then
9939 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9940 found="yes"
9941 fi
9942 fi
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958 xorg_testset_save_CFLAGS="$CFLAGS"
9959
9960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9962 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9964 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9965 then :
9966 printf %s "(cached) " >&6
9967 else case e in #(
9968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9970 int i;
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"
9973 then :
9974 xorg_cv_cc_flag_unknown_warning_option=yes
9975 else case e in #(
9976 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9977 esac
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9980 esac
9981 fi
9982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9983 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9985 CFLAGS="$xorg_testset_save_CFLAGS"
9986 fi
9987
9988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9991 fi
9992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9996 then :
9997 printf %s "(cached) " >&6
9998 else case e in #(
9999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 int i;
10002 _ACEOF
10003 if ac_fn_c_try_compile "$LINENO"
10004 then :
10005 xorg_cv_cc_flag_unused_command_line_argument=yes
10006 else case e in #(
10007 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10008 esac
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10011 esac
10012 fi
10013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10014 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10016 CFLAGS="$xorg_testset_save_CFLAGS"
10017 fi
10018
10019 found="no"
10020
10021 if test $found = "no" ; then
10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024 fi
10025
10026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10028 fi
10029
10030 CFLAGS="$CFLAGS -Winit-self"
10031
10032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10033 printf %s "checking if $CC supports -Winit-self... " >&6; }
10034 cacheid=xorg_cv_cc_flag__Winit_self
10035 if eval test \${$cacheid+y}
10036 then :
10037 printf %s "(cached) " >&6
10038 else case e in #(
10039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 int i;
10042 int
10043 main (void)
10044 {
10045
10046 ;
10047 return 0;
10048 }
10049 _ACEOF
10050 if ac_fn_c_try_link "$LINENO"
10051 then :
10052 eval $cacheid=yes
10053 else case e in #(
10054 e) eval $cacheid=no ;;
10055 esac
10056 fi
10057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10058 conftest$ac_exeext conftest.$ac_ext ;;
10059 esac
10060 fi
10061
10062
10063 CFLAGS="$xorg_testset_save_CFLAGS"
10064
10065 eval supported=\$$cacheid
10066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10067 printf '%s\n' "$supported" >&6; }
10068 if test "$supported" = "yes" ; then
10069 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10070 found="yes"
10071 fi
10072 fi
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088 xorg_testset_save_CFLAGS="$CFLAGS"
10089
10090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10093 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10094 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10095 then :
10096 printf %s "(cached) " >&6
10097 else case e in #(
10098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10100 int i;
10101 _ACEOF
10102 if ac_fn_c_try_compile "$LINENO"
10103 then :
10104 xorg_cv_cc_flag_unknown_warning_option=yes
10105 else case e in #(
10106 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10107 esac
10108 fi
10109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10110 esac
10111 fi
10112 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10113 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10115 CFLAGS="$xorg_testset_save_CFLAGS"
10116 fi
10117
10118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121 fi
10122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10126 then :
10127 printf %s "(cached) " >&6
10128 else case e in #(
10129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131 int i;
10132 _ACEOF
10133 if ac_fn_c_try_compile "$LINENO"
10134 then :
10135 xorg_cv_cc_flag_unused_command_line_argument=yes
10136 else case e in #(
10137 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10138 esac
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10141 esac
10142 fi
10143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10144 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10146 CFLAGS="$xorg_testset_save_CFLAGS"
10147 fi
10148
10149 found="no"
10150
10151 if test $found = "no" ; then
10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154 fi
10155
10156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10158 fi
10159
10160 CFLAGS="$CFLAGS -Wmain"
10161
10162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10163 printf %s "checking if $CC supports -Wmain... " >&6; }
10164 cacheid=xorg_cv_cc_flag__Wmain
10165 if eval test \${$cacheid+y}
10166 then :
10167 printf %s "(cached) " >&6
10168 else case e in #(
10169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 int i;
10172 int
10173 main (void)
10174 {
10175
10176 ;
10177 return 0;
10178 }
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"
10181 then :
10182 eval $cacheid=yes
10183 else case e in #(
10184 e) eval $cacheid=no ;;
10185 esac
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10188 conftest$ac_exeext conftest.$ac_ext ;;
10189 esac
10190 fi
10191
10192
10193 CFLAGS="$xorg_testset_save_CFLAGS"
10194
10195 eval supported=\$$cacheid
10196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10197 printf '%s\n' "$supported" >&6; }
10198 if test "$supported" = "yes" ; then
10199 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10200 found="yes"
10201 fi
10202 fi
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218 xorg_testset_save_CFLAGS="$CFLAGS"
10219
10220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10222 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10224 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10225 then :
10226 printf %s "(cached) " >&6
10227 else case e in #(
10228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230 int i;
10231 _ACEOF
10232 if ac_fn_c_try_compile "$LINENO"
10233 then :
10234 xorg_cv_cc_flag_unknown_warning_option=yes
10235 else case e in #(
10236 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10237 esac
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10240 esac
10241 fi
10242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10243 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10245 CFLAGS="$xorg_testset_save_CFLAGS"
10246 fi
10247
10248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10251 fi
10252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10256 then :
10257 printf %s "(cached) " >&6
10258 else case e in #(
10259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 int i;
10262 _ACEOF
10263 if ac_fn_c_try_compile "$LINENO"
10264 then :
10265 xorg_cv_cc_flag_unused_command_line_argument=yes
10266 else case e in #(
10267 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10268 esac
10269 fi
10270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10271 esac
10272 fi
10273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10274 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10276 CFLAGS="$xorg_testset_save_CFLAGS"
10277 fi
10278
10279 found="no"
10280
10281 if test $found = "no" ; then
10282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10284 fi
10285
10286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10288 fi
10289
10290 CFLAGS="$CFLAGS -Wmissing-braces"
10291
10292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10293 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10294 cacheid=xorg_cv_cc_flag__Wmissing_braces
10295 if eval test \${$cacheid+y}
10296 then :
10297 printf %s "(cached) " >&6
10298 else case e in #(
10299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301 int i;
10302 int
10303 main (void)
10304 {
10305
10306 ;
10307 return 0;
10308 }
10309 _ACEOF
10310 if ac_fn_c_try_link "$LINENO"
10311 then :
10312 eval $cacheid=yes
10313 else case e in #(
10314 e) eval $cacheid=no ;;
10315 esac
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10318 conftest$ac_exeext conftest.$ac_ext ;;
10319 esac
10320 fi
10321
10322
10323 CFLAGS="$xorg_testset_save_CFLAGS"
10324
10325 eval supported=\$$cacheid
10326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10327 printf '%s\n' "$supported" >&6; }
10328 if test "$supported" = "yes" ; then
10329 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10330 found="yes"
10331 fi
10332 fi
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348 xorg_testset_save_CFLAGS="$CFLAGS"
10349
10350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10352 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10353 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10354 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10355 then :
10356 printf %s "(cached) " >&6
10357 else case e in #(
10358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360 int i;
10361 _ACEOF
10362 if ac_fn_c_try_compile "$LINENO"
10363 then :
10364 xorg_cv_cc_flag_unknown_warning_option=yes
10365 else case e in #(
10366 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10367 esac
10368 fi
10369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10370 esac
10371 fi
10372 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10373 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10375 CFLAGS="$xorg_testset_save_CFLAGS"
10376 fi
10377
10378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10381 fi
10382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10383 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10384 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10385 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10386 then :
10387 printf %s "(cached) " >&6
10388 else case e in #(
10389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391 int i;
10392 _ACEOF
10393 if ac_fn_c_try_compile "$LINENO"
10394 then :
10395 xorg_cv_cc_flag_unused_command_line_argument=yes
10396 else case e in #(
10397 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10398 esac
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10401 esac
10402 fi
10403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10404 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10406 CFLAGS="$xorg_testset_save_CFLAGS"
10407 fi
10408
10409 found="no"
10410
10411 if test $found = "no" ; then
10412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10414 fi
10415
10416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10418 fi
10419
10420 CFLAGS="$CFLAGS -Wsequence-point"
10421
10422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10423 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10424 cacheid=xorg_cv_cc_flag__Wsequence_point
10425 if eval test \${$cacheid+y}
10426 then :
10427 printf %s "(cached) " >&6
10428 else case e in #(
10429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 int i;
10432 int
10433 main (void)
10434 {
10435
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"
10441 then :
10442 eval $cacheid=yes
10443 else case e in #(
10444 e) eval $cacheid=no ;;
10445 esac
10446 fi
10447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10448 conftest$ac_exeext conftest.$ac_ext ;;
10449 esac
10450 fi
10451
10452
10453 CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455 eval supported=\$$cacheid
10456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457 printf '%s\n' "$supported" >&6; }
10458 if test "$supported" = "yes" ; then
10459 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10460 found="yes"
10461 fi
10462 fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478 xorg_testset_save_CFLAGS="$CFLAGS"
10479
10480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10485 then :
10486 printf %s "(cached) " >&6
10487 else case e in #(
10488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490 int i;
10491 _ACEOF
10492 if ac_fn_c_try_compile "$LINENO"
10493 then :
10494 xorg_cv_cc_flag_unknown_warning_option=yes
10495 else case e in #(
10496 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10497 esac
10498 fi
10499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10500 esac
10501 fi
10502 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10503 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10505 CFLAGS="$xorg_testset_save_CFLAGS"
10506 fi
10507
10508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10511 fi
10512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10514 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10515 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10516 then :
10517 printf %s "(cached) " >&6
10518 else case e in #(
10519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 int i;
10522 _ACEOF
10523 if ac_fn_c_try_compile "$LINENO"
10524 then :
10525 xorg_cv_cc_flag_unused_command_line_argument=yes
10526 else case e in #(
10527 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10528 esac
10529 fi
10530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10531 esac
10532 fi
10533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10534 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10536 CFLAGS="$xorg_testset_save_CFLAGS"
10537 fi
10538
10539 found="no"
10540
10541 if test $found = "no" ; then
10542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10544 fi
10545
10546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10548 fi
10549
10550 CFLAGS="$CFLAGS -Wreturn-type"
10551
10552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10553 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10554 cacheid=xorg_cv_cc_flag__Wreturn_type
10555 if eval test \${$cacheid+y}
10556 then :
10557 printf %s "(cached) " >&6
10558 else case e in #(
10559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 int i;
10562 int
10563 main (void)
10564 {
10565
10566 ;
10567 return 0;
10568 }
10569 _ACEOF
10570 if ac_fn_c_try_link "$LINENO"
10571 then :
10572 eval $cacheid=yes
10573 else case e in #(
10574 e) eval $cacheid=no ;;
10575 esac
10576 fi
10577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10578 conftest$ac_exeext conftest.$ac_ext ;;
10579 esac
10580 fi
10581
10582
10583 CFLAGS="$xorg_testset_save_CFLAGS"
10584
10585 eval supported=\$$cacheid
10586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10587 printf '%s\n' "$supported" >&6; }
10588 if test "$supported" = "yes" ; then
10589 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10590 found="yes"
10591 fi
10592 fi
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608 xorg_testset_save_CFLAGS="$CFLAGS"
10609
10610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10613 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10614 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10615 then :
10616 printf %s "(cached) " >&6
10617 else case e in #(
10618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 int i;
10621 _ACEOF
10622 if ac_fn_c_try_compile "$LINENO"
10623 then :
10624 xorg_cv_cc_flag_unknown_warning_option=yes
10625 else case e in #(
10626 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10627 esac
10628 fi
10629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10630 esac
10631 fi
10632 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10633 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10635 CFLAGS="$xorg_testset_save_CFLAGS"
10636 fi
10637
10638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10641 fi
10642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10646 then :
10647 printf %s "(cached) " >&6
10648 else case e in #(
10649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 int i;
10652 _ACEOF
10653 if ac_fn_c_try_compile "$LINENO"
10654 then :
10655 xorg_cv_cc_flag_unused_command_line_argument=yes
10656 else case e in #(
10657 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10658 esac
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10661 esac
10662 fi
10663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10664 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10666 CFLAGS="$xorg_testset_save_CFLAGS"
10667 fi
10668
10669 found="no"
10670
10671 if test $found = "no" ; then
10672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10674 fi
10675
10676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10678 fi
10679
10680 CFLAGS="$CFLAGS -Wtrigraphs"
10681
10682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10683 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10684 cacheid=xorg_cv_cc_flag__Wtrigraphs
10685 if eval test \${$cacheid+y}
10686 then :
10687 printf %s "(cached) " >&6
10688 else case e in #(
10689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 int i;
10692 int
10693 main (void)
10694 {
10695
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"
10701 then :
10702 eval $cacheid=yes
10703 else case e in #(
10704 e) eval $cacheid=no ;;
10705 esac
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10708 conftest$ac_exeext conftest.$ac_ext ;;
10709 esac
10710 fi
10711
10712
10713 CFLAGS="$xorg_testset_save_CFLAGS"
10714
10715 eval supported=\$$cacheid
10716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10717 printf '%s\n' "$supported" >&6; }
10718 if test "$supported" = "yes" ; then
10719 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10720 found="yes"
10721 fi
10722 fi
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738 xorg_testset_save_CFLAGS="$CFLAGS"
10739
10740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10742 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10744 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10745 then :
10746 printf %s "(cached) " >&6
10747 else case e in #(
10748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 int i;
10751 _ACEOF
10752 if ac_fn_c_try_compile "$LINENO"
10753 then :
10754 xorg_cv_cc_flag_unknown_warning_option=yes
10755 else case e in #(
10756 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10757 esac
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10760 esac
10761 fi
10762 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10763 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10765 CFLAGS="$xorg_testset_save_CFLAGS"
10766 fi
10767
10768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10771 fi
10772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10776 then :
10777 printf %s "(cached) " >&6
10778 else case e in #(
10779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 int i;
10782 _ACEOF
10783 if ac_fn_c_try_compile "$LINENO"
10784 then :
10785 xorg_cv_cc_flag_unused_command_line_argument=yes
10786 else case e in #(
10787 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10788 esac
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10791 esac
10792 fi
10793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10794 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10796 CFLAGS="$xorg_testset_save_CFLAGS"
10797 fi
10798
10799 found="no"
10800
10801 if test $found = "no" ; then
10802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10804 fi
10805
10806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10808 fi
10809
10810 CFLAGS="$CFLAGS -Warray-bounds"
10811
10812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10813 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10814 cacheid=xorg_cv_cc_flag__Warray_bounds
10815 if eval test \${$cacheid+y}
10816 then :
10817 printf %s "(cached) " >&6
10818 else case e in #(
10819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10821 int i;
10822 int
10823 main (void)
10824 {
10825
10826 ;
10827 return 0;
10828 }
10829 _ACEOF
10830 if ac_fn_c_try_link "$LINENO"
10831 then :
10832 eval $cacheid=yes
10833 else case e in #(
10834 e) eval $cacheid=no ;;
10835 esac
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10838 conftest$ac_exeext conftest.$ac_ext ;;
10839 esac
10840 fi
10841
10842
10843 CFLAGS="$xorg_testset_save_CFLAGS"
10844
10845 eval supported=\$$cacheid
10846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10847 printf '%s\n' "$supported" >&6; }
10848 if test "$supported" = "yes" ; then
10849 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10850 found="yes"
10851 fi
10852 fi
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868 xorg_testset_save_CFLAGS="$CFLAGS"
10869
10870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10872 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10873 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10874 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10875 then :
10876 printf %s "(cached) " >&6
10877 else case e in #(
10878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10880 int i;
10881 _ACEOF
10882 if ac_fn_c_try_compile "$LINENO"
10883 then :
10884 xorg_cv_cc_flag_unknown_warning_option=yes
10885 else case e in #(
10886 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10887 esac
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10890 esac
10891 fi
10892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10893 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10895 CFLAGS="$xorg_testset_save_CFLAGS"
10896 fi
10897
10898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10901 fi
10902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10903 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10904 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10905 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10906 then :
10907 printf %s "(cached) " >&6
10908 else case e in #(
10909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911 int i;
10912 _ACEOF
10913 if ac_fn_c_try_compile "$LINENO"
10914 then :
10915 xorg_cv_cc_flag_unused_command_line_argument=yes
10916 else case e in #(
10917 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10918 esac
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10921 esac
10922 fi
10923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10924 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10926 CFLAGS="$xorg_testset_save_CFLAGS"
10927 fi
10928
10929 found="no"
10930
10931 if test $found = "no" ; then
10932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10934 fi
10935
10936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10938 fi
10939
10940 CFLAGS="$CFLAGS -Wwrite-strings"
10941
10942 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10943 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10944 cacheid=xorg_cv_cc_flag__Wwrite_strings
10945 if eval test \${$cacheid+y}
10946 then :
10947 printf %s "(cached) " >&6
10948 else case e in #(
10949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951 int i;
10952 int
10953 main (void)
10954 {
10955
10956 ;
10957 return 0;
10958 }
10959 _ACEOF
10960 if ac_fn_c_try_link "$LINENO"
10961 then :
10962 eval $cacheid=yes
10963 else case e in #(
10964 e) eval $cacheid=no ;;
10965 esac
10966 fi
10967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10968 conftest$ac_exeext conftest.$ac_ext ;;
10969 esac
10970 fi
10971
10972
10973 CFLAGS="$xorg_testset_save_CFLAGS"
10974
10975 eval supported=\$$cacheid
10976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10977 printf '%s\n' "$supported" >&6; }
10978 if test "$supported" = "yes" ; then
10979 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10980 found="yes"
10981 fi
10982 fi
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998 xorg_testset_save_CFLAGS="$CFLAGS"
10999
11000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11003 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11004 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11005 then :
11006 printf %s "(cached) " >&6
11007 else case e in #(
11008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010 int i;
11011 _ACEOF
11012 if ac_fn_c_try_compile "$LINENO"
11013 then :
11014 xorg_cv_cc_flag_unknown_warning_option=yes
11015 else case e in #(
11016 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11017 esac
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11020 esac
11021 fi
11022 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11023 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11025 CFLAGS="$xorg_testset_save_CFLAGS"
11026 fi
11027
11028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11031 fi
11032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11034 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11035 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11036 then :
11037 printf %s "(cached) " >&6
11038 else case e in #(
11039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041 int i;
11042 _ACEOF
11043 if ac_fn_c_try_compile "$LINENO"
11044 then :
11045 xorg_cv_cc_flag_unused_command_line_argument=yes
11046 else case e in #(
11047 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11048 esac
11049 fi
11050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11051 esac
11052 fi
11053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11054 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11056 CFLAGS="$xorg_testset_save_CFLAGS"
11057 fi
11058
11059 found="no"
11060
11061 if test $found = "no" ; then
11062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11064 fi
11065
11066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11068 fi
11069
11070 CFLAGS="$CFLAGS -Waddress"
11071
11072 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11073 printf %s "checking if $CC supports -Waddress... " >&6; }
11074 cacheid=xorg_cv_cc_flag__Waddress
11075 if eval test \${$cacheid+y}
11076 then :
11077 printf %s "(cached) " >&6
11078 else case e in #(
11079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 int i;
11082 int
11083 main (void)
11084 {
11085
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"
11091 then :
11092 eval $cacheid=yes
11093 else case e in #(
11094 e) eval $cacheid=no ;;
11095 esac
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11098 conftest$ac_exeext conftest.$ac_ext ;;
11099 esac
11100 fi
11101
11102
11103 CFLAGS="$xorg_testset_save_CFLAGS"
11104
11105 eval supported=\$$cacheid
11106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11107 printf '%s\n' "$supported" >&6; }
11108 if test "$supported" = "yes" ; then
11109 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11110 found="yes"
11111 fi
11112 fi
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 xorg_testset_save_CFLAGS="$CFLAGS"
11129
11130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11132 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11134 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11135 then :
11136 printf %s "(cached) " >&6
11137 else case e in #(
11138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h. */
11140 int i;
11141 _ACEOF
11142 if ac_fn_c_try_compile "$LINENO"
11143 then :
11144 xorg_cv_cc_flag_unknown_warning_option=yes
11145 else case e in #(
11146 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11147 esac
11148 fi
11149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11150 esac
11151 fi
11152 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11153 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11155 CFLAGS="$xorg_testset_save_CFLAGS"
11156 fi
11157
11158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11161 fi
11162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11163 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11166 then :
11167 printf %s "(cached) " >&6
11168 else case e in #(
11169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 int i;
11172 _ACEOF
11173 if ac_fn_c_try_compile "$LINENO"
11174 then :
11175 xorg_cv_cc_flag_unused_command_line_argument=yes
11176 else case e in #(
11177 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11178 esac
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11181 esac
11182 fi
11183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11184 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11186 CFLAGS="$xorg_testset_save_CFLAGS"
11187 fi
11188
11189 found="no"
11190
11191 if test $found = "no" ; then
11192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11194 fi
11195
11196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11198 fi
11199
11200 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11201
11202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11203 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11204 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11205 if eval test \${$cacheid+y}
11206 then :
11207 printf %s "(cached) " >&6
11208 else case e in #(
11209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11211 int i;
11212 int
11213 main (void)
11214 {
11215
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"
11221 then :
11222 eval $cacheid=yes
11223 else case e in #(
11224 e) eval $cacheid=no ;;
11225 esac
11226 fi
11227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11228 conftest$ac_exeext conftest.$ac_ext ;;
11229 esac
11230 fi
11231
11232
11233 CFLAGS="$xorg_testset_save_CFLAGS"
11234
11235 eval supported=\$$cacheid
11236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11237 printf '%s\n' "$supported" >&6; }
11238 if test "$supported" = "yes" ; then
11239 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11240 found="yes"
11241 fi
11242 fi
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258 xorg_testset_save_CFLAGS="$CFLAGS"
11259
11260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11263 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11264 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11265 then :
11266 printf %s "(cached) " >&6
11267 else case e in #(
11268 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11270 int i;
11271 _ACEOF
11272 if ac_fn_c_try_compile "$LINENO"
11273 then :
11274 xorg_cv_cc_flag_unknown_warning_option=yes
11275 else case e in #(
11276 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11277 esac
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11280 esac
11281 fi
11282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11283 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11285 CFLAGS="$xorg_testset_save_CFLAGS"
11286 fi
11287
11288 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11291 fi
11292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11294 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11295 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11296 then :
11297 printf %s "(cached) " >&6
11298 else case e in #(
11299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301 int i;
11302 _ACEOF
11303 if ac_fn_c_try_compile "$LINENO"
11304 then :
11305 xorg_cv_cc_flag_unused_command_line_argument=yes
11306 else case e in #(
11307 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11308 esac
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11311 esac
11312 fi
11313 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11314 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11316 CFLAGS="$xorg_testset_save_CFLAGS"
11317 fi
11318
11319 found="no"
11320
11321 if test $found = "no" ; then
11322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11324 fi
11325
11326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11328 fi
11329
11330 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11331
11332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11333 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11334 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11335 if eval test \${$cacheid+y}
11336 then :
11337 printf %s "(cached) " >&6
11338 else case e in #(
11339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341 int i;
11342 int
11343 main (void)
11344 {
11345
11346 ;
11347 return 0;
11348 }
11349 _ACEOF
11350 if ac_fn_c_try_link "$LINENO"
11351 then :
11352 eval $cacheid=yes
11353 else case e in #(
11354 e) eval $cacheid=no ;;
11355 esac
11356 fi
11357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11358 conftest$ac_exeext conftest.$ac_ext ;;
11359 esac
11360 fi
11361
11362
11363 CFLAGS="$xorg_testset_save_CFLAGS"
11364
11365 eval supported=\$$cacheid
11366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11367 printf '%s\n' "$supported" >&6; }
11368 if test "$supported" = "yes" ; then
11369 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11370 found="yes"
11371 fi
11372 fi
11373
11374
11375 fi
11376
11377
11378
11379
11380
11381
11382
11383 CWARNFLAGS="$BASE_CFLAGS"
11384 if test "x$GCC" = xyes ; then
11385 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11386 fi
11387
11388
11389
11390
11391
11392
11393
11394
11395 # Check whether --enable-strict-compilation was given.
11396 if test ${enable_strict_compilation+y}
11397 then :
11398 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11399 else case e in #(
11400 e) STRICT_COMPILE=no ;;
11401 esac
11402 fi
11403
11404
11405
11406
11407
11408
11409 STRICT_CFLAGS=""
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423 xorg_testset_save_CFLAGS="$CFLAGS"
11424
11425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11427 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11428 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11429 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11430 then :
11431 printf %s "(cached) " >&6
11432 else case e in #(
11433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11435 int i;
11436 _ACEOF
11437 if ac_fn_c_try_compile "$LINENO"
11438 then :
11439 xorg_cv_cc_flag_unknown_warning_option=yes
11440 else case e in #(
11441 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11442 esac
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11445 esac
11446 fi
11447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11448 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11450 CFLAGS="$xorg_testset_save_CFLAGS"
11451 fi
11452
11453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11456 fi
11457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11458 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11459 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11460 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11461 then :
11462 printf %s "(cached) " >&6
11463 else case e in #(
11464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466 int i;
11467 _ACEOF
11468 if ac_fn_c_try_compile "$LINENO"
11469 then :
11470 xorg_cv_cc_flag_unused_command_line_argument=yes
11471 else case e in #(
11472 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11473 esac
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11476 esac
11477 fi
11478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11479 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11481 CFLAGS="$xorg_testset_save_CFLAGS"
11482 fi
11483
11484 found="no"
11485
11486 if test $found = "no" ; then
11487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11489 fi
11490
11491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11493 fi
11494
11495 CFLAGS="$CFLAGS -pedantic"
11496
11497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11498 printf %s "checking if $CC supports -pedantic... " >&6; }
11499 cacheid=xorg_cv_cc_flag__pedantic
11500 if eval test \${$cacheid+y}
11501 then :
11502 printf %s "(cached) " >&6
11503 else case e in #(
11504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 int i;
11507 int
11508 main (void)
11509 {
11510
11511 ;
11512 return 0;
11513 }
11514 _ACEOF
11515 if ac_fn_c_try_link "$LINENO"
11516 then :
11517 eval $cacheid=yes
11518 else case e in #(
11519 e) eval $cacheid=no ;;
11520 esac
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11523 conftest$ac_exeext conftest.$ac_ext ;;
11524 esac
11525 fi
11526
11527
11528 CFLAGS="$xorg_testset_save_CFLAGS"
11529
11530 eval supported=\$$cacheid
11531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11532 printf '%s\n' "$supported" >&6; }
11533 if test "$supported" = "yes" ; then
11534 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11535 found="yes"
11536 fi
11537 fi
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553 xorg_testset_save_CFLAGS="$CFLAGS"
11554
11555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11559 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11560 then :
11561 printf %s "(cached) " >&6
11562 else case e in #(
11563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11565 int i;
11566 _ACEOF
11567 if ac_fn_c_try_compile "$LINENO"
11568 then :
11569 xorg_cv_cc_flag_unknown_warning_option=yes
11570 else case e in #(
11571 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11572 esac
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11575 esac
11576 fi
11577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11578 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11580 CFLAGS="$xorg_testset_save_CFLAGS"
11581 fi
11582
11583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11586 fi
11587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11589 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11590 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11591 then :
11592 printf %s "(cached) " >&6
11593 else case e in #(
11594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596 int i;
11597 _ACEOF
11598 if ac_fn_c_try_compile "$LINENO"
11599 then :
11600 xorg_cv_cc_flag_unused_command_line_argument=yes
11601 else case e in #(
11602 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11603 esac
11604 fi
11605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11606 esac
11607 fi
11608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11609 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11611 CFLAGS="$xorg_testset_save_CFLAGS"
11612 fi
11613
11614 found="no"
11615
11616 if test $found = "no" ; then
11617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11619 fi
11620
11621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11623 fi
11624
11625 CFLAGS="$CFLAGS -Werror"
11626
11627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11628 printf %s "checking if $CC supports -Werror... " >&6; }
11629 cacheid=xorg_cv_cc_flag__Werror
11630 if eval test \${$cacheid+y}
11631 then :
11632 printf %s "(cached) " >&6
11633 else case e in #(
11634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11636 int i;
11637 int
11638 main (void)
11639 {
11640
11641 ;
11642 return 0;
11643 }
11644 _ACEOF
11645 if ac_fn_c_try_link "$LINENO"
11646 then :
11647 eval $cacheid=yes
11648 else case e in #(
11649 e) eval $cacheid=no ;;
11650 esac
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11653 conftest$ac_exeext conftest.$ac_ext ;;
11654 esac
11655 fi
11656
11657
11658 CFLAGS="$xorg_testset_save_CFLAGS"
11659
11660 eval supported=\$$cacheid
11661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11662 printf '%s\n' "$supported" >&6; }
11663 if test "$supported" = "yes" ; then
11664 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11665 found="yes"
11666 fi
11667 fi
11668
11669 if test $found = "no" ; then
11670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11672 fi
11673
11674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11676 fi
11677
11678 CFLAGS="$CFLAGS -errwarn"
11679
11680 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11681 printf %s "checking if $CC supports -errwarn... " >&6; }
11682 cacheid=xorg_cv_cc_flag__errwarn
11683 if eval test \${$cacheid+y}
11684 then :
11685 printf %s "(cached) " >&6
11686 else case e in #(
11687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689 int i;
11690 int
11691 main (void)
11692 {
11693
11694 ;
11695 return 0;
11696 }
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"
11699 then :
11700 eval $cacheid=yes
11701 else case e in #(
11702 e) eval $cacheid=no ;;
11703 esac
11704 fi
11705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11706 conftest$ac_exeext conftest.$ac_ext ;;
11707 esac
11708 fi
11709
11710
11711 CFLAGS="$xorg_testset_save_CFLAGS"
11712
11713 eval supported=\$$cacheid
11714 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11715 printf '%s\n' "$supported" >&6; }
11716 if test "$supported" = "yes" ; then
11717 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11718 found="yes"
11719 fi
11720 fi
11721
11722
11723
11724 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11725 # activate it with -Werror, so we add it here explicitly.
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739 xorg_testset_save_CFLAGS="$CFLAGS"
11740
11741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11744 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11745 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11746 then :
11747 printf %s "(cached) " >&6
11748 else case e in #(
11749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751 int i;
11752 _ACEOF
11753 if ac_fn_c_try_compile "$LINENO"
11754 then :
11755 xorg_cv_cc_flag_unknown_warning_option=yes
11756 else case e in #(
11757 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11758 esac
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11761 esac
11762 fi
11763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11764 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11766 CFLAGS="$xorg_testset_save_CFLAGS"
11767 fi
11768
11769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11772 fi
11773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11775 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11776 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11777 then :
11778 printf %s "(cached) " >&6
11779 else case e in #(
11780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11782 int i;
11783 _ACEOF
11784 if ac_fn_c_try_compile "$LINENO"
11785 then :
11786 xorg_cv_cc_flag_unused_command_line_argument=yes
11787 else case e in #(
11788 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11789 esac
11790 fi
11791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11792 esac
11793 fi
11794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11795 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11797 CFLAGS="$xorg_testset_save_CFLAGS"
11798 fi
11799
11800 found="no"
11801
11802 if test $found = "no" ; then
11803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11805 fi
11806
11807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11809 fi
11810
11811 CFLAGS="$CFLAGS -Werror=attributes"
11812
11813 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11814 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11815 cacheid=xorg_cv_cc_flag__Werror_attributes
11816 if eval test \${$cacheid+y}
11817 then :
11818 printf %s "(cached) " >&6
11819 else case e in #(
11820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11822 int i;
11823 int
11824 main (void)
11825 {
11826
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_link "$LINENO"
11832 then :
11833 eval $cacheid=yes
11834 else case e in #(
11835 e) eval $cacheid=no ;;
11836 esac
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11839 conftest$ac_exeext conftest.$ac_ext ;;
11840 esac
11841 fi
11842
11843
11844 CFLAGS="$xorg_testset_save_CFLAGS"
11845
11846 eval supported=\$$cacheid
11847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11848 printf '%s\n' "$supported" >&6; }
11849 if test "$supported" = "yes" ; then
11850 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11851 found="yes"
11852 fi
11853 fi
11854
11855
11856
11857 if test "x$STRICT_COMPILE" = "xyes"; then
11858 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11859 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11860 fi
11861
11862
11863
11864
11865
11866
11867
11868
11869 cat >>confdefs.h <<_ACEOF
11870 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11871 _ACEOF
11872
11873 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11874 if test "x$PVM" = "x"; then
11875 PVM="0"
11876 fi
11877
11878 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11879
11880 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11881 if test "x$PVP" = "x"; then
11882 PVP="0"
11883 fi
11884
11885 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11886
11887
11888
11889 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11890 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11891 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11892 touch \$(top_srcdir)/ChangeLog; \
11893 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11894
11895
11896
11897
11898 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11899 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11900 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11901 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11902 touch \$(top_srcdir)/INSTALL; \
11903 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11904
11905
11906
11907
11908
11909
11910 case $host_os in
11911 solaris*)
11912 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11913 # check for a man page file found in later versions that use
11914 # traditional section numbers instead
11915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11916 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11917 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11918 then :
11919 printf %s "(cached) " >&6
11920 else case e in #(
11921 e) test "$cross_compiling" = yes &&
11922 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11923 if test -r "/usr/share/man/man7/attributes.7"; then
11924 ac_cv_file__usr_share_man_man7_attributes_7=yes
11925 else
11926 ac_cv_file__usr_share_man_man7_attributes_7=no
11927 fi ;;
11928 esac
11929 fi
11930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11931 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11932 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11933 then :
11934 SYSV_MAN_SECTIONS=false
11935 else case e in #(
11936 e) SYSV_MAN_SECTIONS=true ;;
11937 esac
11938 fi
11939
11940 ;;
11941 *) SYSV_MAN_SECTIONS=false ;;
11942 esac
11943
11944 if test x$APP_MAN_SUFFIX = x ; then
11945 APP_MAN_SUFFIX=1
11946 fi
11947 if test x$APP_MAN_DIR = x ; then
11948 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11949 fi
11950
11951 if test x$LIB_MAN_SUFFIX = x ; then
11952 LIB_MAN_SUFFIX=3
11953 fi
11954 if test x$LIB_MAN_DIR = x ; then
11955 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11956 fi
11957
11958 if test x$FILE_MAN_SUFFIX = x ; then
11959 case $SYSV_MAN_SECTIONS in
11960 true) FILE_MAN_SUFFIX=4 ;;
11961 *) FILE_MAN_SUFFIX=5 ;;
11962 esac
11963 fi
11964 if test x$FILE_MAN_DIR = x ; then
11965 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11966 fi
11967
11968 if test x$MISC_MAN_SUFFIX = x ; then
11969 case $SYSV_MAN_SECTIONS in
11970 true) MISC_MAN_SUFFIX=5 ;;
11971 *) MISC_MAN_SUFFIX=7 ;;
11972 esac
11973 fi
11974 if test x$MISC_MAN_DIR = x ; then
11975 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11976 fi
11977
11978 if test x$DRIVER_MAN_SUFFIX = x ; then
11979 case $SYSV_MAN_SECTIONS in
11980 true) DRIVER_MAN_SUFFIX=7 ;;
11981 *) DRIVER_MAN_SUFFIX=4 ;;
11982 esac
11983 fi
11984 if test x$DRIVER_MAN_DIR = x ; then
11985 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11986 fi
11987
11988 if test x$ADMIN_MAN_SUFFIX = x ; then
11989 case $SYSV_MAN_SECTIONS in
11990 true) ADMIN_MAN_SUFFIX=1m ;;
11991 *) ADMIN_MAN_SUFFIX=8 ;;
11992 esac
11993 fi
11994 if test x$ADMIN_MAN_DIR = x ; then
11995 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11996 fi
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012 XORG_MAN_PAGE="X Version 11"
12013
12014 MAN_SUBSTS="\
12015 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12016 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12017 -e 's|__xservername__|Xorg|g' \
12018 -e 's|__xconfigfile__|xorg.conf|g' \
12019 -e 's|__projectroot__|\$(prefix)|g' \
12020 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
12021 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12022 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12023 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12024 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12025 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12026 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12027
12028
12029
12030
12031 AM_DEFAULT_VERBOSITY=0
12032
12033
12034
12035
12036
12037 # Checks for system functions
12038 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
12039 if test "x$ac_cv_func_usleep" = xyes
12040 then :
12041 printf '%s\n' "#define HAVE_USLEEP 1" >>confdefs.h
12042
12043 fi
12044
12045
12046 # Checks for pkg-config packages
12047
12048 pkg_failed=no
12049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
12050 printf %s "checking for XSET... " >&6; }
12051
12052 if test -n "$XSET_CFLAGS"; then
12053 pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
12054 elif test -n "$PKG_CONFIG"; then
12055 if test -n "$PKG_CONFIG" && \
12056 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
12057 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
12058 ac_status=$?
12059 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060 test $ac_status = 0; }; then
12061 pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
12062 test "x$?" != "x0" && pkg_failed=yes
12063 else
12064 pkg_failed=yes
12065 fi
12066 else
12067 pkg_failed=untried
12068 fi
12069 if test -n "$XSET_LIBS"; then
12070 pkg_cv_XSET_LIBS="$XSET_LIBS"
12071 elif test -n "$PKG_CONFIG"; then
12072 if test -n "$PKG_CONFIG" && \
12073 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
12074 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
12075 ac_status=$?
12076 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12077 test $ac_status = 0; }; then
12078 pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
12079 test "x$?" != "x0" && pkg_failed=yes
12080 else
12081 pkg_failed=yes
12082 fi
12083 else
12084 pkg_failed=untried
12085 fi
12086
12087
12088
12089 if test $pkg_failed = yes; then
12090 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 printf '%s\n' "no" >&6; }
12092
12093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12094 _pkg_short_errors_supported=yes
12095 else
12096 _pkg_short_errors_supported=no
12097 fi
12098 if test $_pkg_short_errors_supported = yes; then
12099 XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
12100 else
12101 XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
12102 fi
12103 # Put the nasty error message in config.log where it belongs
12104 echo "$XSET_PKG_ERRORS" >&5
12105
12106 as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
12107
12108 $XSET_PKG_ERRORS
12109
12110 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12111 installed software in a non-standard prefix.
12112
12113 Alternatively, you may set the environment variables XSET_CFLAGS
12114 and XSET_LIBS to avoid the need to call pkg-config.
12115 See the pkg-config man page for more details." "$LINENO" 5
12116 elif test $pkg_failed = untried; then
12117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 printf '%s\n' "no" >&6; }
12119 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12120 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12121 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12122 is in your PATH or set the PKG_CONFIG environment variable to the full
12123 path to pkg-config.
12124
12125 Alternatively, you may set the environment variables XSET_CFLAGS
12126 and XSET_LIBS to avoid the need to call pkg-config.
12127 See the pkg-config man page for more details.
12128
12129 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12130 See 'config.log' for more details" "$LINENO" 5; }
12131 else
12132 XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
12133 XSET_LIBS=$pkg_cv_XSET_LIBS
12134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12135 printf '%s\n' "yes" >&6; }
12136
12137 fi
12138
12139 # This is used below to allow <X11/Xlib.h> to be found
12140
12141 pkg_failed=no
12142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
12143 printf %s "checking for SET_X11... " >&6; }
12144
12145 if test -n "$SET_X11_CFLAGS"; then
12146 pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
12147 elif test -n "$PKG_CONFIG"; then
12148 if test -n "$PKG_CONFIG" && \
12149 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12150 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12151 ac_status=$?
12152 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153 test $ac_status = 0; }; then
12154 pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
12155 test "x$?" != "x0" && pkg_failed=yes
12156 else
12157 pkg_failed=yes
12158 fi
12159 else
12160 pkg_failed=untried
12161 fi
12162 if test -n "$SET_X11_LIBS"; then
12163 pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
12164 elif test -n "$PKG_CONFIG"; then
12165 if test -n "$PKG_CONFIG" && \
12166 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12167 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12168 ac_status=$?
12169 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12170 test $ac_status = 0; }; then
12171 pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
12172 test "x$?" != "x0" && pkg_failed=yes
12173 else
12174 pkg_failed=yes
12175 fi
12176 else
12177 pkg_failed=untried
12178 fi
12179
12180
12181
12182 if test $pkg_failed = yes; then
12183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 printf '%s\n' "no" >&6; }
12185
12186 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12187 _pkg_short_errors_supported=yes
12188 else
12189 _pkg_short_errors_supported=no
12190 fi
12191 if test $_pkg_short_errors_supported = yes; then
12192 SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
12193 else
12194 SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
12195 fi
12196 # Put the nasty error message in config.log where it belongs
12197 echo "$SET_X11_PKG_ERRORS" >&5
12198
12199 as_fn_error $? "Package requirements (x11) were not met:
12200
12201 $SET_X11_PKG_ERRORS
12202
12203 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12204 installed software in a non-standard prefix.
12205
12206 Alternatively, you may set the environment variables SET_X11_CFLAGS
12207 and SET_X11_LIBS to avoid the need to call pkg-config.
12208 See the pkg-config man page for more details." "$LINENO" 5
12209 elif test $pkg_failed = untried; then
12210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 printf '%s\n' "no" >&6; }
12212 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12213 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12214 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12215 is in your PATH or set the PKG_CONFIG environment variable to the full
12216 path to pkg-config.
12217
12218 Alternatively, you may set the environment variables SET_X11_CFLAGS
12219 and SET_X11_LIBS to avoid the need to call pkg-config.
12220 See the pkg-config man page for more details.
12221
12222 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12223 See 'config.log' for more details" "$LINENO" 5; }
12224 else
12225 SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
12226 SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
12227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228 printf '%s\n' "yes" >&6; }
12229
12230 fi
12231
12232
12233 pkg_failed=no
12234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
12235 printf %s "checking for SET_XEXT... " >&6; }
12236
12237 if test -n "$SET_XEXT_CFLAGS"; then
12238 pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
12239 elif test -n "$PKG_CONFIG"; then
12240 if test -n "$PKG_CONFIG" && \
12241 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
12242 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
12243 ac_status=$?
12244 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12245 test $ac_status = 0; }; then
12246 pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
12247 test "x$?" != "x0" && pkg_failed=yes
12248 else
12249 pkg_failed=yes
12250 fi
12251 else
12252 pkg_failed=untried
12253 fi
12254 if test -n "$SET_XEXT_LIBS"; then
12255 pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
12256 elif test -n "$PKG_CONFIG"; then
12257 if test -n "$PKG_CONFIG" && \
12258 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
12259 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
12260 ac_status=$?
12261 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262 test $ac_status = 0; }; then
12263 pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
12264 test "x$?" != "x0" && pkg_failed=yes
12265 else
12266 pkg_failed=yes
12267 fi
12268 else
12269 pkg_failed=untried
12270 fi
12271
12272
12273
12274 if test $pkg_failed = yes; then
12275 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 printf '%s\n' "no" >&6; }
12277
12278 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12279 _pkg_short_errors_supported=yes
12280 else
12281 _pkg_short_errors_supported=no
12282 fi
12283 if test $_pkg_short_errors_supported = yes; then
12284 SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
12285 else
12286 SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
12287 fi
12288 # Put the nasty error message in config.log where it belongs
12289 echo "$SET_XEXT_PKG_ERRORS" >&5
12290
12291 echo "not found"
12292 elif test $pkg_failed = untried; then
12293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 printf '%s\n' "no" >&6; }
12295 echo "not found"
12296 else
12297 SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
12298 SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
12299 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12300 printf '%s\n' "yes" >&6; }
12301 SAVE_CPPFLAGS="$CPPFLAGS"
12302 CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
12303 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h>
12304 "
12305 if test "x$ac_cv_header_X11_extensions_dpms_h" = xyes
12306 then :
12307 printf '%s\n' "#define HAVE_X11_EXTENSIONS_DPMS_H 1" >>confdefs.h
12308
12309 fi
12310 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/MITMisc.h" "ac_cv_header_X11_extensions_MITMisc_h" "#include <X11/Xlib.h>
12311 "
12312 if test "x$ac_cv_header_X11_extensions_MITMisc_h" = xyes
12313 then :
12314 printf '%s\n' "#define HAVE_X11_EXTENSIONS_MITMISC_H 1" >>confdefs.h
12315
12316 fi
12317
12318 CPPFLAGS="$SAVE_CPPFLAGS"
12319 fi
12320
12321
12322 pkg_failed=no
12323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
12324 printf %s "checking for SET_XKB... " >&6; }
12325
12326 if test -n "$SET_XKB_CFLAGS"; then
12327 pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
12328 elif test -n "$PKG_CONFIG"; then
12329 if test -n "$PKG_CONFIG" && \
12330 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12331 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12332 ac_status=$?
12333 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334 test $ac_status = 0; }; then
12335 pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
12336 test "x$?" != "x0" && pkg_failed=yes
12337 else
12338 pkg_failed=yes
12339 fi
12340 else
12341 pkg_failed=untried
12342 fi
12343 if test -n "$SET_XKB_LIBS"; then
12344 pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
12345 elif test -n "$PKG_CONFIG"; then
12346 if test -n "$PKG_CONFIG" && \
12347 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12348 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12349 ac_status=$?
12350 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12351 test $ac_status = 0; }; then
12352 pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
12353 test "x$?" != "x0" && pkg_failed=yes
12354 else
12355 pkg_failed=yes
12356 fi
12357 else
12358 pkg_failed=untried
12359 fi
12360
12361
12362
12363 if test $pkg_failed = yes; then
12364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 printf '%s\n' "no" >&6; }
12366
12367 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12368 _pkg_short_errors_supported=yes
12369 else
12370 _pkg_short_errors_supported=no
12371 fi
12372 if test $_pkg_short_errors_supported = yes; then
12373 SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
12374 else
12375 SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
12376 fi
12377 # Put the nasty error message in config.log where it belongs
12378 echo "$SET_XKB_PKG_ERRORS" >&5
12379
12380 echo "not found"
12381 elif test $pkg_failed = untried; then
12382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 printf '%s\n' "no" >&6; }
12384 echo "not found"
12385 else
12386 SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
12387 SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
12388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 printf '%s\n' "yes" >&6; }
12390 SAVE_CPPFLAGS="$CPPFLAGS"
12391 CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
12392 ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
12393 "
12394 if test "x$ac_cv_header_X11_XKBlib_h" = xyes
12395 then :
12396 printf '%s\n' "#define HAVE_X11_XKBLIB_H 1" >>confdefs.h
12397
12398 fi
12399
12400 CPPFLAGS="$SAVE_CPPFLAGS"
12401 fi
12402
12403
12404 # Check whether --with-xf86misc was given.
12405 if test ${with_xf86misc+y}
12406 then :
12407 withval=$with_xf86misc; USE_XF86MISC="$withval"
12408 else case e in #(
12409 e) USE_XF86MISC="no" ;;
12410 esac
12411 fi
12412
12413 if test "x$USE_XF86MISC" != "xno" ; then
12414
12415 pkg_failed=no
12416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
12417 printf %s "checking for SET_XF86MISC... " >&6; }
12418
12419 if test -n "$SET_XF86MISC_CFLAGS"; then
12420 pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
12421 elif test -n "$PKG_CONFIG"; then
12422 if test -n "$PKG_CONFIG" && \
12423 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
12424 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
12425 ac_status=$?
12426 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12427 test $ac_status = 0; }; then
12428 pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
12429 test "x$?" != "x0" && pkg_failed=yes
12430 else
12431 pkg_failed=yes
12432 fi
12433 else
12434 pkg_failed=untried
12435 fi
12436 if test -n "$SET_XF86MISC_LIBS"; then
12437 pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
12438 elif test -n "$PKG_CONFIG"; then
12439 if test -n "$PKG_CONFIG" && \
12440 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
12441 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
12442 ac_status=$?
12443 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444 test $ac_status = 0; }; then
12445 pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
12446 test "x$?" != "x0" && pkg_failed=yes
12447 else
12448 pkg_failed=yes
12449 fi
12450 else
12451 pkg_failed=untried
12452 fi
12453
12454
12455
12456 if test $pkg_failed = yes; then
12457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 printf '%s\n' "no" >&6; }
12459
12460 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12461 _pkg_short_errors_supported=yes
12462 else
12463 _pkg_short_errors_supported=no
12464 fi
12465 if test $_pkg_short_errors_supported = yes; then
12466 SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1`
12467 else
12468 SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1`
12469 fi
12470 # Put the nasty error message in config.log where it belongs
12471 echo "$SET_XF86MISC_PKG_ERRORS" >&5
12472
12473 echo "not found"
12474 elif test $pkg_failed = untried; then
12475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 printf '%s\n' "no" >&6; }
12477 echo "not found"
12478 else
12479 SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
12480 SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
12481 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482 printf '%s\n' "yes" >&6; }
12483 SAVE_CPPFLAGS="$CPPFLAGS"
12484 CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
12485 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86misc.h" "ac_cv_header_X11_extensions_xf86misc_h" "#include <X11/Xlib.h>
12486 #include <X11/Xproto.h>
12487 "
12488 if test "x$ac_cv_header_X11_extensions_xf86misc_h" = xyes
12489 then :
12490 printf '%s\n' "#define HAVE_X11_EXTENSIONS_XF86MISC_H 1" >>confdefs.h
12491
12492 fi
12493 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86mscstr.h" "ac_cv_header_X11_extensions_xf86mscstr_h" "#include <X11/Xlib.h>
12494 #include <X11/Xproto.h>
12495 "
12496 if test "x$ac_cv_header_X11_extensions_xf86mscstr_h" = xyes
12497 then :
12498 printf '%s\n' "#define HAVE_X11_EXTENSIONS_XF86MSCSTR_H 1" >>confdefs.h
12499
12500 fi
12501
12502 CPPFLAGS="$SAVE_CPPFLAGS"
12503 fi
12504 else
12505 echo "without xf86misc"
12506 fi
12507
12508
12509 # Check whether --with-fontcache was given.
12510 if test ${with_fontcache+y}
12511 then :
12512 withval=$with_fontcache; USE_XFONTCACHE="$withval"
12513 else case e in #(
12514 e) USE_XFONTCACHE="yes" ;;
12515 esac
12516 fi
12517
12518 if test "x$USE_XFONTCACHE" != "xno" ; then
12519
12520 pkg_failed=no
12521 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
12522 printf %s "checking for SET_FONTCACHE... " >&6; }
12523
12524 if test -n "$SET_FONTCACHE_CFLAGS"; then
12525 pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
12526 elif test -n "$PKG_CONFIG"; then
12527 if test -n "$PKG_CONFIG" && \
12528 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
12529 ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
12530 ac_status=$?
12531 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532 test $ac_status = 0; }; then
12533 pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
12534 test "x$?" != "x0" && pkg_failed=yes
12535 else
12536 pkg_failed=yes
12537 fi
12538 else
12539 pkg_failed=untried
12540 fi
12541 if test -n "$SET_FONTCACHE_LIBS"; then
12542 pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
12543 elif test -n "$PKG_CONFIG"; then
12544 if test -n "$PKG_CONFIG" && \
12545 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
12546 ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
12547 ac_status=$?
12548 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12549 test $ac_status = 0; }; then
12550 pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
12551 test "x$?" != "x0" && pkg_failed=yes
12552 else
12553 pkg_failed=yes
12554 fi
12555 else
12556 pkg_failed=untried
12557 fi
12558
12559
12560
12561 if test $pkg_failed = yes; then
12562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 printf '%s\n' "no" >&6; }
12564
12565 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12566 _pkg_short_errors_supported=yes
12567 else
12568 _pkg_short_errors_supported=no
12569 fi
12570 if test $_pkg_short_errors_supported = yes; then
12571 SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfontcache" 2>&1`
12572 else
12573 SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfontcache" 2>&1`
12574 fi
12575 # Put the nasty error message in config.log where it belongs
12576 echo "$SET_FONTCACHE_PKG_ERRORS" >&5
12577
12578 echo "not found"
12579 elif test $pkg_failed = untried; then
12580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 printf '%s\n' "no" >&6; }
12582 echo "not found"
12583 else
12584 SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
12585 SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
12586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 printf '%s\n' "yes" >&6; }
12588 SAVE_CPPFLAGS="$CPPFLAGS"
12589 CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
12590 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/fontcache.h" "ac_cv_header_X11_extensions_fontcache_h" "#include <X11/Xlib.h>
12591 "
12592 if test "x$ac_cv_header_X11_extensions_fontcache_h" = xyes
12593 then :
12594 printf '%s\n' "#define HAVE_X11_EXTENSIONS_FONTCACHE_H 1" >>confdefs.h
12595
12596 fi
12597 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/fontcacheP.h" "ac_cv_header_X11_extensions_fontcacheP_h" "#include <X11/Xlib.h>
12598 "
12599 if test "x$ac_cv_header_X11_extensions_fontcacheP_h" = xyes
12600 then :
12601 printf '%s\n' "#define HAVE_X11_EXTENSIONS_FONTCACHEP_H 1" >>confdefs.h
12602
12603 fi
12604
12605 CPPFLAGS="$SAVE_CPPFLAGS"
12606 fi
12607 else
12608 echo "without fontcache"
12609 fi
12610
12611 XSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
12612 XSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
12613
12614
12615 ac_config_files="$ac_config_files Makefile man/Makefile"
12616
12617 cat >confcache <<\_ACEOF
12618 # This file is a shell script that caches the results of configure
12619 # tests run on this system so they can be shared between configure
12620 # scripts and configure runs, see configure's option --config-cache.
12621 # It is not useful on other systems. If it contains results you don't
12622 # want to keep, you may remove or edit it.
12623 #
12624 # config.status only pays attention to the cache file if you give it
12625 # the --recheck option to rerun configure.
12626 #
12627 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12628 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12629 # following values.
12630
12631 _ACEOF
12632
12633 ac_cache_dump |
12634 sed '
12635 /^ac_cv_env_/b end
12636 t clear
12637 :clear
12638 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12639 t end
12640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12641 :end' >>confcache
12642 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12643 if test -w "$cache_file"; then
12644 if test "x$cache_file" != "x/dev/null"; then
12645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12646 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
12647 if test ! -f "$cache_file" || test -h "$cache_file"; then
12648 cat confcache >"$cache_file"
12649 else
12650 case $cache_file in #(
12651 */* | ?:*)
12652 mv -f confcache "$cache_file"$$ &&
12653 mv -f "$cache_file"$$ "$cache_file" ;; #(
12654 *)
12655 mv -f confcache "$cache_file" ;;
12656 esac
12657 fi
12658 fi
12659 else
12660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12661 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
12662 fi
12663 fi
12664 rm -f confcache
12665
12666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12667 # Let make expand exec_prefix.
12668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12669
12670 DEFS=-DHAVE_CONFIG_H
12671
12672 ac_libobjs=
12673 ac_ltlibobjs=
12674 U=
12675 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12676 # 1. Remove the extension, and $U if already installed.
12677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12678 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
12679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12680 # will be set to the directory where LIBOBJS objects are built.
12681 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12682 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12683 done
12684 LIBOBJS=$ac_libobjs
12685
12686 LTLIBOBJS=$ac_ltlibobjs
12687
12688
12689 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12690 printf %s "checking that generated files are newer than configure... " >&6; }
12691 if test -n "$am_sleep_pid"; then
12692 # Hide warnings about reused PIDs.
12693 wait $am_sleep_pid 2>/dev/null
12694 fi
12695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
12696 printf '%s\n' "done" >&6; }
12697 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12698 as_fn_error $? "conditional \"AMDEP\" was never defined.
12699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12700 fi
12701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12702 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12704 fi
12705 case $enable_silent_rules in # (((
12706 yes) AM_DEFAULT_VERBOSITY=0;;
12707 no) AM_DEFAULT_VERBOSITY=1;;
12708 esac
12709 if test $am_cv_make_support_nested_variables = yes; then
12710 AM_V='$(V)'
12711 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12712 else
12713 AM_V=$AM_DEFAULT_VERBOSITY
12714 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12715 fi
12716
12717 if test -n "$EXEEXT"; then
12718 am__EXEEXT_TRUE=
12719 am__EXEEXT_FALSE='#'
12720 else
12721 am__EXEEXT_TRUE='#'
12722 am__EXEEXT_FALSE=
12723 fi
12724
12725
12726 : "${CONFIG_STATUS=./config.status}"
12727 case $CONFIG_STATUS in #(
12728 -*) :
12729 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
12730 */*) :
12731 ;; #(
12732 *) :
12733 CONFIG_STATUS=./$CONFIG_STATUS ;;
12734 esac
12735
12736 ac_write_fail=0
12737 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
12738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12739 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
12740 as_write_fail=0
12741 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
12742 #! $SHELL
12743 # Generated by $as_me.
12744 # Run this file to recreate the current configuration.
12745 # Compiler output produced by configure, useful for debugging
12746 # configure, is in config.log if it exists.
12747
12748 debug=false
12749 ac_cs_recheck=false
12750 ac_cs_silent=false
12751
12752 SHELL=\${CONFIG_SHELL-$SHELL}
12753 export SHELL
12754 _ASEOF
12755 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
12756 ## -------------------- ##
12757 ## M4sh Initialization. ##
12758 ## -------------------- ##
12759
12760 # Be more Bourne compatible
12761 DUALCASE=1; export DUALCASE # for MKS sh
12762 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12763 then :
12764 emulate sh
12765 NULLCMD=:
12766 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12767 # contradicts POSIX and common usage. Disable this.
12768 alias -g '${1+"$@"}'='"$@"'
12769 setopt NO_GLOB_SUBST
12770 else case e in #(
12771 e) case `(set -o) 2>/dev/null` in #(
12772 *posix*) :
12773 set -o posix ;; #(
12774 *) :
12775 ;;
12776 esac ;;
12777 esac
12778 fi
12779
12780
12781
12782 # Reset variables that may have inherited troublesome values from
12783 # the environment.
12784
12785 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12786 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12787 # side effect of setting IFS to empty, thus disabling word splitting.)
12788 # Quoting is to prevent editors from complaining about space-tab.
12789 as_nl='
12790 '
12791 export as_nl
12792 IFS=" "" $as_nl"
12793
12794 PS1='$ '
12795 PS2='> '
12796 PS4='+ '
12797
12798 # Ensure predictable behavior from utilities with locale-dependent output.
12799 LC_ALL=C
12800 export LC_ALL
12801 LANGUAGE=C
12802 export LANGUAGE
12803
12804 # We cannot yet rely on "unset" to work, but we need these variables
12805 # to be unset--not just set to an empty or harmless value--now, to
12806 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12807 # also avoids known problems related to "unset" and subshell syntax
12808 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12809 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12810 do eval test \${$as_var+y} \
12811 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12812 done
12813
12814 # Ensure that fds 0, 1, and 2 are open.
12815 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12816 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12817 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12818
12819 # The user is always right.
12820 if ${PATH_SEPARATOR+false} :; then
12821 PATH_SEPARATOR=:
12822 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12823 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12824 PATH_SEPARATOR=';'
12825 }
12826 fi
12827
12828
12829 # Find who we are. Look in the path if we contain no directory separator.
12830 as_myself=
12831 case $0 in #((
12832 *[\\/]* ) as_myself=$0 ;;
12833 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12835 do
12836 IFS=$as_save_IFS
12837 case $as_dir in #(((
12838 '') as_dir=./ ;;
12839 */) ;;
12840 *) as_dir=$as_dir/ ;;
12841 esac
12842 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12843 done
12844 IFS=$as_save_IFS
12845
12846 ;;
12847 esac
12848 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12849 # in which case we are not to be found in the path.
12850 if test "x$as_myself" = x; then
12851 as_myself=$0
12852 fi
12853 if test ! -f "$as_myself"; then
12854 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12855 exit 1
12856 fi
12857
12858
12859
12860 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12861 # ----------------------------------------
12862 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12863 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12864 # script with STATUS, using 1 if that was 0.
12865 as_fn_error ()
12866 {
12867 as_status=$1; test $as_status -eq 0 && as_status=1
12868 if test "$4"; then
12869 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12870 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12871 fi
12872 printf '%s\n' "$as_me: error: $2" >&2
12873 as_fn_exit $as_status
12874 } # as_fn_error
12875
12876
12877 # as_fn_set_status STATUS
12878 # -----------------------
12879 # Set $? to STATUS, without forking.
12880 as_fn_set_status ()
12881 {
12882 return $1
12883 } # as_fn_set_status
12884
12885 # as_fn_exit STATUS
12886 # -----------------
12887 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12888 as_fn_exit ()
12889 {
12890 set +e
12891 as_fn_set_status $1
12892 exit $1
12893 } # as_fn_exit
12894
12895 # as_fn_unset VAR
12896 # ---------------
12897 # Portably unset VAR.
12898 as_fn_unset ()
12899 {
12900 { eval $1=; unset $1;}
12901 }
12902 as_unset=as_fn_unset
12903
12904 # as_fn_append VAR VALUE
12905 # ----------------------
12906 # Append the text in VALUE to the end of the definition contained in VAR. Take
12907 # advantage of any shell optimizations that allow amortized linear growth over
12908 # repeated appends, instead of the typical quadratic growth present in naive
12909 # implementations.
12910 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12911 then :
12912 eval 'as_fn_append ()
12913 {
12914 eval $1+=\$2
12915 }'
12916 else case e in #(
12917 e) as_fn_append ()
12918 {
12919 eval $1=\$$1\$2
12920 } ;;
12921 esac
12922 fi # as_fn_append
12923
12924 # as_fn_arith ARG...
12925 # ------------------
12926 # Perform arithmetic evaluation on the ARGs, and store the result in the
12927 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12928 # must be portable across $(()) and expr.
12929 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12930 then :
12931 eval 'as_fn_arith ()
12932 {
12933 as_val=$(( $* ))
12934 }'
12935 else case e in #(
12936 e) as_fn_arith ()
12937 {
12938 as_val=`expr "$@" || test $? -eq 1`
12939 } ;;
12940 esac
12941 fi # as_fn_arith
12942
12943
12944 if expr a : '\(a\)' >/dev/null 2>&1 &&
12945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12946 as_expr=expr
12947 else
12948 as_expr=false
12949 fi
12950
12951 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12952 as_basename=basename
12953 else
12954 as_basename=false
12955 fi
12956
12957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12958 as_dirname=dirname
12959 else
12960 as_dirname=false
12961 fi
12962
12963 as_me=`$as_basename -- "$0" ||
12964 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12965 X"$0" : 'X\(//\)$' \| \
12966 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12967 printf '%s\n' X/"$0" |
12968 sed '/^.*\/\([^/][^/]*\)\/*$/{
12969 s//\1/
12970 q
12971 }
12972 /^X\/\(\/\/\)$/{
12973 s//\1/
12974 q
12975 }
12976 /^X\/\(\/\).*/{
12977 s//\1/
12978 q
12979 }
12980 s/.*/./; q'`
12981
12982 # Avoid depending upon Character Ranges.
12983 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12984 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12985 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12986 as_cr_digits='0123456789'
12987 as_cr_alnum=$as_cr_Letters$as_cr_digits
12988
12989 rm -f conf$$ conf$$.exe conf$$.file
12990 if test -d conf$$.dir; then
12991 rm -f conf$$.dir/conf$$.file
12992 else
12993 rm -f conf$$.dir
12994 mkdir conf$$.dir 2>/dev/null
12995 fi
12996 if (echo >conf$$.file) 2>/dev/null; then
12997 if ln -s conf$$.file conf$$ 2>/dev/null; then
12998 as_ln_s='ln -s'
12999 # ... but there are two gotchas:
13000 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13001 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13002 # In both cases, we have to default to 'cp -pR'.
13003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13004 as_ln_s='cp -pR'
13005 elif ln conf$$.file conf$$ 2>/dev/null; then
13006 as_ln_s=ln
13007 else
13008 as_ln_s='cp -pR'
13009 fi
13010 else
13011 as_ln_s='cp -pR'
13012 fi
13013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13014 rmdir conf$$.dir 2>/dev/null
13015
13016
13017 # as_fn_mkdir_p
13018 # -------------
13019 # Create "$as_dir" as a directory, including parents if necessary.
13020 as_fn_mkdir_p ()
13021 {
13022
13023 case $as_dir in #(
13024 -*) as_dir=./$as_dir;;
13025 esac
13026 test -d "$as_dir" || eval $as_mkdir_p || {
13027 as_dirs=
13028 while :; do
13029 case $as_dir in #(
13030 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13031 *) as_qdir=$as_dir;;
13032 esac
13033 as_dirs="'$as_qdir' $as_dirs"
13034 as_dir=`$as_dirname -- "$as_dir" ||
13035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13036 X"$as_dir" : 'X\(//\)[^/]' \| \
13037 X"$as_dir" : 'X\(//\)$' \| \
13038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13039 printf '%s\n' X"$as_dir" |
13040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13041 s//\1/
13042 q
13043 }
13044 /^X\(\/\/\)[^/].*/{
13045 s//\1/
13046 q
13047 }
13048 /^X\(\/\/\)$/{
13049 s//\1/
13050 q
13051 }
13052 /^X\(\/\).*/{
13053 s//\1/
13054 q
13055 }
13056 s/.*/./; q'`
13057 test -d "$as_dir" && break
13058 done
13059 test -z "$as_dirs" || eval "mkdir $as_dirs"
13060 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13061
13062
13063 } # as_fn_mkdir_p
13064 if mkdir -p . 2>/dev/null; then
13065 as_mkdir_p='mkdir -p "$as_dir"'
13066 else
13067 test -d ./-p && rmdir ./-p
13068 as_mkdir_p=false
13069 fi
13070
13071
13072 # as_fn_executable_p FILE
13073 # -----------------------
13074 # Test if FILE is an executable regular file.
13075 as_fn_executable_p ()
13076 {
13077 test -f "$1" && test -x "$1"
13078 } # as_fn_executable_p
13079 as_test_x='test -x'
13080 as_executable_p=as_fn_executable_p
13081
13082 # Sed expression to map a string onto a valid CPP name.
13083 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13084 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13085
13086 # Sed expression to map a string onto a valid variable name.
13087 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13088 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13089
13090
13091 exec 6>&1
13092 ## ------------------------------------- ##
13093 ## Main body of "$CONFIG_STATUS" script. ##
13094 ## ------------------------------------- ##
13095 _ASEOF
13096 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
13097
13098 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13099 # Save the log message, to keep $0 and so on meaningful, and to
13100 # report actual input values of CONFIG_FILES etc. instead of their
13101 # values after options handling.
13102 ac_log="
13103 This file was extended by xset $as_me 1.2.6, which was
13104 generated by GNU Autoconf 2.73. Invocation command line was
13105
13106 CONFIG_FILES = $CONFIG_FILES
13107 CONFIG_HEADERS = $CONFIG_HEADERS
13108 CONFIG_LINKS = $CONFIG_LINKS
13109 CONFIG_COMMANDS = $CONFIG_COMMANDS
13110 $ $0 $@
13111
13112 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13113 "
13114
13115 _ACEOF
13116
13117 case $ac_config_files in *"
13118 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13119 esac
13120
13121 case $ac_config_headers in *"
13122 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13123 esac
13124
13125
13126 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13127 # Files that config.status was made for.
13128 config_files="$ac_config_files"
13129 config_headers="$ac_config_headers"
13130 config_commands="$ac_config_commands"
13131
13132 _ACEOF
13133
13134 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13135 ac_cs_usage="\
13136 '$as_me' instantiates files and other configuration actions
13137 from templates according to the current configuration. Unless the files
13138 and actions are specified as TAGs, all are instantiated by default.
13139
13140 Usage: $0 [OPTION]... [TAG]...
13141
13142 -h, --help print this help, then exit
13143 -V, --version print version number and configuration settings, then exit
13144 --config print configuration, then exit
13145 -q, --quiet, --silent
13146 do not print progress messages
13147 -d, --debug don't remove temporary files
13148 --recheck update $as_me by reconfiguring in the same conditions
13149 --file=FILE[:TEMPLATE]
13150 instantiate the configuration file FILE
13151 --header=FILE[:TEMPLATE]
13152 instantiate the configuration header FILE
13153
13154 Configuration files:
13155 $config_files
13156
13157 Configuration headers:
13158 $config_headers
13159
13160 Configuration commands:
13161 $config_commands
13162
13163 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>."
13164
13165 _ACEOF
13166 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
13167 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13168 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13169 ac_cs_config='$ac_cs_config_escaped'
13170 ac_cs_version="\\
13171 xset config.status 1.2.6
13172 configured by $0, generated by GNU Autoconf 2.73,
13173 with options \\"\$ac_cs_config\\"
13174
13175 Copyright (C) 2026 Free Software Foundation, Inc.
13176 This config.status script is free software; the Free Software Foundation
13177 gives unlimited permission to copy, distribute and modify it."
13178
13179 ac_pwd='$ac_pwd'
13180 srcdir='$srcdir'
13181 INSTALL='$INSTALL'
13182 MKDIR_P='$MKDIR_P'
13183 AWK='$AWK'
13184 test -n "\$AWK" || {
13185 awk '' </dev/null ||
13186 as_fn_error \$? "try installing gawk"
13187 AWK=awk
13188 }
13189 _ACEOF
13190
13191 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13192 # The default lists apply if the user does not specify any file.
13193 ac_need_defaults=:
13194 while test $# != 0
13195 do
13196 case $1 in
13197 --*=?*)
13198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13199 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13200 ac_shift=:
13201 ;;
13202 --*=)
13203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13204 ac_optarg=
13205 ac_shift=:
13206 ;;
13207 *)
13208 ac_option=$1
13209 ac_optarg=$2
13210 ac_shift=shift
13211 ;;
13212 esac
13213
13214 case $ac_option in
13215 # Handling of the options.
13216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13217 ac_cs_recheck=: ;;
13218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13219 printf '%s\n' "$ac_cs_version"; exit ;;
13220 --config | --confi | --conf | --con | --co | --c )
13221 printf '%s\n' "$ac_cs_config"; exit ;;
13222 --debug | --debu | --deb | --de | --d | -d )
13223 debug=: ;;
13224 --file | --fil | --fi | --f )
13225 $ac_shift
13226 case $ac_optarg in
13227 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13228 '') as_fn_error $? "missing file argument" ;;
13229 esac
13230 as_fn_append CONFIG_FILES " '$ac_optarg'"
13231 ac_need_defaults=false;;
13232 --header | --heade | --head | --hea )
13233 $ac_shift
13234 case $ac_optarg in
13235 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13236 esac
13237 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13238 ac_need_defaults=false;;
13239 --he | --h)
13240 # Conflict between --help and --header
13241 as_fn_error $? "ambiguous option: '$1'
13242 Try '$0 --help' for more information.";;
13243 --help | --hel | -h )
13244 printf '%s\n' "$ac_cs_usage"; exit ;;
13245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13246 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13247 ac_cs_silent=: ;;
13248
13249 # This is an error.
13250 -*) as_fn_error $? "unrecognized option: '$1'
13251 Try '$0 --help' for more information." ;;
13252
13253 *) as_fn_append ac_config_targets " $1"
13254 ac_need_defaults=false ;;
13255
13256 esac
13257 shift
13258 done
13259
13260 ac_configure_extra_args=
13261
13262 if $ac_cs_silent; then
13263 exec 6>/dev/null
13264 ac_configure_extra_args="$ac_configure_extra_args --silent"
13265 fi
13266
13267 _ACEOF
13268 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13269 if \$ac_cs_recheck; then
13270 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13271 shift
13272 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
13273 CONFIG_SHELL='$SHELL'
13274 export CONFIG_SHELL
13275 exec "\$@"
13276 fi
13277
13278 _ACEOF
13279 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13280 exec 5>>config.log
13281 {
13282 echo
13283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13284 ## Running $as_me. ##
13285 _ASBOX
13286 printf '%s\n' "$ac_log"
13287 } >&5
13288
13289 _ACEOF
13290 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13291 #
13292 # INIT-COMMANDS
13293 #
13294 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13295
13296 _ACEOF
13297
13298 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13299
13300 # Handling of arguments.
13301 for ac_config_target in $ac_config_targets
13302 do
13303 case $ac_config_target in
13304 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13305 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13307 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13308
13309 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13310 esac
13311 done
13312
13313
13314 # If the user did not use the arguments to specify the items to instantiate,
13315 # then the envvar interface is used. Set only those that are not.
13316 # We use the long form for the default assignment because of an extremely
13317 # bizarre bug on SunOS 4.1.3.
13318 if $ac_need_defaults; then
13319 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13320 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13321 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13322 fi
13323
13324 # Have a temporary directory for convenience. Make it in the build tree
13325 # simply because there is no reason against having it here, and in addition,
13326 # creating and moving files from /tmp can sometimes cause problems.
13327 # Hook for its removal unless debugging.
13328 # Note that there is a small window in which the directory will not be cleaned:
13329 # after its creation but before its name has been assigned to '$tmp'.
13330 $debug ||
13331 {
13332 tmp= ac_tmp=
13333 trap 'exit_status=$?
13334 : "${ac_tmp:=$tmp}"
13335 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13336 ' 0
13337 trap 'as_fn_exit 1' 1 2 13 15
13338 }
13339 # Create a (secure) tmp directory for tmp files.
13340
13341 {
13342 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13343 test -d "$tmp"
13344 } ||
13345 {
13346 tmp=./conf$$-$RANDOM
13347 (umask 077 && mkdir "$tmp")
13348 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13349 ac_tmp=$tmp
13350
13351 # Set up the scripts for CONFIG_FILES section.
13352 # No need to generate them if there are no CONFIG_FILES.
13353 # This happens for instance with './config.status config.h'.
13354 if test -n "$CONFIG_FILES"; then
13355
13356
13357 ac_cr=`echo X | tr X '\015'`
13358 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13359 # But we know of no other shell where ac_cr would be empty at this
13360 # point, so we can use a bashism as a fallback.
13361 if test "x$ac_cr" = x; then
13362 eval ac_cr=\$\'\\r\'
13363 fi
13364 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13365 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13366 ac_cs_awk_cr='\\r'
13367 else
13368 ac_cs_awk_cr=$ac_cr
13369 fi
13370
13371 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13372 _ACEOF
13373
13374
13375 {
13376 echo "cat >conf$$subs.awk <<_ACEOF" &&
13377 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13378 echo "_ACEOF"
13379 } >conf$$subs.sh ||
13380 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13381 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
13382 ac_delim='%!_!# '
13383 for ac_last_try in false false false false false :; do
13384 . ./conf$$subs.sh ||
13385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13386
13387 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
13388 if test $ac_delim_n = $ac_delim_num; then
13389 break
13390 elif $ac_last_try; then
13391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13392 else
13393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13394 fi
13395 done
13396 rm -f conf$$subs.sh
13397
13398 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13399 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13400 _ACEOF
13401 sed -n '
13402 h
13403 s/^/S["/; s/!.*/"]=/
13404 p
13405 g
13406 s/^[^!]*!//
13407 :repl
13408 t repl
13409 s/'"$ac_delim"'$//
13410 t delim
13411 :nl
13412 h
13413 s/\(.\{148\}\)..*/\1/
13414 t more1
13415 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13416 p
13417 n
13418 b repl
13419 :more1
13420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13421 p
13422 g
13423 s/.\{148\}//
13424 t nl
13425 :delim
13426 h
13427 s/\(.\{148\}\)..*/\1/
13428 t more2
13429 s/["\\]/\\&/g; s/^/"/; s/$/"/
13430 p
13431 b
13432 :more2
13433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13434 p
13435 g
13436 s/.\{148\}//
13437 t delim
13438 ' <conf$$subs.awk | sed '
13439 /^[^""]/{
13440 N
13441 s/\n//
13442 }
13443 ' >>"$CONFIG_STATUS" || ac_write_fail=1
13444 rm -f conf$$subs.awk
13445 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13446 _ACAWK
13447 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13448 for (key in S) S_is_set[key] = 1
13449 FS = ""
13450
13451 }
13452 {
13453 line = $ 0
13454 nfields = split(line, field, "@")
13455 substed = 0
13456 len = length(field[1])
13457 for (i = 2; i < nfields; i++) {
13458 key = field[i]
13459 keylen = length(key)
13460 if (S_is_set[key]) {
13461 value = S[key]
13462 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13463 len += length(value) + length(field[++i])
13464 substed = 1
13465 } else
13466 len += 1 + keylen
13467 }
13468
13469 print line
13470 }
13471
13472 _ACAWK
13473 _ACEOF
13474 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13475 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13476 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13477 else
13478 cat
13479 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13480 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13481 _ACEOF
13482
13483 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13484 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13485 # trailing colons and then remove the whole line if VPATH becomes empty
13486 # (actually we leave an empty line to preserve line numbers).
13487 if test "x$srcdir" = x.; then
13488 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13489 h
13490 s///
13491 s/^/:/
13492 s/[ ]*$/:/
13493 s/:\$(srcdir):/:/g
13494 s/:\${srcdir}:/:/g
13495 s/:@srcdir@:/:/g
13496 s/^:*//
13497 s/:*$//
13498 x
13499 s/\(=[ ]*\).*/\1/
13500 G
13501 s/\n//
13502 s/^[^=]*=[ ]*$//
13503 }'
13504 fi
13505
13506 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13507 fi # test -n "$CONFIG_FILES"
13508
13509 # Set up the scripts for CONFIG_HEADERS section.
13510 # No need to generate them if there are no CONFIG_HEADERS.
13511 # This happens for instance with './config.status Makefile'.
13512 if test -n "$CONFIG_HEADERS"; then
13513 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13514 BEGIN {
13515 _ACEOF
13516
13517 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13518 # here-document in config.status, that substitutes the proper values into
13519 # config.h.in to produce config.h.
13520
13521 # Create a delimiter string that does not exist in confdefs.h, to ease
13522 # handling of long lines.
13523 ac_delim='%!_!# '
13524 for ac_last_try in false false :; do
13525 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13526 if test -z "$ac_tt"; then
13527 break
13528 elif $ac_last_try; then
13529 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13530 else
13531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13532 fi
13533 done
13534
13535 # For the awk script, D is an array of macro values keyed by name,
13536 # likewise P contains macro parameters if any. Preserve backslash
13537 # newline sequences.
13538
13539 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13540 sed -n '
13541 s/.\{148\}/&'"$ac_delim"'/g
13542 t rset
13543 :rset
13544 s/^[ ]*#[ ]*define[ ][ ]*/ /
13545 t def
13546 d
13547 :def
13548 s/\\$//
13549 t bsnl
13550 s/["\\]/\\&/g
13551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13552 D["\1"]=" \3"/p
13553 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13554 d
13555 :bsnl
13556 s/["\\]/\\&/g
13557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13558 D["\1"]=" \3\\\\\\n"\\/p
13559 t cont
13560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13561 t cont
13562 d
13563 :cont
13564 n
13565 s/.\{148\}/&'"$ac_delim"'/g
13566 t clear
13567 :clear
13568 s/\\$//
13569 t bsnlc
13570 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13571 d
13572 :bsnlc
13573 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13574 b cont
13575 ' <confdefs.h | sed '
13576 s/'"$ac_delim"'/"\\\
13577 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
13578
13579 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13580 for (key in D) D_is_set[key] = 1
13581 FS = ""
13582 }
13583 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13584 line = \$ 0
13585 split(line, arg, " ")
13586 if (arg[1] == "#") {
13587 defundef = arg[2]
13588 mac1 = arg[3]
13589 } else {
13590 defundef = substr(arg[1], 2)
13591 mac1 = arg[2]
13592 }
13593 split(mac1, mac2, "(") #)
13594 macro = mac2[1]
13595 prefix = substr(line, 1, index(line, defundef) - 1)
13596 if (D_is_set[macro]) {
13597 suffix = P[macro] D[macro]
13598 while (suffix ~ /[\t ]$/) {
13599 suffix = substr(suffix, 1, length(suffix) - 1)
13600 }
13601 # Preserve the white space surrounding the "#".
13602 print prefix "define", macro suffix
13603 next
13604 } else {
13605 # Replace #undef with comments. This is necessary, for example,
13606 # in the case of _POSIX_SOURCE, which is predefined and required
13607 # on some systems where configure will not decide to define it.
13608 if (defundef == "undef") {
13609 print "/*", prefix defundef, macro, "*/"
13610 next
13611 }
13612 }
13613 }
13614 { print }
13615 _ACAWK
13616 _ACEOF
13617 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13618 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13619 fi # test -n "$CONFIG_HEADERS"
13620
13621
13622 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13623 shift
13624 for ac_tag
13625 do
13626 case $ac_tag in
13627 :[FHLC]) ac_mode=$ac_tag; continue;;
13628 esac
13629 case $ac_mode$ac_tag in
13630 :[FHL]*:*);;
13631 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13632 :[FH]-) ac_tag=-:-;;
13633 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13634 esac
13635 ac_save_IFS=$IFS
13636 IFS=:
13637 set x $ac_tag
13638 IFS=$ac_save_IFS
13639 shift
13640 ac_file=$1
13641 shift
13642
13643 case $ac_mode in
13644 :L) ac_source=$1;;
13645 :[FH])
13646 ac_file_inputs=
13647 for ac_f
13648 do
13649 case $ac_f in
13650 -) ac_f="$ac_tmp/stdin";;
13651 *) # Look for the file first in the build tree, then in the source tree
13652 # (if the path is not absolute). The absolute path cannot be DOS-style,
13653 # because $ac_f cannot contain ':'.
13654 test -f "$ac_f" ||
13655 case $ac_f in
13656 [\\/$]*) false;;
13657 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13658 esac ||
13659 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13660 esac
13661 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13662 as_fn_append ac_file_inputs " '$ac_f'"
13663 done
13664
13665 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13666 # use $as_me), people would be surprised to read:
13667 # /* config.h. Generated by config.status. */
13668 configure_input='Generated from '`
13669 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13670 `' by configure.'
13671 if test x"$ac_file" != x-; then
13672 configure_input="$ac_file. $configure_input"
13673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13674 printf '%s\n' "$as_me: creating $ac_file" >&6;}
13675 fi
13676 # Neutralize special characters interpreted by sed in replacement strings.
13677 case $configure_input in #(
13678 *\&* | *\|* | *\\* )
13679 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
13680 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13681 *) ac_sed_conf_input=$configure_input;;
13682 esac
13683
13684 case $ac_tag in
13685 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13687 esac
13688 ;;
13689 esac
13690
13691 ac_dir=`$as_dirname -- "$ac_file" ||
13692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13693 X"$ac_file" : 'X\(//\)[^/]' \| \
13694 X"$ac_file" : 'X\(//\)$' \| \
13695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13696 printf '%s\n' X"$ac_file" |
13697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13698 s//\1/
13699 q
13700 }
13701 /^X\(\/\/\)[^/].*/{
13702 s//\1/
13703 q
13704 }
13705 /^X\(\/\/\)$/{
13706 s//\1/
13707 q
13708 }
13709 /^X\(\/\).*/{
13710 s//\1/
13711 q
13712 }
13713 s/.*/./; q'`
13714 as_dir="$ac_dir"; as_fn_mkdir_p
13715 ac_builddir=.
13716
13717 case "$ac_dir" in
13718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13719 *)
13720 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
13721 # A ".." for each directory in $ac_dir_suffix.
13722 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13723 case $ac_top_builddir_sub in
13724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13726 esac ;;
13727 esac
13728 ac_abs_top_builddir=$ac_pwd
13729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13730 # for backward compatibility:
13731 ac_top_builddir=$ac_top_build_prefix
13732
13733 case $srcdir in
13734 .) # We are building in place.
13735 ac_srcdir=.
13736 ac_top_srcdir=$ac_top_builddir_sub
13737 ac_abs_top_srcdir=$ac_pwd ;;
13738 [\\/]* | ?:[\\/]* ) # Absolute name.
13739 ac_srcdir=$srcdir$ac_dir_suffix;
13740 ac_top_srcdir=$srcdir
13741 ac_abs_top_srcdir=$srcdir ;;
13742 *) # Relative name.
13743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13744 ac_top_srcdir=$ac_top_build_prefix$srcdir
13745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13746 esac
13747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13748
13749
13750 case $ac_mode in
13751 :F)
13752 #
13753 # CONFIG_FILE
13754 #
13755
13756 case $INSTALL in
13757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13758 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13759 esac
13760 ac_MKDIR_P=$MKDIR_P
13761 case $MKDIR_P in
13762 [\\/$]* | ?:[\\/]* ) ;;
13763 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13764 esac
13765 _ACEOF
13766
13767 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13768 # If the template does not know about datarootdir, expand it.
13769 # FIXME: This hack should be removed a few years after 2.60.
13770 ac_datarootdir_hack=; ac_datarootdir_seen=
13771 ac_sed_dataroot='
13772 /datarootdir/ {
13773 p
13774 q
13775 }
13776 /@datadir@/p
13777 /@docdir@/p
13778 /@infodir@/p
13779 /@localedir@/p
13780 /@mandir@/p'
13781 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13782 *datarootdir*) ac_datarootdir_seen=yes;;
13783 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13785 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13786 _ACEOF
13787 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13788 ac_datarootdir_hack='
13789 s&@datadir@&$datadir&g
13790 s&@docdir@&$docdir&g
13791 s&@infodir@&$infodir&g
13792 s&@localedir@&$localedir&g
13793 s&@mandir@&$mandir&g
13794 s&\\\${datarootdir}&$datarootdir&g' ;;
13795 esac
13796 _ACEOF
13797
13798 # Neutralize VPATH when '$srcdir' = '.'.
13799 # Shell code in configure.ac might set extrasub.
13800 # FIXME: do we really want to maintain this feature?
13801 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13802 ac_sed_extra="$ac_vpsub
13803 $extrasub
13804 _ACEOF
13805 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13806 :t
13807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13808 s|@configure_input@|$ac_sed_conf_input|;t t
13809 s&@top_builddir@&$ac_top_builddir_sub&;t t
13810 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13811 s&@srcdir@&$ac_srcdir&;t t
13812 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13813 s&@top_srcdir@&$ac_top_srcdir&;t t
13814 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13815 s&@builddir@&$ac_builddir&;t t
13816 s&@abs_builddir@&$ac_abs_builddir&;t t
13817 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13818 s&@INSTALL@&$ac_INSTALL&;t t
13819 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13820 $ac_datarootdir_hack
13821 "
13822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13823 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13824
13825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13826 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13828 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13830 which seems to be undefined. Please make sure it is defined" >&5
13831 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13832 which seems to be undefined. Please make sure it is defined" >&2;}
13833
13834 rm -f "$ac_tmp/stdin"
13835 case $ac_file in
13836 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13837 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13838 esac \
13839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13840 ;;
13841 :H)
13842 #
13843 # CONFIG_HEADER
13844 #
13845 if test x"$ac_file" != x-; then
13846 {
13847 printf '%s\n' "/* $configure_input */" >&1 \
13848 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13849 } >"$ac_tmp/config.h" \
13850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13851 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13853 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
13854 else
13855 rm -f "$ac_file"
13856 mv "$ac_tmp/config.h" "$ac_file" \
13857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13858 fi
13859 else
13860 printf '%s\n' "/* $configure_input */" >&1 \
13861 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13862 || as_fn_error $? "could not create -" "$LINENO" 5
13863 fi
13864 # Compute "$ac_file"'s index in $config_headers.
13865 _am_arg="$ac_file"
13866 _am_stamp_count=1
13867 for _am_header in $config_headers :; do
13868 case $_am_header in
13869 $_am_arg | $_am_arg:* )
13870 break ;;
13871 * )
13872 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13873 esac
13874 done
13875 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13876 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13877 X"$_am_arg" : 'X\(//\)[^/]' \| \
13878 X"$_am_arg" : 'X\(//\)$' \| \
13879 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13880 printf '%s\n' X"$_am_arg" |
13881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13882 s//\1/
13883 q
13884 }
13885 /^X\(\/\/\)[^/].*/{
13886 s//\1/
13887 q
13888 }
13889 /^X\(\/\/\)$/{
13890 s//\1/
13891 q
13892 }
13893 /^X\(\/\).*/{
13894 s//\1/
13895 q
13896 }
13897 s/.*/./; q'`/stamp-h$_am_stamp_count
13898 ;;
13899
13900 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13901 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
13902 ;;
13903 esac
13904
13905
13906 case $ac_file$ac_mode in
13907 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13908 # Older Autoconf quotes --file arguments for eval, but not when files
13909 # are listed without --file. Let's play safe and only enable the eval
13910 # if we detect the quoting.
13911 # TODO: see whether this extra hack can be removed once we start
13912 # requiring Autoconf 2.70 or later.
13913 case $CONFIG_FILES in #(
13914 *\'*) :
13915 eval set x "$CONFIG_FILES" ;; #(
13916 *) :
13917 set x $CONFIG_FILES ;; #(
13918 *) :
13919 ;;
13920 esac
13921 shift
13922 # Used to flag and report bootstrapping failures.
13923 am_rc=0
13924 for am_mf
13925 do
13926 # Strip MF so we end up with the name of the file.
13927 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
13928 # Check whether this is an Automake generated Makefile which includes
13929 # dependency-tracking related rules and includes.
13930 # Grep'ing the whole file directly is not great: AIX grep has a line
13931 # limit of 2048, but all sed's we know have understand at least 4000.
13932 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13933 || continue
13934 am_dirpart=`$as_dirname -- "$am_mf" ||
13935 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13936 X"$am_mf" : 'X\(//\)[^/]' \| \
13937 X"$am_mf" : 'X\(//\)$' \| \
13938 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13939 printf '%s\n' X"$am_mf" |
13940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13941 s//\1/
13942 q
13943 }
13944 /^X\(\/\/\)[^/].*/{
13945 s//\1/
13946 q
13947 }
13948 /^X\(\/\/\)$/{
13949 s//\1/
13950 q
13951 }
13952 /^X\(\/\).*/{
13953 s//\1/
13954 q
13955 }
13956 s/.*/./; q'`
13957 am_filepart=`$as_basename -- "$am_mf" ||
13958 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13959 X"$am_mf" : 'X\(//\)$' \| \
13960 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13961 printf '%s\n' X/"$am_mf" |
13962 sed '/^.*\/\([^/][^/]*\)\/*$/{
13963 s//\1/
13964 q
13965 }
13966 /^X\/\(\/\/\)$/{
13967 s//\1/
13968 q
13969 }
13970 /^X\/\(\/\).*/{
13971 s//\1/
13972 q
13973 }
13974 s/.*/./; q'`
13975 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13976 && sed -e '/# am--include-marker/d' "$am_filepart" \
13977 | $MAKE -f - am--depfiles" >&5
13978 (cd "$am_dirpart" \
13979 && sed -e '/# am--include-marker/d' "$am_filepart" \
13980 | $MAKE -f - am--depfiles) >&5 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } || am_rc=$?
13984 done
13985 if test $am_rc -ne 0; then
13986 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13987 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
13988 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13989 for automatic dependency tracking. If GNU make was not used, consider
13990 re-running the configure script with MAKE=\"gmake\" (or whatever is
13991 necessary). You can also try re-running configure with the
13992 '--disable-dependency-tracking' option to at least be able to build
13993 the package (albeit without support for automatic dependency tracking).
13994 See 'config.log' for more details" "$LINENO" 5; }
13995 fi
13996 { am_dirpart=; unset am_dirpart;}
13997 { am_filepart=; unset am_filepart;}
13998 { am_mf=; unset am_mf;}
13999 { am_rc=; unset am_rc;}
14000 rm -f conftest-deps.mk
14001 }
14002 ;;
14003
14004 esac
14005 done # for ac_tag
14006
14007
14008 as_fn_exit 0
14009 _ACEOF
14010 ac_clean_CONFIG_STATUS=
14011
14012 test $ac_write_fail = 0 ||
14013 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14014
14015
14016 # configure is writing to config.log, and then calls config.status.
14017 # config.status does its own redirection, appending to config.log.
14018 # Unfortunately, on DOS this fails, as config.log is still kept open
14019 # by configure, so config.status won't be able to write to it; its
14020 # output is simply discarded. So we exec the FD to /dev/null,
14021 # effectively closing config.log, so it can be properly (re)opened and
14022 # appended to by config.status. When coming back to configure, we
14023 # need to make the FD available again.
14024 if test "$no_create" != yes; then
14025 ac_cs_success=:
14026 case $CONFIG_STATUS in #(
14027 -*) :
14028 ac_no_opts=-- ;; #(
14029 *) :
14030 ac_no_opts= ;;
14031 esac
14032 ac_config_status_args=
14033 test "$silent" = yes &&
14034 ac_config_status_args="$ac_config_status_args --quiet"
14035 exec 5>/dev/null
14036 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
14037 ac_cs_success=false
14038 exec 5>>config.log
14039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14040 # would make configure fail if this is the last instruction.
14041 $ac_cs_success || as_fn_exit 1
14042 fi
14043 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14045 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14046 fi
14047
14048
14049