configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for xrefresh 1.1.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/-/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/xrefresh/-/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='xrefresh'
591 PACKAGE_TARNAME='xrefresh'
592 PACKAGE_VERSION='1.1.1'
593 PACKAGE_STRING='xrefresh 1.1.1'
594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xrefresh/-/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 XREFRESH_LIBS
635 XREFRESH_CFLAGS
636 MAN_SUBSTS
637 XORG_MAN_PAGE
638 ADMIN_MAN_DIR
639 DRIVER_MAN_DIR
640 MISC_MAN_DIR
641 FILE_MAN_DIR
642 LIB_MAN_DIR
643 APP_MAN_DIR
644 ADMIN_MAN_SUFFIX
645 DRIVER_MAN_SUFFIX
646 MISC_MAN_SUFFIX
647 FILE_MAN_SUFFIX
648 LIB_MAN_SUFFIX
649 APP_MAN_SUFFIX
650 SED
651 host_os
652 host_vendor
653 host_cpu
654 host
655 build_os
656 build_vendor
657 build_cpu
658 build
659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 CHANGELOG_CMD
664 STRICT_CFLAGS
665 CWARNFLAGS
666 BASE_CFLAGS
667 am__xargs_n
668 am__rm_f_notfound
669 AM_BACKSLASH
670 AM_DEFAULT_VERBOSITY
671 AM_DEFAULT_V
672 AM_V
673 CSCOPE
674 ETAGS
675 CTAGS
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 am__nodep
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__include
684 DEPDIR
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 runstatedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL
754 am__quote'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_silent_rules
760 enable_selective_werror
761 enable_strict_compilation
762 '
763 ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 PKG_CONFIG
772 PKG_CONFIG_PATH
773 PKG_CONFIG_LIBDIR
774 XREFRESH_CFLAGS
775 XREFRESH_LIBS'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 runstatedir='${localstatedir}/run'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: '$ac_useropt'"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: '$ac_useropt'"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -runstatedir | --runstatedir | --runstatedi | --runstated \
1066 | --runstate | --runstat | --runsta | --runst | --runs \
1067 | --run | --ru | --r)
1068 ac_prev=runstatedir ;;
1069 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1070 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1071 | --run=* | --ru=* | --r=*)
1072 runstatedir=$ac_optarg ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: '$ac_useropt'"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: '$ac_useropt'"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: '$ac_option'
1170 Try '$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir runstatedir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: '$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 printf '%s\n' X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 'configure' configures xrefresh 1.1.1 to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print 'checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for '--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or '..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, 'make install' will install all the files in
1351 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than '$ac_default_prefix' using '--prefix',
1353 for instance '--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/xrefresh]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of xrefresh 1.1.1:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --disable-selective-werror
1410 Turn off selective compiler errors. (default:
1411 enabled)
1412 --enable-strict-compilation
1413 Enable all warnings from compiler and make them
1414 errors (default: disabled)
1415
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 PKG_CONFIG path to pkg-config utility
1425 PKG_CONFIG_PATH
1426 directories to add to pkg-config's search path
1427 PKG_CONFIG_LIBDIR
1428 path overriding pkg-config's built-in search path
1429 XREFRESH_CFLAGS
1430 C compiler flags for XREFRESH, overriding pkg-config
1431 XREFRESH_LIBS
1432 linker flags for XREFRESH, overriding pkg-config
1433
1434 Use these variables to override the choices made by 'configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1436
1437 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/-/issues>.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *)
1453 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1465
1466 case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for configure.gnu first; this name is used for a wrapper for
1484 # Metaconfig's "Configure" on case-insensitive file systems.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 xrefresh configure 1.1.1
1502 generated by GNU Autoconf 2.73
1503
1504 Copyright (C) 2026 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext conftest.beam
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 printf '%s\n' "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext
1541 then :
1542 ac_retval=0
1543 else case e in #(
1544 e) printf '%s\n' "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1 ;;
1548 esac
1549 fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_compile
1554
1555 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists and can be compiled using the include files in
1558 # INCLUDES, setting the cache variable VAR accordingly.
1559 ac_fn_c_check_header_compile ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 printf %s "checking for $2... " >&6; }
1564 if eval test \${$3+y}
1565 then :
1566 printf %s "(cached) " >&6
1567 else case e in #(
1568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1570 $4
1571 #include <$2>
1572 _ACEOF
1573 if ac_fn_c_try_compile "$LINENO"
1574 then :
1575 eval "$3=yes"
1576 else case e in #(
1577 e) eval "$3=no" ;;
1578 esac
1579 fi
1580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1581 esac
1582 fi
1583 eval ac_res=\$$3
1584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585 printf '%s\n' "$ac_res" >&6; }
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587
1588 } # ac_fn_c_check_header_compile
1589
1590 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1591 # ------------------------------------------------------------------
1592 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1593 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1594 ac_fn_check_decl ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 as_decl_name=`echo $2|sed 's/ *(.*//'`
1598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1599 printf %s "checking whether $as_decl_name is declared... " >&6; }
1600 if eval test \${$3+y}
1601 then :
1602 printf %s "(cached) " >&6
1603 else case e in #(
1604 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1605 eval ac_save_FLAGS=\$$6
1606 as_fn_append $6 " $5"
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1609 $4
1610 int
1611 main (void)
1612 {
1613 #ifndef $as_decl_name
1614 #ifdef __cplusplus
1615 (void) $as_decl_use;
1616 #else
1617 (void) $as_decl_name;
1618 #endif
1619 #endif
1620
1621 ;
1622 return 0;
1623 }
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"
1626 then :
1627 eval "$3=yes"
1628 else case e in #(
1629 e) eval "$3=no" ;;
1630 esac
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1633 eval $6=\$ac_save_FLAGS
1634 ;;
1635 esac
1636 fi
1637 eval ac_res=\$$3
1638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 printf '%s\n' "$ac_res" >&6; }
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642 } # ac_fn_check_decl
1643
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_link ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 printf '%s\n' "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 test -x conftest$ac_exeext
1672 }
1673 then :
1674 ac_retval=0
1675 else case e in #(
1676 e) printf '%s\n' "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1 ;;
1680 esac
1681 fi
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_link
1691 ac_configure_args_raw=
1692 for ac_arg
1693 do
1694 case $ac_arg in
1695 *\'*)
1696 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1697 esac
1698 as_fn_append ac_configure_args_raw " '$ac_arg'"
1699 done
1700
1701 case $ac_configure_args_raw in
1702 *$as_nl*)
1703 ac_safe_unquote= ;;
1704 *)
1705 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1706 ac_unsafe_a="$ac_unsafe_z#~"
1707 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1708 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1709 esac
1710
1711 cat >config.log <<_ACEOF
1712 This file contains any messages produced by compilers while
1713 running configure, to aid debugging if configure makes a mistake.
1714
1715 It was created by xrefresh $as_me 1.1.1, which was
1716 generated by GNU Autoconf 2.73. Invocation command line was
1717
1718 $ $0$ac_configure_args_raw
1719
1720 _ACEOF
1721 exec 5>>config.log
1722 {
1723 cat <<_ASUNAME
1724 ## --------- ##
1725 ## Platform. ##
1726 ## --------- ##
1727
1728 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1729 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1730 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1731 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1732 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1733
1734 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1735 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1736
1737 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1738 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1739 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1740 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1741 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1742 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1743 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1744
1745 _ASUNAME
1746
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750 IFS=$as_save_IFS
1751 case $as_dir in #(((
1752 '') as_dir=./ ;;
1753 */) ;;
1754 *) as_dir=$as_dir/ ;;
1755 esac
1756 printf '%s\n' "PATH: $as_dir"
1757 done
1758 IFS=$as_save_IFS
1759
1760 } >&5
1761
1762 cat >&5 <<_ACEOF
1763
1764
1765 ## ----------- ##
1766 ## Core tests. ##
1767 ## ----------- ##
1768
1769 _ACEOF
1770
1771
1772 # Keep a trace of the command line.
1773 # Strip out --no-create and --no-recursion so they do not pile up.
1774 # Strip out --silent because we don't want to record it for future runs.
1775 # Also quote any args containing shell meta-characters.
1776 # Make two passes to allow for proper duplicate-argument suppression.
1777 ac_configure_args=
1778 ac_configure_args0=
1779 ac_configure_args1=
1780 ac_must_keep_next=false
1781 for ac_pass in 1 2
1782 do
1783 for ac_arg
1784 do
1785 case $ac_arg in
1786 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1788 | -silent | --silent | --silen | --sile | --sil)
1789 continue ;;
1790 *\'*)
1791 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1792 esac
1793 case $ac_pass in
1794 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1795 2)
1796 as_fn_append ac_configure_args1 " '$ac_arg'"
1797 if test $ac_must_keep_next = true; then
1798 ac_must_keep_next=false # Got value, back to normal.
1799 else
1800 case $ac_arg in
1801 *=* | --config-cache | -C | -disable-* | --disable-* \
1802 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1803 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1804 | -with-* | --with-* | -without-* | --without-* | --x)
1805 case "$ac_configure_args0 " in
1806 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1807 esac
1808 ;;
1809 -* ) ac_must_keep_next=true ;;
1810 esac
1811 fi
1812 as_fn_append ac_configure_args " '$ac_arg'"
1813 ;;
1814 esac
1815 done
1816 done
1817 { ac_configure_args0=; unset ac_configure_args0;}
1818 { ac_configure_args1=; unset ac_configure_args1;}
1819
1820 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
1821 ac_cache_dump ()
1822 {
1823 # The following way of writing the cache mishandles newlines in values,
1824 # but we know of no workaround that is simple, portable, and efficient.
1825 # So, we kill variables containing newlines.
1826 # Ultrix sh set writes to stderr and can't be redirected directly,
1827 # and sets the high bit in the cache file unless we assign to the vars.
1828 (
1829 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1830 eval ac_val=\$$ac_var
1831 case $ac_val in #(
1832 *${as_nl}*)
1833 case $ac_var in #(
1834 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1835 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1836 esac
1837 case $ac_var in #(
1838 _ | IFS | as_nl) ;; #(
1839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1840 *) { eval $ac_var=; unset $ac_var;} ;;
1841 esac ;;
1842 esac
1843 done
1844
1845 (set) 2>&1 |
1846 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1847 *${as_nl}ac_space=\ *)
1848 # 'set' does not quote correctly, so add quotes: double-quote
1849 # substitution turns \\\\ into \\, and sed turns \\ into \.
1850 sed -n \
1851 "s/'/'\\\\''/g;
1852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1853 ;; #(
1854 *)
1855 # 'set' quotes correctly as required by POSIX, so do not add quotes.
1856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1857 ;;
1858 esac |
1859 sort
1860 )
1861 }
1862
1863 # Print debugging info to stdout.
1864 ac_dump_debugging_info ()
1865 {
1866 echo
1867
1868 printf '%s\n' "## ---------------- ##
1869 ## Cache variables. ##
1870 ## ---------------- ##"
1871 echo
1872 ac_cache_dump
1873 echo
1874
1875 printf '%s\n' "## ----------------- ##
1876 ## Output variables. ##
1877 ## ----------------- ##"
1878 echo
1879 for ac_var in $ac_subst_vars
1880 do
1881 eval ac_val=\$$ac_var
1882 case $ac_val in
1883 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1884 esac
1885 printf '%s\n' "$ac_var='$ac_val'"
1886 done | sort
1887 echo
1888
1889 if test -n "$ac_subst_files"; then
1890 printf '%s\n' "## ------------------- ##
1891 ## File substitutions. ##
1892 ## ------------------- ##"
1893 echo
1894 for ac_var in $ac_subst_files
1895 do
1896 eval ac_val=\$$ac_var
1897 case $ac_val in
1898 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1899 esac
1900 printf '%s\n' "$ac_var='$ac_val'"
1901 done | sort
1902 echo
1903 fi
1904
1905 if test -s confdefs.h; then
1906 printf '%s\n' "## ----------- ##
1907 ## confdefs.h. ##
1908 ## ----------- ##"
1909 echo
1910 cat confdefs.h
1911 echo
1912 fi
1913 test "$ac_signal" != 0 &&
1914 printf '%s\n' "$as_me: caught signal $ac_signal"
1915 printf '%s\n' "$as_me: exit $exit_status"
1916 }
1917
1918 # When interrupted or exit'd, cleanup temporary files, and complete
1919 # config.log.
1920 ac_exit_trap ()
1921 {
1922 exit_status=
1923 # Sanitize IFS.
1924 IFS=" "" $as_nl"
1925 # Save into config.log some information that might help in debugging.
1926 ac_dump_debugging_info >&5
1927 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
1928 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1929 exit $exit_status
1930 }
1931
1932 trap 'ac_exit_trap $?' 0
1933 for ac_signal in 1 2 13 15; do
1934 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1935 done
1936 ac_signal=0
1937
1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1939 rm -f -r conftest* confdefs.h
1940
1941 printf '%s\n' "/* confdefs.h */" > confdefs.h
1942
1943 # Predefined preprocessor variables.
1944
1945 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1946
1947 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1948
1949 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1950
1951 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1952
1953 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1954
1955 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1956
1957
1958 # Let the site file select an alternate cache file if it wants to.
1959 # Prefer an explicitly selected file to automatically selected ones.
1960 if test -n "$CONFIG_SITE"; then
1961 ac_site_files="$CONFIG_SITE"
1962 elif test "x$prefix" != xNONE; then
1963 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1964 else
1965 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1966 fi
1967
1968 for ac_site_file in $ac_site_files
1969 do
1970 case $ac_site_file in #(
1971 */*) :
1972 ;; #(
1973 *) :
1974 ac_site_file=./$ac_site_file ;;
1975 esac
1976 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1978 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
1979 sed 's/^/| /' "$ac_site_file" >&5
1980 . "$ac_site_file" \
1981 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1982 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
1983 as_fn_error $? "failed to load site script $ac_site_file
1984 See 'config.log' for more details" "$LINENO" 5; }
1985 fi
1986 done
1987
1988 if test -r "$cache_file"; then
1989 # Some versions of bash will fail to source /dev/null (special files
1990 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1991 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1993 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
1994 case $cache_file in
1995 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1996 *) . "./$cache_file";;
1997 esac
1998 fi
1999 else
2000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2001 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2002 >$cache_file
2003 fi
2004
2005 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2006 # Test code for whether the C compiler supports C23 (global declarations)
2007 ac_c_conftest_c23_globals='
2008 /* Does the compiler advertise conformance to C17 or earlier?
2009 Although GCC 14 does not do that, even with -std=gnu23,
2010 it is close enough, and defines __STDC_VERSION == 202000L. */
2011 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2012 # error "Compiler advertises conformance to C17 or earlier"
2013 #endif
2014
2015 // Check alignas.
2016 char alignas (double) c23_aligned_as_double;
2017 char alignas (0) c23_no_special_alignment;
2018 extern char c23_aligned_as_int;
2019 char alignas (0) alignas (int) c23_aligned_as_int;
2020
2021 // Check alignof.
2022 enum
2023 {
2024 c23_int_alignment = alignof (int),
2025 c23_int_array_alignment = alignof (int[100]),
2026 c23_char_alignment = alignof (char)
2027 };
2028 static_assert (0 < -alignof (int), "alignof is signed");
2029
2030 int function_with_unnamed_parameter (int) { return 0; }
2031
2032 void c23_noreturn ();
2033
2034 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2035 The parens pacify GCC 15. */
2036 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2037
2038 bool check_that_bool_works = true | false | !nullptr;
2039 #if !true
2040 # error "true does not work in #if"
2041 #endif
2042 #if false
2043 #elifdef __STDC_VERSION__
2044 #else
2045 # error "#elifdef does not work"
2046 #endif
2047
2048 #ifndef __has_c_attribute
2049 # error "__has_c_attribute not defined"
2050 #endif
2051
2052 #ifndef __has_include
2053 # error "__has_include not defined"
2054 #endif
2055
2056 #define LPAREN() (
2057 #define FORTY_TWO(x) 42
2058 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2059 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2060
2061 static_assert (0b101010 == 42);
2062 static_assert (0B101010 == 42);
2063 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2064 static_assert (0.500'\''000'\''000 == 0.5);
2065
2066 enum unsignedish : unsigned int { uione = 1 };
2067 static_assert (0 < -uione);
2068
2069 #include <stddef.h>
2070 constexpr nullptr_t null_pointer = nullptr;
2071
2072 static typeof (1 + 1L) two () { return 2; }
2073 static long int three () { return 3; }
2074 '
2075
2076 # Test code for whether the C compiler supports C23 (body of main).
2077 ac_c_conftest_c23_main='
2078 {
2079 label_before_declaration:
2080 int arr[10] = {};
2081 if (arr[0])
2082 goto label_before_declaration;
2083 if (!arr[0])
2084 goto label_at_end_of_block;
2085 label_at_end_of_block:
2086 }
2087 ok |= !null_pointer;
2088 ok |= two != three;
2089 '
2090
2091 # Test code for whether the C compiler supports C23 (complete).
2092 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2093
2094 int
2095 main (int, char **)
2096 {
2097 int ok = 0;
2098 ${ac_c_conftest_c23_main}
2099 return ok;
2100 }
2101 "
2102
2103 # Test code for whether the C compiler supports C89 (global declarations)
2104 ac_c_conftest_c89_globals='
2105 /* Do not test the value of __STDC__, because some compilers define it to 0
2106 or do not define it, while otherwise adequately conforming. */
2107
2108 #include <stddef.h>
2109 #include <stdarg.h>
2110 struct stat;
2111 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2112 struct buf { int x; };
2113 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (char **p, int i)
2115 {
2116 return p[i];
2117 }
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2119 {
2120 char *s;
2121 va_list v;
2122 va_start (v,p);
2123 s = g (p, va_arg (v,int));
2124 va_end (v);
2125 return s;
2126 }
2127
2128 /* C89 style stringification. */
2129 #define noexpand_stringify(a) #a
2130 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2131
2132 /* C89 style token pasting. Exercises some of the corner cases that
2133 e.g. old MSVC gets wrong, but not very hard. */
2134 #define noexpand_concat(a,b) a##b
2135 #define expand_concat(a,b) noexpand_concat(a,b)
2136 extern int vA;
2137 extern int vbee;
2138 #define aye A
2139 #define bee B
2140 int *pvA = &expand_concat(v,aye);
2141 int *pvbee = &noexpand_concat(v,bee);
2142
2143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2144 function prototypes and stuff, but not \xHH hex character constants.
2145 These do not provoke an error unfortunately, instead are silently treated
2146 as an "x". The following induces an error, until -std is added to get
2147 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2148 array size at least. It is necessary to write \x00 == 0 to get something
2149 that is true only with -std. */
2150 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2151
2152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2153 inside strings and character constants. */
2154 #define FOO(x) '\''x'\''
2155 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2156
2157 int test (int i, double x);
2158 struct s1 {int (*f) (int a);};
2159 struct s2 {int (*f) (double a);};
2160 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2161 int, int);'
2162
2163 # Test code for whether the C compiler supports C89 (body of main).
2164 ac_c_conftest_c89_main='
2165 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2166 '
2167
2168 # Test code for whether the C compiler supports C99 (global declarations)
2169 ac_c_conftest_c99_globals='
2170 /* Does the compiler advertise C99 conformance? */
2171 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2172 # error "Compiler does not advertise C99 conformance"
2173 #endif
2174
2175 // See if C++-style comments work.
2176
2177 #include <stdbool.h>
2178 extern int puts (const char *);
2179 extern int printf (const char *, ...);
2180 extern int dprintf (int, const char *, ...);
2181 extern void *malloc (size_t);
2182 extern void free (void *);
2183
2184 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2185 // dprintf is used instead of fprintf to avoid needing to declare
2186 // FILE and stderr, and "aND" is used instead of "and" to work around
2187 // GCC bug 40564 which is irrelevant here.
2188 #define debug(...) dprintf (2, __VA_ARGS__)
2189 #define showlist(...) puts (#__VA_ARGS__)
2190 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2191 static void
2192 test_varargs_macros (void)
2193 {
2194 int x = 1234;
2195 int y = 5678;
2196 debug ("Flag");
2197 debug ("X = %d\n", x);
2198 showlist (The first, second, aND third items.);
2199 report (x>y, "x is %d but y is %d", x, y);
2200 }
2201
2202 // Check long long types.
2203 #define BIG64 18446744073709551615ull
2204 #define BIG32 4294967295ul
2205 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2206 #if !BIG_OK
2207 #error "your preprocessor is broken"
2208 #endif
2209 #if BIG_OK
2210 #else
2211 #error "your preprocessor is broken"
2212 #endif
2213 static long long int bignum = -9223372036854775807LL;
2214 static unsigned long long int ubignum = BIG64;
2215
2216 struct incomplete_array
2217 {
2218 int datasize;
2219 double data[];
2220 };
2221
2222 struct named_init {
2223 int number;
2224 const wchar_t *name;
2225 double average;
2226 };
2227
2228 typedef const char *ccp;
2229
2230 static inline int
2231 test_restrict (ccp restrict text)
2232 {
2233 // Iterate through items via the restricted pointer.
2234 // Also check for declarations in for loops.
2235 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2236 continue;
2237 return 0;
2238 }
2239
2240 // Check varargs and va_copy.
2241 static bool
2242 test_varargs (const char *format, ...)
2243 {
2244 va_list args;
2245 va_start (args, format);
2246 va_list args_copy;
2247 va_copy (args_copy, args);
2248
2249 const char *str = "";
2250 int number = 0;
2251 float fnumber = 0;
2252
2253 while (*format)
2254 {
2255 switch (*format++)
2256 {
2257 case '\''s'\'': // string
2258 str = va_arg (args_copy, const char *);
2259 break;
2260 case '\''d'\'': // int
2261 number = va_arg (args_copy, int);
2262 break;
2263 case '\''f'\'': // float
2264 fnumber = va_arg (args_copy, double);
2265 break;
2266 default:
2267 break;
2268 }
2269 }
2270 va_end (args_copy);
2271 va_end (args);
2272
2273 return *str && number && fnumber;
2274 }
2275 '
2276
2277 # Test code for whether the C compiler supports C99 (body of main).
2278 ac_c_conftest_c99_main='
2279 // Check bool.
2280 _Bool success = false;
2281 success |= (argc != 0);
2282
2283 // Check restrict.
2284 if (test_restrict ("String literal") == 0)
2285 success = true;
2286 const char *restrict newvar = "Another string";
2287
2288 // Check varargs.
2289 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2290 test_varargs_macros ();
2291
2292 // Check flexible array members.
2293 static struct incomplete_array *volatile incomplete_array_pointer;
2294 struct incomplete_array *ia = incomplete_array_pointer;
2295 ia->datasize = 10;
2296 for (int i = 0; i < ia->datasize; ++i)
2297 ia->data[i] = i * 1.234;
2298 // Work around memory leak warnings.
2299 free (ia);
2300
2301 // Check named initializers.
2302 struct named_init ni = {
2303 .number = 34,
2304 .name = L"Test wide string",
2305 .average = 543.34343,
2306 };
2307
2308 ni.number = 58;
2309
2310 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2311 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2312
2313 // work around unused variable warnings
2314 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2315 || ni.number != 58);
2316 '
2317
2318 # Test code for whether the C compiler supports C11 (global declarations)
2319 ac_c_conftest_c11_globals='
2320 /* Does the compiler advertise C11 conformance? */
2321 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2322 # error "Compiler does not advertise C11 conformance"
2323 #endif
2324
2325 // Check _Alignas.
2326 char _Alignas (double) aligned_as_double;
2327 char _Alignas (0) no_special_alignment;
2328 extern char aligned_as_int;
2329 char _Alignas (0) _Alignas (int) aligned_as_int;
2330
2331 // Check _Alignof.
2332 enum
2333 {
2334 int_alignment = _Alignof (int),
2335 int_array_alignment = _Alignof (int[100]),
2336 char_alignment = _Alignof (char)
2337 };
2338 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2339
2340 // Check _Noreturn.
2341 int _Noreturn does_not_return (void) { for (;;) continue; }
2342
2343 // Check _Static_assert.
2344 struct test_static_assert
2345 {
2346 int x;
2347 _Static_assert (sizeof (int) <= sizeof (long int),
2348 "_Static_assert does not work in struct");
2349 long int y;
2350 };
2351
2352 // Check UTF-8 literals.
2353 #define u8 syntax error!
2354 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2355
2356 // Check duplicate typedefs.
2357 typedef long *long_ptr;
2358 typedef long int *long_ptr;
2359 typedef long_ptr long_ptr;
2360
2361 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2362 struct anonymous
2363 {
2364 union {
2365 struct { int i; int j; };
2366 struct { int k; long int l; } w;
2367 };
2368 int m;
2369 } v1;
2370 '
2371
2372 # Test code for whether the C compiler supports C11 (body of main).
2373 ac_c_conftest_c11_main='
2374 _Static_assert ((offsetof (struct anonymous, i)
2375 == offsetof (struct anonymous, w.k)),
2376 "Anonymous union alignment botch");
2377 v1.i = 2;
2378 v1.w.k = 5;
2379 ok |= v1.i != 5;
2380 '
2381
2382 # Test code for whether the C compiler supports C11 (complete).
2383 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2384 ${ac_c_conftest_c99_globals}
2385 ${ac_c_conftest_c11_globals}
2386
2387 int
2388 main (int argc, char **argv)
2389 {
2390 int ok = 0;
2391 ${ac_c_conftest_c89_main}
2392 ${ac_c_conftest_c99_main}
2393 ${ac_c_conftest_c11_main}
2394 return ok;
2395 }
2396 "
2397
2398 # Test code for whether the C compiler supports C99 (complete).
2399 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2400 ${ac_c_conftest_c99_globals}
2401
2402 int
2403 main (int argc, char **argv)
2404 {
2405 int ok = 0;
2406 ${ac_c_conftest_c89_main}
2407 ${ac_c_conftest_c99_main}
2408 return ok;
2409 }
2410 "
2411
2412 # Test code for whether the C compiler supports C89 (complete).
2413 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2414
2415 int
2416 main (int argc, char **argv)
2417 {
2418 int ok = 0;
2419 ${ac_c_conftest_c89_main}
2420 return ok;
2421 }
2422 "
2423
2424 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2425 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2426 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2427 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2428 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2429 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2430 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2431 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2432 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2433 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2434
2435 # Auxiliary files required by this configure script.
2436 ac_aux_files="config.guess config.sub missing install-sh compile"
2437
2438 # Locations in which to look for auxiliary files.
2439 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2440
2441 # Search for a directory containing all of the required auxiliary files,
2442 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2443 # If we don't find one directory that contains all the files we need,
2444 # we report the set of missing files from the *first* directory in
2445 # $ac_aux_dir_candidates and give up.
2446 ac_missing_aux_files=""
2447 ac_first_candidate=:
2448 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 as_found=false
2451 for as_dir in $ac_aux_dir_candidates
2452 do
2453 IFS=$as_save_IFS
2454 case $as_dir in #(((
2455 '') as_dir=./ ;;
2456 */) ;;
2457 *) as_dir=$as_dir/ ;;
2458 esac
2459 as_found=:
2460
2461 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2462 ac_aux_dir_found=yes
2463 ac_install_sh=
2464 for ac_aux in $ac_aux_files
2465 do
2466 # As a special case, if "install-sh" is required, that requirement
2467 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2468 # and $ac_install_sh is set appropriately for whichever one is found.
2469 if test x"$ac_aux" = x"install-sh"
2470 then
2471 if test -f "${as_dir}install-sh"; then
2472 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2473 ac_install_sh="${as_dir}install-sh -c"
2474 elif test -f "${as_dir}install.sh"; then
2475 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2476 ac_install_sh="${as_dir}install.sh -c"
2477 elif test -f "${as_dir}shtool"; then
2478 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2479 ac_install_sh="${as_dir}shtool install -c"
2480 else
2481 ac_aux_dir_found=no
2482 if $ac_first_candidate; then
2483 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2484 else
2485 break
2486 fi
2487 fi
2488 else
2489 if test -f "${as_dir}${ac_aux}"; then
2490 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2491 else
2492 ac_aux_dir_found=no
2493 if $ac_first_candidate; then
2494 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2495 else
2496 break
2497 fi
2498 fi
2499 fi
2500 done
2501 if test "$ac_aux_dir_found" = yes; then
2502 ac_aux_dir="$as_dir"
2503 break
2504 fi
2505 ac_first_candidate=false
2506
2507 as_found=false
2508 done
2509 IFS=$as_save_IFS
2510 if $as_found
2511 then :
2512
2513 else case e in #(
2514 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2515 esac
2516 fi
2517
2518
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 if test -f "${ac_aux_dir}config.guess"; then
2524 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2525 fi
2526 if test -f "${ac_aux_dir}config.sub"; then
2527 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2528 fi
2529 if test -f "$ac_aux_dir/configure"; then
2530 ac_configure="$SHELL ${ac_aux_dir}configure"
2531 fi
2532
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2542 set,)
2543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2544 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,set)
2547 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2548 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,);;
2551 *)
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=
2555 for ac_val in x $ac_old_val; do
2556 ac_old_val_w="$ac_old_val_w $ac_val"
2557 done
2558 ac_new_val_w=
2559 for ac_val in x $ac_new_val; do
2560 ac_new_val_w="$ac_new_val_w $ac_val"
2561 done
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2564 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted=:
2566 else
2567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2568 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\$ac_old_val
2570 fi
2571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2572 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2574 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2575 fi;;
2576 esac
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2579 case $ac_new_val in
2580 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg=$ac_var=$ac_new_val ;;
2582 esac
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586 esac
2587 fi
2588 done
2589 if $ac_cache_corrupted; then
2590 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2591 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2595 and start over" "$LINENO" 5
2596 fi
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2600
2601
2602 # Determine whether it's possible to make 'echo' print without a newline.
2603 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2604 # for compatibility with existing Makefiles.
2605 ECHO_C= ECHO_N= ECHO_T=
2606 case `echo -n x` in #(((((
2607 -n*)
2608 case `echo 'xy\c'` in
2609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2610 xy) ECHO_C='\c';;
2611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2612 ECHO_T=' ';;
2613 esac;;
2614 *)
2615 ECHO_N='-n';;
2616 esac
2617
2618 ac_ext=c
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623
2624
2625
2626 ac_config_headers="$ac_config_headers config.h"
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642 # Expand $ac_aux_dir to an absolute path.
2643 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2644
2645 ac_ext=c
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 printf %s "checking for $ac_word... " >&6; }
2655 if test ${ac_cv_prog_CC+y}
2656 then :
2657 printf %s "(cached) " >&6
2658 else case e in #(
2659 e) if test -n "$CC"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 case $as_dir in #(((
2667 '') as_dir=./ ;;
2668 */) ;;
2669 *) as_dir=$as_dir/ ;;
2670 esac
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2674 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi ;;
2682 esac
2683 fi
2684 CC=$ac_cv_prog_CC
2685 if test -n "$CC"; then
2686 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2687 printf '%s\n' "$CC" >&6; }
2688 else
2689 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 printf '%s\n' "no" >&6; }
2691 fi
2692
2693
2694 fi
2695 if test -z "$ac_cv_prog_CC"; then
2696 ac_ct_CC=$CC
2697 # Extract the first word of "gcc", so it can be a program name with args.
2698 set dummy gcc; ac_word=$2
2699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 printf %s "checking for $ac_word... " >&6; }
2701 if test ${ac_cv_prog_ac_ct_CC+y}
2702 then :
2703 printf %s "(cached) " >&6
2704 else case e in #(
2705 e) if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 case $as_dir in #(((
2713 '') as_dir=./ ;;
2714 */) ;;
2715 *) as_dir=$as_dir/ ;;
2716 esac
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_ac_ct_CC="gcc"
2720 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi ;;
2728 esac
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2733 printf '%s\n' "$ac_ct_CC" >&6; }
2734 else
2735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 printf '%s\n' "no" >&6; }
2737 fi
2738
2739 if test "x$ac_ct_CC" = x; then
2740 CC=""
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748 CC=$ac_ct_CC
2749 fi
2750 else
2751 CC="$ac_cv_prog_CC"
2752 fi
2753
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 printf %s "checking for $ac_word... " >&6; }
2760 if test ${ac_cv_prog_CC+y}
2761 then :
2762 printf %s "(cached) " >&6
2763 else case e in #(
2764 e) if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 case $as_dir in #(((
2772 '') as_dir=./ ;;
2773 */) ;;
2774 *) as_dir=$as_dir/ ;;
2775 esac
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_CC="${ac_tool_prefix}cc"
2779 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi ;;
2787 esac
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 printf '%s\n' "$CC" >&6; }
2793 else
2794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 printf '%s\n' "no" >&6; }
2796 fi
2797
2798
2799 fi
2800 fi
2801 if test -z "$CC"; then
2802 # Extract the first word of "cc", so it can be a program name with args.
2803 set dummy cc; ac_word=$2
2804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 printf %s "checking for $ac_word... " >&6; }
2806 if test ${ac_cv_prog_CC+y}
2807 then :
2808 printf %s "(cached) " >&6
2809 else case e in #(
2810 e) if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 ac_prog_rejected=no
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 case $as_dir in #(((
2819 '') as_dir=./ ;;
2820 */) ;;
2821 *) as_dir=$as_dir/ ;;
2822 esac
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2825 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2826 ac_prog_rejected=yes
2827 continue
2828 fi
2829 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
2838 # We found a bogon in the path, so make sure we never use it.
2839 set dummy $ac_cv_prog_CC
2840 shift
2841 if test $# != 0; then
2842 # We chose a different compiler from the bogus one.
2843 # However, it has the same basename, so the bogon will be chosen
2844 # first if we set CC to just the basename; use the full file name.
2845 shift
2846 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2847 fi
2848 fi
2849 fi ;;
2850 esac
2851 fi
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 printf '%s\n' "$CC" >&6; }
2856 else
2857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 printf '%s\n' "no" >&6; }
2859 fi
2860
2861
2862 fi
2863 if test -z "$CC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 for ac_prog in cl.exe
2866 do
2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 printf %s "checking for $ac_word... " >&6; }
2871 if test ${ac_cv_prog_CC+y}
2872 then :
2873 printf %s "(cached) " >&6
2874 else case e in #(
2875 e) if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881 IFS=$as_save_IFS
2882 case $as_dir in #(((
2883 '') as_dir=./ ;;
2884 */) ;;
2885 *) as_dir=$as_dir/ ;;
2886 esac
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi ;;
2898 esac
2899 fi
2900 CC=$ac_cv_prog_CC
2901 if test -n "$CC"; then
2902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903 printf '%s\n' "$CC" >&6; }
2904 else
2905 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 printf '%s\n' "no" >&6; }
2907 fi
2908
2909
2910 test -n "$CC" && break
2911 done
2912 fi
2913 if test -z "$CC"; then
2914 ac_ct_CC=$CC
2915 for ac_prog in cl.exe
2916 do
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 printf %s "checking for $ac_word... " >&6; }
2921 if test ${ac_cv_prog_ac_ct_CC+y}
2922 then :
2923 printf %s "(cached) " >&6
2924 else case e in #(
2925 e) if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 case $as_dir in #(((
2933 '') as_dir=./ ;;
2934 */) ;;
2935 *) as_dir=$as_dir/ ;;
2936 esac
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_ac_ct_CC="$ac_prog"
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 fi ;;
2948 esac
2949 fi
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 printf '%s\n' "$ac_ct_CC" >&6; }
2954 else
2955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 printf '%s\n' "no" >&6; }
2957 fi
2958
2959
2960 test -n "$ac_ct_CC" && break
2961 done
2962
2963 if test "x$ac_ct_CC" = x; then
2964 CC=""
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 CC=$ac_ct_CC
2973 fi
2974 fi
2975
2976 fi
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}clang; ac_word=$2
2981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 printf %s "checking for $ac_word... " >&6; }
2983 if test ${ac_cv_prog_CC+y}
2984 then :
2985 printf %s "(cached) " >&6
2986 else case e in #(
2987 e) if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 case $as_dir in #(((
2995 '') as_dir=./ ;;
2996 */) ;;
2997 *) as_dir=$as_dir/ ;;
2998 esac
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC="${ac_tool_prefix}clang"
3002 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi ;;
3010 esac
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 printf '%s\n' "$CC" >&6; }
3016 else
3017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 printf '%s\n' "no" >&6; }
3019 fi
3020
3021
3022 fi
3023 if test -z "$ac_cv_prog_CC"; then
3024 ac_ct_CC=$CC
3025 # Extract the first word of "clang", so it can be a program name with args.
3026 set dummy clang; ac_word=$2
3027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 printf %s "checking for $ac_word... " >&6; }
3029 if test ${ac_cv_prog_ac_ct_CC+y}
3030 then :
3031 printf %s "(cached) " >&6
3032 else case e in #(
3033 e) if test -n "$ac_ct_CC"; then
3034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 case $as_dir in #(((
3041 '') as_dir=./ ;;
3042 */) ;;
3043 *) as_dir=$as_dir/ ;;
3044 esac
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_ac_ct_CC="clang"
3048 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi ;;
3056 esac
3057 fi
3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059 if test -n "$ac_ct_CC"; then
3060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3061 printf '%s\n' "$ac_ct_CC" >&6; }
3062 else
3063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 printf '%s\n' "no" >&6; }
3065 fi
3066
3067 if test "x$ac_ct_CC" = x; then
3068 CC=""
3069 else
3070 case $cross_compiling:$ac_tool_warned in
3071 yes:)
3072 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074 ac_tool_warned=yes ;;
3075 esac
3076 CC=$ac_ct_CC
3077 fi
3078 else
3079 CC="$ac_cv_prog_CC"
3080 fi
3081
3082 fi
3083
3084
3085 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3086 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3087 as_fn_error $? "no acceptable C compiler found in \$PATH
3088 See 'config.log' for more details" "$LINENO" 5; }
3089
3090 # Provide some information about the compiler.
3091 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3092 set X $ac_compile
3093 ac_compiler=$2
3094 for ac_option in --version -v -V -qversion -version; do
3095 { { ac_try="$ac_compiler $ac_option >&5"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 printf '%s\n' "$ac_try_echo"; } >&5
3102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3103 ac_status=$?
3104 if test -s conftest.err; then
3105 sed '10a\
3106 ... rest of stderr output deleted ...
3107 10q' conftest.err >conftest.er1
3108 cat conftest.er1 >&5
3109 fi
3110 rm -f conftest.er1 conftest.err
3111 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }
3113 done
3114
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3117
3118 int
3119 main (void)
3120 {
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3130 # of exeext.
3131 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3132 printf %s "checking whether the C compiler works... " >&6; }
3133 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3134
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3137
3138 ac_rmfiles=
3139 for ac_file in $ac_files
3140 do
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3144 esac
3145 done
3146 rm -f $ac_rmfiles
3147
3148 if { { ac_try="$ac_link_default"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 printf '%s\n' "$ac_try_echo"; } >&5
3155 (eval "$ac_link_default") 2>&5
3156 ac_status=$?
3157 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }
3159 then :
3160 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3161 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3162 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3163 # so that the user can short-circuit this test for compilers unknown to
3164 # Autoconf.
3165 for ac_file in $ac_files ''
3166 do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3170 ;;
3171 [ab].out )
3172 # We found the default executable, but exeext='' is most
3173 # certainly right.
3174 break;;
3175 *.* )
3176 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3177 then :; else
3178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 fi
3180 # We set ac_cv_exeext here because the later test for it is not
3181 # safe: cross compilers may not add the suffix if given an '-o'
3182 # argument, so we may need to know it at that point already.
3183 # Even if this section looks crufty: it has the advantage of
3184 # actually working.
3185 break;;
3186 * )
3187 break;;
3188 esac
3189 done
3190 test "$ac_cv_exeext" = no && ac_cv_exeext=
3191
3192 else case e in #(
3193 e) ac_file='' ;;
3194 esac
3195 fi
3196 if test -z "$ac_file"
3197 then :
3198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 printf '%s\n' "no" >&6; }
3200 printf '%s\n' "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3204 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3205 as_fn_error 77 "C compiler cannot create executables
3206 See 'config.log' for more details" "$LINENO" 5; }
3207 else case e in #(
3208 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 printf '%s\n' "yes" >&6; } ;;
3210 esac
3211 fi
3212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3213 printf %s "checking for C compiler default output file name... " >&6; }
3214 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3215 printf '%s\n' "$ac_file" >&6; }
3216 ac_exeext=$ac_cv_exeext
3217
3218 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3219 ac_clean_files=$ac_clean_files_save
3220 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3221 printf %s "checking for suffix of executables... " >&6; }
3222 if { { ac_try="$ac_link"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 printf '%s\n' "$ac_try_echo"; } >&5
3229 (eval "$ac_link") 2>&5
3230 ac_status=$?
3231 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }
3233 then :
3234 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3235 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3236 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3237 # 'rm'.
3238 for ac_file in conftest.exe conftest conftest.*; do
3239 test -f "$ac_file" || continue
3240 case $ac_file in
3241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243 break;;
3244 * ) break;;
3245 esac
3246 done
3247 else case e in #(
3248 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3249 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3250 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3251 See 'config.log' for more details" "$LINENO" 5; } ;;
3252 esac
3253 fi
3254 rm -f conftest conftest$ac_cv_exeext
3255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3256 printf '%s\n' "$ac_cv_exeext" >&6; }
3257
3258 rm -f conftest.$ac_ext
3259 EXEEXT=$ac_cv_exeext
3260 ac_exeext=$EXEEXT
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263 #include <stdio.h>
3264 int
3265 main (void)
3266 {
3267 FILE *f = fopen ("conftest.out", "w");
3268 if (!f)
3269 return 1;
3270 return ferror (f) || fclose (f) != 0;
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 ac_clean_files="$ac_clean_files conftest.out"
3277 # Check that the compiler produces executables we can run. If not, either
3278 # the compiler is broken, or we cross compile.
3279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3280 printf %s "checking whether we are cross compiling... " >&6; }
3281 if test "$cross_compiling" != yes; then
3282 { { ac_try="$ac_link"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 printf '%s\n' "$ac_try_echo"; } >&5
3289 (eval "$ac_link") 2>&5
3290 ac_status=$?
3291 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }
3293 if { ac_try='./conftest$ac_cv_exeext'
3294 { { case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 printf '%s\n' "$ac_try_echo"; } >&5
3300 (eval "$ac_try") 2>&5
3301 ac_status=$?
3302 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; }; then
3304 cross_compiling=no
3305 else
3306 if test "$cross_compiling" = maybe; then
3307 cross_compiling=yes
3308 else
3309 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3310 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3311 as_fn_error 77 "cannot run C compiled programs.
3312 If you meant to cross compile, use '--host'.
3313 See 'config.log' for more details" "$LINENO" 5; }
3314 fi
3315 fi
3316 fi
3317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3318 printf '%s\n' "$cross_compiling" >&6; }
3319
3320 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3321 conftest.o conftest.obj conftest.out
3322 ac_clean_files=$ac_clean_files_save
3323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3324 printf %s "checking for suffix of object files... " >&6; }
3325 if test ${ac_cv_objext+y}
3326 then :
3327 printf %s "(cached) " >&6
3328 else case e in #(
3329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331
3332 int
3333 main (void)
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.o conftest.obj
3341 if { { ac_try="$ac_compile"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 printf '%s\n' "$ac_try_echo"; } >&5
3348 (eval "$ac_compile") 2>&5
3349 ac_status=$?
3350 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }
3352 then :
3353 for ac_file in conftest.o conftest.obj conftest.*; do
3354 test -f "$ac_file" || continue;
3355 case $ac_file in
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358 break;;
3359 esac
3360 done
3361 else case e in #(
3362 e) printf '%s\n' "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3366 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3367 as_fn_error $? "cannot compute suffix of object files: cannot compile
3368 See 'config.log' for more details" "$LINENO" 5; } ;;
3369 esac
3370 fi
3371 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3372 esac
3373 fi
3374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3375 printf '%s\n' "$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3377 ac_objext=$OBJEXT
3378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3379 printf %s "checking whether the compiler supports GNU C... " >&6; }
3380 if test ${ac_cv_c_compiler_gnu+y}
3381 then :
3382 printf %s "(cached) " >&6
3383 else case e in #(
3384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main (void)
3389 {
3390 #ifndef __GNUC__
3391 choke me
3392 #endif
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"
3399 then :
3400 ac_compiler_gnu=yes
3401 else case e in #(
3402 e) ac_compiler_gnu=no ;;
3403 esac
3404 fi
3405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3407 ;;
3408 esac
3409 fi
3410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3411 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413
3414 if test $ac_compiler_gnu = yes; then
3415 GCC=yes
3416 else
3417 GCC=
3418 fi
3419 ac_test_CFLAGS=${CFLAGS+y}
3420 ac_save_CFLAGS=$CFLAGS
3421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3422 printf %s "checking whether $CC accepts -g... " >&6; }
3423 if test ${ac_cv_prog_cc_g+y}
3424 then :
3425 printf %s "(cached) " >&6
3426 else case e in #(
3427 e) ac_save_c_werror_flag=$ac_c_werror_flag
3428 ac_c_werror_flag=yes
3429 ac_cv_prog_cc_g=no
3430 CFLAGS="-g"
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main (void)
3436 {
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"
3443 then :
3444 ac_cv_prog_cc_g=yes
3445 else case e in #(
3446 e) CFLAGS=""
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3449
3450 int
3451 main (void)
3452 {
3453
3454 ;
3455 return 0;
3456 }
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"
3459 then :
3460
3461 else case e in #(
3462 e) ac_c_werror_flag=$ac_save_c_werror_flag
3463 CFLAGS="-g"
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main (void)
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"
3476 then :
3477 ac_cv_prog_cc_g=yes
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3480 esac
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3483 esac
3484 fi
3485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3486 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3487 esac
3488 fi
3489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3490 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
3491 if test $ac_test_CFLAGS; then
3492 CFLAGS=$ac_save_CFLAGS
3493 elif test $ac_cv_prog_cc_g = yes; then
3494 if test "$GCC" = yes; then
3495 CFLAGS="-g -O2"
3496 else
3497 CFLAGS="-g"
3498 fi
3499 else
3500 if test "$GCC" = yes; then
3501 CFLAGS="-O2"
3502 else
3503 CFLAGS=
3504 fi
3505 fi
3506 ac_prog_cc_stdc=no
3507 if test x$ac_prog_cc_stdc = xno
3508 then :
3509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
3510 printf %s "checking for $CC option to enable C23 features... " >&6; }
3511 if test ${ac_cv_prog_cc_c23+y}
3512 then :
3513 printf %s "(cached) " >&6
3514 else case e in #(
3515 e) ac_cv_prog_cc_c23=no
3516 ac_save_CC=$CC
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 $ac_c_conftest_c23_program
3520 _ACEOF
3521 for ac_arg in '' -std=gnu23
3522 do
3523 CC="$ac_save_CC $ac_arg"
3524 if ac_fn_c_try_compile "$LINENO"
3525 then :
3526 ac_cv_prog_cc_c23=$ac_arg
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.beam
3529 test "x$ac_cv_prog_cc_c23" != "xno" && break
3530 done
3531 rm -f conftest.$ac_ext
3532 CC=$ac_save_CC ;;
3533 esac
3534 fi
3535
3536 if test "x$ac_cv_prog_cc_c23" = xno
3537 then :
3538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3539 printf '%s\n' "unsupported" >&6; }
3540 else case e in #(
3541 e) if test "x$ac_cv_prog_cc_c23" = x
3542 then :
3543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3544 printf '%s\n' "none needed" >&6; }
3545 else case e in #(
3546 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
3547 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
3548 CC="$CC $ac_cv_prog_cc_c23" ;;
3549 esac
3550 fi
3551 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
3552 ac_prog_cc_stdc=c23 ;;
3553 esac
3554 fi
3555 fi
3556 if test x$ac_prog_cc_stdc = xno
3557 then :
3558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3559 printf %s "checking for $CC option to enable C11 features... " >&6; }
3560 if test ${ac_cv_prog_cc_c11+y}
3561 then :
3562 printf %s "(cached) " >&6
3563 else case e in #(
3564 e) ac_cv_prog_cc_c11=no
3565 ac_save_CC=$CC
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3568 $ac_c_conftest_c11_program
3569 _ACEOF
3570 for ac_arg in '' -std=gnu11 -std:c11
3571 do
3572 CC="$ac_save_CC $ac_arg"
3573 if ac_fn_c_try_compile "$LINENO"
3574 then :
3575 ac_cv_prog_cc_c11=$ac_arg
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext conftest.beam
3578 test "x$ac_cv_prog_cc_c11" != "xno" && break
3579 done
3580 rm -f conftest.$ac_ext
3581 CC=$ac_save_CC ;;
3582 esac
3583 fi
3584
3585 if test "x$ac_cv_prog_cc_c11" = xno
3586 then :
3587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3588 printf '%s\n' "unsupported" >&6; }
3589 else case e in #(
3590 e) if test "x$ac_cv_prog_cc_c11" = x
3591 then :
3592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3593 printf '%s\n' "none needed" >&6; }
3594 else case e in #(
3595 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3596 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
3597 CC="$CC $ac_cv_prog_cc_c11" ;;
3598 esac
3599 fi
3600 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3601 ac_prog_cc_stdc=c11 ;;
3602 esac
3603 fi
3604 fi
3605 if test x$ac_prog_cc_stdc = xno
3606 then :
3607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3608 printf %s "checking for $CC option to enable C99 features... " >&6; }
3609 if test ${ac_cv_prog_cc_c99+y}
3610 then :
3611 printf %s "(cached) " >&6
3612 else case e in #(
3613 e) ac_cv_prog_cc_c99=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617 $ac_c_conftest_c99_program
3618 _ACEOF
3619 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3620 do
3621 CC="$ac_save_CC $ac_arg"
3622 if ac_fn_c_try_compile "$LINENO"
3623 then :
3624 ac_cv_prog_cc_c99=$ac_arg
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.beam
3627 test "x$ac_cv_prog_cc_c99" != "xno" && break
3628 done
3629 rm -f conftest.$ac_ext
3630 CC=$ac_save_CC ;;
3631 esac
3632 fi
3633
3634 if test "x$ac_cv_prog_cc_c99" = xno
3635 then :
3636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3637 printf '%s\n' "unsupported" >&6; }
3638 else case e in #(
3639 e) if test "x$ac_cv_prog_cc_c99" = x
3640 then :
3641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3642 printf '%s\n' "none needed" >&6; }
3643 else case e in #(
3644 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3645 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
3646 CC="$CC $ac_cv_prog_cc_c99" ;;
3647 esac
3648 fi
3649 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3650 ac_prog_cc_stdc=c99 ;;
3651 esac
3652 fi
3653 fi
3654 if test x$ac_prog_cc_stdc = xno
3655 then :
3656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3657 printf %s "checking for $CC option to enable C89 features... " >&6; }
3658 if test ${ac_cv_prog_cc_c89+y}
3659 then :
3660 printf %s "(cached) " >&6
3661 else case e in #(
3662 e) ac_cv_prog_cc_c89=no
3663 ac_save_CC=$CC
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 $ac_c_conftest_c89_program
3667 _ACEOF
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669 do
3670 CC="$ac_save_CC $ac_arg"
3671 if ac_fn_c_try_compile "$LINENO"
3672 then :
3673 ac_cv_prog_cc_c89=$ac_arg
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.beam
3676 test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC ;;
3680 esac
3681 fi
3682
3683 if test "x$ac_cv_prog_cc_c89" = xno
3684 then :
3685 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686 printf '%s\n' "unsupported" >&6; }
3687 else case e in #(
3688 e) if test "x$ac_cv_prog_cc_c89" = x
3689 then :
3690 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 printf '%s\n' "none needed" >&6; }
3692 else case e in #(
3693 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3694 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
3695 CC="$CC $ac_cv_prog_cc_c89" ;;
3696 esac
3697 fi
3698 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3699 ac_prog_cc_stdc=c89 ;;
3700 esac
3701 fi
3702 fi
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710
3711 ac_ext=c
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3717 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3718 if test ${am_cv_prog_cc_c_o+y}
3719 then :
3720 printf %s "(cached) " >&6
3721 else case e in #(
3722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724
3725 int
3726 main (void)
3727 {
3728
3729 ;
3730 return 0;
3731 }
3732 _ACEOF
3733 # Make sure it works both with $CC and with simple cc.
3734 # Following AC_PROG_CC_C_O, we do the test twice because some
3735 # compilers refuse to overwrite an existing .o file with -o,
3736 # though they will create one.
3737 am_cv_prog_cc_c_o=yes
3738 for am_i in 1 2; do
3739 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3740 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } \
3744 && test -f conftest2.$ac_objext; then
3745 : OK
3746 else
3747 am_cv_prog_cc_c_o=no
3748 break
3749 fi
3750 done
3751 # aligned with autoconf, so not including core; see bug#72225.
3752 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3753 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3754 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3755 unset am_i ;;
3756 esac
3757 fi
3758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3759 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
3760 if test "$am_cv_prog_cc_c_o" != yes; then
3761 # Losing compiler, so override with the script.
3762 # FIXME: It is wrong to rewrite CC.
3763 # But if we don't then we get into trouble of one sort or another.
3764 # A longer-term fix would be to have automake use am__CC in this case,
3765 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3766 CC="$am_aux_dir/compile $CC"
3767 fi
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
3774
3775
3776 ac_header= ac_cache=
3777 for ac_item in $ac_header_c_list
3778 do
3779 if test $ac_cache; then
3780 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3781 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3782 printf '%s\n' "#define $ac_item 1" >> confdefs.h
3783 fi
3784 ac_header= ac_cache=
3785 elif test $ac_header; then
3786 ac_cache=$ac_item
3787 else
3788 ac_header=$ac_item
3789 fi
3790 done
3791
3792
3793
3794
3795
3796
3797
3798
3799 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3800 then :
3801
3802 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
3803
3804 fi
3805
3806
3807
3808
3809
3810
3811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3812 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3813 if test ${ac_cv_safe_to_define___extensions__+y}
3814 then :
3815 printf %s "(cached) " >&6
3816 else case e in #(
3817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819
3820 # define __EXTENSIONS__ 1
3821 $ac_includes_default
3822 int
3823 main (void)
3824 {
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"
3831 then :
3832 ac_cv_safe_to_define___extensions__=yes
3833 else case e in #(
3834 e) ac_cv_safe_to_define___extensions__=no ;;
3835 esac
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3838 esac
3839 fi
3840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3841 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
3842
3843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3844 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3845 if test ${ac_cv_should_define__xopen_source+y}
3846 then :
3847 printf %s "(cached) " >&6
3848 else case e in #(
3849 e) ac_cv_should_define__xopen_source=no
3850 if test $ac_cv_header_wchar_h = yes
3851 then :
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 #include <wchar.h>
3856 mbstate_t x;
3857 int
3858 main (void)
3859 {
3860
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 if ac_fn_c_try_compile "$LINENO"
3866 then :
3867
3868 else case e in #(
3869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871
3872 #define _XOPEN_SOURCE 500
3873 #include <wchar.h>
3874 mbstate_t x;
3875 int
3876 main (void)
3877 {
3878
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"
3884 then :
3885 ac_cv_should_define__xopen_source=yes
3886 fi
3887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3888 esac
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3891 fi ;;
3892 esac
3893 fi
3894 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3895 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
3896
3897 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
3898
3899 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
3900
3901 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3902
3903 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
3904
3905 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3906
3907 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
3908
3909 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
3910
3911 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3912
3913 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3914
3915 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3916
3917 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3918
3919 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3920
3921 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3922
3923 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3924
3925 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3926
3927 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3928
3929 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
3930
3931 if test $ac_cv_header_minix_config_h = yes
3932 then :
3933 MINIX=yes
3934 printf '%s\n' "#define _MINIX 1" >>confdefs.h
3935
3936 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
3937
3938 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
3939
3940 else case e in #(
3941 e) MINIX= ;;
3942 esac
3943 fi
3944 if test $ac_cv_safe_to_define___extensions__ = yes
3945 then :
3946 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
3947
3948 fi
3949 if test $ac_cv_should_define__xopen_source = yes
3950 then :
3951 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
3952
3953 fi
3954
3955
3956 # Initialize Automake
3957 am__api_version='1.18'
3958
3959
3960 # Find a good install program. We prefer a C program (faster),
3961 # so one script is as good as another. But avoid the broken or
3962 # incompatible versions:
3963 # SysV /etc/install, /usr/sbin/install
3964 # SunOS /usr/etc/install
3965 # IRIX /sbin/install
3966 # AIX /bin/install
3967 # AmigaOS /C/install, which installs bootblocks on floppy discs
3968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3971 # OS/2's system install, which has a completely different semantic
3972 # ./install, which can be erroneously created by make from ./install.sh.
3973 # Reject install programs that cannot install multiple files.
3974 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3975 printf %s "checking for a BSD-compatible install... " >&6; }
3976 if test -z "$INSTALL"; then
3977 if test ${ac_cv_path_install+y}
3978 then :
3979 printf %s "(cached) " >&6
3980 else case e in #(
3981 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984 IFS=$as_save_IFS
3985 case $as_dir in #(((
3986 '') as_dir=./ ;;
3987 */) ;;
3988 *) as_dir=$as_dir/ ;;
3989 esac
3990 # Account for fact that we put trailing slashes in our PATH walk.
3991 case $as_dir in #((
3992 ./ | /[cC]/* | \
3993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3994 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3995 /usr/ucb/* ) ;;
3996 *)
3997 # OSF/1 and SCO ODT 3.0 have their own names for install.
3998 # Don't use installbsd from OSF/1 since it installs stuff as root
3999 # by default.
4000 for ac_prog in ginstall scoinst install; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4003 if test $ac_prog = install &&
4004 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4005 # AIX install. It has an incompatible calling convention.
4006 :
4007 elif test $ac_prog = install &&
4008 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4009 # program-specific install script used by HP pwplus--don't use.
4010 :
4011 else
4012 rm -rf conftest.one conftest.two conftest.dir
4013 echo one > conftest.one
4014 echo two > conftest.two
4015 mkdir conftest.dir
4016 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4017 test -s conftest.one && test -s conftest.two &&
4018 test -s conftest.dir/conftest.one &&
4019 test -s conftest.dir/conftest.two
4020 then
4021 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4022 break 3
4023 fi
4024 fi
4025 fi
4026 done
4027 done
4028 ;;
4029 esac
4030
4031 done
4032 IFS=$as_save_IFS
4033
4034 rm -rf conftest.one conftest.two conftest.dir
4035 ;;
4036 esac
4037 fi
4038 if test ${ac_cv_path_install+y}; then
4039 INSTALL=$ac_cv_path_install
4040 else
4041 # As a last resort, use the slow shell script. Don't cache a
4042 # value for INSTALL within a source directory, because that will
4043 # break other packages using the cache if that directory is
4044 # removed, or if the value is a relative name.
4045 INSTALL=$ac_install_sh
4046 fi
4047 fi
4048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4049 printf '%s\n' "$INSTALL" >&6; }
4050
4051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4052 # It thinks the first close brace ends the variable substitution.
4053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4054
4055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4056
4057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4058
4059 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4060 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4061 if test ${am_cv_sleep_fractional_seconds+y}
4062 then :
4063 printf %s "(cached) " >&6
4064 else case e in #(
4065 e) if sleep 0.001 2>/dev/null
4066 then :
4067 am_cv_sleep_fractional_seconds=yes
4068 else case e in #(
4069 e) am_cv_sleep_fractional_seconds=no ;;
4070 esac
4071 fi
4072 ;;
4073 esac
4074 fi
4075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4076 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
4077
4078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4079 printf %s "checking filesystem timestamp resolution... " >&6; }
4080 if test ${am_cv_filesystem_timestamp_resolution+y}
4081 then :
4082 printf %s "(cached) " >&6
4083 else case e in #(
4084 e) # Default to the worst case.
4085 am_cv_filesystem_timestamp_resolution=2
4086
4087 # Only try to go finer than 1 sec if sleep can do it.
4088 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4089 # - 1 sec is not much of a win compared to 2 sec, and
4090 # - it takes 2 seconds to perform the test whether 1 sec works.
4091 #
4092 # Instead, just use the default 2s on platforms that have 1s resolution,
4093 # accept the extra 1s delay when using $sleep in the Automake tests, in
4094 # exchange for not incurring the 2s delay for running the test for all
4095 # packages.
4096 #
4097 am_try_resolutions=
4098 if test "$am_cv_sleep_fractional_seconds" = yes; then
4099 # Even a millisecond often causes a bunch of false positives,
4100 # so just try a hundredth of a second. The time saved between .001 and
4101 # .01 is not terribly consequential.
4102 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4103 fi
4104
4105 # In order to catch current-generation FAT out, we must *modify* files
4106 # that already exist; the *creation* timestamp is finer. Use names
4107 # that make ls -t sort them differently when they have equal
4108 # timestamps than when they have distinct timestamps, keeping
4109 # in mind that ls -t prints the *newest* file first.
4110 rm -f conftest.ts?
4111 : > conftest.ts1
4112 : > conftest.ts2
4113 : > conftest.ts3
4114
4115 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4116 # clobber the current shell's arguments. (Outer-level square brackets
4117 # are removed by m4; they're present so that m4 does not expand
4118 # <dollar><star>; be careful, easy to get confused.)
4119 if (
4120 set X `ls -t conftest.ts[12]` &&
4121 {
4122 test "$*" != "X conftest.ts1 conftest.ts2" ||
4123 test "$*" != "X conftest.ts2 conftest.ts1";
4124 }
4125 ); then :; else
4126 # If neither matched, then we have a broken ls. This can happen
4127 # if, for instance, CONFIG_SHELL is bash and it inherits a
4128 # broken ls alias from the environment. This has actually
4129 # happened. Such a system could not be considered "sane".
4130 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4131 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4132 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4133 as_fn_error $? "ls -t produces unexpected output.
4134 Make sure there is not a broken ls alias in your environment.
4135 See 'config.log' for more details" "$LINENO" 5; }
4136 fi
4137
4138 for am_try_res in $am_try_resolutions; do
4139 # Any one fine-grained sleep might happen to cross the boundary
4140 # between two values of a coarser actual resolution, but if we do
4141 # two fine-grained sleeps in a row, at least one of them will fall
4142 # entirely within a coarse interval.
4143 echo alpha > conftest.ts1
4144 sleep $am_try_res
4145 echo beta > conftest.ts2
4146 sleep $am_try_res
4147 echo gamma > conftest.ts3
4148
4149 # We assume that 'ls -t' will make use of high-resolution
4150 # timestamps if the operating system supports them at all.
4151 if (set X `ls -t conftest.ts?` &&
4152 test "$2" = conftest.ts3 &&
4153 test "$3" = conftest.ts2 &&
4154 test "$4" = conftest.ts1); then
4155 #
4156 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4157 # because we don't need to test make.
4158 make_ok=true
4159 if test $am_try_res != 1; then
4160 # But if we've succeeded so far with a subsecond resolution, we
4161 # have one more thing to check: make. It can happen that
4162 # everything else supports the subsecond mtimes, but make doesn't;
4163 # notably on macOS, which ships make 3.81 from 2006 (the last one
4164 # released under GPLv2). https://bugs.gnu.org/68808
4165 #
4166 # We test $MAKE if it is defined in the environment, else "make".
4167 # It might get overridden later, but our hope is that in practice
4168 # it does not matter: it is the system "make" which is (by far)
4169 # the most likely to be broken, whereas if the user overrides it,
4170 # probably they did so with a better, or at least not worse, make.
4171 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4172 #
4173 # Create a Makefile (real tab character here):
4174 rm -f conftest.mk
4175 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4176 echo ' touch conftest.ts2' >>conftest.mk
4177 #
4178 # Now, running
4179 # touch conftest.ts1; touch conftest.ts2; make
4180 # should touch ts1 because ts2 is newer. This could happen by luck,
4181 # but most often, it will fail if make's support is insufficient. So
4182 # test for several consecutive successes.
4183 #
4184 # (We reuse conftest.ts[12] because we still want to modify existing
4185 # files, not create new ones, per above.)
4186 n=0
4187 make=${MAKE-make}
4188 until test $n -eq 3; do
4189 echo one > conftest.ts1
4190 sleep $am_try_res
4191 echo two > conftest.ts2 # ts2 should now be newer than ts1
4192 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4193 make_ok=false
4194 break # out of $n loop
4195 fi
4196 n=`expr $n + 1`
4197 done
4198 fi
4199 #
4200 if $make_ok; then
4201 # Everything we know to check worked out, so call this resolution good.
4202 am_cv_filesystem_timestamp_resolution=$am_try_res
4203 break # out of $am_try_res loop
4204 fi
4205 # Otherwise, we'll go on to check the next resolution.
4206 fi
4207 done
4208 rm -f conftest.ts?
4209 # (end _am_filesystem_timestamp_resolution)
4210 ;;
4211 esac
4212 fi
4213 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4214 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
4215
4216 # This check should not be cached, as it may vary across builds of
4217 # different projects.
4218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4219 printf %s "checking whether build environment is sane... " >&6; }
4220 # Reject unsafe characters in $srcdir or the absolute working directory
4221 # name. Accept space and tab only in the latter.
4222 am_lf='
4223 '
4224 case `pwd` in
4225 *[\\\"\#\$\&\'\`$am_lf]*)
4226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 printf '%s\n' "no" >&6; }
4228 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4229 esac
4230 case $srcdir in
4231 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 printf '%s\n' "no" >&6; }
4234 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4235 esac
4236
4237 # Do 'set' in a subshell so we don't clobber the current shell's
4238 # arguments. Must try -L first in case configure is actually a
4239 # symlink; some systems play weird games with the mod time of symlinks
4240 # (eg FreeBSD returns the mod time of the symlink's containing
4241 # directory).
4242 am_build_env_is_sane=no
4243 am_has_slept=no
4244 rm -f conftest.file
4245 for am_try in 1 2; do
4246 echo "timestamp, slept: $am_has_slept" > conftest.file
4247 if (
4248 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4249 if test "$*" = "X"; then
4250 # -L didn't work.
4251 set X `ls -t "$srcdir/configure" conftest.file`
4252 fi
4253 test "$2" = conftest.file
4254 ); then
4255 am_build_env_is_sane=yes
4256 break
4257 fi
4258 # Just in case.
4259 sleep "$am_cv_filesystem_timestamp_resolution"
4260 am_has_slept=yes
4261 done
4262
4263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4264 printf '%s\n' "$am_build_env_is_sane" >&6; }
4265 if test "$am_build_env_is_sane" = no; then
4266 as_fn_error $? "newly created file is older than distributed files!
4267 Check your system clock" "$LINENO" 5
4268 fi
4269
4270 # If we didn't sleep, we still need to ensure time stamps of config.status and
4271 # generated files are strictly newer.
4272 am_sleep_pid=
4273 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4274 then :
4275
4276 else case e in #(
4277 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4278 am_sleep_pid=$!
4279 ;;
4280 esac
4281 fi
4282
4283 rm -f conftest.file
4284
4285 test "$program_prefix" != NONE &&
4286 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4287 # Use a double $ so make ignores it.
4288 test "$program_suffix" != NONE &&
4289 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4290 # Double any \ or $.
4291 # By default was 's,x,x', remove it if useless.
4292 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4293 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4294
4295
4296 if test x"${MISSING+set}" != xset; then
4297 MISSING="\${SHELL} '$am_aux_dir/missing'"
4298 fi
4299 # Use eval to expand $SHELL
4300 if eval "$MISSING --is-lightweight"; then
4301 am_missing_run="$MISSING "
4302 else
4303 am_missing_run=
4304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4305 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4306 fi
4307
4308 if test x"${install_sh+set}" != xset; then
4309 case $am_aux_dir in
4310 *\ * | *\ *)
4311 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4312 *)
4313 install_sh="\${SHELL} $am_aux_dir/install-sh"
4314 esac
4315 fi
4316
4317 # Installed binaries are usually stripped using 'strip' when the user
4318 # run "make install-strip". However 'strip' might not be the right
4319 # tool to use in cross-compilation environments, therefore Automake
4320 # will honor the 'STRIP' environment variable to overrule this program.
4321 if test "$cross_compiling" != no; then
4322 if test -n "$ac_tool_prefix"; then
4323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4324 set dummy ${ac_tool_prefix}strip; ac_word=$2
4325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 printf %s "checking for $ac_word... " >&6; }
4327 if test ${ac_cv_prog_STRIP+y}
4328 then :
4329 printf %s "(cached) " >&6
4330 else case e in #(
4331 e) if test -n "$STRIP"; then
4332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337 IFS=$as_save_IFS
4338 case $as_dir in #(((
4339 '') as_dir=./ ;;
4340 */) ;;
4341 *) as_dir=$as_dir/ ;;
4342 esac
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4346 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4347 break 2
4348 fi
4349 done
4350 done
4351 IFS=$as_save_IFS
4352
4353 fi ;;
4354 esac
4355 fi
4356 STRIP=$ac_cv_prog_STRIP
4357 if test -n "$STRIP"; then
4358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4359 printf '%s\n' "$STRIP" >&6; }
4360 else
4361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 printf '%s\n' "no" >&6; }
4363 fi
4364
4365
4366 fi
4367 if test -z "$ac_cv_prog_STRIP"; then
4368 ac_ct_STRIP=$STRIP
4369 # Extract the first word of "strip", so it can be a program name with args.
4370 set dummy strip; ac_word=$2
4371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 printf %s "checking for $ac_word... " >&6; }
4373 if test ${ac_cv_prog_ac_ct_STRIP+y}
4374 then :
4375 printf %s "(cached) " >&6
4376 else case e in #(
4377 e) if test -n "$ac_ct_STRIP"; then
4378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383 IFS=$as_save_IFS
4384 case $as_dir in #(((
4385 '') as_dir=./ ;;
4386 */) ;;
4387 *) as_dir=$as_dir/ ;;
4388 esac
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_STRIP="strip"
4392 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi ;;
4400 esac
4401 fi
4402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4403 if test -n "$ac_ct_STRIP"; then
4404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4405 printf '%s\n' "$ac_ct_STRIP" >&6; }
4406 else
4407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 printf '%s\n' "no" >&6; }
4409 fi
4410
4411 if test "x$ac_ct_STRIP" = x; then
4412 STRIP=":"
4413 else
4414 case $cross_compiling:$ac_tool_warned in
4415 yes:)
4416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4417 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4418 ac_tool_warned=yes ;;
4419 esac
4420 STRIP=$ac_ct_STRIP
4421 fi
4422 else
4423 STRIP="$ac_cv_prog_STRIP"
4424 fi
4425
4426 fi
4427 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4428
4429
4430 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4431 printf %s "checking for a race-free mkdir -p... " >&6; }
4432 if test -z "$MKDIR_P"; then
4433 if test ${ac_cv_path_mkdir+y}
4434 then :
4435 printf %s "(cached) " >&6
4436 else case e in #(
4437 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4439 do
4440 IFS=$as_save_IFS
4441 case $as_dir in #(((
4442 '') as_dir=./ ;;
4443 */) ;;
4444 *) as_dir=$as_dir/ ;;
4445 esac
4446 for ac_prog in mkdir gmkdir; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4449 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4450 'mkdir ('*'coreutils) '* | \
4451 *'BusyBox '* | \
4452 'mkdir (fileutils) '4.1*)
4453 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4454 break 3;;
4455 esac
4456 done
4457 done
4458 done
4459 IFS=$as_save_IFS
4460 ;;
4461 esac
4462 fi
4463
4464 test -d ./--version && rmdir ./--version
4465 if test ${ac_cv_path_mkdir+y}; then
4466 MKDIR_P="$ac_cv_path_mkdir -p"
4467 else
4468 # As a last resort, use plain mkdir -p,
4469 # in the hope it doesn't have the bugs of ancient mkdir.
4470 MKDIR_P='mkdir -p'
4471 fi
4472 fi
4473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4474 printf '%s\n' "$MKDIR_P" >&6; }
4475
4476 for ac_prog in gawk mawk nawk awk 'busybox awk'
4477 do
4478 # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 printf %s "checking for $ac_word... " >&6; }
4482 if test ${ac_cv_prog_AWK+y}
4483 then :
4484 printf %s "(cached) " >&6
4485 else case e in #(
4486 e) if test -n "$AWK"; then
4487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492 IFS=$as_save_IFS
4493 case $as_dir in #(((
4494 '') as_dir=./ ;;
4495 */) ;;
4496 *) as_dir=$as_dir/ ;;
4497 esac
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_AWK="$ac_prog"
4501 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4502 break 2
4503 fi
4504 done
4505 done
4506 IFS=$as_save_IFS
4507
4508 fi ;;
4509 esac
4510 fi
4511 AWK=$ac_cv_prog_AWK
4512 if test -n "$AWK"; then
4513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4514 printf '%s\n' "$AWK" >&6; }
4515 else
4516 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 printf '%s\n' "no" >&6; }
4518 fi
4519
4520
4521 test -n "$AWK" && break
4522 done
4523
4524 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4525 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4526 set x ${MAKE-make}
4527 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4528 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4529 then :
4530 printf %s "(cached) " >&6
4531 else case e in #(
4532 e) cat >conftest.make <<\_ACEOF
4533 SHELL = /bin/sh
4534 all:
4535 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
4536 _ACEOF
4537 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4538 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4539 *@@@%%%=?*=@@@%%%*)
4540 eval ac_cv_prog_make_${ac_make}_set=yes;;
4541 *)
4542 eval ac_cv_prog_make_${ac_make}_set=no;;
4543 esac
4544 rm -f conftest.make ;;
4545 esac
4546 fi
4547 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4549 printf '%s\n' "yes" >&6; }
4550 SET_MAKE=
4551 else
4552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 printf '%s\n' "no" >&6; }
4554 SET_MAKE="MAKE=${MAKE-make}"
4555 fi
4556
4557 rm -rf .tst 2>/dev/null
4558 mkdir .tst 2>/dev/null
4559 if test -d .tst; then
4560 am__leading_dot=.
4561 else
4562 am__leading_dot=_
4563 fi
4564 rmdir .tst 2>/dev/null
4565
4566 DEPDIR="${am__leading_dot}deps"
4567
4568 ac_config_commands="$ac_config_commands depfiles"
4569
4570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4571 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4572 cat > confinc.mk << 'END'
4573 am__doit:
4574 @echo this is the am__doit target >confinc.out
4575 .PHONY: am__doit
4576 END
4577 am__include="#"
4578 am__quote=
4579 # BSD make does it like this.
4580 echo '.include "confinc.mk" # ignored' > confmf.BSD
4581 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4582 echo 'include confinc.mk # ignored' > confmf.GNU
4583 _am_result=no
4584 for s in GNU BSD; do
4585 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4586 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }
4590 case $?:`cat confinc.out 2>/dev/null` in #(
4591 '0:this is the am__doit target') :
4592 case $s in #(
4593 BSD) :
4594 am__include='.include' am__quote='"' ;; #(
4595 *) :
4596 am__include='include' am__quote='' ;;
4597 esac ;; #(
4598 *) :
4599 ;;
4600 esac
4601 if test "$am__include" != "#"; then
4602 _am_result="yes ($s style)"
4603 break
4604 fi
4605 done
4606 rm -f confinc.* confmf.*
4607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4608 printf '%s\n' "${_am_result}" >&6; }
4609
4610 # Check whether --enable-dependency-tracking was given.
4611 if test ${enable_dependency_tracking+y}
4612 then :
4613 enableval=$enable_dependency_tracking;
4614 fi
4615
4616 if test "x$enable_dependency_tracking" != xno; then
4617 am_depcomp="$ac_aux_dir/depcomp"
4618 AMDEPBACKSLASH='\'
4619 am__nodep='_no'
4620 fi
4621 if test "x$enable_dependency_tracking" != xno; then
4622 AMDEP_TRUE=
4623 AMDEP_FALSE='#'
4624 else
4625 AMDEP_TRUE='#'
4626 AMDEP_FALSE=
4627 fi
4628
4629
4630 AM_DEFAULT_VERBOSITY=1
4631 # Check whether --enable-silent-rules was given.
4632 if test ${enable_silent_rules+y}
4633 then :
4634 enableval=$enable_silent_rules;
4635 fi
4636
4637 am_make=${MAKE-make}
4638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4639 printf %s "checking whether $am_make supports nested variables... " >&6; }
4640 if test ${am_cv_make_support_nested_variables+y}
4641 then :
4642 printf %s "(cached) " >&6
4643 else case e in #(
4644 e) if printf '%s\n' 'TRUE=$(BAR$(V))
4645 BAR0=false
4646 BAR1=true
4647 V=1
4648 am__doit:
4649 @$(TRUE)
4650 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4651 am_cv_make_support_nested_variables=yes
4652 else
4653 am_cv_make_support_nested_variables=no
4654 fi ;;
4655 esac
4656 fi
4657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4658 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
4659 AM_BACKSLASH='\'
4660
4661 am__rm_f_notfound=
4662 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4663 then :
4664
4665 else case e in #(
4666 e) am__rm_f_notfound='""' ;;
4667 esac
4668 fi
4669
4670
4671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4672 printf %s "checking xargs -n works... " >&6; }
4673 if test ${am_cv_xargs_n_works+y}
4674 then :
4675 printf %s "(cached) " >&6
4676 else case e in #(
4677 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4678 3"
4679 then :
4680 am_cv_xargs_n_works=yes
4681 else case e in #(
4682 e) am_cv_xargs_n_works=no ;;
4683 esac
4684 fi ;;
4685 esac
4686 fi
4687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4688 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
4689 if test "$am_cv_xargs_n_works" = yes
4690 then :
4691 am__xargs_n='xargs -n'
4692 else case e in #(
4693 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4694 ;;
4695 esac
4696 fi
4697
4698 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4699 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4700 # is not polluted with repeated "-I."
4701 am__isrc=' -I$(srcdir)'
4702 # test to see if srcdir already configured
4703 if test -f $srcdir/config.status; then
4704 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4705 fi
4706 fi
4707
4708 # test whether we have cygpath
4709 if test -z "$CYGPATH_W"; then
4710 if (cygpath --version) >/dev/null 2>/dev/null; then
4711 CYGPATH_W='cygpath -w'
4712 else
4713 CYGPATH_W=echo
4714 fi
4715 fi
4716
4717
4718 # Define the identity of the package.
4719 PACKAGE='xrefresh'
4720 VERSION='1.1.1'
4721
4722
4723 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4724
4725
4726 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
4727
4728 # Some tools Automake needs.
4729
4730 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4731
4732
4733 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4734
4735
4736 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4737
4738
4739 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4740
4741
4742 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4743
4744 # For better backward compatibility. To be removed once Automake 1.9.x
4745 # dies out for good. For more background, see:
4746 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4747 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4748 mkdir_p='$(MKDIR_P)'
4749
4750 # We need awk for the "check" target (and possibly the TAP driver). The
4751 # system "awk" is bad on some platforms.
4752 # Always define AMTAR for backward compatibility. Yes, it's still used
4753 # in the wild :-( We should find a proper way to deprecate it ...
4754 AMTAR='$${TAR-tar}'
4755
4756
4757 # We'll loop over all known methods to create a tar archive until one works.
4758 _am_tools='gnutar plaintar pax cpio none'
4759
4760 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4761 # There is notably a 21 bits limit for the UID and the GID. In fact,
4762 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4763 # and bug#13588).
4764 am_max_uid=2097151 # 2^21 - 1
4765 am_max_gid=$am_max_uid
4766 # The $UID and $GID variables are not portable, so we need to resort
4767 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4768 # below are definitely unexpected, so allow the users to see them
4769 # (that is, avoid stderr redirection).
4770 am_uid=`id -u || echo unknown`
4771 am_gid=`id -g || echo unknown`
4772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4773 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4774 if test x$am_uid = xunknown; then
4775 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4776 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4777 elif test $am_uid -le $am_max_uid; then
4778 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4779 printf '%s\n' "yes" >&6; }
4780 else
4781 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 printf '%s\n' "no" >&6; }
4783 _am_tools=none
4784 fi
4785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4786 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4787 if test x$gm_gid = xunknown; then
4788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4789 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4790 elif test $am_gid -le $am_max_gid; then
4791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4792 printf '%s\n' "yes" >&6; }
4793 else
4794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 printf '%s\n' "no" >&6; }
4796 _am_tools=none
4797 fi
4798
4799 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4800 printf %s "checking how to create a ustar tar archive... " >&6; }
4801
4802 # Go ahead even if we have the value already cached. We do so because we
4803 # need to set the values for the 'am__tar' and 'am__untar' variables.
4804 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4805
4806 for _am_tool in $_am_tools; do
4807 case $_am_tool in
4808 gnutar)
4809 for _am_tar in tar gnutar gtar; do
4810 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4811 ($_am_tar --version) >&5 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && break
4815 done
4816 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4817 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4818 am__untar="$_am_tar -xf -"
4819 ;;
4820 plaintar)
4821 # Must skip GNU tar: if it does not support --format= it doesn't create
4822 # ustar tarball either.
4823 (tar --version) >/dev/null 2>&1 && continue
4824 am__tar='tar chf - "$$tardir"'
4825 am__tar_='tar chf - "$tardir"'
4826 am__untar='tar xf -'
4827 ;;
4828 pax)
4829 am__tar='pax -L -x ustar -w "$$tardir"'
4830 am__tar_='pax -L -x ustar -w "$tardir"'
4831 am__untar='pax -r'
4832 ;;
4833 cpio)
4834 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4835 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4836 am__untar='cpio -i -H ustar -d'
4837 ;;
4838 none)
4839 am__tar=false
4840 am__tar_=false
4841 am__untar=false
4842 ;;
4843 esac
4844
4845 # If the value was cached, stop now. We just wanted to have am__tar
4846 # and am__untar set.
4847 test -n "${am_cv_prog_tar_ustar}" && break
4848
4849 # tar/untar a dummy directory, and stop if the command works.
4850 rm -rf conftest.dir
4851 mkdir conftest.dir
4852 echo GrepMe > conftest.dir/file
4853 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4854 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }
4858 rm -rf conftest.dir
4859 if test -s conftest.tar; then
4860 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4861 ($am__untar <conftest.tar) >&5 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }
4865 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4866 (cat conftest.dir/file) >&5 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }
4870 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4871 fi
4872 done
4873 rm -rf conftest.dir
4874
4875 if test ${am_cv_prog_tar_ustar+y}
4876 then :
4877 printf %s "(cached) " >&6
4878 else case e in #(
4879 e) am_cv_prog_tar_ustar=$_am_tool ;;
4880 esac
4881 fi
4882
4883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4884 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
4885
4886
4887
4888
4889
4890 depcc="$CC" am_compiler_list=
4891
4892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4893 printf %s "checking dependency style of $depcc... " >&6; }
4894 if test ${am_cv_CC_dependencies_compiler_type+y}
4895 then :
4896 printf %s "(cached) " >&6
4897 else case e in #(
4898 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4899 # We make a subdir and do the tests there. Otherwise we can end up
4900 # making bogus files that we don't know about and never remove. For
4901 # instance it was reported that on HP-UX the gcc test will end up
4902 # making a dummy file named 'D' -- because '-MD' means "put the output
4903 # in D".
4904 rm -rf conftest.dir
4905 mkdir conftest.dir
4906 # Copy depcomp to subdir because otherwise we won't find it if we're
4907 # using a relative directory.
4908 cp "$am_depcomp" conftest.dir
4909 cd conftest.dir
4910 # We will build objects and dependencies in a subdirectory because
4911 # it helps to detect inapplicable dependency modes. For instance
4912 # both Tru64's cc and ICC support -MD to output dependencies as a
4913 # side effect of compilation, but ICC will put the dependencies in
4914 # the current directory while Tru64 will put them in the object
4915 # directory.
4916 mkdir sub
4917
4918 am_cv_CC_dependencies_compiler_type=none
4919 if test "$am_compiler_list" = ""; then
4920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4921 fi
4922 am__universal=false
4923 case " $depcc " in #(
4924 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4925 esac
4926
4927 for depmode in $am_compiler_list; do
4928 # Setup a source with many dependencies, because some compilers
4929 # like to wrap large dependency lists on column 80 (with \), and
4930 # we should not choose a depcomp mode which is confused by this.
4931 #
4932 # We need to recreate these files for each test, as the compiler may
4933 # overwrite some of them when testing with obscure command lines.
4934 # This happens at least with the AIX C compiler.
4935 : > sub/conftest.c
4936 for i in 1 2 3 4 5 6; do
4937 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4939 # Solaris 10 /bin/sh.
4940 echo '/* dummy */' > sub/conftst$i.h
4941 done
4942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4943
4944 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4945 # mode. It turns out that the SunPro C++ compiler does not properly
4946 # handle '-M -o', and we need to detect this. Also, some Intel
4947 # versions had trouble with output in subdirs.
4948 am__obj=sub/conftest.${OBJEXT-o}
4949 am__minus_obj="-o $am__obj"
4950 case $depmode in
4951 gcc)
4952 # This depmode causes a compiler race in universal mode.
4953 test "$am__universal" = false || continue
4954 ;;
4955 nosideeffect)
4956 # After this tag, mechanisms are not by side-effect, so they'll
4957 # only be used when explicitly requested.
4958 if test "x$enable_dependency_tracking" = xyes; then
4959 continue
4960 else
4961 break
4962 fi
4963 ;;
4964 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4965 # This compiler won't grok '-c -o', but also, the minuso test has
4966 # not run yet. These depmodes are late enough in the game, and
4967 # so weak that their functioning should not be impacted.
4968 am__obj=conftest.${OBJEXT-o}
4969 am__minus_obj=
4970 ;;
4971 none) break ;;
4972 esac
4973 if depmode=$depmode \
4974 source=sub/conftest.c object=$am__obj \
4975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4977 >/dev/null 2>conftest.err &&
4978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4982 # icc doesn't choke on unknown options, it will just issue warnings
4983 # or remarks (even with -Werror). So we grep stderr for any message
4984 # that says an option was ignored or not supported.
4985 # When given -MP, icc 7.0 and 7.1 complain thus:
4986 # icc: Command line warning: ignoring option '-M'; no argument required
4987 # The diagnosis changed in icc 8.0:
4988 # icc: Command line remark: option '-MP' not supported
4989 if (grep 'ignoring option' conftest.err ||
4990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4991 am_cv_CC_dependencies_compiler_type=$depmode
4992 break
4993 fi
4994 fi
4995 done
4996
4997 cd ..
4998 rm -rf conftest.dir
4999 else
5000 am_cv_CC_dependencies_compiler_type=none
5001 fi
5002 ;;
5003 esac
5004 fi
5005 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5006 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5007 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5008
5009 if
5010 test "x$enable_dependency_tracking" != xno \
5011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5012 am__fastdepCC_TRUE=
5013 am__fastdepCC_FALSE='#'
5014 else
5015 am__fastdepCC_TRUE='#'
5016 am__fastdepCC_FALSE=
5017 fi
5018
5019
5020 # Variables for tags utilities; see am/tags.am
5021 if test -z "$CTAGS"; then
5022 CTAGS=ctags
5023 fi
5024
5025 if test -z "$ETAGS"; then
5026 ETAGS=etags
5027 fi
5028
5029 if test -z "$CSCOPE"; then
5030 CSCOPE=cscope
5031 fi
5032
5033
5034
5035
5036
5037
5038
5039
5040 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
5053 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
5054 if test ${ac_cv_c_undeclared_builtin_options+y}
5055 then :
5056 printf %s "(cached) " >&6
5057 else case e in #(
5058 e) ac_save_CFLAGS=$CFLAGS
5059 ac_cv_c_undeclared_builtin_options='cannot detect'
5060 for ac_arg in '' -fno-builtin; do
5061 CFLAGS="$ac_save_CFLAGS $ac_arg"
5062 # This test program should *not* compile successfully.
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065
5066 int
5067 main (void)
5068 {
5069 (void) strchr;
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 if ac_fn_c_try_compile "$LINENO"
5075 then :
5076
5077 else case e in #(
5078 e) # This test program should compile successfully.
5079 # No library function is consistently available on
5080 # freestanding implementations, so test against a dummy
5081 # declaration. Include always-available headers on the
5082 # off chance that they somehow elicit warnings.
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #include <float.h>
5086 #include <limits.h>
5087 #include <stdarg.h>
5088 #include <stddef.h>
5089 extern void ac_decl (int, char *);
5090
5091 int
5092 main (void)
5093 {
5094 (void) ac_decl (0, (char *) 0);
5095 (void) ac_decl;
5096
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"
5102 then :
5103 if test x"$ac_arg" = x
5104 then :
5105 ac_cv_c_undeclared_builtin_options='none needed'
5106 else case e in #(
5107 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5108 esac
5109 fi
5110 break
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5113 esac
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5116 done
5117 CFLAGS=$ac_save_CFLAGS
5118 ;;
5119 esac
5120 fi
5121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5122 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
5123 case $ac_cv_c_undeclared_builtin_options in #(
5124 'cannot detect') :
5125 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5126 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5127 as_fn_error $? "cannot make $CC report undeclared builtins
5128 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5129 'none needed') :
5130 ac_c_undeclared_builtin_options='' ;; #(
5131 *) :
5132 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5133 esac
5134
5135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
5136 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
5137 if test ${ac_cv_c_future_darwin_options+y}
5138 then :
5139 printf %s "(cached) " >&6
5140 else case e in #(
5141 e) ac_compile_saved="$ac_compile"
5142 ac_compile="$ac_compile -Werror=unguarded-availability-new"
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #if ! (defined __APPLE__ && defined __MACH__)
5146 #error "-Werror=unguarded-availability-new not needed here"
5147 #endif
5148
5149 int
5150 main (void)
5151 {
5152
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"
5158 then :
5159 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
5160 else case e in #(
5161 e) ac_cv_c_future_darwin_options='none needed' ;;
5162 esac
5163 fi
5164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5165 ac_compile="$ac_compile_saved"
5166 ;;
5167 esac
5168 fi
5169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
5170 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
5171 case $ac_cv_c_future_darwin_options in #(
5172 'none needed') :
5173 ac_c_future_darwin_options='' ;; #(
5174 *) :
5175 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
5176 esac
5177
5178
5179
5180
5181
5182 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"
5183 if test "x$ac_cv_have_decl___clang__" = xyes
5184 then :
5185 CLANGCC="yes"
5186 else case e in #(
5187 e) CLANGCC="no" ;;
5188 esac
5189 fi
5190 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"
5191 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5192 then :
5193 INTELCC="yes"
5194 else case e in #(
5195 e) INTELCC="no" ;;
5196 esac
5197 fi
5198 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"
5199 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5200 then :
5201 SUNCC="yes"
5202 else case e in #(
5203 e) SUNCC="no" ;;
5204 esac
5205 fi
5206
5207
5208
5209
5210
5211
5212
5213
5214 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 printf %s "checking for $ac_word... " >&6; }
5220 if test ${ac_cv_path_PKG_CONFIG+y}
5221 then :
5222 printf %s "(cached) " >&6
5223 else case e in #(
5224 e) case $PKG_CONFIG in
5225 [\\/]* | ?:[\\/]*)
5226 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5227 ;;
5228 *)
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 case $as_dir in #(((
5234 '') as_dir=./ ;;
5235 */) ;;
5236 *) as_dir=$as_dir/ ;;
5237 esac
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5240 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5241 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248 ;;
5249 esac ;;
5250 esac
5251 fi
5252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5253 if test -n "$PKG_CONFIG"; then
5254 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5255 printf '%s\n' "$PKG_CONFIG" >&6; }
5256 else
5257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 printf '%s\n' "no" >&6; }
5259 fi
5260
5261
5262 fi
5263 if test -z "$ac_cv_path_PKG_CONFIG"; then
5264 ac_pt_PKG_CONFIG=$PKG_CONFIG
5265 # Extract the first word of "pkg-config", so it can be a program name with args.
5266 set dummy pkg-config; ac_word=$2
5267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 printf %s "checking for $ac_word... " >&6; }
5269 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5270 then :
5271 printf %s "(cached) " >&6
5272 else case e in #(
5273 e) case $ac_pt_PKG_CONFIG in
5274 [\\/]* | ?:[\\/]*)
5275 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5276 ;;
5277 *)
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281 IFS=$as_save_IFS
5282 case $as_dir in #(((
5283 '') as_dir=./ ;;
5284 */) ;;
5285 *) as_dir=$as_dir/ ;;
5286 esac
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5289 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5290 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297 ;;
5298 esac ;;
5299 esac
5300 fi
5301 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5302 if test -n "$ac_pt_PKG_CONFIG"; then
5303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5304 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5305 else
5306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 printf '%s\n' "no" >&6; }
5308 fi
5309
5310 if test "x$ac_pt_PKG_CONFIG" = x; then
5311 PKG_CONFIG=""
5312 else
5313 case $cross_compiling:$ac_tool_warned in
5314 yes:)
5315 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5316 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5317 ac_tool_warned=yes ;;
5318 esac
5319 PKG_CONFIG=$ac_pt_PKG_CONFIG
5320 fi
5321 else
5322 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5323 fi
5324
5325 fi
5326 if test -n "$PKG_CONFIG"; then
5327 _pkg_min_version=0.9.0
5328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5329 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5330 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 printf '%s\n' "yes" >&6; }
5333 else
5334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 printf '%s\n' "no" >&6; }
5336 PKG_CONFIG=""
5337 fi
5338 fi
5339
5340
5341 # Make sure we can run config.sub.
5342 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5343 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5344
5345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5346 printf %s "checking build system type... " >&6; }
5347 if test ${ac_cv_build+y}
5348 then :
5349 printf %s "(cached) " >&6
5350 else case e in #(
5351 e) ac_build_alias=$build_alias
5352 test "x$ac_build_alias" = x &&
5353 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5354 test "x$ac_build_alias" = x &&
5355 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5356 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5357 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5358 ;;
5359 esac
5360 fi
5361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5362 printf '%s\n' "$ac_cv_build" >&6; }
5363 case $ac_cv_build in
5364 *-*-*) ;;
5365 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5366 esac
5367 build=$ac_cv_build
5368 ac_save_IFS=$IFS; IFS='-'
5369 set x $ac_cv_build
5370 shift
5371 build_cpu=$1
5372 build_vendor=$2
5373 shift; shift
5374 # Remember, the first character of IFS is used to create $*,
5375 # except with old shells:
5376 build_os=$*
5377 IFS=$ac_save_IFS
5378 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5379
5380
5381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5382 printf %s "checking host system type... " >&6; }
5383 if test ${ac_cv_host+y}
5384 then :
5385 printf %s "(cached) " >&6
5386 else case e in #(
5387 e) if test "x$host_alias" = x; then
5388 ac_cv_host=$ac_cv_build
5389 else
5390 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5391 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5392 fi
5393 ;;
5394 esac
5395 fi
5396 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5397 printf '%s\n' "$ac_cv_host" >&6; }
5398 case $ac_cv_host in
5399 *-*-*) ;;
5400 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5401 esac
5402 host=$ac_cv_host
5403 ac_save_IFS=$IFS; IFS='-'
5404 set x $ac_cv_host
5405 shift
5406 host_cpu=$1
5407 host_vendor=$2
5408 shift; shift
5409 # Remember, the first character of IFS is used to create $*,
5410 # except with old shells:
5411 host_os=$*
5412 IFS=$ac_save_IFS
5413 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5414
5415
5416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5417 printf %s "checking for a sed that does not truncate output... " >&6; }
5418 if test ${ac_cv_path_SED+y}
5419 then :
5420 printf %s "(cached) " >&6
5421 else case e in #(
5422 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5423 for ac_i in 1 2 3 4 5 6 7; do
5424 ac_script="$ac_script$as_nl$ac_script"
5425 done
5426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5427 { ac_script=; unset ac_script;}
5428 if test -z "$SED"; then
5429 ac_path_SED_found=false
5430 # Loop through the user's path and test for each of PROGNAME-LIST
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 case $as_dir in #(((
5436 '') as_dir=./ ;;
5437 */) ;;
5438 *) as_dir=$as_dir/ ;;
5439 esac
5440 for ac_prog in sed gsed
5441 do
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5444 as_fn_executable_p "$ac_path_SED" || continue
5445 # Check for GNU ac_path_SED and select it if it is found.
5446 # Check for GNU $ac_path_SED
5447 case `"$ac_path_SED" --version 2>&1` in #(
5448 *GNU*)
5449 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5450 #(
5451 *)
5452 ac_count=0
5453 printf %s 0123456789 >"conftest.in"
5454 while :
5455 do
5456 cat "conftest.in" "conftest.in" >"conftest.tmp"
5457 mv "conftest.tmp" "conftest.in"
5458 cp "conftest.in" "conftest.nl"
5459 printf '%s\n' '' >> "conftest.nl"
5460 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5462 as_fn_arith $ac_count + 1 && ac_count=$as_val
5463 if test $ac_count -gt ${ac_path_SED_max-0}; then
5464 # Best one so far, save it but keep looking for a better one
5465 ac_cv_path_SED="$ac_path_SED"
5466 ac_path_SED_max=$ac_count
5467 fi
5468 # 10*(2^10) chars as input seems more than enough
5469 test $ac_count -gt 10 && break
5470 done
5471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5472 esac
5473
5474 $ac_path_SED_found && break 3
5475 done
5476 done
5477 done
5478 IFS=$as_save_IFS
5479 if test -z "$ac_cv_path_SED"; then
5480 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5481 fi
5482 else
5483 ac_cv_path_SED=$SED
5484 fi
5485 ;;
5486 esac
5487 fi
5488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5489 printf '%s\n' "$ac_cv_path_SED" >&6; }
5490 SED="$ac_cv_path_SED"
5491 rm -f conftest.sed
5492
5493
5494
5495
5496
5497
5498 # Check whether --enable-selective-werror was given.
5499 if test ${enable_selective_werror+y}
5500 then :
5501 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5502 else case e in #(
5503 e) SELECTIVE_WERROR=yes ;;
5504 esac
5505 fi
5506
5507
5508
5509
5510
5511 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5512 if test "x$SUNCC" = "xyes"; then
5513 BASE_CFLAGS="-v"
5514 else
5515 BASE_CFLAGS=""
5516 fi
5517
5518 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 xorg_testset_save_CFLAGS="$CFLAGS"
5533
5534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5538 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5539 then :
5540 printf %s "(cached) " >&6
5541 else case e in #(
5542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 int i;
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"
5547 then :
5548 xorg_cv_cc_flag_unknown_warning_option=yes
5549 else case e in #(
5550 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5551 esac
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5554 esac
5555 fi
5556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5557 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5559 CFLAGS="$xorg_testset_save_CFLAGS"
5560 fi
5561
5562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5565 fi
5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5568 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5569 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5570 then :
5571 printf %s "(cached) " >&6
5572 else case e in #(
5573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 int i;
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"
5578 then :
5579 xorg_cv_cc_flag_unused_command_line_argument=yes
5580 else case e in #(
5581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5582 esac
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5585 esac
5586 fi
5587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5588 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5590 CFLAGS="$xorg_testset_save_CFLAGS"
5591 fi
5592
5593 found="no"
5594
5595 if test $found = "no" ; then
5596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5598 fi
5599
5600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5602 fi
5603
5604 CFLAGS="$CFLAGS -Wall"
5605
5606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5607 printf %s "checking if $CC supports -Wall... " >&6; }
5608 cacheid=xorg_cv_cc_flag__Wall
5609 if eval test \${$cacheid+y}
5610 then :
5611 printf %s "(cached) " >&6
5612 else case e in #(
5613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 int i;
5616 int
5617 main (void)
5618 {
5619
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 if ac_fn_c_try_link "$LINENO"
5625 then :
5626 eval $cacheid=yes
5627 else case e in #(
5628 e) eval $cacheid=no ;;
5629 esac
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5632 conftest$ac_exeext conftest.$ac_ext ;;
5633 esac
5634 fi
5635
5636
5637 CFLAGS="$xorg_testset_save_CFLAGS"
5638
5639 eval supported=\$$cacheid
5640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5641 printf '%s\n' "$supported" >&6; }
5642 if test "$supported" = "yes" ; then
5643 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5644 found="yes"
5645 fi
5646 fi
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 xorg_testset_save_CFLAGS="$CFLAGS"
5663
5664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5666 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5668 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5669 then :
5670 printf %s "(cached) " >&6
5671 else case e in #(
5672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 int i;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"
5677 then :
5678 xorg_cv_cc_flag_unknown_warning_option=yes
5679 else case e in #(
5680 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5681 esac
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5684 esac
5685 fi
5686 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5687 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5689 CFLAGS="$xorg_testset_save_CFLAGS"
5690 fi
5691
5692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5695 fi
5696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5700 then :
5701 printf %s "(cached) " >&6
5702 else case e in #(
5703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 int i;
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"
5708 then :
5709 xorg_cv_cc_flag_unused_command_line_argument=yes
5710 else case e in #(
5711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5712 esac
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5715 esac
5716 fi
5717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5718 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5720 CFLAGS="$xorg_testset_save_CFLAGS"
5721 fi
5722
5723 found="no"
5724
5725 if test $found = "no" ; then
5726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728 fi
5729
5730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5732 fi
5733
5734 CFLAGS="$CFLAGS -Wpointer-arith"
5735
5736 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5737 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5738 cacheid=xorg_cv_cc_flag__Wpointer_arith
5739 if eval test \${$cacheid+y}
5740 then :
5741 printf %s "(cached) " >&6
5742 else case e in #(
5743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 int i;
5746 int
5747 main (void)
5748 {
5749
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_link "$LINENO"
5755 then :
5756 eval $cacheid=yes
5757 else case e in #(
5758 e) eval $cacheid=no ;;
5759 esac
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5762 conftest$ac_exeext conftest.$ac_ext ;;
5763 esac
5764 fi
5765
5766
5767 CFLAGS="$xorg_testset_save_CFLAGS"
5768
5769 eval supported=\$$cacheid
5770 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5771 printf '%s\n' "$supported" >&6; }
5772 if test "$supported" = "yes" ; then
5773 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5774 found="yes"
5775 fi
5776 fi
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792 xorg_testset_save_CFLAGS="$CFLAGS"
5793
5794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5797 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5798 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5799 then :
5800 printf %s "(cached) " >&6
5801 else case e in #(
5802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 int i;
5805 _ACEOF
5806 if ac_fn_c_try_compile "$LINENO"
5807 then :
5808 xorg_cv_cc_flag_unknown_warning_option=yes
5809 else case e in #(
5810 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5811 esac
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5814 esac
5815 fi
5816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5817 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5819 CFLAGS="$xorg_testset_save_CFLAGS"
5820 fi
5821
5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825 fi
5826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5828 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5829 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5830 then :
5831 printf %s "(cached) " >&6
5832 else case e in #(
5833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 int i;
5836 _ACEOF
5837 if ac_fn_c_try_compile "$LINENO"
5838 then :
5839 xorg_cv_cc_flag_unused_command_line_argument=yes
5840 else case e in #(
5841 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5842 esac
5843 fi
5844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5845 esac
5846 fi
5847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5848 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5850 CFLAGS="$xorg_testset_save_CFLAGS"
5851 fi
5852
5853 found="no"
5854
5855 if test $found = "no" ; then
5856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5858 fi
5859
5860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5862 fi
5863
5864 CFLAGS="$CFLAGS -Wmissing-declarations"
5865
5866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5867 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5868 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5869 if eval test \${$cacheid+y}
5870 then :
5871 printf %s "(cached) " >&6
5872 else case e in #(
5873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 int i;
5876 int
5877 main (void)
5878 {
5879
5880 ;
5881 return 0;
5882 }
5883 _ACEOF
5884 if ac_fn_c_try_link "$LINENO"
5885 then :
5886 eval $cacheid=yes
5887 else case e in #(
5888 e) eval $cacheid=no ;;
5889 esac
5890 fi
5891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5892 conftest$ac_exeext conftest.$ac_ext ;;
5893 esac
5894 fi
5895
5896
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5898
5899 eval supported=\$$cacheid
5900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5901 printf '%s\n' "$supported" >&6; }
5902 if test "$supported" = "yes" ; then
5903 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5904 found="yes"
5905 fi
5906 fi
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922 xorg_testset_save_CFLAGS="$CFLAGS"
5923
5924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5927 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5928 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5929 then :
5930 printf %s "(cached) " >&6
5931 else case e in #(
5932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 int i;
5935 _ACEOF
5936 if ac_fn_c_try_compile "$LINENO"
5937 then :
5938 xorg_cv_cc_flag_unknown_warning_option=yes
5939 else case e in #(
5940 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5941 esac
5942 fi
5943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5944 esac
5945 fi
5946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5947 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5949 CFLAGS="$xorg_testset_save_CFLAGS"
5950 fi
5951
5952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5955 fi
5956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5958 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5959 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5960 then :
5961 printf %s "(cached) " >&6
5962 else case e in #(
5963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 int i;
5966 _ACEOF
5967 if ac_fn_c_try_compile "$LINENO"
5968 then :
5969 xorg_cv_cc_flag_unused_command_line_argument=yes
5970 else case e in #(
5971 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5972 esac
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5975 esac
5976 fi
5977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5978 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981 fi
5982
5983 found="no"
5984
5985 if test $found = "no" ; then
5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989
5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5992 fi
5993
5994 CFLAGS="$CFLAGS -Wformat=2"
5995
5996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5997 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5998 cacheid=xorg_cv_cc_flag__Wformat_2
5999 if eval test \${$cacheid+y}
6000 then :
6001 printf %s "(cached) " >&6
6002 else case e in #(
6003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 int i;
6006 int
6007 main (void)
6008 {
6009
6010 ;
6011 return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_link "$LINENO"
6015 then :
6016 eval $cacheid=yes
6017 else case e in #(
6018 e) eval $cacheid=no ;;
6019 esac
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6022 conftest$ac_exeext conftest.$ac_ext ;;
6023 esac
6024 fi
6025
6026
6027 CFLAGS="$xorg_testset_save_CFLAGS"
6028
6029 eval supported=\$$cacheid
6030 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031 printf '%s\n' "$supported" >&6; }
6032 if test "$supported" = "yes" ; then
6033 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6034 found="yes"
6035 fi
6036 fi
6037
6038 if test $found = "no" ; then
6039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041 fi
6042
6043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045 fi
6046
6047 CFLAGS="$CFLAGS -Wformat"
6048
6049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6050 printf %s "checking if $CC supports -Wformat... " >&6; }
6051 cacheid=xorg_cv_cc_flag__Wformat
6052 if eval test \${$cacheid+y}
6053 then :
6054 printf %s "(cached) " >&6
6055 else case e in #(
6056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 int i;
6059 int
6060 main (void)
6061 {
6062
6063 ;
6064 return 0;
6065 }
6066 _ACEOF
6067 if ac_fn_c_try_link "$LINENO"
6068 then :
6069 eval $cacheid=yes
6070 else case e in #(
6071 e) eval $cacheid=no ;;
6072 esac
6073 fi
6074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6075 conftest$ac_exeext conftest.$ac_ext ;;
6076 esac
6077 fi
6078
6079
6080 CFLAGS="$xorg_testset_save_CFLAGS"
6081
6082 eval supported=\$$cacheid
6083 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6084 printf '%s\n' "$supported" >&6; }
6085 if test "$supported" = "yes" ; then
6086 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6087 found="yes"
6088 fi
6089 fi
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 xorg_testset_save_CFLAGS="$CFLAGS"
6108
6109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6112 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6113 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6114 then :
6115 printf %s "(cached) " >&6
6116 else case e in #(
6117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 int i;
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"
6122 then :
6123 xorg_cv_cc_flag_unknown_warning_option=yes
6124 else case e in #(
6125 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6126 esac
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6129 esac
6130 fi
6131 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6132 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6134 CFLAGS="$xorg_testset_save_CFLAGS"
6135 fi
6136
6137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6140 fi
6141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6143 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6144 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6145 then :
6146 printf %s "(cached) " >&6
6147 else case e in #(
6148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 int i;
6151 _ACEOF
6152 if ac_fn_c_try_compile "$LINENO"
6153 then :
6154 xorg_cv_cc_flag_unused_command_line_argument=yes
6155 else case e in #(
6156 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6157 esac
6158 fi
6159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6160 esac
6161 fi
6162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6163 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6165 CFLAGS="$xorg_testset_save_CFLAGS"
6166 fi
6167
6168 found="no"
6169
6170 if test $found = "no" ; then
6171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6173 fi
6174
6175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6177 fi
6178
6179 CFLAGS="$CFLAGS -Wstrict-prototypes"
6180
6181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6182 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6183 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6184 if eval test \${$cacheid+y}
6185 then :
6186 printf %s "(cached) " >&6
6187 else case e in #(
6188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 int i;
6191 int
6192 main (void)
6193 {
6194
6195 ;
6196 return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_link "$LINENO"
6200 then :
6201 eval $cacheid=yes
6202 else case e in #(
6203 e) eval $cacheid=no ;;
6204 esac
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6207 conftest$ac_exeext conftest.$ac_ext ;;
6208 esac
6209 fi
6210
6211
6212 CFLAGS="$xorg_testset_save_CFLAGS"
6213
6214 eval supported=\$$cacheid
6215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6216 printf '%s\n' "$supported" >&6; }
6217 if test "$supported" = "yes" ; then
6218 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6219 found="yes"
6220 fi
6221 fi
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237 xorg_testset_save_CFLAGS="$CFLAGS"
6238
6239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6242 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6243 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6244 then :
6245 printf %s "(cached) " >&6
6246 else case e in #(
6247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 int i;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"
6252 then :
6253 xorg_cv_cc_flag_unknown_warning_option=yes
6254 else case e in #(
6255 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6256 esac
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6259 esac
6260 fi
6261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6262 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6264 CFLAGS="$xorg_testset_save_CFLAGS"
6265 fi
6266
6267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270 fi
6271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6273 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6274 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6275 then :
6276 printf %s "(cached) " >&6
6277 else case e in #(
6278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 int i;
6281 _ACEOF
6282 if ac_fn_c_try_compile "$LINENO"
6283 then :
6284 xorg_cv_cc_flag_unused_command_line_argument=yes
6285 else case e in #(
6286 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6287 esac
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6290 esac
6291 fi
6292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6293 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296 fi
6297
6298 found="no"
6299
6300 if test $found = "no" ; then
6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6303 fi
6304
6305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6307 fi
6308
6309 CFLAGS="$CFLAGS -Wmissing-prototypes"
6310
6311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6312 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6313 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6314 if eval test \${$cacheid+y}
6315 then :
6316 printf %s "(cached) " >&6
6317 else case e in #(
6318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 int i;
6321 int
6322 main (void)
6323 {
6324
6325 ;
6326 return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_c_try_link "$LINENO"
6330 then :
6331 eval $cacheid=yes
6332 else case e in #(
6333 e) eval $cacheid=no ;;
6334 esac
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6337 conftest$ac_exeext conftest.$ac_ext ;;
6338 esac
6339 fi
6340
6341
6342 CFLAGS="$xorg_testset_save_CFLAGS"
6343
6344 eval supported=\$$cacheid
6345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6346 printf '%s\n' "$supported" >&6; }
6347 if test "$supported" = "yes" ; then
6348 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6349 found="yes"
6350 fi
6351 fi
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 xorg_testset_save_CFLAGS="$CFLAGS"
6368
6369 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6372 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6373 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6374 then :
6375 printf %s "(cached) " >&6
6376 else case e in #(
6377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 int i;
6380 _ACEOF
6381 if ac_fn_c_try_compile "$LINENO"
6382 then :
6383 xorg_cv_cc_flag_unknown_warning_option=yes
6384 else case e in #(
6385 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6386 esac
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6389 esac
6390 fi
6391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6392 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6394 CFLAGS="$xorg_testset_save_CFLAGS"
6395 fi
6396
6397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400 fi
6401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6403 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6404 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6405 then :
6406 printf %s "(cached) " >&6
6407 else case e in #(
6408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 int i;
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"
6413 then :
6414 xorg_cv_cc_flag_unused_command_line_argument=yes
6415 else case e in #(
6416 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6417 esac
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6420 esac
6421 fi
6422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6423 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6425 CFLAGS="$xorg_testset_save_CFLAGS"
6426 fi
6427
6428 found="no"
6429
6430 if test $found = "no" ; then
6431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433 fi
6434
6435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6437 fi
6438
6439 CFLAGS="$CFLAGS -Wnested-externs"
6440
6441 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6442 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6443 cacheid=xorg_cv_cc_flag__Wnested_externs
6444 if eval test \${$cacheid+y}
6445 then :
6446 printf %s "(cached) " >&6
6447 else case e in #(
6448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 int i;
6451 int
6452 main (void)
6453 {
6454
6455 ;
6456 return 0;
6457 }
6458 _ACEOF
6459 if ac_fn_c_try_link "$LINENO"
6460 then :
6461 eval $cacheid=yes
6462 else case e in #(
6463 e) eval $cacheid=no ;;
6464 esac
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6467 conftest$ac_exeext conftest.$ac_ext ;;
6468 esac
6469 fi
6470
6471
6472 CFLAGS="$xorg_testset_save_CFLAGS"
6473
6474 eval supported=\$$cacheid
6475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6476 printf '%s\n' "$supported" >&6; }
6477 if test "$supported" = "yes" ; then
6478 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6479 found="yes"
6480 fi
6481 fi
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497 xorg_testset_save_CFLAGS="$CFLAGS"
6498
6499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6501 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6502 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6503 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6504 then :
6505 printf %s "(cached) " >&6
6506 else case e in #(
6507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 int i;
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"
6512 then :
6513 xorg_cv_cc_flag_unknown_warning_option=yes
6514 else case e in #(
6515 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6516 esac
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6519 esac
6520 fi
6521 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6522 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6524 CFLAGS="$xorg_testset_save_CFLAGS"
6525 fi
6526
6527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530 fi
6531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6535 then :
6536 printf %s "(cached) " >&6
6537 else case e in #(
6538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 int i;
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"
6543 then :
6544 xorg_cv_cc_flag_unused_command_line_argument=yes
6545 else case e in #(
6546 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6547 esac
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6550 esac
6551 fi
6552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6553 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6555 CFLAGS="$xorg_testset_save_CFLAGS"
6556 fi
6557
6558 found="no"
6559
6560 if test $found = "no" ; then
6561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563 fi
6564
6565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567 fi
6568
6569 CFLAGS="$CFLAGS -Wbad-function-cast"
6570
6571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6572 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6573 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6574 if eval test \${$cacheid+y}
6575 then :
6576 printf %s "(cached) " >&6
6577 else case e in #(
6578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 int i;
6581 int
6582 main (void)
6583 {
6584
6585 ;
6586 return 0;
6587 }
6588 _ACEOF
6589 if ac_fn_c_try_link "$LINENO"
6590 then :
6591 eval $cacheid=yes
6592 else case e in #(
6593 e) eval $cacheid=no ;;
6594 esac
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6597 conftest$ac_exeext conftest.$ac_ext ;;
6598 esac
6599 fi
6600
6601
6602 CFLAGS="$xorg_testset_save_CFLAGS"
6603
6604 eval supported=\$$cacheid
6605 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6606 printf '%s\n' "$supported" >&6; }
6607 if test "$supported" = "yes" ; then
6608 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6609 found="yes"
6610 fi
6611 fi
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 xorg_testset_save_CFLAGS="$CFLAGS"
6628
6629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6632 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6633 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6634 then :
6635 printf %s "(cached) " >&6
6636 else case e in #(
6637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 int i;
6640 _ACEOF
6641 if ac_fn_c_try_compile "$LINENO"
6642 then :
6643 xorg_cv_cc_flag_unknown_warning_option=yes
6644 else case e in #(
6645 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6646 esac
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6649 esac
6650 fi
6651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6652 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6654 CFLAGS="$xorg_testset_save_CFLAGS"
6655 fi
6656
6657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6660 fi
6661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6663 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6664 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6665 then :
6666 printf %s "(cached) " >&6
6667 else case e in #(
6668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670 int i;
6671 _ACEOF
6672 if ac_fn_c_try_compile "$LINENO"
6673 then :
6674 xorg_cv_cc_flag_unused_command_line_argument=yes
6675 else case e in #(
6676 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6677 esac
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6680 esac
6681 fi
6682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6683 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6685 CFLAGS="$xorg_testset_save_CFLAGS"
6686 fi
6687
6688 found="no"
6689
6690 if test $found = "no" ; then
6691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6693 fi
6694
6695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6697 fi
6698
6699 CFLAGS="$CFLAGS -Wold-style-definition"
6700
6701 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6702 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6703 cacheid=xorg_cv_cc_flag__Wold_style_definition
6704 if eval test \${$cacheid+y}
6705 then :
6706 printf %s "(cached) " >&6
6707 else case e in #(
6708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int i;
6711 int
6712 main (void)
6713 {
6714
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"
6720 then :
6721 eval $cacheid=yes
6722 else case e in #(
6723 e) eval $cacheid=no ;;
6724 esac
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6727 conftest$ac_exeext conftest.$ac_ext ;;
6728 esac
6729 fi
6730
6731
6732 CFLAGS="$xorg_testset_save_CFLAGS"
6733
6734 eval supported=\$$cacheid
6735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6736 printf '%s\n' "$supported" >&6; }
6737 if test "$supported" = "yes" ; then
6738 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6739 found="yes"
6740 fi
6741 fi
6742
6743 if test $found = "no" ; then
6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746 fi
6747
6748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750 fi
6751
6752 CFLAGS="$CFLAGS -fd"
6753
6754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6755 printf %s "checking if $CC supports -fd... " >&6; }
6756 cacheid=xorg_cv_cc_flag__fd
6757 if eval test \${$cacheid+y}
6758 then :
6759 printf %s "(cached) " >&6
6760 else case e in #(
6761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 int i;
6764 int
6765 main (void)
6766 {
6767
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"
6773 then :
6774 eval $cacheid=yes
6775 else case e in #(
6776 e) eval $cacheid=no ;;
6777 esac
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6780 conftest$ac_exeext conftest.$ac_ext ;;
6781 esac
6782 fi
6783
6784
6785 CFLAGS="$xorg_testset_save_CFLAGS"
6786
6787 eval supported=\$$cacheid
6788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6789 printf '%s\n' "$supported" >&6; }
6790 if test "$supported" = "yes" ; then
6791 BASE_CFLAGS="$BASE_CFLAGS -fd"
6792 found="yes"
6793 fi
6794 fi
6795
6796
6797
6798
6799
6800 # This chunk adds additional warnings that could catch undesired effects.
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814 xorg_testset_save_CFLAGS="$CFLAGS"
6815
6816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6819 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6820 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6821 then :
6822 printf %s "(cached) " >&6
6823 else case e in #(
6824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 int i;
6827 _ACEOF
6828 if ac_fn_c_try_compile "$LINENO"
6829 then :
6830 xorg_cv_cc_flag_unknown_warning_option=yes
6831 else case e in #(
6832 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6833 esac
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6836 esac
6837 fi
6838 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6839 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6841 CFLAGS="$xorg_testset_save_CFLAGS"
6842 fi
6843
6844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6847 fi
6848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6849 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6850 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6851 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6852 then :
6853 printf %s "(cached) " >&6
6854 else case e in #(
6855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 int i;
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"
6860 then :
6861 xorg_cv_cc_flag_unused_command_line_argument=yes
6862 else case e in #(
6863 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6864 esac
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6867 esac
6868 fi
6869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6870 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6872 CFLAGS="$xorg_testset_save_CFLAGS"
6873 fi
6874
6875 found="no"
6876
6877 if test $found = "no" ; then
6878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880 fi
6881
6882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6884 fi
6885
6886 CFLAGS="$CFLAGS -Wunused"
6887
6888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6889 printf %s "checking if $CC supports -Wunused... " >&6; }
6890 cacheid=xorg_cv_cc_flag__Wunused
6891 if eval test \${$cacheid+y}
6892 then :
6893 printf %s "(cached) " >&6
6894 else case e in #(
6895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 int i;
6898 int
6899 main (void)
6900 {
6901
6902 ;
6903 return 0;
6904 }
6905 _ACEOF
6906 if ac_fn_c_try_link "$LINENO"
6907 then :
6908 eval $cacheid=yes
6909 else case e in #(
6910 e) eval $cacheid=no ;;
6911 esac
6912 fi
6913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6914 conftest$ac_exeext conftest.$ac_ext ;;
6915 esac
6916 fi
6917
6918
6919 CFLAGS="$xorg_testset_save_CFLAGS"
6920
6921 eval supported=\$$cacheid
6922 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6923 printf '%s\n' "$supported" >&6; }
6924 if test "$supported" = "yes" ; then
6925 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6926 found="yes"
6927 fi
6928 fi
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944 xorg_testset_save_CFLAGS="$CFLAGS"
6945
6946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6949 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6950 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6951 then :
6952 printf %s "(cached) " >&6
6953 else case e in #(
6954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 int i;
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"
6959 then :
6960 xorg_cv_cc_flag_unknown_warning_option=yes
6961 else case e in #(
6962 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6963 esac
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6966 esac
6967 fi
6968 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6969 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6971 CFLAGS="$xorg_testset_save_CFLAGS"
6972 fi
6973
6974 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977 fi
6978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6980 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6981 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6982 then :
6983 printf %s "(cached) " >&6
6984 else case e in #(
6985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6987 int i;
6988 _ACEOF
6989 if ac_fn_c_try_compile "$LINENO"
6990 then :
6991 xorg_cv_cc_flag_unused_command_line_argument=yes
6992 else case e in #(
6993 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6994 esac
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6997 esac
6998 fi
6999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7000 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7002 CFLAGS="$xorg_testset_save_CFLAGS"
7003 fi
7004
7005 found="no"
7006
7007 if test $found = "no" ; then
7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7010 fi
7011
7012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7014 fi
7015
7016 CFLAGS="$CFLAGS -Wuninitialized"
7017
7018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7019 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7020 cacheid=xorg_cv_cc_flag__Wuninitialized
7021 if eval test \${$cacheid+y}
7022 then :
7023 printf %s "(cached) " >&6
7024 else case e in #(
7025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7027 int i;
7028 int
7029 main (void)
7030 {
7031
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"
7037 then :
7038 eval $cacheid=yes
7039 else case e in #(
7040 e) eval $cacheid=no ;;
7041 esac
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7044 conftest$ac_exeext conftest.$ac_ext ;;
7045 esac
7046 fi
7047
7048
7049 CFLAGS="$xorg_testset_save_CFLAGS"
7050
7051 eval supported=\$$cacheid
7052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7053 printf '%s\n' "$supported" >&6; }
7054 if test "$supported" = "yes" ; then
7055 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7056 found="yes"
7057 fi
7058 fi
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074 xorg_testset_save_CFLAGS="$CFLAGS"
7075
7076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7079 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7080 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7081 then :
7082 printf %s "(cached) " >&6
7083 else case e in #(
7084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 int i;
7087 _ACEOF
7088 if ac_fn_c_try_compile "$LINENO"
7089 then :
7090 xorg_cv_cc_flag_unknown_warning_option=yes
7091 else case e in #(
7092 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7093 esac
7094 fi
7095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7096 esac
7097 fi
7098 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7099 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7101 CFLAGS="$xorg_testset_save_CFLAGS"
7102 fi
7103
7104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 fi
7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7110 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7111 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7112 then :
7113 printf %s "(cached) " >&6
7114 else case e in #(
7115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"
7120 then :
7121 xorg_cv_cc_flag_unused_command_line_argument=yes
7122 else case e in #(
7123 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7124 esac
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7127 esac
7128 fi
7129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7130 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7132 CFLAGS="$xorg_testset_save_CFLAGS"
7133 fi
7134
7135 found="no"
7136
7137 if test $found = "no" ; then
7138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140 fi
7141
7142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7144 fi
7145
7146 CFLAGS="$CFLAGS -Wshadow"
7147
7148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7149 printf %s "checking if $CC supports -Wshadow... " >&6; }
7150 cacheid=xorg_cv_cc_flag__Wshadow
7151 if eval test \${$cacheid+y}
7152 then :
7153 printf %s "(cached) " >&6
7154 else case e in #(
7155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 int i;
7158 int
7159 main (void)
7160 {
7161
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"
7167 then :
7168 eval $cacheid=yes
7169 else case e in #(
7170 e) eval $cacheid=no ;;
7171 esac
7172 fi
7173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7174 conftest$ac_exeext conftest.$ac_ext ;;
7175 esac
7176 fi
7177
7178
7179 CFLAGS="$xorg_testset_save_CFLAGS"
7180
7181 eval supported=\$$cacheid
7182 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7183 printf '%s\n' "$supported" >&6; }
7184 if test "$supported" = "yes" ; then
7185 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7186 found="yes"
7187 fi
7188 fi
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 xorg_testset_save_CFLAGS="$CFLAGS"
7205
7206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7209 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7210 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7211 then :
7212 printf %s "(cached) " >&6
7213 else case e in #(
7214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 int i;
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"
7219 then :
7220 xorg_cv_cc_flag_unknown_warning_option=yes
7221 else case e in #(
7222 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7223 esac
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7226 esac
7227 fi
7228 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7229 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7231 CFLAGS="$xorg_testset_save_CFLAGS"
7232 fi
7233
7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237 fi
7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7240 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7241 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7242 then :
7243 printf %s "(cached) " >&6
7244 else case e in #(
7245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 int i;
7248 _ACEOF
7249 if ac_fn_c_try_compile "$LINENO"
7250 then :
7251 xorg_cv_cc_flag_unused_command_line_argument=yes
7252 else case e in #(
7253 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7254 esac
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7257 esac
7258 fi
7259 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7260 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7262 CFLAGS="$xorg_testset_save_CFLAGS"
7263 fi
7264
7265 found="no"
7266
7267 if test $found = "no" ; then
7268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7270 fi
7271
7272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7274 fi
7275
7276 CFLAGS="$CFLAGS -Wmissing-noreturn"
7277
7278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7279 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7280 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7281 if eval test \${$cacheid+y}
7282 then :
7283 printf %s "(cached) " >&6
7284 else case e in #(
7285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 int i;
7288 int
7289 main (void)
7290 {
7291
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_link "$LINENO"
7297 then :
7298 eval $cacheid=yes
7299 else case e in #(
7300 e) eval $cacheid=no ;;
7301 esac
7302 fi
7303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7304 conftest$ac_exeext conftest.$ac_ext ;;
7305 esac
7306 fi
7307
7308
7309 CFLAGS="$xorg_testset_save_CFLAGS"
7310
7311 eval supported=\$$cacheid
7312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7313 printf '%s\n' "$supported" >&6; }
7314 if test "$supported" = "yes" ; then
7315 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7316 found="yes"
7317 fi
7318 fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7340 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7341 then :
7342 printf %s "(cached) " >&6
7343 else case e in #(
7344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 int i;
7347 _ACEOF
7348 if ac_fn_c_try_compile "$LINENO"
7349 then :
7350 xorg_cv_cc_flag_unknown_warning_option=yes
7351 else case e in #(
7352 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7353 esac
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7356 esac
7357 fi
7358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7359 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7361 CFLAGS="$xorg_testset_save_CFLAGS"
7362 fi
7363
7364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7367 fi
7368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7370 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7371 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7372 then :
7373 printf %s "(cached) " >&6
7374 else case e in #(
7375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 int i;
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"
7380 then :
7381 xorg_cv_cc_flag_unused_command_line_argument=yes
7382 else case e in #(
7383 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7384 esac
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7387 esac
7388 fi
7389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7390 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7392 CFLAGS="$xorg_testset_save_CFLAGS"
7393 fi
7394
7395 found="no"
7396
7397 if test $found = "no" ; then
7398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400 fi
7401
7402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7404 fi
7405
7406 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7407
7408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7409 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7410 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7411 if eval test \${$cacheid+y}
7412 then :
7413 printf %s "(cached) " >&6
7414 else case e in #(
7415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 int i;
7418 int
7419 main (void)
7420 {
7421
7422 ;
7423 return 0;
7424 }
7425 _ACEOF
7426 if ac_fn_c_try_link "$LINENO"
7427 then :
7428 eval $cacheid=yes
7429 else case e in #(
7430 e) eval $cacheid=no ;;
7431 esac
7432 fi
7433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7434 conftest$ac_exeext conftest.$ac_ext ;;
7435 esac
7436 fi
7437
7438
7439 CFLAGS="$xorg_testset_save_CFLAGS"
7440
7441 eval supported=\$$cacheid
7442 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7443 printf '%s\n' "$supported" >&6; }
7444 if test "$supported" = "yes" ; then
7445 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7446 found="yes"
7447 fi
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 xorg_testset_save_CFLAGS="$CFLAGS"
7465
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7470 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else case e in #(
7474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"
7479 then :
7480 xorg_cv_cc_flag_unknown_warning_option=yes
7481 else case e in #(
7482 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7483 esac
7484 fi
7485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7486 esac
7487 fi
7488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7489 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7491 CFLAGS="$xorg_testset_save_CFLAGS"
7492 fi
7493
7494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497 fi
7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7502 then :
7503 printf %s "(cached) " >&6
7504 else case e in #(
7505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 int i;
7508 _ACEOF
7509 if ac_fn_c_try_compile "$LINENO"
7510 then :
7511 xorg_cv_cc_flag_unused_command_line_argument=yes
7512 else case e in #(
7513 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7514 esac
7515 fi
7516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7517 esac
7518 fi
7519 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7520 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7522 CFLAGS="$xorg_testset_save_CFLAGS"
7523 fi
7524
7525 found="no"
7526
7527 if test $found = "no" ; then
7528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7530 fi
7531
7532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7534 fi
7535
7536 CFLAGS="$CFLAGS -Wredundant-decls"
7537
7538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7539 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7540 cacheid=xorg_cv_cc_flag__Wredundant_decls
7541 if eval test \${$cacheid+y}
7542 then :
7543 printf %s "(cached) " >&6
7544 else case e in #(
7545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 int i;
7548 int
7549 main (void)
7550 {
7551
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_link "$LINENO"
7557 then :
7558 eval $cacheid=yes
7559 else case e in #(
7560 e) eval $cacheid=no ;;
7561 esac
7562 fi
7563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7564 conftest$ac_exeext conftest.$ac_ext ;;
7565 esac
7566 fi
7567
7568
7569 CFLAGS="$xorg_testset_save_CFLAGS"
7570
7571 eval supported=\$$cacheid
7572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7573 printf '%s\n' "$supported" >&6; }
7574 if test "$supported" = "yes" ; then
7575 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7576 found="yes"
7577 fi
7578 fi
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594 xorg_testset_save_CFLAGS="$CFLAGS"
7595
7596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7599 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7600 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7601 then :
7602 printf %s "(cached) " >&6
7603 else case e in #(
7604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 int i;
7607 _ACEOF
7608 if ac_fn_c_try_compile "$LINENO"
7609 then :
7610 xorg_cv_cc_flag_unknown_warning_option=yes
7611 else case e in #(
7612 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7613 esac
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7616 esac
7617 fi
7618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7619 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7621 CFLAGS="$xorg_testset_save_CFLAGS"
7622 fi
7623
7624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7627 fi
7628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7630 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7631 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7632 then :
7633 printf %s "(cached) " >&6
7634 else case e in #(
7635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 int i;
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"
7640 then :
7641 xorg_cv_cc_flag_unused_command_line_argument=yes
7642 else case e in #(
7643 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7644 esac
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7647 esac
7648 fi
7649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7650 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7652 CFLAGS="$xorg_testset_save_CFLAGS"
7653 fi
7654
7655 found="no"
7656
7657 if test $found = "no" ; then
7658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 fi
7661
7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7664 fi
7665
7666 CFLAGS="$CFLAGS -Wlogical-op"
7667
7668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7669 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7670 cacheid=xorg_cv_cc_flag__Wlogical_op
7671 if eval test \${$cacheid+y}
7672 then :
7673 printf %s "(cached) " >&6
7674 else case e in #(
7675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 int i;
7678 int
7679 main (void)
7680 {
7681
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"
7687 then :
7688 eval $cacheid=yes
7689 else case e in #(
7690 e) eval $cacheid=no ;;
7691 esac
7692 fi
7693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7694 conftest$ac_exeext conftest.$ac_ext ;;
7695 esac
7696 fi
7697
7698
7699 CFLAGS="$xorg_testset_save_CFLAGS"
7700
7701 eval supported=\$$cacheid
7702 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7703 printf '%s\n' "$supported" >&6; }
7704 if test "$supported" = "yes" ; then
7705 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7706 found="yes"
7707 fi
7708 fi
7709
7710
7711
7712 # These are currently disabled because they are noisy. They will be enabled
7713 # in the future once the codebase is sufficiently modernized to silence
7714 # them. For now, I don't want them to drown out the other warnings.
7715 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7716 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7717 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7718
7719 # Turn some warnings into errors, so we don't accidentally get successful builds
7720 # when there are problems that should be fixed.
7721
7722 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736 xorg_testset_save_CFLAGS="$CFLAGS"
7737
7738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7741 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7742 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7743 then :
7744 printf %s "(cached) " >&6
7745 else case e in #(
7746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 int i;
7749 _ACEOF
7750 if ac_fn_c_try_compile "$LINENO"
7751 then :
7752 xorg_cv_cc_flag_unknown_warning_option=yes
7753 else case e in #(
7754 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7755 esac
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7758 esac
7759 fi
7760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7761 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7763 CFLAGS="$xorg_testset_save_CFLAGS"
7764 fi
7765
7766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7769 fi
7770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7774 then :
7775 printf %s "(cached) " >&6
7776 else case e in #(
7777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 int i;
7780 _ACEOF
7781 if ac_fn_c_try_compile "$LINENO"
7782 then :
7783 xorg_cv_cc_flag_unused_command_line_argument=yes
7784 else case e in #(
7785 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7786 esac
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7789 esac
7790 fi
7791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7792 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795 fi
7796
7797 found="no"
7798
7799 if test $found = "no" ; then
7800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802 fi
7803
7804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7806 fi
7807
7808 CFLAGS="$CFLAGS -Werror=implicit"
7809
7810 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7811 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7812 cacheid=xorg_cv_cc_flag__Werror_implicit
7813 if eval test \${$cacheid+y}
7814 then :
7815 printf %s "(cached) " >&6
7816 else case e in #(
7817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 int i;
7820 int
7821 main (void)
7822 {
7823
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 if ac_fn_c_try_link "$LINENO"
7829 then :
7830 eval $cacheid=yes
7831 else case e in #(
7832 e) eval $cacheid=no ;;
7833 esac
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7836 conftest$ac_exeext conftest.$ac_ext ;;
7837 esac
7838 fi
7839
7840
7841 CFLAGS="$xorg_testset_save_CFLAGS"
7842
7843 eval supported=\$$cacheid
7844 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7845 printf '%s\n' "$supported" >&6; }
7846 if test "$supported" = "yes" ; then
7847 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7848 found="yes"
7849 fi
7850 fi
7851
7852 if test $found = "no" ; then
7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855 fi
7856
7857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7859 fi
7860
7861 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7862
7863 { 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
7864 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7865 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7866 if eval test \${$cacheid+y}
7867 then :
7868 printf %s "(cached) " >&6
7869 else case e in #(
7870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 int
7874 main (void)
7875 {
7876
7877 ;
7878 return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_link "$LINENO"
7882 then :
7883 eval $cacheid=yes
7884 else case e in #(
7885 e) eval $cacheid=no ;;
7886 esac
7887 fi
7888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7889 conftest$ac_exeext conftest.$ac_ext ;;
7890 esac
7891 fi
7892
7893
7894 CFLAGS="$xorg_testset_save_CFLAGS"
7895
7896 eval supported=\$$cacheid
7897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898 printf '%s\n' "$supported" >&6; }
7899 if test "$supported" = "yes" ; then
7900 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7901 found="yes"
7902 fi
7903 fi
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 xorg_testset_save_CFLAGS="$CFLAGS"
7920
7921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7925 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7926 then :
7927 printf %s "(cached) " >&6
7928 else case e in #(
7929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 int i;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"
7934 then :
7935 xorg_cv_cc_flag_unknown_warning_option=yes
7936 else case e in #(
7937 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7938 esac
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7941 esac
7942 fi
7943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7944 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7946 CFLAGS="$xorg_testset_save_CFLAGS"
7947 fi
7948
7949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7952 fi
7953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7955 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7956 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7957 then :
7958 printf %s "(cached) " >&6
7959 else case e in #(
7960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 int i;
7963 _ACEOF
7964 if ac_fn_c_try_compile "$LINENO"
7965 then :
7966 xorg_cv_cc_flag_unused_command_line_argument=yes
7967 else case e in #(
7968 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7969 esac
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7972 esac
7973 fi
7974 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7975 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7977 CFLAGS="$xorg_testset_save_CFLAGS"
7978 fi
7979
7980 found="no"
7981
7982 if test $found = "no" ; then
7983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7985 fi
7986
7987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989 fi
7990
7991 CFLAGS="$CFLAGS -Werror=nonnull"
7992
7993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7994 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7995 cacheid=xorg_cv_cc_flag__Werror_nonnull
7996 if eval test \${$cacheid+y}
7997 then :
7998 printf %s "(cached) " >&6
7999 else case e in #(
8000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 int i;
8003 int
8004 main (void)
8005 {
8006
8007 ;
8008 return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_link "$LINENO"
8012 then :
8013 eval $cacheid=yes
8014 else case e in #(
8015 e) eval $cacheid=no ;;
8016 esac
8017 fi
8018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8019 conftest$ac_exeext conftest.$ac_ext ;;
8020 esac
8021 fi
8022
8023
8024 CFLAGS="$xorg_testset_save_CFLAGS"
8025
8026 eval supported=\$$cacheid
8027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8028 printf '%s\n' "$supported" >&6; }
8029 if test "$supported" = "yes" ; then
8030 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8031 found="yes"
8032 fi
8033 fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 xorg_testset_save_CFLAGS="$CFLAGS"
8050
8051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8055 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8056 then :
8057 printf %s "(cached) " >&6
8058 else case e in #(
8059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 int i;
8062 _ACEOF
8063 if ac_fn_c_try_compile "$LINENO"
8064 then :
8065 xorg_cv_cc_flag_unknown_warning_option=yes
8066 else case e in #(
8067 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8068 esac
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8071 esac
8072 fi
8073 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8074 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8076 CFLAGS="$xorg_testset_save_CFLAGS"
8077 fi
8078
8079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082 fi
8083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8085 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8086 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8087 then :
8088 printf %s "(cached) " >&6
8089 else case e in #(
8090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 int i;
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"
8095 then :
8096 xorg_cv_cc_flag_unused_command_line_argument=yes
8097 else case e in #(
8098 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8099 esac
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8102 esac
8103 fi
8104 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8105 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8107 CFLAGS="$xorg_testset_save_CFLAGS"
8108 fi
8109
8110 found="no"
8111
8112 if test $found = "no" ; then
8113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8115 fi
8116
8117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8119 fi
8120
8121 CFLAGS="$CFLAGS -Werror=init-self"
8122
8123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8124 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8125 cacheid=xorg_cv_cc_flag__Werror_init_self
8126 if eval test \${$cacheid+y}
8127 then :
8128 printf %s "(cached) " >&6
8129 else case e in #(
8130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 int i;
8133 int
8134 main (void)
8135 {
8136
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_link "$LINENO"
8142 then :
8143 eval $cacheid=yes
8144 else case e in #(
8145 e) eval $cacheid=no ;;
8146 esac
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8149 conftest$ac_exeext conftest.$ac_ext ;;
8150 esac
8151 fi
8152
8153
8154 CFLAGS="$xorg_testset_save_CFLAGS"
8155
8156 eval supported=\$$cacheid
8157 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8158 printf '%s\n' "$supported" >&6; }
8159 if test "$supported" = "yes" ; then
8160 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8161 found="yes"
8162 fi
8163 fi
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179 xorg_testset_save_CFLAGS="$CFLAGS"
8180
8181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8185 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8186 then :
8187 printf %s "(cached) " >&6
8188 else case e in #(
8189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 int i;
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"
8194 then :
8195 xorg_cv_cc_flag_unknown_warning_option=yes
8196 else case e in #(
8197 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8198 esac
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8201 esac
8202 fi
8203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8204 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8206 CFLAGS="$xorg_testset_save_CFLAGS"
8207 fi
8208
8209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212 fi
8213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8214 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8217 then :
8218 printf %s "(cached) " >&6
8219 else case e in #(
8220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 int i;
8223 _ACEOF
8224 if ac_fn_c_try_compile "$LINENO"
8225 then :
8226 xorg_cv_cc_flag_unused_command_line_argument=yes
8227 else case e in #(
8228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8229 esac
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8232 esac
8233 fi
8234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8235 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8237 CFLAGS="$xorg_testset_save_CFLAGS"
8238 fi
8239
8240 found="no"
8241
8242 if test $found = "no" ; then
8243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8245 fi
8246
8247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8249 fi
8250
8251 CFLAGS="$CFLAGS -Werror=main"
8252
8253 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8254 printf %s "checking if $CC supports -Werror=main... " >&6; }
8255 cacheid=xorg_cv_cc_flag__Werror_main
8256 if eval test \${$cacheid+y}
8257 then :
8258 printf %s "(cached) " >&6
8259 else case e in #(
8260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 int i;
8263 int
8264 main (void)
8265 {
8266
8267 ;
8268 return 0;
8269 }
8270 _ACEOF
8271 if ac_fn_c_try_link "$LINENO"
8272 then :
8273 eval $cacheid=yes
8274 else case e in #(
8275 e) eval $cacheid=no ;;
8276 esac
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8279 conftest$ac_exeext conftest.$ac_ext ;;
8280 esac
8281 fi
8282
8283
8284 CFLAGS="$xorg_testset_save_CFLAGS"
8285
8286 eval supported=\$$cacheid
8287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8288 printf '%s\n' "$supported" >&6; }
8289 if test "$supported" = "yes" ; then
8290 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8291 found="yes"
8292 fi
8293 fi
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309 xorg_testset_save_CFLAGS="$CFLAGS"
8310
8311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8315 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8316 then :
8317 printf %s "(cached) " >&6
8318 else case e in #(
8319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 int i;
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"
8324 then :
8325 xorg_cv_cc_flag_unknown_warning_option=yes
8326 else case e in #(
8327 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8328 esac
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8331 esac
8332 fi
8333 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8334 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8336 CFLAGS="$xorg_testset_save_CFLAGS"
8337 fi
8338
8339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8342 fi
8343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8344 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8347 then :
8348 printf %s "(cached) " >&6
8349 else case e in #(
8350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 int i;
8353 _ACEOF
8354 if ac_fn_c_try_compile "$LINENO"
8355 then :
8356 xorg_cv_cc_flag_unused_command_line_argument=yes
8357 else case e in #(
8358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8359 esac
8360 fi
8361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8362 esac
8363 fi
8364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8365 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8367 CFLAGS="$xorg_testset_save_CFLAGS"
8368 fi
8369
8370 found="no"
8371
8372 if test $found = "no" ; then
8373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375 fi
8376
8377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8379 fi
8380
8381 CFLAGS="$CFLAGS -Werror=missing-braces"
8382
8383 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8384 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8385 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8386 if eval test \${$cacheid+y}
8387 then :
8388 printf %s "(cached) " >&6
8389 else case e in #(
8390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 int i;
8393 int
8394 main (void)
8395 {
8396
8397 ;
8398 return 0;
8399 }
8400 _ACEOF
8401 if ac_fn_c_try_link "$LINENO"
8402 then :
8403 eval $cacheid=yes
8404 else case e in #(
8405 e) eval $cacheid=no ;;
8406 esac
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8409 conftest$ac_exeext conftest.$ac_ext ;;
8410 esac
8411 fi
8412
8413
8414 CFLAGS="$xorg_testset_save_CFLAGS"
8415
8416 eval supported=\$$cacheid
8417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8418 printf '%s\n' "$supported" >&6; }
8419 if test "$supported" = "yes" ; then
8420 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8421 found="yes"
8422 fi
8423 fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439 xorg_testset_save_CFLAGS="$CFLAGS"
8440
8441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8444 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8445 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8446 then :
8447 printf %s "(cached) " >&6
8448 else case e in #(
8449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451 int i;
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"
8454 then :
8455 xorg_cv_cc_flag_unknown_warning_option=yes
8456 else case e in #(
8457 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8458 esac
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8461 esac
8462 fi
8463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8464 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8466 CFLAGS="$xorg_testset_save_CFLAGS"
8467 fi
8468
8469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8472 fi
8473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8475 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8476 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8477 then :
8478 printf %s "(cached) " >&6
8479 else case e in #(
8480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 int i;
8483 _ACEOF
8484 if ac_fn_c_try_compile "$LINENO"
8485 then :
8486 xorg_cv_cc_flag_unused_command_line_argument=yes
8487 else case e in #(
8488 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8489 esac
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8492 esac
8493 fi
8494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8495 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8497 CFLAGS="$xorg_testset_save_CFLAGS"
8498 fi
8499
8500 found="no"
8501
8502 if test $found = "no" ; then
8503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8505 fi
8506
8507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8509 fi
8510
8511 CFLAGS="$CFLAGS -Werror=sequence-point"
8512
8513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8514 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8515 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8516 if eval test \${$cacheid+y}
8517 then :
8518 printf %s "(cached) " >&6
8519 else case e in #(
8520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 int i;
8523 int
8524 main (void)
8525 {
8526
8527 ;
8528 return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_c_try_link "$LINENO"
8532 then :
8533 eval $cacheid=yes
8534 else case e in #(
8535 e) eval $cacheid=no ;;
8536 esac
8537 fi
8538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8539 conftest$ac_exeext conftest.$ac_ext ;;
8540 esac
8541 fi
8542
8543
8544 CFLAGS="$xorg_testset_save_CFLAGS"
8545
8546 eval supported=\$$cacheid
8547 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8548 printf '%s\n' "$supported" >&6; }
8549 if test "$supported" = "yes" ; then
8550 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8551 found="yes"
8552 fi
8553 fi
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569 xorg_testset_save_CFLAGS="$CFLAGS"
8570
8571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8574 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8575 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8576 then :
8577 printf %s "(cached) " >&6
8578 else case e in #(
8579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 int i;
8582 _ACEOF
8583 if ac_fn_c_try_compile "$LINENO"
8584 then :
8585 xorg_cv_cc_flag_unknown_warning_option=yes
8586 else case e in #(
8587 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8588 esac
8589 fi
8590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8591 esac
8592 fi
8593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8594 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8596 CFLAGS="$xorg_testset_save_CFLAGS"
8597 fi
8598
8599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8602 fi
8603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8605 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8606 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8607 then :
8608 printf %s "(cached) " >&6
8609 else case e in #(
8610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 int i;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"
8615 then :
8616 xorg_cv_cc_flag_unused_command_line_argument=yes
8617 else case e in #(
8618 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8619 esac
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8622 esac
8623 fi
8624 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8625 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628 fi
8629
8630 found="no"
8631
8632 if test $found = "no" ; then
8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635 fi
8636
8637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8639 fi
8640
8641 CFLAGS="$CFLAGS -Werror=return-type"
8642
8643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8644 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8645 cacheid=xorg_cv_cc_flag__Werror_return_type
8646 if eval test \${$cacheid+y}
8647 then :
8648 printf %s "(cached) " >&6
8649 else case e in #(
8650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 int i;
8653 int
8654 main (void)
8655 {
8656
8657 ;
8658 return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_link "$LINENO"
8662 then :
8663 eval $cacheid=yes
8664 else case e in #(
8665 e) eval $cacheid=no ;;
8666 esac
8667 fi
8668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8669 conftest$ac_exeext conftest.$ac_ext ;;
8670 esac
8671 fi
8672
8673
8674 CFLAGS="$xorg_testset_save_CFLAGS"
8675
8676 eval supported=\$$cacheid
8677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8678 printf '%s\n' "$supported" >&6; }
8679 if test "$supported" = "yes" ; then
8680 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8681 found="yes"
8682 fi
8683 fi
8684
8685 if test $found = "no" ; then
8686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8688 fi
8689
8690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8692 fi
8693
8694 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8695
8696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8697 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8698 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8699 if eval test \${$cacheid+y}
8700 then :
8701 printf %s "(cached) " >&6
8702 else case e in #(
8703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 int i;
8706 int
8707 main (void)
8708 {
8709
8710 ;
8711 return 0;
8712 }
8713 _ACEOF
8714 if ac_fn_c_try_link "$LINENO"
8715 then :
8716 eval $cacheid=yes
8717 else case e in #(
8718 e) eval $cacheid=no ;;
8719 esac
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8722 conftest$ac_exeext conftest.$ac_ext ;;
8723 esac
8724 fi
8725
8726
8727 CFLAGS="$xorg_testset_save_CFLAGS"
8728
8729 eval supported=\$$cacheid
8730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8731 printf '%s\n' "$supported" >&6; }
8732 if test "$supported" = "yes" ; then
8733 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8734 found="yes"
8735 fi
8736 fi
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 xorg_testset_save_CFLAGS="$CFLAGS"
8753
8754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8756 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8757 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8758 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8759 then :
8760 printf %s "(cached) " >&6
8761 else case e in #(
8762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 int i;
8765 _ACEOF
8766 if ac_fn_c_try_compile "$LINENO"
8767 then :
8768 xorg_cv_cc_flag_unknown_warning_option=yes
8769 else case e in #(
8770 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8771 esac
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8774 esac
8775 fi
8776 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8777 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8779 CFLAGS="$xorg_testset_save_CFLAGS"
8780 fi
8781
8782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8785 fi
8786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8788 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8789 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8790 then :
8791 printf %s "(cached) " >&6
8792 else case e in #(
8793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 int i;
8796 _ACEOF
8797 if ac_fn_c_try_compile "$LINENO"
8798 then :
8799 xorg_cv_cc_flag_unused_command_line_argument=yes
8800 else case e in #(
8801 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8802 esac
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8805 esac
8806 fi
8807 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8808 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8810 CFLAGS="$xorg_testset_save_CFLAGS"
8811 fi
8812
8813 found="no"
8814
8815 if test $found = "no" ; then
8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818 fi
8819
8820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8822 fi
8823
8824 CFLAGS="$CFLAGS -Werror=trigraphs"
8825
8826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8827 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8828 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8829 if eval test \${$cacheid+y}
8830 then :
8831 printf %s "(cached) " >&6
8832 else case e in #(
8833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 int i;
8836 int
8837 main (void)
8838 {
8839
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 if ac_fn_c_try_link "$LINENO"
8845 then :
8846 eval $cacheid=yes
8847 else case e in #(
8848 e) eval $cacheid=no ;;
8849 esac
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8852 conftest$ac_exeext conftest.$ac_ext ;;
8853 esac
8854 fi
8855
8856
8857 CFLAGS="$xorg_testset_save_CFLAGS"
8858
8859 eval supported=\$$cacheid
8860 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8861 printf '%s\n' "$supported" >&6; }
8862 if test "$supported" = "yes" ; then
8863 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8864 found="yes"
8865 fi
8866 fi
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882 xorg_testset_save_CFLAGS="$CFLAGS"
8883
8884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8889 then :
8890 printf %s "(cached) " >&6
8891 else case e in #(
8892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 int i;
8895 _ACEOF
8896 if ac_fn_c_try_compile "$LINENO"
8897 then :
8898 xorg_cv_cc_flag_unknown_warning_option=yes
8899 else case e in #(
8900 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8901 esac
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8904 esac
8905 fi
8906 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8907 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8909 CFLAGS="$xorg_testset_save_CFLAGS"
8910 fi
8911
8912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915 fi
8916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8920 then :
8921 printf %s "(cached) " >&6
8922 else case e in #(
8923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 int i;
8926 _ACEOF
8927 if ac_fn_c_try_compile "$LINENO"
8928 then :
8929 xorg_cv_cc_flag_unused_command_line_argument=yes
8930 else case e in #(
8931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8932 esac
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8935 esac
8936 fi
8937 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8938 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8940 CFLAGS="$xorg_testset_save_CFLAGS"
8941 fi
8942
8943 found="no"
8944
8945 if test $found = "no" ; then
8946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948 fi
8949
8950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8952 fi
8953
8954 CFLAGS="$CFLAGS -Werror=array-bounds"
8955
8956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8957 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8958 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8959 if eval test \${$cacheid+y}
8960 then :
8961 printf %s "(cached) " >&6
8962 else case e in #(
8963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 int i;
8966 int
8967 main (void)
8968 {
8969
8970 ;
8971 return 0;
8972 }
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"
8975 then :
8976 eval $cacheid=yes
8977 else case e in #(
8978 e) eval $cacheid=no ;;
8979 esac
8980 fi
8981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8982 conftest$ac_exeext conftest.$ac_ext ;;
8983 esac
8984 fi
8985
8986
8987 CFLAGS="$xorg_testset_save_CFLAGS"
8988
8989 eval supported=\$$cacheid
8990 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8991 printf '%s\n' "$supported" >&6; }
8992 if test "$supported" = "yes" ; then
8993 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8994 found="yes"
8995 fi
8996 fi
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012 xorg_testset_save_CFLAGS="$CFLAGS"
9013
9014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9019 then :
9020 printf %s "(cached) " >&6
9021 else case e in #(
9022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9024 int i;
9025 _ACEOF
9026 if ac_fn_c_try_compile "$LINENO"
9027 then :
9028 xorg_cv_cc_flag_unknown_warning_option=yes
9029 else case e in #(
9030 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9031 esac
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9034 esac
9035 fi
9036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9037 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9039 CFLAGS="$xorg_testset_save_CFLAGS"
9040 fi
9041
9042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9045 fi
9046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9050 then :
9051 printf %s "(cached) " >&6
9052 else case e in #(
9053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h. */
9055 int i;
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"
9058 then :
9059 xorg_cv_cc_flag_unused_command_line_argument=yes
9060 else case e in #(
9061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9062 esac
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9065 esac
9066 fi
9067 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9068 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9070 CFLAGS="$xorg_testset_save_CFLAGS"
9071 fi
9072
9073 found="no"
9074
9075 if test $found = "no" ; then
9076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9078 fi
9079
9080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9082 fi
9083
9084 CFLAGS="$CFLAGS -Werror=write-strings"
9085
9086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9087 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9088 cacheid=xorg_cv_cc_flag__Werror_write_strings
9089 if eval test \${$cacheid+y}
9090 then :
9091 printf %s "(cached) " >&6
9092 else case e in #(
9093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 int i;
9096 int
9097 main (void)
9098 {
9099
9100 ;
9101 return 0;
9102 }
9103 _ACEOF
9104 if ac_fn_c_try_link "$LINENO"
9105 then :
9106 eval $cacheid=yes
9107 else case e in #(
9108 e) eval $cacheid=no ;;
9109 esac
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9112 conftest$ac_exeext conftest.$ac_ext ;;
9113 esac
9114 fi
9115
9116
9117 CFLAGS="$xorg_testset_save_CFLAGS"
9118
9119 eval supported=\$$cacheid
9120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9121 printf '%s\n' "$supported" >&6; }
9122 if test "$supported" = "yes" ; then
9123 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9124 found="yes"
9125 fi
9126 fi
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 xorg_testset_save_CFLAGS="$CFLAGS"
9143
9144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9148 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9149 then :
9150 printf %s "(cached) " >&6
9151 else case e in #(
9152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 int i;
9155 _ACEOF
9156 if ac_fn_c_try_compile "$LINENO"
9157 then :
9158 xorg_cv_cc_flag_unknown_warning_option=yes
9159 else case e in #(
9160 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9161 esac
9162 fi
9163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9164 esac
9165 fi
9166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9167 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9169 CFLAGS="$xorg_testset_save_CFLAGS"
9170 fi
9171
9172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9175 fi
9176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9177 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9178 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9179 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9180 then :
9181 printf %s "(cached) " >&6
9182 else case e in #(
9183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185 int i;
9186 _ACEOF
9187 if ac_fn_c_try_compile "$LINENO"
9188 then :
9189 xorg_cv_cc_flag_unused_command_line_argument=yes
9190 else case e in #(
9191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9192 esac
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9195 esac
9196 fi
9197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9198 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9200 CFLAGS="$xorg_testset_save_CFLAGS"
9201 fi
9202
9203 found="no"
9204
9205 if test $found = "no" ; then
9206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9208 fi
9209
9210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9212 fi
9213
9214 CFLAGS="$CFLAGS -Werror=address"
9215
9216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9217 printf %s "checking if $CC supports -Werror=address... " >&6; }
9218 cacheid=xorg_cv_cc_flag__Werror_address
9219 if eval test \${$cacheid+y}
9220 then :
9221 printf %s "(cached) " >&6
9222 else case e in #(
9223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 int i;
9226 int
9227 main (void)
9228 {
9229
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 if ac_fn_c_try_link "$LINENO"
9235 then :
9236 eval $cacheid=yes
9237 else case e in #(
9238 e) eval $cacheid=no ;;
9239 esac
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9242 conftest$ac_exeext conftest.$ac_ext ;;
9243 esac
9244 fi
9245
9246
9247 CFLAGS="$xorg_testset_save_CFLAGS"
9248
9249 eval supported=\$$cacheid
9250 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9251 printf '%s\n' "$supported" >&6; }
9252 if test "$supported" = "yes" ; then
9253 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9254 found="yes"
9255 fi
9256 fi
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272 xorg_testset_save_CFLAGS="$CFLAGS"
9273
9274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9277 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9278 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9279 then :
9280 printf %s "(cached) " >&6
9281 else case e in #(
9282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 int i;
9285 _ACEOF
9286 if ac_fn_c_try_compile "$LINENO"
9287 then :
9288 xorg_cv_cc_flag_unknown_warning_option=yes
9289 else case e in #(
9290 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9291 esac
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9294 esac
9295 fi
9296 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9297 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9299 CFLAGS="$xorg_testset_save_CFLAGS"
9300 fi
9301
9302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9305 fi
9306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9308 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9309 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9310 then :
9311 printf %s "(cached) " >&6
9312 else case e in #(
9313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 int i;
9316 _ACEOF
9317 if ac_fn_c_try_compile "$LINENO"
9318 then :
9319 xorg_cv_cc_flag_unused_command_line_argument=yes
9320 else case e in #(
9321 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9322 esac
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9325 esac
9326 fi
9327 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9328 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9330 CFLAGS="$xorg_testset_save_CFLAGS"
9331 fi
9332
9333 found="no"
9334
9335 if test $found = "no" ; then
9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 fi
9339
9340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9342 fi
9343
9344 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9345
9346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9347 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9348 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9349 if eval test \${$cacheid+y}
9350 then :
9351 printf %s "(cached) " >&6
9352 else case e in #(
9353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 int i;
9356 int
9357 main (void)
9358 {
9359
9360 ;
9361 return 0;
9362 }
9363 _ACEOF
9364 if ac_fn_c_try_link "$LINENO"
9365 then :
9366 eval $cacheid=yes
9367 else case e in #(
9368 e) eval $cacheid=no ;;
9369 esac
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9372 conftest$ac_exeext conftest.$ac_ext ;;
9373 esac
9374 fi
9375
9376
9377 CFLAGS="$xorg_testset_save_CFLAGS"
9378
9379 eval supported=\$$cacheid
9380 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9381 printf '%s\n' "$supported" >&6; }
9382 if test "$supported" = "yes" ; then
9383 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9384 found="yes"
9385 fi
9386 fi
9387
9388 if test $found = "no" ; then
9389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391 fi
9392
9393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395 fi
9396
9397 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9398
9399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9400 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9401 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9402 if eval test \${$cacheid+y}
9403 then :
9404 printf %s "(cached) " >&6
9405 else case e in #(
9406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 int i;
9409 int
9410 main (void)
9411 {
9412
9413 ;
9414 return 0;
9415 }
9416 _ACEOF
9417 if ac_fn_c_try_link "$LINENO"
9418 then :
9419 eval $cacheid=yes
9420 else case e in #(
9421 e) eval $cacheid=no ;;
9422 esac
9423 fi
9424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9425 conftest$ac_exeext conftest.$ac_ext ;;
9426 esac
9427 fi
9428
9429
9430 CFLAGS="$xorg_testset_save_CFLAGS"
9431
9432 eval supported=\$$cacheid
9433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9434 printf '%s\n' "$supported" >&6; }
9435 if test "$supported" = "yes" ; then
9436 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9437 found="yes"
9438 fi
9439 fi
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455 xorg_testset_save_CFLAGS="$CFLAGS"
9456
9457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9460 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9461 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9462 then :
9463 printf %s "(cached) " >&6
9464 else case e in #(
9465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9467 int i;
9468 _ACEOF
9469 if ac_fn_c_try_compile "$LINENO"
9470 then :
9471 xorg_cv_cc_flag_unknown_warning_option=yes
9472 else case e in #(
9473 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9474 esac
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9477 esac
9478 fi
9479 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9480 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9482 CFLAGS="$xorg_testset_save_CFLAGS"
9483 fi
9484
9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488 fi
9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9491 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9492 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9493 then :
9494 printf %s "(cached) " >&6
9495 else case e in #(
9496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"
9501 then :
9502 xorg_cv_cc_flag_unused_command_line_argument=yes
9503 else case e in #(
9504 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9505 esac
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9508 esac
9509 fi
9510 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9511 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9513 CFLAGS="$xorg_testset_save_CFLAGS"
9514 fi
9515
9516 found="no"
9517
9518 if test $found = "no" ; then
9519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521 fi
9522
9523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525 fi
9526
9527 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9528
9529 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9530 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9531 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9532 if eval test \${$cacheid+y}
9533 then :
9534 printf %s "(cached) " >&6
9535 else case e in #(
9536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 int i;
9539 int
9540 main (void)
9541 {
9542
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 if ac_fn_c_try_link "$LINENO"
9548 then :
9549 eval $cacheid=yes
9550 else case e in #(
9551 e) eval $cacheid=no ;;
9552 esac
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9555 conftest$ac_exeext conftest.$ac_ext ;;
9556 esac
9557 fi
9558
9559
9560 CFLAGS="$xorg_testset_save_CFLAGS"
9561
9562 eval supported=\$$cacheid
9563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9564 printf '%s\n' "$supported" >&6; }
9565 if test "$supported" = "yes" ; then
9566 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9567 found="yes"
9568 fi
9569 fi
9570
9571 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9572 else
9573 { 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
9574 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;}
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588 xorg_testset_save_CFLAGS="$CFLAGS"
9589
9590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9594 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9595 then :
9596 printf %s "(cached) " >&6
9597 else case e in #(
9598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 int i;
9601 _ACEOF
9602 if ac_fn_c_try_compile "$LINENO"
9603 then :
9604 xorg_cv_cc_flag_unknown_warning_option=yes
9605 else case e in #(
9606 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9607 esac
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9610 esac
9611 fi
9612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9613 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9615 CFLAGS="$xorg_testset_save_CFLAGS"
9616 fi
9617
9618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9621 fi
9622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9626 then :
9627 printf %s "(cached) " >&6
9628 else case e in #(
9629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 int i;
9632 _ACEOF
9633 if ac_fn_c_try_compile "$LINENO"
9634 then :
9635 xorg_cv_cc_flag_unused_command_line_argument=yes
9636 else case e in #(
9637 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9638 esac
9639 fi
9640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9641 esac
9642 fi
9643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9644 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9646 CFLAGS="$xorg_testset_save_CFLAGS"
9647 fi
9648
9649 found="no"
9650
9651 if test $found = "no" ; then
9652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9654 fi
9655
9656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9658 fi
9659
9660 CFLAGS="$CFLAGS -Wimplicit"
9661
9662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9663 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9664 cacheid=xorg_cv_cc_flag__Wimplicit
9665 if eval test \${$cacheid+y}
9666 then :
9667 printf %s "(cached) " >&6
9668 else case e in #(
9669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 int i;
9672 int
9673 main (void)
9674 {
9675
9676 ;
9677 return 0;
9678 }
9679 _ACEOF
9680 if ac_fn_c_try_link "$LINENO"
9681 then :
9682 eval $cacheid=yes
9683 else case e in #(
9684 e) eval $cacheid=no ;;
9685 esac
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9688 conftest$ac_exeext conftest.$ac_ext ;;
9689 esac
9690 fi
9691
9692
9693 CFLAGS="$xorg_testset_save_CFLAGS"
9694
9695 eval supported=\$$cacheid
9696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9697 printf '%s\n' "$supported" >&6; }
9698 if test "$supported" = "yes" ; then
9699 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9700 found="yes"
9701 fi
9702 fi
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718 xorg_testset_save_CFLAGS="$CFLAGS"
9719
9720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9724 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9725 then :
9726 printf %s "(cached) " >&6
9727 else case e in #(
9728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 int i;
9731 _ACEOF
9732 if ac_fn_c_try_compile "$LINENO"
9733 then :
9734 xorg_cv_cc_flag_unknown_warning_option=yes
9735 else case e in #(
9736 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9737 esac
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9740 esac
9741 fi
9742 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9743 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9745 CFLAGS="$xorg_testset_save_CFLAGS"
9746 fi
9747
9748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9751 fi
9752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9754 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9755 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9756 then :
9757 printf %s "(cached) " >&6
9758 else case e in #(
9759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 int i;
9762 _ACEOF
9763 if ac_fn_c_try_compile "$LINENO"
9764 then :
9765 xorg_cv_cc_flag_unused_command_line_argument=yes
9766 else case e in #(
9767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9768 esac
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9771 esac
9772 fi
9773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9774 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777 fi
9778
9779 found="no"
9780
9781 if test $found = "no" ; then
9782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784 fi
9785
9786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9788 fi
9789
9790 CFLAGS="$CFLAGS -Wnonnull"
9791
9792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9793 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9794 cacheid=xorg_cv_cc_flag__Wnonnull
9795 if eval test \${$cacheid+y}
9796 then :
9797 printf %s "(cached) " >&6
9798 else case e in #(
9799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9801 int i;
9802 int
9803 main (void)
9804 {
9805
9806 ;
9807 return 0;
9808 }
9809 _ACEOF
9810 if ac_fn_c_try_link "$LINENO"
9811 then :
9812 eval $cacheid=yes
9813 else case e in #(
9814 e) eval $cacheid=no ;;
9815 esac
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9818 conftest$ac_exeext conftest.$ac_ext ;;
9819 esac
9820 fi
9821
9822
9823 CFLAGS="$xorg_testset_save_CFLAGS"
9824
9825 eval supported=\$$cacheid
9826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9827 printf '%s\n' "$supported" >&6; }
9828 if test "$supported" = "yes" ; then
9829 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9830 found="yes"
9831 fi
9832 fi
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848 xorg_testset_save_CFLAGS="$CFLAGS"
9849
9850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9853 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9854 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9855 then :
9856 printf %s "(cached) " >&6
9857 else case e in #(
9858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860 int i;
9861 _ACEOF
9862 if ac_fn_c_try_compile "$LINENO"
9863 then :
9864 xorg_cv_cc_flag_unknown_warning_option=yes
9865 else case e in #(
9866 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9867 esac
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9870 esac
9871 fi
9872 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9873 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9875 CFLAGS="$xorg_testset_save_CFLAGS"
9876 fi
9877
9878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881 fi
9882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9886 then :
9887 printf %s "(cached) " >&6
9888 else case e in #(
9889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 int i;
9892 _ACEOF
9893 if ac_fn_c_try_compile "$LINENO"
9894 then :
9895 xorg_cv_cc_flag_unused_command_line_argument=yes
9896 else case e in #(
9897 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9898 esac
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9901 esac
9902 fi
9903 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9904 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9906 CFLAGS="$xorg_testset_save_CFLAGS"
9907 fi
9908
9909 found="no"
9910
9911 if test $found = "no" ; then
9912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914 fi
9915
9916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9918 fi
9919
9920 CFLAGS="$CFLAGS -Winit-self"
9921
9922 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9923 printf %s "checking if $CC supports -Winit-self... " >&6; }
9924 cacheid=xorg_cv_cc_flag__Winit_self
9925 if eval test \${$cacheid+y}
9926 then :
9927 printf %s "(cached) " >&6
9928 else case e in #(
9929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9931 int i;
9932 int
9933 main (void)
9934 {
9935
9936 ;
9937 return 0;
9938 }
9939 _ACEOF
9940 if ac_fn_c_try_link "$LINENO"
9941 then :
9942 eval $cacheid=yes
9943 else case e in #(
9944 e) eval $cacheid=no ;;
9945 esac
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9948 conftest$ac_exeext conftest.$ac_ext ;;
9949 esac
9950 fi
9951
9952
9953 CFLAGS="$xorg_testset_save_CFLAGS"
9954
9955 eval supported=\$$cacheid
9956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9957 printf '%s\n' "$supported" >&6; }
9958 if test "$supported" = "yes" ; then
9959 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9960 found="yes"
9961 fi
9962 fi
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978 xorg_testset_save_CFLAGS="$CFLAGS"
9979
9980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9984 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9985 then :
9986 printf %s "(cached) " >&6
9987 else case e in #(
9988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 int i;
9991 _ACEOF
9992 if ac_fn_c_try_compile "$LINENO"
9993 then :
9994 xorg_cv_cc_flag_unknown_warning_option=yes
9995 else case e in #(
9996 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9997 esac
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10000 esac
10001 fi
10002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10003 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10005 CFLAGS="$xorg_testset_save_CFLAGS"
10006 fi
10007
10008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10011 fi
10012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10014 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10015 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10016 then :
10017 printf %s "(cached) " >&6
10018 else case e in #(
10019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10021 int i;
10022 _ACEOF
10023 if ac_fn_c_try_compile "$LINENO"
10024 then :
10025 xorg_cv_cc_flag_unused_command_line_argument=yes
10026 else case e in #(
10027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10028 esac
10029 fi
10030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10031 esac
10032 fi
10033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10034 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10036 CFLAGS="$xorg_testset_save_CFLAGS"
10037 fi
10038
10039 found="no"
10040
10041 if test $found = "no" ; then
10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044 fi
10045
10046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 fi
10049
10050 CFLAGS="$CFLAGS -Wmain"
10051
10052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10053 printf %s "checking if $CC supports -Wmain... " >&6; }
10054 cacheid=xorg_cv_cc_flag__Wmain
10055 if eval test \${$cacheid+y}
10056 then :
10057 printf %s "(cached) " >&6
10058 else case e in #(
10059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 int i;
10062 int
10063 main (void)
10064 {
10065
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"
10071 then :
10072 eval $cacheid=yes
10073 else case e in #(
10074 e) eval $cacheid=no ;;
10075 esac
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10078 conftest$ac_exeext conftest.$ac_ext ;;
10079 esac
10080 fi
10081
10082
10083 CFLAGS="$xorg_testset_save_CFLAGS"
10084
10085 eval supported=\$$cacheid
10086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10087 printf '%s\n' "$supported" >&6; }
10088 if test "$supported" = "yes" ; then
10089 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10090 found="yes"
10091 fi
10092 fi
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108 xorg_testset_save_CFLAGS="$CFLAGS"
10109
10110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10112 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10114 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10115 then :
10116 printf %s "(cached) " >&6
10117 else case e in #(
10118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 int i;
10121 _ACEOF
10122 if ac_fn_c_try_compile "$LINENO"
10123 then :
10124 xorg_cv_cc_flag_unknown_warning_option=yes
10125 else case e in #(
10126 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10127 esac
10128 fi
10129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10130 esac
10131 fi
10132 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10133 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10135 CFLAGS="$xorg_testset_save_CFLAGS"
10136 fi
10137
10138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10141 fi
10142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10146 then :
10147 printf %s "(cached) " >&6
10148 else case e in #(
10149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 int i;
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"
10154 then :
10155 xorg_cv_cc_flag_unused_command_line_argument=yes
10156 else case e in #(
10157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10158 esac
10159 fi
10160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10161 esac
10162 fi
10163 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10164 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10166 CFLAGS="$xorg_testset_save_CFLAGS"
10167 fi
10168
10169 found="no"
10170
10171 if test $found = "no" ; then
10172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10174 fi
10175
10176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10178 fi
10179
10180 CFLAGS="$CFLAGS -Wmissing-braces"
10181
10182 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10183 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10184 cacheid=xorg_cv_cc_flag__Wmissing_braces
10185 if eval test \${$cacheid+y}
10186 then :
10187 printf %s "(cached) " >&6
10188 else case e in #(
10189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 int i;
10192 int
10193 main (void)
10194 {
10195
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 if ac_fn_c_try_link "$LINENO"
10201 then :
10202 eval $cacheid=yes
10203 else case e in #(
10204 e) eval $cacheid=no ;;
10205 esac
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10208 conftest$ac_exeext conftest.$ac_ext ;;
10209 esac
10210 fi
10211
10212
10213 CFLAGS="$xorg_testset_save_CFLAGS"
10214
10215 eval supported=\$$cacheid
10216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10217 printf '%s\n' "$supported" >&6; }
10218 if test "$supported" = "yes" ; then
10219 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10220 found="yes"
10221 fi
10222 fi
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238 xorg_testset_save_CFLAGS="$CFLAGS"
10239
10240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10245 then :
10246 printf %s "(cached) " >&6
10247 else case e in #(
10248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250 int i;
10251 _ACEOF
10252 if ac_fn_c_try_compile "$LINENO"
10253 then :
10254 xorg_cv_cc_flag_unknown_warning_option=yes
10255 else case e in #(
10256 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10257 esac
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10260 esac
10261 fi
10262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10263 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10265 CFLAGS="$xorg_testset_save_CFLAGS"
10266 fi
10267
10268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10271 fi
10272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10274 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10275 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10276 then :
10277 printf %s "(cached) " >&6
10278 else case e in #(
10279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 int i;
10282 _ACEOF
10283 if ac_fn_c_try_compile "$LINENO"
10284 then :
10285 xorg_cv_cc_flag_unused_command_line_argument=yes
10286 else case e in #(
10287 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10288 esac
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10291 esac
10292 fi
10293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10294 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10296 CFLAGS="$xorg_testset_save_CFLAGS"
10297 fi
10298
10299 found="no"
10300
10301 if test $found = "no" ; then
10302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304 fi
10305
10306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10308 fi
10309
10310 CFLAGS="$CFLAGS -Wsequence-point"
10311
10312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10313 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10314 cacheid=xorg_cv_cc_flag__Wsequence_point
10315 if eval test \${$cacheid+y}
10316 then :
10317 printf %s "(cached) " >&6
10318 else case e in #(
10319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10321 int i;
10322 int
10323 main (void)
10324 {
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_link "$LINENO"
10331 then :
10332 eval $cacheid=yes
10333 else case e in #(
10334 e) eval $cacheid=no ;;
10335 esac
10336 fi
10337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10338 conftest$ac_exeext conftest.$ac_ext ;;
10339 esac
10340 fi
10341
10342
10343 CFLAGS="$xorg_testset_save_CFLAGS"
10344
10345 eval supported=\$$cacheid
10346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10347 printf '%s\n' "$supported" >&6; }
10348 if test "$supported" = "yes" ; then
10349 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10350 found="yes"
10351 fi
10352 fi
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368 xorg_testset_save_CFLAGS="$CFLAGS"
10369
10370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10372 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10373 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10374 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10375 then :
10376 printf %s "(cached) " >&6
10377 else case e in #(
10378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 int i;
10381 _ACEOF
10382 if ac_fn_c_try_compile "$LINENO"
10383 then :
10384 xorg_cv_cc_flag_unknown_warning_option=yes
10385 else case e in #(
10386 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10387 esac
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10390 esac
10391 fi
10392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10393 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10395 CFLAGS="$xorg_testset_save_CFLAGS"
10396 fi
10397
10398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10401 fi
10402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10406 then :
10407 printf %s "(cached) " >&6
10408 else case e in #(
10409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411 int i;
10412 _ACEOF
10413 if ac_fn_c_try_compile "$LINENO"
10414 then :
10415 xorg_cv_cc_flag_unused_command_line_argument=yes
10416 else case e in #(
10417 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10418 esac
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10421 esac
10422 fi
10423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10424 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10426 CFLAGS="$xorg_testset_save_CFLAGS"
10427 fi
10428
10429 found="no"
10430
10431 if test $found = "no" ; then
10432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10434 fi
10435
10436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438 fi
10439
10440 CFLAGS="$CFLAGS -Wreturn-type"
10441
10442 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10443 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10444 cacheid=xorg_cv_cc_flag__Wreturn_type
10445 if eval test \${$cacheid+y}
10446 then :
10447 printf %s "(cached) " >&6
10448 else case e in #(
10449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 int i;
10452 int
10453 main (void)
10454 {
10455
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 if ac_fn_c_try_link "$LINENO"
10461 then :
10462 eval $cacheid=yes
10463 else case e in #(
10464 e) eval $cacheid=no ;;
10465 esac
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10468 conftest$ac_exeext conftest.$ac_ext ;;
10469 esac
10470 fi
10471
10472
10473 CFLAGS="$xorg_testset_save_CFLAGS"
10474
10475 eval supported=\$$cacheid
10476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10477 printf '%s\n' "$supported" >&6; }
10478 if test "$supported" = "yes" ; then
10479 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10480 found="yes"
10481 fi
10482 fi
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498 xorg_testset_save_CFLAGS="$CFLAGS"
10499
10500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10502 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10503 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10504 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10505 then :
10506 printf %s "(cached) " >&6
10507 else case e in #(
10508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 int i;
10511 _ACEOF
10512 if ac_fn_c_try_compile "$LINENO"
10513 then :
10514 xorg_cv_cc_flag_unknown_warning_option=yes
10515 else case e in #(
10516 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10517 esac
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10520 esac
10521 fi
10522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10523 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10525 CFLAGS="$xorg_testset_save_CFLAGS"
10526 fi
10527
10528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10531 fi
10532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10536 then :
10537 printf %s "(cached) " >&6
10538 else case e in #(
10539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10541 int i;
10542 _ACEOF
10543 if ac_fn_c_try_compile "$LINENO"
10544 then :
10545 xorg_cv_cc_flag_unused_command_line_argument=yes
10546 else case e in #(
10547 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10548 esac
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10551 esac
10552 fi
10553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10554 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10556 CFLAGS="$xorg_testset_save_CFLAGS"
10557 fi
10558
10559 found="no"
10560
10561 if test $found = "no" ; then
10562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10564 fi
10565
10566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10568 fi
10569
10570 CFLAGS="$CFLAGS -Wtrigraphs"
10571
10572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10573 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10574 cacheid=xorg_cv_cc_flag__Wtrigraphs
10575 if eval test \${$cacheid+y}
10576 then :
10577 printf %s "(cached) " >&6
10578 else case e in #(
10579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10581 int i;
10582 int
10583 main (void)
10584 {
10585
10586 ;
10587 return 0;
10588 }
10589 _ACEOF
10590 if ac_fn_c_try_link "$LINENO"
10591 then :
10592 eval $cacheid=yes
10593 else case e in #(
10594 e) eval $cacheid=no ;;
10595 esac
10596 fi
10597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10598 conftest$ac_exeext conftest.$ac_ext ;;
10599 esac
10600 fi
10601
10602
10603 CFLAGS="$xorg_testset_save_CFLAGS"
10604
10605 eval supported=\$$cacheid
10606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10607 printf '%s\n' "$supported" >&6; }
10608 if test "$supported" = "yes" ; then
10609 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10610 found="yes"
10611 fi
10612 fi
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628 xorg_testset_save_CFLAGS="$CFLAGS"
10629
10630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10632 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10633 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10634 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10635 then :
10636 printf %s "(cached) " >&6
10637 else case e in #(
10638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 int i;
10641 _ACEOF
10642 if ac_fn_c_try_compile "$LINENO"
10643 then :
10644 xorg_cv_cc_flag_unknown_warning_option=yes
10645 else case e in #(
10646 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10647 esac
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10650 esac
10651 fi
10652 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10653 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10655 CFLAGS="$xorg_testset_save_CFLAGS"
10656 fi
10657
10658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10661 fi
10662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10664 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10665 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10666 then :
10667 printf %s "(cached) " >&6
10668 else case e in #(
10669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 int i;
10672 _ACEOF
10673 if ac_fn_c_try_compile "$LINENO"
10674 then :
10675 xorg_cv_cc_flag_unused_command_line_argument=yes
10676 else case e in #(
10677 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10678 esac
10679 fi
10680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10681 esac
10682 fi
10683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10684 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10686 CFLAGS="$xorg_testset_save_CFLAGS"
10687 fi
10688
10689 found="no"
10690
10691 if test $found = "no" ; then
10692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10694 fi
10695
10696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10698 fi
10699
10700 CFLAGS="$CFLAGS -Warray-bounds"
10701
10702 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10703 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10704 cacheid=xorg_cv_cc_flag__Warray_bounds
10705 if eval test \${$cacheid+y}
10706 then :
10707 printf %s "(cached) " >&6
10708 else case e in #(
10709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711 int i;
10712 int
10713 main (void)
10714 {
10715
10716 ;
10717 return 0;
10718 }
10719 _ACEOF
10720 if ac_fn_c_try_link "$LINENO"
10721 then :
10722 eval $cacheid=yes
10723 else case e in #(
10724 e) eval $cacheid=no ;;
10725 esac
10726 fi
10727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10728 conftest$ac_exeext conftest.$ac_ext ;;
10729 esac
10730 fi
10731
10732
10733 CFLAGS="$xorg_testset_save_CFLAGS"
10734
10735 eval supported=\$$cacheid
10736 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10737 printf '%s\n' "$supported" >&6; }
10738 if test "$supported" = "yes" ; then
10739 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10740 found="yes"
10741 fi
10742 fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758 xorg_testset_save_CFLAGS="$CFLAGS"
10759
10760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10762 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10763 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10764 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10765 then :
10766 printf %s "(cached) " >&6
10767 else case e in #(
10768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10770 int i;
10771 _ACEOF
10772 if ac_fn_c_try_compile "$LINENO"
10773 then :
10774 xorg_cv_cc_flag_unknown_warning_option=yes
10775 else case e in #(
10776 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10777 esac
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10780 esac
10781 fi
10782 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10783 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10785 CFLAGS="$xorg_testset_save_CFLAGS"
10786 fi
10787
10788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10791 fi
10792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10794 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10795 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10796 then :
10797 printf %s "(cached) " >&6
10798 else case e in #(
10799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 int i;
10802 _ACEOF
10803 if ac_fn_c_try_compile "$LINENO"
10804 then :
10805 xorg_cv_cc_flag_unused_command_line_argument=yes
10806 else case e in #(
10807 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10808 esac
10809 fi
10810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10811 esac
10812 fi
10813 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10814 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10816 CFLAGS="$xorg_testset_save_CFLAGS"
10817 fi
10818
10819 found="no"
10820
10821 if test $found = "no" ; then
10822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10824 fi
10825
10826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10828 fi
10829
10830 CFLAGS="$CFLAGS -Wwrite-strings"
10831
10832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10833 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10834 cacheid=xorg_cv_cc_flag__Wwrite_strings
10835 if eval test \${$cacheid+y}
10836 then :
10837 printf %s "(cached) " >&6
10838 else case e in #(
10839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841 int i;
10842 int
10843 main (void)
10844 {
10845
10846 ;
10847 return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"
10851 then :
10852 eval $cacheid=yes
10853 else case e in #(
10854 e) eval $cacheid=no ;;
10855 esac
10856 fi
10857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10858 conftest$ac_exeext conftest.$ac_ext ;;
10859 esac
10860 fi
10861
10862
10863 CFLAGS="$xorg_testset_save_CFLAGS"
10864
10865 eval supported=\$$cacheid
10866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10867 printf '%s\n' "$supported" >&6; }
10868 if test "$supported" = "yes" ; then
10869 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10870 found="yes"
10871 fi
10872 fi
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888 xorg_testset_save_CFLAGS="$CFLAGS"
10889
10890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10893 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10894 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10895 then :
10896 printf %s "(cached) " >&6
10897 else case e in #(
10898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10900 int i;
10901 _ACEOF
10902 if ac_fn_c_try_compile "$LINENO"
10903 then :
10904 xorg_cv_cc_flag_unknown_warning_option=yes
10905 else case e in #(
10906 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10907 esac
10908 fi
10909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10910 esac
10911 fi
10912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10913 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10915 CFLAGS="$xorg_testset_save_CFLAGS"
10916 fi
10917
10918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10921 fi
10922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10924 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10925 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10926 then :
10927 printf %s "(cached) " >&6
10928 else case e in #(
10929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931 int i;
10932 _ACEOF
10933 if ac_fn_c_try_compile "$LINENO"
10934 then :
10935 xorg_cv_cc_flag_unused_command_line_argument=yes
10936 else case e in #(
10937 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10938 esac
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10941 esac
10942 fi
10943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10944 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10946 CFLAGS="$xorg_testset_save_CFLAGS"
10947 fi
10948
10949 found="no"
10950
10951 if test $found = "no" ; then
10952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10954 fi
10955
10956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10958 fi
10959
10960 CFLAGS="$CFLAGS -Waddress"
10961
10962 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10963 printf %s "checking if $CC supports -Waddress... " >&6; }
10964 cacheid=xorg_cv_cc_flag__Waddress
10965 if eval test \${$cacheid+y}
10966 then :
10967 printf %s "(cached) " >&6
10968 else case e in #(
10969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10971 int i;
10972 int
10973 main (void)
10974 {
10975
10976 ;
10977 return 0;
10978 }
10979 _ACEOF
10980 if ac_fn_c_try_link "$LINENO"
10981 then :
10982 eval $cacheid=yes
10983 else case e in #(
10984 e) eval $cacheid=no ;;
10985 esac
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10988 conftest$ac_exeext conftest.$ac_ext ;;
10989 esac
10990 fi
10991
10992
10993 CFLAGS="$xorg_testset_save_CFLAGS"
10994
10995 eval supported=\$$cacheid
10996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10997 printf '%s\n' "$supported" >&6; }
10998 if test "$supported" = "yes" ; then
10999 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11000 found="yes"
11001 fi
11002 fi
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018 xorg_testset_save_CFLAGS="$CFLAGS"
11019
11020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11022 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11023 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11024 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11025 then :
11026 printf %s "(cached) " >&6
11027 else case e in #(
11028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 int i;
11031 _ACEOF
11032 if ac_fn_c_try_compile "$LINENO"
11033 then :
11034 xorg_cv_cc_flag_unknown_warning_option=yes
11035 else case e in #(
11036 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11037 esac
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11040 esac
11041 fi
11042 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11043 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11045 CFLAGS="$xorg_testset_save_CFLAGS"
11046 fi
11047
11048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11051 fi
11052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11054 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11055 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11056 then :
11057 printf %s "(cached) " >&6
11058 else case e in #(
11059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 int i;
11062 _ACEOF
11063 if ac_fn_c_try_compile "$LINENO"
11064 then :
11065 xorg_cv_cc_flag_unused_command_line_argument=yes
11066 else case e in #(
11067 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11068 esac
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11071 esac
11072 fi
11073 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11074 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11076 CFLAGS="$xorg_testset_save_CFLAGS"
11077 fi
11078
11079 found="no"
11080
11081 if test $found = "no" ; then
11082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11084 fi
11085
11086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11088 fi
11089
11090 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11091
11092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11093 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11094 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11095 if eval test \${$cacheid+y}
11096 then :
11097 printf %s "(cached) " >&6
11098 else case e in #(
11099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11101 int i;
11102 int
11103 main (void)
11104 {
11105
11106 ;
11107 return 0;
11108 }
11109 _ACEOF
11110 if ac_fn_c_try_link "$LINENO"
11111 then :
11112 eval $cacheid=yes
11113 else case e in #(
11114 e) eval $cacheid=no ;;
11115 esac
11116 fi
11117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11118 conftest$ac_exeext conftest.$ac_ext ;;
11119 esac
11120 fi
11121
11122
11123 CFLAGS="$xorg_testset_save_CFLAGS"
11124
11125 eval supported=\$$cacheid
11126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11127 printf '%s\n' "$supported" >&6; }
11128 if test "$supported" = "yes" ; then
11129 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11130 found="yes"
11131 fi
11132 fi
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148 xorg_testset_save_CFLAGS="$CFLAGS"
11149
11150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11152 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11153 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11154 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11155 then :
11156 printf %s "(cached) " >&6
11157 else case e in #(
11158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160 int i;
11161 _ACEOF
11162 if ac_fn_c_try_compile "$LINENO"
11163 then :
11164 xorg_cv_cc_flag_unknown_warning_option=yes
11165 else case e in #(
11166 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11167 esac
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11170 esac
11171 fi
11172 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11173 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11175 CFLAGS="$xorg_testset_save_CFLAGS"
11176 fi
11177
11178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11181 fi
11182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11184 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11185 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11186 then :
11187 printf %s "(cached) " >&6
11188 else case e in #(
11189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11191 int i;
11192 _ACEOF
11193 if ac_fn_c_try_compile "$LINENO"
11194 then :
11195 xorg_cv_cc_flag_unused_command_line_argument=yes
11196 else case e in #(
11197 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11198 esac
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11201 esac
11202 fi
11203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11204 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11206 CFLAGS="$xorg_testset_save_CFLAGS"
11207 fi
11208
11209 found="no"
11210
11211 if test $found = "no" ; then
11212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11214 fi
11215
11216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11218 fi
11219
11220 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11221
11222 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11223 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11224 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11225 if eval test \${$cacheid+y}
11226 then :
11227 printf %s "(cached) " >&6
11228 else case e in #(
11229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11231 int i;
11232 int
11233 main (void)
11234 {
11235
11236 ;
11237 return 0;
11238 }
11239 _ACEOF
11240 if ac_fn_c_try_link "$LINENO"
11241 then :
11242 eval $cacheid=yes
11243 else case e in #(
11244 e) eval $cacheid=no ;;
11245 esac
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11248 conftest$ac_exeext conftest.$ac_ext ;;
11249 esac
11250 fi
11251
11252
11253 CFLAGS="$xorg_testset_save_CFLAGS"
11254
11255 eval supported=\$$cacheid
11256 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11257 printf '%s\n' "$supported" >&6; }
11258 if test "$supported" = "yes" ; then
11259 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11260 found="yes"
11261 fi
11262 fi
11263
11264
11265 fi
11266
11267
11268
11269
11270
11271
11272
11273 CWARNFLAGS="$BASE_CFLAGS"
11274 if test "x$GCC" = xyes ; then
11275 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11276 fi
11277
11278
11279
11280
11281
11282
11283
11284
11285 # Check whether --enable-strict-compilation was given.
11286 if test ${enable_strict_compilation+y}
11287 then :
11288 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11289 else case e in #(
11290 e) STRICT_COMPILE=no ;;
11291 esac
11292 fi
11293
11294
11295
11296
11297
11298
11299 STRICT_CFLAGS=""
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313 xorg_testset_save_CFLAGS="$CFLAGS"
11314
11315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11319 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11320 then :
11321 printf %s "(cached) " >&6
11322 else case e in #(
11323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325 int i;
11326 _ACEOF
11327 if ac_fn_c_try_compile "$LINENO"
11328 then :
11329 xorg_cv_cc_flag_unknown_warning_option=yes
11330 else case e in #(
11331 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11332 esac
11333 fi
11334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11335 esac
11336 fi
11337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11338 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11340 CFLAGS="$xorg_testset_save_CFLAGS"
11341 fi
11342
11343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11346 fi
11347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11351 then :
11352 printf %s "(cached) " >&6
11353 else case e in #(
11354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356 int i;
11357 _ACEOF
11358 if ac_fn_c_try_compile "$LINENO"
11359 then :
11360 xorg_cv_cc_flag_unused_command_line_argument=yes
11361 else case e in #(
11362 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11363 esac
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11366 esac
11367 fi
11368 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11369 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11371 CFLAGS="$xorg_testset_save_CFLAGS"
11372 fi
11373
11374 found="no"
11375
11376 if test $found = "no" ; then
11377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11379 fi
11380
11381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11383 fi
11384
11385 CFLAGS="$CFLAGS -pedantic"
11386
11387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11388 printf %s "checking if $CC supports -pedantic... " >&6; }
11389 cacheid=xorg_cv_cc_flag__pedantic
11390 if eval test \${$cacheid+y}
11391 then :
11392 printf %s "(cached) " >&6
11393 else case e in #(
11394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396 int i;
11397 int
11398 main (void)
11399 {
11400
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 if ac_fn_c_try_link "$LINENO"
11406 then :
11407 eval $cacheid=yes
11408 else case e in #(
11409 e) eval $cacheid=no ;;
11410 esac
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11413 conftest$ac_exeext conftest.$ac_ext ;;
11414 esac
11415 fi
11416
11417
11418 CFLAGS="$xorg_testset_save_CFLAGS"
11419
11420 eval supported=\$$cacheid
11421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11422 printf '%s\n' "$supported" >&6; }
11423 if test "$supported" = "yes" ; then
11424 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11425 found="yes"
11426 fi
11427 fi
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443 xorg_testset_save_CFLAGS="$CFLAGS"
11444
11445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11449 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11450 then :
11451 printf %s "(cached) " >&6
11452 else case e in #(
11453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455 int i;
11456 _ACEOF
11457 if ac_fn_c_try_compile "$LINENO"
11458 then :
11459 xorg_cv_cc_flag_unknown_warning_option=yes
11460 else case e in #(
11461 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11462 esac
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11465 esac
11466 fi
11467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11468 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11470 CFLAGS="$xorg_testset_save_CFLAGS"
11471 fi
11472
11473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11476 fi
11477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11479 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11480 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11481 then :
11482 printf %s "(cached) " >&6
11483 else case e in #(
11484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486 int i;
11487 _ACEOF
11488 if ac_fn_c_try_compile "$LINENO"
11489 then :
11490 xorg_cv_cc_flag_unused_command_line_argument=yes
11491 else case e in #(
11492 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11493 esac
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11496 esac
11497 fi
11498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11499 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11501 CFLAGS="$xorg_testset_save_CFLAGS"
11502 fi
11503
11504 found="no"
11505
11506 if test $found = "no" ; then
11507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11509 fi
11510
11511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11513 fi
11514
11515 CFLAGS="$CFLAGS -Werror"
11516
11517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11518 printf %s "checking if $CC supports -Werror... " >&6; }
11519 cacheid=xorg_cv_cc_flag__Werror
11520 if eval test \${$cacheid+y}
11521 then :
11522 printf %s "(cached) " >&6
11523 else case e in #(
11524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11526 int i;
11527 int
11528 main (void)
11529 {
11530
11531 ;
11532 return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"
11536 then :
11537 eval $cacheid=yes
11538 else case e in #(
11539 e) eval $cacheid=no ;;
11540 esac
11541 fi
11542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11543 conftest$ac_exeext conftest.$ac_ext ;;
11544 esac
11545 fi
11546
11547
11548 CFLAGS="$xorg_testset_save_CFLAGS"
11549
11550 eval supported=\$$cacheid
11551 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11552 printf '%s\n' "$supported" >&6; }
11553 if test "$supported" = "yes" ; then
11554 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11555 found="yes"
11556 fi
11557 fi
11558
11559 if test $found = "no" ; then
11560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11562 fi
11563
11564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11566 fi
11567
11568 CFLAGS="$CFLAGS -errwarn"
11569
11570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11571 printf %s "checking if $CC supports -errwarn... " >&6; }
11572 cacheid=xorg_cv_cc_flag__errwarn
11573 if eval test \${$cacheid+y}
11574 then :
11575 printf %s "(cached) " >&6
11576 else case e in #(
11577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579 int i;
11580 int
11581 main (void)
11582 {
11583
11584 ;
11585 return 0;
11586 }
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"
11589 then :
11590 eval $cacheid=yes
11591 else case e in #(
11592 e) eval $cacheid=no ;;
11593 esac
11594 fi
11595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11596 conftest$ac_exeext conftest.$ac_ext ;;
11597 esac
11598 fi
11599
11600
11601 CFLAGS="$xorg_testset_save_CFLAGS"
11602
11603 eval supported=\$$cacheid
11604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11605 printf '%s\n' "$supported" >&6; }
11606 if test "$supported" = "yes" ; then
11607 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11608 found="yes"
11609 fi
11610 fi
11611
11612
11613
11614 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11615 # activate it with -Werror, so we add it here explicitly.
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629 xorg_testset_save_CFLAGS="$CFLAGS"
11630
11631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11635 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11636 then :
11637 printf %s "(cached) " >&6
11638 else case e in #(
11639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 int i;
11642 _ACEOF
11643 if ac_fn_c_try_compile "$LINENO"
11644 then :
11645 xorg_cv_cc_flag_unknown_warning_option=yes
11646 else case e in #(
11647 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11648 esac
11649 fi
11650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11651 esac
11652 fi
11653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11654 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11656 CFLAGS="$xorg_testset_save_CFLAGS"
11657 fi
11658
11659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11662 fi
11663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11667 then :
11668 printf %s "(cached) " >&6
11669 else case e in #(
11670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11672 int i;
11673 _ACEOF
11674 if ac_fn_c_try_compile "$LINENO"
11675 then :
11676 xorg_cv_cc_flag_unused_command_line_argument=yes
11677 else case e in #(
11678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11679 esac
11680 fi
11681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11682 esac
11683 fi
11684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11685 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11687 CFLAGS="$xorg_testset_save_CFLAGS"
11688 fi
11689
11690 found="no"
11691
11692 if test $found = "no" ; then
11693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11695 fi
11696
11697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11699 fi
11700
11701 CFLAGS="$CFLAGS -Werror=attributes"
11702
11703 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11704 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11705 cacheid=xorg_cv_cc_flag__Werror_attributes
11706 if eval test \${$cacheid+y}
11707 then :
11708 printf %s "(cached) " >&6
11709 else case e in #(
11710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11712 int i;
11713 int
11714 main (void)
11715 {
11716
11717 ;
11718 return 0;
11719 }
11720 _ACEOF
11721 if ac_fn_c_try_link "$LINENO"
11722 then :
11723 eval $cacheid=yes
11724 else case e in #(
11725 e) eval $cacheid=no ;;
11726 esac
11727 fi
11728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11729 conftest$ac_exeext conftest.$ac_ext ;;
11730 esac
11731 fi
11732
11733
11734 CFLAGS="$xorg_testset_save_CFLAGS"
11735
11736 eval supported=\$$cacheid
11737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11738 printf '%s\n' "$supported" >&6; }
11739 if test "$supported" = "yes" ; then
11740 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11741 found="yes"
11742 fi
11743 fi
11744
11745
11746
11747 if test "x$STRICT_COMPILE" = "xyes"; then
11748 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11749 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11750 fi
11751
11752
11753
11754
11755
11756
11757
11758
11759 cat >>confdefs.h <<_ACEOF
11760 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11761 _ACEOF
11762
11763 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11764 if test "x$PVM" = "x"; then
11765 PVM="0"
11766 fi
11767
11768 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11769
11770 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11771 if test "x$PVP" = "x"; then
11772 PVP="0"
11773 fi
11774
11775 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11776
11777
11778
11779 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11780 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11781 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11782 touch \$(top_srcdir)/ChangeLog; \
11783 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11784
11785
11786
11787
11788 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11789 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11790 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11791 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11792 touch \$(top_srcdir)/INSTALL; \
11793 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11794
11795
11796
11797
11798
11799
11800 case $host_os in
11801 solaris*)
11802 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11803 # check for a man page file found in later versions that use
11804 # traditional section numbers instead
11805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11806 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11807 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11808 then :
11809 printf %s "(cached) " >&6
11810 else case e in #(
11811 e) test "$cross_compiling" = yes &&
11812 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11813 if test -r "/usr/share/man/man7/attributes.7"; then
11814 ac_cv_file__usr_share_man_man7_attributes_7=yes
11815 else
11816 ac_cv_file__usr_share_man_man7_attributes_7=no
11817 fi ;;
11818 esac
11819 fi
11820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11821 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11822 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11823 then :
11824 SYSV_MAN_SECTIONS=false
11825 else case e in #(
11826 e) SYSV_MAN_SECTIONS=true ;;
11827 esac
11828 fi
11829
11830 ;;
11831 *) SYSV_MAN_SECTIONS=false ;;
11832 esac
11833
11834 if test x$APP_MAN_SUFFIX = x ; then
11835 APP_MAN_SUFFIX=1
11836 fi
11837 if test x$APP_MAN_DIR = x ; then
11838 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11839 fi
11840
11841 if test x$LIB_MAN_SUFFIX = x ; then
11842 LIB_MAN_SUFFIX=3
11843 fi
11844 if test x$LIB_MAN_DIR = x ; then
11845 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11846 fi
11847
11848 if test x$FILE_MAN_SUFFIX = x ; then
11849 case $SYSV_MAN_SECTIONS in
11850 true) FILE_MAN_SUFFIX=4 ;;
11851 *) FILE_MAN_SUFFIX=5 ;;
11852 esac
11853 fi
11854 if test x$FILE_MAN_DIR = x ; then
11855 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11856 fi
11857
11858 if test x$MISC_MAN_SUFFIX = x ; then
11859 case $SYSV_MAN_SECTIONS in
11860 true) MISC_MAN_SUFFIX=5 ;;
11861 *) MISC_MAN_SUFFIX=7 ;;
11862 esac
11863 fi
11864 if test x$MISC_MAN_DIR = x ; then
11865 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11866 fi
11867
11868 if test x$DRIVER_MAN_SUFFIX = x ; then
11869 case $SYSV_MAN_SECTIONS in
11870 true) DRIVER_MAN_SUFFIX=7 ;;
11871 *) DRIVER_MAN_SUFFIX=4 ;;
11872 esac
11873 fi
11874 if test x$DRIVER_MAN_DIR = x ; then
11875 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11876 fi
11877
11878 if test x$ADMIN_MAN_SUFFIX = x ; then
11879 case $SYSV_MAN_SECTIONS in
11880 true) ADMIN_MAN_SUFFIX=1m ;;
11881 *) ADMIN_MAN_SUFFIX=8 ;;
11882 esac
11883 fi
11884 if test x$ADMIN_MAN_DIR = x ; then
11885 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11886 fi
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902 XORG_MAN_PAGE="X Version 11"
11903
11904 MAN_SUBSTS="\
11905 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11906 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11907 -e 's|__xservername__|Xorg|g' \
11908 -e 's|__xconfigfile__|xorg.conf|g' \
11909 -e 's|__projectroot__|\$(prefix)|g' \
11910 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11911 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11912 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11913 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11914 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11915 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11916 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11917
11918
11919
11920
11921 AM_DEFAULT_VERBOSITY=0
11922
11923
11924
11925
11926
11927 # Checks for pkg-config packages
11928
11929 pkg_failed=no
11930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XREFRESH" >&5
11931 printf %s "checking for XREFRESH... " >&6; }
11932
11933 if test -n "$XREFRESH_CFLAGS"; then
11934 pkg_cv_XREFRESH_CFLAGS="$XREFRESH_CFLAGS"
11935 elif test -n "$PKG_CONFIG"; then
11936 if test -n "$PKG_CONFIG" && \
11937 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11938 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11939 ac_status=$?
11940 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; }; then
11942 pkg_cv_XREFRESH_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
11943 test "x$?" != "x0" && pkg_failed=yes
11944 else
11945 pkg_failed=yes
11946 fi
11947 else
11948 pkg_failed=untried
11949 fi
11950 if test -n "$XREFRESH_LIBS"; then
11951 pkg_cv_XREFRESH_LIBS="$XREFRESH_LIBS"
11952 elif test -n "$PKG_CONFIG"; then
11953 if test -n "$PKG_CONFIG" && \
11954 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11955 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11956 ac_status=$?
11957 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; }; then
11959 pkg_cv_XREFRESH_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
11960 test "x$?" != "x0" && pkg_failed=yes
11961 else
11962 pkg_failed=yes
11963 fi
11964 else
11965 pkg_failed=untried
11966 fi
11967
11968
11969
11970 if test $pkg_failed = yes; then
11971 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 printf '%s\n' "no" >&6; }
11973
11974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11975 _pkg_short_errors_supported=yes
11976 else
11977 _pkg_short_errors_supported=no
11978 fi
11979 if test $_pkg_short_errors_supported = yes; then
11980 XREFRESH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11981 else
11982 XREFRESH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11983 fi
11984 # Put the nasty error message in config.log where it belongs
11985 echo "$XREFRESH_PKG_ERRORS" >&5
11986
11987 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
11988
11989 $XREFRESH_PKG_ERRORS
11990
11991 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11992 installed software in a non-standard prefix.
11993
11994 Alternatively, you may set the environment variables XREFRESH_CFLAGS
11995 and XREFRESH_LIBS to avoid the need to call pkg-config.
11996 See the pkg-config man page for more details." "$LINENO" 5
11997 elif test $pkg_failed = untried; then
11998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 printf '%s\n' "no" >&6; }
12000 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12001 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12002 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12003 is in your PATH or set the PKG_CONFIG environment variable to the full
12004 path to pkg-config.
12005
12006 Alternatively, you may set the environment variables XREFRESH_CFLAGS
12007 and XREFRESH_LIBS to avoid the need to call pkg-config.
12008 See the pkg-config man page for more details.
12009
12010 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12011 See 'config.log' for more details" "$LINENO" 5; }
12012 else
12013 XREFRESH_CFLAGS=$pkg_cv_XREFRESH_CFLAGS
12014 XREFRESH_LIBS=$pkg_cv_XREFRESH_LIBS
12015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12016 printf '%s\n' "yes" >&6; }
12017
12018 fi
12019
12020 ac_config_files="$ac_config_files Makefile man/Makefile"
12021
12022 cat >confcache <<\_ACEOF
12023 # This file is a shell script that caches the results of configure
12024 # tests run on this system so they can be shared between configure
12025 # scripts and configure runs, see configure's option --config-cache.
12026 # It is not useful on other systems. If it contains results you don't
12027 # want to keep, you may remove or edit it.
12028 #
12029 # config.status only pays attention to the cache file if you give it
12030 # the --recheck option to rerun configure.
12031 #
12032 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12033 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12034 # following values.
12035
12036 _ACEOF
12037
12038 ac_cache_dump |
12039 sed '
12040 /^ac_cv_env_/b end
12041 t clear
12042 :clear
12043 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12044 t end
12045 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12046 :end' >>confcache
12047 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12048 if test -w "$cache_file"; then
12049 if test "x$cache_file" != "x/dev/null"; then
12050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12051 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
12052 if test ! -f "$cache_file" || test -h "$cache_file"; then
12053 cat confcache >"$cache_file"
12054 else
12055 case $cache_file in #(
12056 */* | ?:*)
12057 mv -f confcache "$cache_file"$$ &&
12058 mv -f "$cache_file"$$ "$cache_file" ;; #(
12059 *)
12060 mv -f confcache "$cache_file" ;;
12061 esac
12062 fi
12063 fi
12064 else
12065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12066 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
12067 fi
12068 fi
12069 rm -f confcache
12070
12071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12072 # Let make expand exec_prefix.
12073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12074
12075 DEFS=-DHAVE_CONFIG_H
12076
12077 ac_libobjs=
12078 ac_ltlibobjs=
12079 U=
12080 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12081 # 1. Remove the extension, and $U if already installed.
12082 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12083 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
12084 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12085 # will be set to the directory where LIBOBJS objects are built.
12086 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12087 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12088 done
12089 LIBOBJS=$ac_libobjs
12090
12091 LTLIBOBJS=$ac_ltlibobjs
12092
12093
12094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12095 printf %s "checking that generated files are newer than configure... " >&6; }
12096 if test -n "$am_sleep_pid"; then
12097 # Hide warnings about reused PIDs.
12098 wait $am_sleep_pid 2>/dev/null
12099 fi
12100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
12101 printf '%s\n' "done" >&6; }
12102 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12103 as_fn_error $? "conditional \"AMDEP\" was never defined.
12104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12105 fi
12106 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12107 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12109 fi
12110 case $enable_silent_rules in # (((
12111 yes) AM_DEFAULT_VERBOSITY=0;;
12112 no) AM_DEFAULT_VERBOSITY=1;;
12113 esac
12114 if test $am_cv_make_support_nested_variables = yes; then
12115 AM_V='$(V)'
12116 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12117 else
12118 AM_V=$AM_DEFAULT_VERBOSITY
12119 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12120 fi
12121
12122 if test -n "$EXEEXT"; then
12123 am__EXEEXT_TRUE=
12124 am__EXEEXT_FALSE='#'
12125 else
12126 am__EXEEXT_TRUE='#'
12127 am__EXEEXT_FALSE=
12128 fi
12129
12130
12131 : "${CONFIG_STATUS=./config.status}"
12132 case $CONFIG_STATUS in #(
12133 -*) :
12134 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
12135 */*) :
12136 ;; #(
12137 *) :
12138 CONFIG_STATUS=./$CONFIG_STATUS ;;
12139 esac
12140
12141 ac_write_fail=0
12142 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
12143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12144 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
12145 as_write_fail=0
12146 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
12147 #! $SHELL
12148 # Generated by $as_me.
12149 # Run this file to recreate the current configuration.
12150 # Compiler output produced by configure, useful for debugging
12151 # configure, is in config.log if it exists.
12152
12153 debug=false
12154 ac_cs_recheck=false
12155 ac_cs_silent=false
12156
12157 SHELL=\${CONFIG_SHELL-$SHELL}
12158 export SHELL
12159 _ASEOF
12160 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
12161 ## -------------------- ##
12162 ## M4sh Initialization. ##
12163 ## -------------------- ##
12164
12165 # Be more Bourne compatible
12166 DUALCASE=1; export DUALCASE # for MKS sh
12167 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12168 then :
12169 emulate sh
12170 NULLCMD=:
12171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12172 # contradicts POSIX and common usage. Disable this.
12173 alias -g '${1+"$@"}'='"$@"'
12174 setopt NO_GLOB_SUBST
12175 else case e in #(
12176 e) case `(set -o) 2>/dev/null` in #(
12177 *posix*) :
12178 set -o posix ;; #(
12179 *) :
12180 ;;
12181 esac ;;
12182 esac
12183 fi
12184
12185
12186
12187 # Reset variables that may have inherited troublesome values from
12188 # the environment.
12189
12190 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12191 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12192 # side effect of setting IFS to empty, thus disabling word splitting.)
12193 # Quoting is to prevent editors from complaining about space-tab.
12194 as_nl='
12195 '
12196 export as_nl
12197 IFS=" "" $as_nl"
12198
12199 PS1='$ '
12200 PS2='> '
12201 PS4='+ '
12202
12203 # Ensure predictable behavior from utilities with locale-dependent output.
12204 LC_ALL=C
12205 export LC_ALL
12206 LANGUAGE=C
12207 export LANGUAGE
12208
12209 # We cannot yet rely on "unset" to work, but we need these variables
12210 # to be unset--not just set to an empty or harmless value--now, to
12211 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12212 # also avoids known problems related to "unset" and subshell syntax
12213 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12214 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12215 do eval test \${$as_var+y} \
12216 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12217 done
12218
12219 # Ensure that fds 0, 1, and 2 are open.
12220 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12221 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12222 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12223
12224 # The user is always right.
12225 if ${PATH_SEPARATOR+false} :; then
12226 PATH_SEPARATOR=:
12227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12229 PATH_SEPARATOR=';'
12230 }
12231 fi
12232
12233
12234 # Find who we are. Look in the path if we contain no directory separator.
12235 as_myself=
12236 case $0 in #((
12237 *[\\/]* ) as_myself=$0 ;;
12238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241 IFS=$as_save_IFS
12242 case $as_dir in #(((
12243 '') as_dir=./ ;;
12244 */) ;;
12245 *) as_dir=$as_dir/ ;;
12246 esac
12247 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12248 done
12249 IFS=$as_save_IFS
12250
12251 ;;
12252 esac
12253 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12254 # in which case we are not to be found in the path.
12255 if test "x$as_myself" = x; then
12256 as_myself=$0
12257 fi
12258 if test ! -f "$as_myself"; then
12259 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12260 exit 1
12261 fi
12262
12263
12264
12265 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12266 # ----------------------------------------
12267 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12268 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12269 # script with STATUS, using 1 if that was 0.
12270 as_fn_error ()
12271 {
12272 as_status=$1; test $as_status -eq 0 && as_status=1
12273 if test "$4"; then
12274 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12275 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12276 fi
12277 printf '%s\n' "$as_me: error: $2" >&2
12278 as_fn_exit $as_status
12279 } # as_fn_error
12280
12281
12282 # as_fn_set_status STATUS
12283 # -----------------------
12284 # Set $? to STATUS, without forking.
12285 as_fn_set_status ()
12286 {
12287 return $1
12288 } # as_fn_set_status
12289
12290 # as_fn_exit STATUS
12291 # -----------------
12292 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12293 as_fn_exit ()
12294 {
12295 set +e
12296 as_fn_set_status $1
12297 exit $1
12298 } # as_fn_exit
12299
12300 # as_fn_unset VAR
12301 # ---------------
12302 # Portably unset VAR.
12303 as_fn_unset ()
12304 {
12305 { eval $1=; unset $1;}
12306 }
12307 as_unset=as_fn_unset
12308
12309 # as_fn_append VAR VALUE
12310 # ----------------------
12311 # Append the text in VALUE to the end of the definition contained in VAR. Take
12312 # advantage of any shell optimizations that allow amortized linear growth over
12313 # repeated appends, instead of the typical quadratic growth present in naive
12314 # implementations.
12315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12316 then :
12317 eval 'as_fn_append ()
12318 {
12319 eval $1+=\$2
12320 }'
12321 else case e in #(
12322 e) as_fn_append ()
12323 {
12324 eval $1=\$$1\$2
12325 } ;;
12326 esac
12327 fi # as_fn_append
12328
12329 # as_fn_arith ARG...
12330 # ------------------
12331 # Perform arithmetic evaluation on the ARGs, and store the result in the
12332 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12333 # must be portable across $(()) and expr.
12334 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12335 then :
12336 eval 'as_fn_arith ()
12337 {
12338 as_val=$(( $* ))
12339 }'
12340 else case e in #(
12341 e) as_fn_arith ()
12342 {
12343 as_val=`expr "$@" || test $? -eq 1`
12344 } ;;
12345 esac
12346 fi # as_fn_arith
12347
12348
12349 if expr a : '\(a\)' >/dev/null 2>&1 &&
12350 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12351 as_expr=expr
12352 else
12353 as_expr=false
12354 fi
12355
12356 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12357 as_basename=basename
12358 else
12359 as_basename=false
12360 fi
12361
12362 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12363 as_dirname=dirname
12364 else
12365 as_dirname=false
12366 fi
12367
12368 as_me=`$as_basename -- "$0" ||
12369 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12370 X"$0" : 'X\(//\)$' \| \
12371 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12372 printf '%s\n' X/"$0" |
12373 sed '/^.*\/\([^/][^/]*\)\/*$/{
12374 s//\1/
12375 q
12376 }
12377 /^X\/\(\/\/\)$/{
12378 s//\1/
12379 q
12380 }
12381 /^X\/\(\/\).*/{
12382 s//\1/
12383 q
12384 }
12385 s/.*/./; q'`
12386
12387 # Avoid depending upon Character Ranges.
12388 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12389 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12390 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12391 as_cr_digits='0123456789'
12392 as_cr_alnum=$as_cr_Letters$as_cr_digits
12393
12394 rm -f conf$$ conf$$.exe conf$$.file
12395 if test -d conf$$.dir; then
12396 rm -f conf$$.dir/conf$$.file
12397 else
12398 rm -f conf$$.dir
12399 mkdir conf$$.dir 2>/dev/null
12400 fi
12401 if (echo >conf$$.file) 2>/dev/null; then
12402 if ln -s conf$$.file conf$$ 2>/dev/null; then
12403 as_ln_s='ln -s'
12404 # ... but there are two gotchas:
12405 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12406 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12407 # In both cases, we have to default to 'cp -pR'.
12408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12409 as_ln_s='cp -pR'
12410 elif ln conf$$.file conf$$ 2>/dev/null; then
12411 as_ln_s=ln
12412 else
12413 as_ln_s='cp -pR'
12414 fi
12415 else
12416 as_ln_s='cp -pR'
12417 fi
12418 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12419 rmdir conf$$.dir 2>/dev/null
12420
12421
12422 # as_fn_mkdir_p
12423 # -------------
12424 # Create "$as_dir" as a directory, including parents if necessary.
12425 as_fn_mkdir_p ()
12426 {
12427
12428 case $as_dir in #(
12429 -*) as_dir=./$as_dir;;
12430 esac
12431 test -d "$as_dir" || eval $as_mkdir_p || {
12432 as_dirs=
12433 while :; do
12434 case $as_dir in #(
12435 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12436 *) as_qdir=$as_dir;;
12437 esac
12438 as_dirs="'$as_qdir' $as_dirs"
12439 as_dir=`$as_dirname -- "$as_dir" ||
12440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12441 X"$as_dir" : 'X\(//\)[^/]' \| \
12442 X"$as_dir" : 'X\(//\)$' \| \
12443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12444 printf '%s\n' X"$as_dir" |
12445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12446 s//\1/
12447 q
12448 }
12449 /^X\(\/\/\)[^/].*/{
12450 s//\1/
12451 q
12452 }
12453 /^X\(\/\/\)$/{
12454 s//\1/
12455 q
12456 }
12457 /^X\(\/\).*/{
12458 s//\1/
12459 q
12460 }
12461 s/.*/./; q'`
12462 test -d "$as_dir" && break
12463 done
12464 test -z "$as_dirs" || eval "mkdir $as_dirs"
12465 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12466
12467
12468 } # as_fn_mkdir_p
12469 if mkdir -p . 2>/dev/null; then
12470 as_mkdir_p='mkdir -p "$as_dir"'
12471 else
12472 test -d ./-p && rmdir ./-p
12473 as_mkdir_p=false
12474 fi
12475
12476
12477 # as_fn_executable_p FILE
12478 # -----------------------
12479 # Test if FILE is an executable regular file.
12480 as_fn_executable_p ()
12481 {
12482 test -f "$1" && test -x "$1"
12483 } # as_fn_executable_p
12484 as_test_x='test -x'
12485 as_executable_p=as_fn_executable_p
12486
12487 # Sed expression to map a string onto a valid CPP name.
12488 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12489 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12490
12491 # Sed expression to map a string onto a valid variable name.
12492 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12493 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12494
12495
12496 exec 6>&1
12497 ## ------------------------------------- ##
12498 ## Main body of "$CONFIG_STATUS" script. ##
12499 ## ------------------------------------- ##
12500 _ASEOF
12501 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
12502
12503 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12504 # Save the log message, to keep $0 and so on meaningful, and to
12505 # report actual input values of CONFIG_FILES etc. instead of their
12506 # values after options handling.
12507 ac_log="
12508 This file was extended by xrefresh $as_me 1.1.1, which was
12509 generated by GNU Autoconf 2.73. Invocation command line was
12510
12511 CONFIG_FILES = $CONFIG_FILES
12512 CONFIG_HEADERS = $CONFIG_HEADERS
12513 CONFIG_LINKS = $CONFIG_LINKS
12514 CONFIG_COMMANDS = $CONFIG_COMMANDS
12515 $ $0 $@
12516
12517 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12518 "
12519
12520 _ACEOF
12521
12522 case $ac_config_files in *"
12523 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12524 esac
12525
12526 case $ac_config_headers in *"
12527 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12528 esac
12529
12530
12531 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12532 # Files that config.status was made for.
12533 config_files="$ac_config_files"
12534 config_headers="$ac_config_headers"
12535 config_commands="$ac_config_commands"
12536
12537 _ACEOF
12538
12539 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12540 ac_cs_usage="\
12541 '$as_me' instantiates files and other configuration actions
12542 from templates according to the current configuration. Unless the files
12543 and actions are specified as TAGs, all are instantiated by default.
12544
12545 Usage: $0 [OPTION]... [TAG]...
12546
12547 -h, --help print this help, then exit
12548 -V, --version print version number and configuration settings, then exit
12549 --config print configuration, then exit
12550 -q, --quiet, --silent
12551 do not print progress messages
12552 -d, --debug don't remove temporary files
12553 --recheck update $as_me by reconfiguring in the same conditions
12554 --file=FILE[:TEMPLATE]
12555 instantiate the configuration file FILE
12556 --header=FILE[:TEMPLATE]
12557 instantiate the configuration header FILE
12558
12559 Configuration files:
12560 $config_files
12561
12562 Configuration headers:
12563 $config_headers
12564
12565 Configuration commands:
12566 $config_commands
12567
12568 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/-/issues>."
12569
12570 _ACEOF
12571 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
12572 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12573 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12574 ac_cs_config='$ac_cs_config_escaped'
12575 ac_cs_version="\\
12576 xrefresh config.status 1.1.1
12577 configured by $0, generated by GNU Autoconf 2.73,
12578 with options \\"\$ac_cs_config\\"
12579
12580 Copyright (C) 2026 Free Software Foundation, Inc.
12581 This config.status script is free software; the Free Software Foundation
12582 gives unlimited permission to copy, distribute and modify it."
12583
12584 ac_pwd='$ac_pwd'
12585 srcdir='$srcdir'
12586 INSTALL='$INSTALL'
12587 MKDIR_P='$MKDIR_P'
12588 AWK='$AWK'
12589 test -n "\$AWK" || {
12590 awk '' </dev/null ||
12591 as_fn_error \$? "try installing gawk"
12592 AWK=awk
12593 }
12594 _ACEOF
12595
12596 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12597 # The default lists apply if the user does not specify any file.
12598 ac_need_defaults=:
12599 while test $# != 0
12600 do
12601 case $1 in
12602 --*=?*)
12603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12604 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12605 ac_shift=:
12606 ;;
12607 --*=)
12608 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12609 ac_optarg=
12610 ac_shift=:
12611 ;;
12612 *)
12613 ac_option=$1
12614 ac_optarg=$2
12615 ac_shift=shift
12616 ;;
12617 esac
12618
12619 case $ac_option in
12620 # Handling of the options.
12621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12622 ac_cs_recheck=: ;;
12623 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12624 printf '%s\n' "$ac_cs_version"; exit ;;
12625 --config | --confi | --conf | --con | --co | --c )
12626 printf '%s\n' "$ac_cs_config"; exit ;;
12627 --debug | --debu | --deb | --de | --d | -d )
12628 debug=: ;;
12629 --file | --fil | --fi | --f )
12630 $ac_shift
12631 case $ac_optarg in
12632 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12633 '') as_fn_error $? "missing file argument" ;;
12634 esac
12635 as_fn_append CONFIG_FILES " '$ac_optarg'"
12636 ac_need_defaults=false;;
12637 --header | --heade | --head | --hea )
12638 $ac_shift
12639 case $ac_optarg in
12640 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12641 esac
12642 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12643 ac_need_defaults=false;;
12644 --he | --h)
12645 # Conflict between --help and --header
12646 as_fn_error $? "ambiguous option: '$1'
12647 Try '$0 --help' for more information.";;
12648 --help | --hel | -h )
12649 printf '%s\n' "$ac_cs_usage"; exit ;;
12650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12652 ac_cs_silent=: ;;
12653
12654 # This is an error.
12655 -*) as_fn_error $? "unrecognized option: '$1'
12656 Try '$0 --help' for more information." ;;
12657
12658 *) as_fn_append ac_config_targets " $1"
12659 ac_need_defaults=false ;;
12660
12661 esac
12662 shift
12663 done
12664
12665 ac_configure_extra_args=
12666
12667 if $ac_cs_silent; then
12668 exec 6>/dev/null
12669 ac_configure_extra_args="$ac_configure_extra_args --silent"
12670 fi
12671
12672 _ACEOF
12673 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12674 if \$ac_cs_recheck; then
12675 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12676 shift
12677 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
12678 CONFIG_SHELL='$SHELL'
12679 export CONFIG_SHELL
12680 exec "\$@"
12681 fi
12682
12683 _ACEOF
12684 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12685 exec 5>>config.log
12686 {
12687 echo
12688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12689 ## Running $as_me. ##
12690 _ASBOX
12691 printf '%s\n' "$ac_log"
12692 } >&5
12693
12694 _ACEOF
12695 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12696 #
12697 # INIT-COMMANDS
12698 #
12699 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12700
12701 _ACEOF
12702
12703 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12704
12705 # Handling of arguments.
12706 for ac_config_target in $ac_config_targets
12707 do
12708 case $ac_config_target in
12709 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12710 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12711 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12712 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12713
12714 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12715 esac
12716 done
12717
12718
12719 # If the user did not use the arguments to specify the items to instantiate,
12720 # then the envvar interface is used. Set only those that are not.
12721 # We use the long form for the default assignment because of an extremely
12722 # bizarre bug on SunOS 4.1.3.
12723 if $ac_need_defaults; then
12724 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12725 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12726 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12727 fi
12728
12729 # Have a temporary directory for convenience. Make it in the build tree
12730 # simply because there is no reason against having it here, and in addition,
12731 # creating and moving files from /tmp can sometimes cause problems.
12732 # Hook for its removal unless debugging.
12733 # Note that there is a small window in which the directory will not be cleaned:
12734 # after its creation but before its name has been assigned to '$tmp'.
12735 $debug ||
12736 {
12737 tmp= ac_tmp=
12738 trap 'exit_status=$?
12739 : "${ac_tmp:=$tmp}"
12740 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12741 ' 0
12742 trap 'as_fn_exit 1' 1 2 13 15
12743 }
12744 # Create a (secure) tmp directory for tmp files.
12745
12746 {
12747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12748 test -d "$tmp"
12749 } ||
12750 {
12751 tmp=./conf$$-$RANDOM
12752 (umask 077 && mkdir "$tmp")
12753 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12754 ac_tmp=$tmp
12755
12756 # Set up the scripts for CONFIG_FILES section.
12757 # No need to generate them if there are no CONFIG_FILES.
12758 # This happens for instance with './config.status config.h'.
12759 if test -n "$CONFIG_FILES"; then
12760
12761
12762 ac_cr=`echo X | tr X '\015'`
12763 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12764 # But we know of no other shell where ac_cr would be empty at this
12765 # point, so we can use a bashism as a fallback.
12766 if test "x$ac_cr" = x; then
12767 eval ac_cr=\$\'\\r\'
12768 fi
12769 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12770 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12771 ac_cs_awk_cr='\\r'
12772 else
12773 ac_cs_awk_cr=$ac_cr
12774 fi
12775
12776 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12777 _ACEOF
12778
12779
12780 {
12781 echo "cat >conf$$subs.awk <<_ACEOF" &&
12782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12783 echo "_ACEOF"
12784 } >conf$$subs.sh ||
12785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12786 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
12787 ac_delim='%!_!# '
12788 for ac_last_try in false false false false false :; do
12789 . ./conf$$subs.sh ||
12790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12791
12792 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
12793 if test $ac_delim_n = $ac_delim_num; then
12794 break
12795 elif $ac_last_try; then
12796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12797 else
12798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12799 fi
12800 done
12801 rm -f conf$$subs.sh
12802
12803 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12804 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12805 _ACEOF
12806 sed -n '
12807 h
12808 s/^/S["/; s/!.*/"]=/
12809 p
12810 g
12811 s/^[^!]*!//
12812 :repl
12813 t repl
12814 s/'"$ac_delim"'$//
12815 t delim
12816 :nl
12817 h
12818 s/\(.\{148\}\)..*/\1/
12819 t more1
12820 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12821 p
12822 n
12823 b repl
12824 :more1
12825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12826 p
12827 g
12828 s/.\{148\}//
12829 t nl
12830 :delim
12831 h
12832 s/\(.\{148\}\)..*/\1/
12833 t more2
12834 s/["\\]/\\&/g; s/^/"/; s/$/"/
12835 p
12836 b
12837 :more2
12838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12839 p
12840 g
12841 s/.\{148\}//
12842 t delim
12843 ' <conf$$subs.awk | sed '
12844 /^[^""]/{
12845 N
12846 s/\n//
12847 }
12848 ' >>"$CONFIG_STATUS" || ac_write_fail=1
12849 rm -f conf$$subs.awk
12850 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12851 _ACAWK
12852 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12853 for (key in S) S_is_set[key] = 1
12854 FS = ""
12855
12856 }
12857 {
12858 line = $ 0
12859 nfields = split(line, field, "@")
12860 substed = 0
12861 len = length(field[1])
12862 for (i = 2; i < nfields; i++) {
12863 key = field[i]
12864 keylen = length(key)
12865 if (S_is_set[key]) {
12866 value = S[key]
12867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12868 len += length(value) + length(field[++i])
12869 substed = 1
12870 } else
12871 len += 1 + keylen
12872 }
12873
12874 print line
12875 }
12876
12877 _ACAWK
12878 _ACEOF
12879 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12880 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12881 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12882 else
12883 cat
12884 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12885 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12886 _ACEOF
12887
12888 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12889 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12890 # trailing colons and then remove the whole line if VPATH becomes empty
12891 # (actually we leave an empty line to preserve line numbers).
12892 if test "x$srcdir" = x.; then
12893 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12894 h
12895 s///
12896 s/^/:/
12897 s/[ ]*$/:/
12898 s/:\$(srcdir):/:/g
12899 s/:\${srcdir}:/:/g
12900 s/:@srcdir@:/:/g
12901 s/^:*//
12902 s/:*$//
12903 x
12904 s/\(=[ ]*\).*/\1/
12905 G
12906 s/\n//
12907 s/^[^=]*=[ ]*$//
12908 }'
12909 fi
12910
12911 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12912 fi # test -n "$CONFIG_FILES"
12913
12914 # Set up the scripts for CONFIG_HEADERS section.
12915 # No need to generate them if there are no CONFIG_HEADERS.
12916 # This happens for instance with './config.status Makefile'.
12917 if test -n "$CONFIG_HEADERS"; then
12918 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12919 BEGIN {
12920 _ACEOF
12921
12922 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12923 # here-document in config.status, that substitutes the proper values into
12924 # config.h.in to produce config.h.
12925
12926 # Create a delimiter string that does not exist in confdefs.h, to ease
12927 # handling of long lines.
12928 ac_delim='%!_!# '
12929 for ac_last_try in false false :; do
12930 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12931 if test -z "$ac_tt"; then
12932 break
12933 elif $ac_last_try; then
12934 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12935 else
12936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12937 fi
12938 done
12939
12940 # For the awk script, D is an array of macro values keyed by name,
12941 # likewise P contains macro parameters if any. Preserve backslash
12942 # newline sequences.
12943
12944 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12945 sed -n '
12946 s/.\{148\}/&'"$ac_delim"'/g
12947 t rset
12948 :rset
12949 s/^[ ]*#[ ]*define[ ][ ]*/ /
12950 t def
12951 d
12952 :def
12953 s/\\$//
12954 t bsnl
12955 s/["\\]/\\&/g
12956 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12957 D["\1"]=" \3"/p
12958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12959 d
12960 :bsnl
12961 s/["\\]/\\&/g
12962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12963 D["\1"]=" \3\\\\\\n"\\/p
12964 t cont
12965 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12966 t cont
12967 d
12968 :cont
12969 n
12970 s/.\{148\}/&'"$ac_delim"'/g
12971 t clear
12972 :clear
12973 s/\\$//
12974 t bsnlc
12975 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12976 d
12977 :bsnlc
12978 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12979 b cont
12980 ' <confdefs.h | sed '
12981 s/'"$ac_delim"'/"\\\
12982 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
12983
12984 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12985 for (key in D) D_is_set[key] = 1
12986 FS = ""
12987 }
12988 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12989 line = \$ 0
12990 split(line, arg, " ")
12991 if (arg[1] == "#") {
12992 defundef = arg[2]
12993 mac1 = arg[3]
12994 } else {
12995 defundef = substr(arg[1], 2)
12996 mac1 = arg[2]
12997 }
12998 split(mac1, mac2, "(") #)
12999 macro = mac2[1]
13000 prefix = substr(line, 1, index(line, defundef) - 1)
13001 if (D_is_set[macro]) {
13002 suffix = P[macro] D[macro]
13003 while (suffix ~ /[\t ]$/) {
13004 suffix = substr(suffix, 1, length(suffix) - 1)
13005 }
13006 # Preserve the white space surrounding the "#".
13007 print prefix "define", macro suffix
13008 next
13009 } else {
13010 # Replace #undef with comments. This is necessary, for example,
13011 # in the case of _POSIX_SOURCE, which is predefined and required
13012 # on some systems where configure will not decide to define it.
13013 if (defundef == "undef") {
13014 print "/*", prefix defundef, macro, "*/"
13015 next
13016 }
13017 }
13018 }
13019 { print }
13020 _ACAWK
13021 _ACEOF
13022 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13023 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13024 fi # test -n "$CONFIG_HEADERS"
13025
13026
13027 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13028 shift
13029 for ac_tag
13030 do
13031 case $ac_tag in
13032 :[FHLC]) ac_mode=$ac_tag; continue;;
13033 esac
13034 case $ac_mode$ac_tag in
13035 :[FHL]*:*);;
13036 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13037 :[FH]-) ac_tag=-:-;;
13038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13039 esac
13040 ac_save_IFS=$IFS
13041 IFS=:
13042 set x $ac_tag
13043 IFS=$ac_save_IFS
13044 shift
13045 ac_file=$1
13046 shift
13047
13048 case $ac_mode in
13049 :L) ac_source=$1;;
13050 :[FH])
13051 ac_file_inputs=
13052 for ac_f
13053 do
13054 case $ac_f in
13055 -) ac_f="$ac_tmp/stdin";;
13056 *) # Look for the file first in the build tree, then in the source tree
13057 # (if the path is not absolute). The absolute path cannot be DOS-style,
13058 # because $ac_f cannot contain ':'.
13059 test -f "$ac_f" ||
13060 case $ac_f in
13061 [\\/$]*) false;;
13062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13063 esac ||
13064 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13065 esac
13066 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13067 as_fn_append ac_file_inputs " '$ac_f'"
13068 done
13069
13070 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13071 # use $as_me), people would be surprised to read:
13072 # /* config.h. Generated by config.status. */
13073 configure_input='Generated from '`
13074 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13075 `' by configure.'
13076 if test x"$ac_file" != x-; then
13077 configure_input="$ac_file. $configure_input"
13078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13079 printf '%s\n' "$as_me: creating $ac_file" >&6;}
13080 fi
13081 # Neutralize special characters interpreted by sed in replacement strings.
13082 case $configure_input in #(
13083 *\&* | *\|* | *\\* )
13084 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
13085 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13086 *) ac_sed_conf_input=$configure_input;;
13087 esac
13088
13089 case $ac_tag in
13090 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13092 esac
13093 ;;
13094 esac
13095
13096 ac_dir=`$as_dirname -- "$ac_file" ||
13097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13098 X"$ac_file" : 'X\(//\)[^/]' \| \
13099 X"$ac_file" : 'X\(//\)$' \| \
13100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13101 printf '%s\n' X"$ac_file" |
13102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13103 s//\1/
13104 q
13105 }
13106 /^X\(\/\/\)[^/].*/{
13107 s//\1/
13108 q
13109 }
13110 /^X\(\/\/\)$/{
13111 s//\1/
13112 q
13113 }
13114 /^X\(\/\).*/{
13115 s//\1/
13116 q
13117 }
13118 s/.*/./; q'`
13119 as_dir="$ac_dir"; as_fn_mkdir_p
13120 ac_builddir=.
13121
13122 case "$ac_dir" in
13123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13124 *)
13125 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
13126 # A ".." for each directory in $ac_dir_suffix.
13127 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13128 case $ac_top_builddir_sub in
13129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13131 esac ;;
13132 esac
13133 ac_abs_top_builddir=$ac_pwd
13134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13135 # for backward compatibility:
13136 ac_top_builddir=$ac_top_build_prefix
13137
13138 case $srcdir in
13139 .) # We are building in place.
13140 ac_srcdir=.
13141 ac_top_srcdir=$ac_top_builddir_sub
13142 ac_abs_top_srcdir=$ac_pwd ;;
13143 [\\/]* | ?:[\\/]* ) # Absolute name.
13144 ac_srcdir=$srcdir$ac_dir_suffix;
13145 ac_top_srcdir=$srcdir
13146 ac_abs_top_srcdir=$srcdir ;;
13147 *) # Relative name.
13148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13149 ac_top_srcdir=$ac_top_build_prefix$srcdir
13150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13151 esac
13152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13153
13154
13155 case $ac_mode in
13156 :F)
13157 #
13158 # CONFIG_FILE
13159 #
13160
13161 case $INSTALL in
13162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13163 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13164 esac
13165 ac_MKDIR_P=$MKDIR_P
13166 case $MKDIR_P in
13167 [\\/$]* | ?:[\\/]* ) ;;
13168 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13169 esac
13170 _ACEOF
13171
13172 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13173 # If the template does not know about datarootdir, expand it.
13174 # FIXME: This hack should be removed a few years after 2.60.
13175 ac_datarootdir_hack=; ac_datarootdir_seen=
13176 ac_sed_dataroot='
13177 /datarootdir/ {
13178 p
13179 q
13180 }
13181 /@datadir@/p
13182 /@docdir@/p
13183 /@infodir@/p
13184 /@localedir@/p
13185 /@mandir@/p'
13186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13187 *datarootdir*) ac_datarootdir_seen=yes;;
13188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13189 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13190 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13191 _ACEOF
13192 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13193 ac_datarootdir_hack='
13194 s&@datadir@&$datadir&g
13195 s&@docdir@&$docdir&g
13196 s&@infodir@&$infodir&g
13197 s&@localedir@&$localedir&g
13198 s&@mandir@&$mandir&g
13199 s&\\\${datarootdir}&$datarootdir&g' ;;
13200 esac
13201 _ACEOF
13202
13203 # Neutralize VPATH when '$srcdir' = '.'.
13204 # Shell code in configure.ac might set extrasub.
13205 # FIXME: do we really want to maintain this feature?
13206 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13207 ac_sed_extra="$ac_vpsub
13208 $extrasub
13209 _ACEOF
13210 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13211 :t
13212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13213 s|@configure_input@|$ac_sed_conf_input|;t t
13214 s&@top_builddir@&$ac_top_builddir_sub&;t t
13215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13216 s&@srcdir@&$ac_srcdir&;t t
13217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13218 s&@top_srcdir@&$ac_top_srcdir&;t t
13219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13220 s&@builddir@&$ac_builddir&;t t
13221 s&@abs_builddir@&$ac_abs_builddir&;t t
13222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13223 s&@INSTALL@&$ac_INSTALL&;t t
13224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13225 $ac_datarootdir_hack
13226 "
13227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13228 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13229
13230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13231 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13233 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13235 which seems to be undefined. Please make sure it is defined" >&5
13236 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13237 which seems to be undefined. Please make sure it is defined" >&2;}
13238
13239 rm -f "$ac_tmp/stdin"
13240 case $ac_file in
13241 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13242 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13243 esac \
13244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13245 ;;
13246 :H)
13247 #
13248 # CONFIG_HEADER
13249 #
13250 if test x"$ac_file" != x-; then
13251 {
13252 printf '%s\n' "/* $configure_input */" >&1 \
13253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13254 } >"$ac_tmp/config.h" \
13255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13256 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13258 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
13259 else
13260 rm -f "$ac_file"
13261 mv "$ac_tmp/config.h" "$ac_file" \
13262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13263 fi
13264 else
13265 printf '%s\n' "/* $configure_input */" >&1 \
13266 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13267 || as_fn_error $? "could not create -" "$LINENO" 5
13268 fi
13269 # Compute "$ac_file"'s index in $config_headers.
13270 _am_arg="$ac_file"
13271 _am_stamp_count=1
13272 for _am_header in $config_headers :; do
13273 case $_am_header in
13274 $_am_arg | $_am_arg:* )
13275 break ;;
13276 * )
13277 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13278 esac
13279 done
13280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13282 X"$_am_arg" : 'X\(//\)[^/]' \| \
13283 X"$_am_arg" : 'X\(//\)$' \| \
13284 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13285 printf '%s\n' X"$_am_arg" |
13286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13287 s//\1/
13288 q
13289 }
13290 /^X\(\/\/\)[^/].*/{
13291 s//\1/
13292 q
13293 }
13294 /^X\(\/\/\)$/{
13295 s//\1/
13296 q
13297 }
13298 /^X\(\/\).*/{
13299 s//\1/
13300 q
13301 }
13302 s/.*/./; q'`/stamp-h$_am_stamp_count
13303 ;;
13304
13305 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13306 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
13307 ;;
13308 esac
13309
13310
13311 case $ac_file$ac_mode in
13312 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13313 # Older Autoconf quotes --file arguments for eval, but not when files
13314 # are listed without --file. Let's play safe and only enable the eval
13315 # if we detect the quoting.
13316 # TODO: see whether this extra hack can be removed once we start
13317 # requiring Autoconf 2.70 or later.
13318 case $CONFIG_FILES in #(
13319 *\'*) :
13320 eval set x "$CONFIG_FILES" ;; #(
13321 *) :
13322 set x $CONFIG_FILES ;; #(
13323 *) :
13324 ;;
13325 esac
13326 shift
13327 # Used to flag and report bootstrapping failures.
13328 am_rc=0
13329 for am_mf
13330 do
13331 # Strip MF so we end up with the name of the file.
13332 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
13333 # Check whether this is an Automake generated Makefile which includes
13334 # dependency-tracking related rules and includes.
13335 # Grep'ing the whole file directly is not great: AIX grep has a line
13336 # limit of 2048, but all sed's we know have understand at least 4000.
13337 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13338 || continue
13339 am_dirpart=`$as_dirname -- "$am_mf" ||
13340 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13341 X"$am_mf" : 'X\(//\)[^/]' \| \
13342 X"$am_mf" : 'X\(//\)$' \| \
13343 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13344 printf '%s\n' X"$am_mf" |
13345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13346 s//\1/
13347 q
13348 }
13349 /^X\(\/\/\)[^/].*/{
13350 s//\1/
13351 q
13352 }
13353 /^X\(\/\/\)$/{
13354 s//\1/
13355 q
13356 }
13357 /^X\(\/\).*/{
13358 s//\1/
13359 q
13360 }
13361 s/.*/./; q'`
13362 am_filepart=`$as_basename -- "$am_mf" ||
13363 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13364 X"$am_mf" : 'X\(//\)$' \| \
13365 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13366 printf '%s\n' X/"$am_mf" |
13367 sed '/^.*\/\([^/][^/]*\)\/*$/{
13368 s//\1/
13369 q
13370 }
13371 /^X\/\(\/\/\)$/{
13372 s//\1/
13373 q
13374 }
13375 /^X\/\(\/\).*/{
13376 s//\1/
13377 q
13378 }
13379 s/.*/./; q'`
13380 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13381 && sed -e '/# am--include-marker/d' "$am_filepart" \
13382 | $MAKE -f - am--depfiles" >&5
13383 (cd "$am_dirpart" \
13384 && sed -e '/# am--include-marker/d' "$am_filepart" \
13385 | $MAKE -f - am--depfiles) >&5 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } || am_rc=$?
13389 done
13390 if test $am_rc -ne 0; then
13391 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13392 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
13393 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13394 for automatic dependency tracking. If GNU make was not used, consider
13395 re-running the configure script with MAKE=\"gmake\" (or whatever is
13396 necessary). You can also try re-running configure with the
13397 '--disable-dependency-tracking' option to at least be able to build
13398 the package (albeit without support for automatic dependency tracking).
13399 See 'config.log' for more details" "$LINENO" 5; }
13400 fi
13401 { am_dirpart=; unset am_dirpart;}
13402 { am_filepart=; unset am_filepart;}
13403 { am_mf=; unset am_mf;}
13404 { am_rc=; unset am_rc;}
13405 rm -f conftest-deps.mk
13406 }
13407 ;;
13408
13409 esac
13410 done # for ac_tag
13411
13412
13413 as_fn_exit 0
13414 _ACEOF
13415 ac_clean_CONFIG_STATUS=
13416
13417 test $ac_write_fail = 0 ||
13418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13419
13420
13421 # configure is writing to config.log, and then calls config.status.
13422 # config.status does its own redirection, appending to config.log.
13423 # Unfortunately, on DOS this fails, as config.log is still kept open
13424 # by configure, so config.status won't be able to write to it; its
13425 # output is simply discarded. So we exec the FD to /dev/null,
13426 # effectively closing config.log, so it can be properly (re)opened and
13427 # appended to by config.status. When coming back to configure, we
13428 # need to make the FD available again.
13429 if test "$no_create" != yes; then
13430 ac_cs_success=:
13431 case $CONFIG_STATUS in #(
13432 -*) :
13433 ac_no_opts=-- ;; #(
13434 *) :
13435 ac_no_opts= ;;
13436 esac
13437 ac_config_status_args=
13438 test "$silent" = yes &&
13439 ac_config_status_args="$ac_config_status_args --quiet"
13440 exec 5>/dev/null
13441 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
13442 ac_cs_success=false
13443 exec 5>>config.log
13444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13445 # would make configure fail if this is the last instruction.
13446 $ac_cs_success || as_fn_exit 1
13447 fi
13448 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13450 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13451 fi
13452
13453
13454