Debian Codegraph @

xgamma/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xgamma 1.0.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] and
271 $0: https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xgamma'
614 PACKAGE_TARNAME='xgamma'
615 PACKAGE_VERSION='1.0.7'
616 PACKAGE_STRING='xgamma 1.0.7'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 XGAMMA_LIBS
658 XGAMMA_CFLAGS
659 MAN_SUBSTS
660 XORG_MAN_PAGE
661 ADMIN_MAN_DIR
662 DRIVER_MAN_DIR
663 MISC_MAN_DIR
664 FILE_MAN_DIR
665 LIB_MAN_DIR
666 APP_MAN_DIR
667 ADMIN_MAN_SUFFIX
668 DRIVER_MAN_SUFFIX
669 MISC_MAN_SUFFIX
670 FILE_MAN_SUFFIX
671 LIB_MAN_SUFFIX
672 APP_MAN_SUFFIX
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 INSTALL_CMD
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 CHANGELOG_CMD
687 STRICT_CFLAGS
688 CWARNFLAGS
689 BASE_CFLAGS
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 CSCOPE
711 ETAGS
712 CTAGS
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_dependency_tracking
781 enable_selective_werror
782 enable_strict_compilation
783 '
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 PKG_CONFIG
793 PKG_CONFIG_PATH
794 PKG_CONFIG_LIBDIR
795 XGAMMA_CFLAGS
796 XGAMMA_LIBS'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 runstatedir='${localstatedir}/run'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: \`$ac_useropt'"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: \`$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -runstatedir | --runstatedir | --runstatedi | --runstated \
1087 | --runstate | --runstat | --runsta | --runst | --runs \
1088 | --run | --ru | --r)
1089 ac_prev=runstatedir ;;
1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092 | --run=* | --ru=* | --r=*)
1093 runstatedir=$ac_optarg ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: \`$ac_useropt'"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1155
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: \`$ac_useropt'"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1189
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1192 ;;
1193
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1203
1204 *)
1205 # FIXME: should be removed in autoconf 3.0.
1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 ;;
1211
1212 esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir runstatedir
1233 do
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 printf "%s\n" X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures xgamma 1.0.7 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/xgamma]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of xgamma 1.0.7:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --disable-selective-werror
1431 Turn off selective compiler errors. (default:
1432 enabled)
1433 --enable-strict-compilation
1434 Enable all warnings from compiler and make them
1435 errors (default: disabled)
1436
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 PKG_CONFIG path to pkg-config utility
1446 PKG_CONFIG_PATH
1447 directories to add to pkg-config's search path
1448 PKG_CONFIG_LIBDIR
1449 path overriding pkg-config's built-in search path
1450 XGAMMA_CFLAGS
1451 C compiler flags for XGAMMA, overriding pkg-config
1452 XGAMMA_LIBS linker flags for XGAMMA, overriding pkg-config
1453
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1456
1457 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>.
1458 _ACEOF
1459 ac_status=$?
1460 fi
1461
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *)
1473 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1485
1486 case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for configure.gnu first; this name is used for a wrapper for
1504 # Metaconfig's "Configure" on case-insensitive file systems.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 xgamma configure 1.0.7
1522 generated by GNU Autoconf 2.71
1523
1524 Copyright (C) 2021 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext conftest.beam
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 printf "%s\n" "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext
1561 then :
1562 ac_retval=0
1563 else $as_nop
1564 printf "%s\n" "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1575 # ------------------------------------------------------------------
1576 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1577 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1578 ac_fn_check_decl ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 as_decl_name=`echo $2|sed 's/ *(.*//'`
1582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1583 printf %s "checking whether $as_decl_name is declared... " >&6; }
1584 if eval test \${$3+y}
1585 then :
1586 printf %s "(cached) " >&6
1587 else $as_nop
1588 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1589 eval ac_save_FLAGS=\$$6
1590 as_fn_append $6 " $5"
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1593 $4
1594 int
1595 main (void)
1596 {
1597 #ifndef $as_decl_name
1598 #ifdef __cplusplus
1599 (void) $as_decl_use;
1600 #else
1601 (void) $as_decl_name;
1602 #endif
1603 #endif
1604
1605 ;
1606 return 0;
1607 }
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"
1610 then :
1611 eval "$3=yes"
1612 else $as_nop
1613 eval "$3=no"
1614 fi
1615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1616 eval $6=\$ac_save_FLAGS
1617
1618 fi
1619 eval ac_res=\$$3
1620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 printf "%s\n" "$ac_res" >&6; }
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623
1624 } # ac_fn_check_decl
1625
1626 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists and can be compiled using the include files in
1629 # INCLUDES, setting the cache variable VAR accordingly.
1630 ac_fn_c_check_header_compile ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 printf %s "checking for $2... " >&6; }
1635 if eval test \${$3+y}
1636 then :
1637 printf %s "(cached) " >&6
1638 else $as_nop
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"
1645 then :
1646 eval "$3=yes"
1647 else $as_nop
1648 eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 printf "%s\n" "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 printf "%s\n" "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1687 }
1688 then :
1689 ac_retval=0
1690 else $as_nop
1691 printf "%s\n" "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_link
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 printf %s "checking for $2... " >&6; }
1714 if eval test \${$3+y}
1715 then :
1716 printf %s "(cached) " >&6
1717 else $as_nop
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1722 #define $2 innocuous_$2
1723
1724 /* System header to define __stub macros and hopefully few prototypes,
1725 which can conflict with char $2 (); below. */
1726
1727 #include <limits.h>
1728 #undef $2
1729
1730 /* Override any GCC internal prototype to avoid an error.
1731 Use char because int might match the return type of a GCC
1732 builtin and then its argument prototype would still apply. */
1733 #ifdef __cplusplus
1734 extern "C"
1735 #endif
1736 char $2 ();
1737 /* The GNU C library defines this for functions which it implements
1738 to always fail with ENOSYS. Some functions are actually named
1739 something starting with __ and the normal name is an alias. */
1740 #if defined __stub_$2 || defined __stub___$2
1741 choke me
1742 #endif
1743
1744 int
1745 main (void)
1746 {
1747 return $2 ();
1748 ;
1749 return 0;
1750 }
1751 _ACEOF
1752 if ac_fn_c_try_link "$LINENO"
1753 then :
1754 eval "$3=yes"
1755 else $as_nop
1756 eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1759 conftest$ac_exeext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 printf "%s\n" "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_func
1767 ac_configure_args_raw=
1768 for ac_arg
1769 do
1770 case $ac_arg in
1771 *\'*)
1772 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 as_fn_append ac_configure_args_raw " '$ac_arg'"
1775 done
1776
1777 case $ac_configure_args_raw in
1778 *$as_nl*)
1779 ac_safe_unquote= ;;
1780 *)
1781 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1782 ac_unsafe_a="$ac_unsafe_z#~"
1783 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1784 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1785 esac
1786
1787 cat >config.log <<_ACEOF
1788 This file contains any messages produced by compilers while
1789 running configure, to aid debugging if configure makes a mistake.
1790
1791 It was created by xgamma $as_me 1.0.7, which was
1792 generated by GNU Autoconf 2.71. Invocation command line was
1793
1794 $ $0$ac_configure_args_raw
1795
1796 _ACEOF
1797 exec 5>>config.log
1798 {
1799 cat <<_ASUNAME
1800 ## --------- ##
1801 ## Platform. ##
1802 ## --------- ##
1803
1804 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1805 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1806 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1807 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1808 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1809
1810 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1811 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1812
1813 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1814 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1815 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1816 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1817 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1818 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1819 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1820
1821 _ASUNAME
1822
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1825 do
1826 IFS=$as_save_IFS
1827 case $as_dir in #(((
1828 '') as_dir=./ ;;
1829 */) ;;
1830 *) as_dir=$as_dir/ ;;
1831 esac
1832 printf "%s\n" "PATH: $as_dir"
1833 done
1834 IFS=$as_save_IFS
1835
1836 } >&5
1837
1838 cat >&5 <<_ACEOF
1839
1840
1841 ## ----------- ##
1842 ## Core tests. ##
1843 ## ----------- ##
1844
1845 _ACEOF
1846
1847
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_configure_args=
1854 ac_configure_args0=
1855 ac_configure_args1=
1856 ac_must_keep_next=false
1857 for ac_pass in 1 2
1858 do
1859 for ac_arg
1860 do
1861 case $ac_arg in
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1865 continue ;;
1866 *\'*)
1867 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 esac
1869 case $ac_pass in
1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871 2)
1872 as_fn_append ac_configure_args1 " '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1875 else
1876 case $ac_arg in
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883 esac
1884 ;;
1885 -* ) ac_must_keep_next=true ;;
1886 esac
1887 fi
1888 as_fn_append ac_configure_args " '$ac_arg'"
1889 ;;
1890 esac
1891 done
1892 done
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1895
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log. We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902 # Sanitize IFS.
1903 IFS=" "" $as_nl"
1904 # Save into config.log some information that might help in debugging.
1905 {
1906 echo
1907
1908 printf "%s\n" "## ---------------- ##
1909 ## Cache variables. ##
1910 ## ---------------- ##"
1911 echo
1912 # The following way of writing the cache mishandles newlines in values,
1913 (
1914 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1915 eval ac_val=\$$ac_var
1916 case $ac_val in #(
1917 *${as_nl}*)
1918 case $ac_var in #(
1919 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1920 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921 esac
1922 case $ac_var in #(
1923 _ | IFS | as_nl) ;; #(
1924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1925 *) { eval $ac_var=; unset $ac_var;} ;;
1926 esac ;;
1927 esac
1928 done
1929 (set) 2>&1 |
1930 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1931 *${as_nl}ac_space=\ *)
1932 sed -n \
1933 "s/'\''/'\''\\\\'\'''\''/g;
1934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935 ;; #(
1936 *)
1937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938 ;;
1939 esac |
1940 sort
1941 )
1942 echo
1943
1944 printf "%s\n" "## ----------------- ##
1945 ## Output variables. ##
1946 ## ----------------- ##"
1947 echo
1948 for ac_var in $ac_subst_vars
1949 do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in
1952 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 esac
1954 printf "%s\n" "$ac_var='\''$ac_val'\''"
1955 done | sort
1956 echo
1957
1958 if test -n "$ac_subst_files"; then
1959 printf "%s\n" "## ------------------- ##
1960 ## File substitutions. ##
1961 ## ------------------- ##"
1962 echo
1963 for ac_var in $ac_subst_files
1964 do
1965 eval ac_val=\$$ac_var
1966 case $ac_val in
1967 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968 esac
1969 printf "%s\n" "$ac_var='\''$ac_val'\''"
1970 done | sort
1971 echo
1972 fi
1973
1974 if test -s confdefs.h; then
1975 printf "%s\n" "## ----------- ##
1976 ## confdefs.h. ##
1977 ## ----------- ##"
1978 echo
1979 cat confdefs.h
1980 echo
1981 fi
1982 test "$ac_signal" != 0 &&
1983 printf "%s\n" "$as_me: caught signal $ac_signal"
1984 printf "%s\n" "$as_me: exit $exit_status"
1985 } >&5
1986 rm -f core *.core core.conftest.* &&
1987 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988 exit $exit_status
1989 ' 0
1990 for ac_signal in 1 2 13 15; do
1991 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992 done
1993 ac_signal=0
1994
1995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1996 rm -f -r conftest* confdefs.h
1997
1998 printf "%s\n" "/* confdefs.h */" > confdefs.h
1999
2000 # Predefined preprocessor variables.
2001
2002 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2003
2004 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2005
2006 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2007
2008 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2009
2010 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2011
2012 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2013
2014
2015 # Let the site file select an alternate cache file if it wants to.
2016 # Prefer an explicitly selected file to automatically selected ones.
2017 if test -n "$CONFIG_SITE"; then
2018 ac_site_files="$CONFIG_SITE"
2019 elif test "x$prefix" != xNONE; then
2020 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2021 else
2022 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2023 fi
2024
2025 for ac_site_file in $ac_site_files
2026 do
2027 case $ac_site_file in #(
2028 */*) :
2029 ;; #(
2030 *) :
2031 ac_site_file=./$ac_site_file ;;
2032 esac
2033 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2036 sed 's/^/| /' "$ac_site_file" >&5
2037 . "$ac_site_file" \
2038 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2040 as_fn_error $? "failed to load site script $ac_site_file
2041 See \`config.log' for more details" "$LINENO" 5; }
2042 fi
2043 done
2044
2045 if test -r "$cache_file"; then
2046 # Some versions of bash will fail to source /dev/null (special files
2047 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2048 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2051 case $cache_file in
2052 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053 *) . "./$cache_file";;
2054 esac
2055 fi
2056 else
2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2059 >$cache_file
2060 fi
2061
2062 # Test code for whether the C compiler supports C89 (global declarations)
2063 ac_c_conftest_c89_globals='
2064 /* Does the compiler advertise C89 conformance?
2065 Do not test the value of __STDC__, because some compilers set it to 0
2066 while being otherwise adequately conformant. */
2067 #if !defined __STDC__
2068 # error "Compiler does not advertise C89 conformance"
2069 #endif
2070
2071 #include <stddef.h>
2072 #include <stdarg.h>
2073 struct stat;
2074 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2075 struct buf { int x; };
2076 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2077 static char *e (p, i)
2078 char **p;
2079 int i;
2080 {
2081 return p[i];
2082 }
2083 static char *f (char * (*g) (char **, int), char **p, ...)
2084 {
2085 char *s;
2086 va_list v;
2087 va_start (v,p);
2088 s = g (p, va_arg (v,int));
2089 va_end (v);
2090 return s;
2091 }
2092
2093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2094 function prototypes and stuff, but not \xHH hex character constants.
2095 These do not provoke an error unfortunately, instead are silently treated
2096 as an "x". The following induces an error, until -std is added to get
2097 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2098 array size at least. It is necessary to write \x00 == 0 to get something
2099 that is true only with -std. */
2100 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2101
2102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2103 inside strings and character constants. */
2104 #define FOO(x) '\''x'\''
2105 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2106
2107 int test (int i, double x);
2108 struct s1 {int (*f) (int a);};
2109 struct s2 {int (*f) (double a);};
2110 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2111 int, int);'
2112
2113 # Test code for whether the C compiler supports C89 (body of main).
2114 ac_c_conftest_c89_main='
2115 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2116 '
2117
2118 # Test code for whether the C compiler supports C99 (global declarations)
2119 ac_c_conftest_c99_globals='
2120 // Does the compiler advertise C99 conformance?
2121 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2122 # error "Compiler does not advertise C99 conformance"
2123 #endif
2124
2125 #include <stdbool.h>
2126 extern int puts (const char *);
2127 extern int printf (const char *, ...);
2128 extern int dprintf (int, const char *, ...);
2129 extern void *malloc (size_t);
2130
2131 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2132 // dprintf is used instead of fprintf to avoid needing to declare
2133 // FILE and stderr.
2134 #define debug(...) dprintf (2, __VA_ARGS__)
2135 #define showlist(...) puts (#__VA_ARGS__)
2136 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2137 static void
2138 test_varargs_macros (void)
2139 {
2140 int x = 1234;
2141 int y = 5678;
2142 debug ("Flag");
2143 debug ("X = %d\n", x);
2144 showlist (The first, second, and third items.);
2145 report (x>y, "x is %d but y is %d", x, y);
2146 }
2147
2148 // Check long long types.
2149 #define BIG64 18446744073709551615ull
2150 #define BIG32 4294967295ul
2151 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2152 #if !BIG_OK
2153 #error "your preprocessor is broken"
2154 #endif
2155 #if BIG_OK
2156 #else
2157 #error "your preprocessor is broken"
2158 #endif
2159 static long long int bignum = -9223372036854775807LL;
2160 static unsigned long long int ubignum = BIG64;
2161
2162 struct incomplete_array
2163 {
2164 int datasize;
2165 double data[];
2166 };
2167
2168 struct named_init {
2169 int number;
2170 const wchar_t *name;
2171 double average;
2172 };
2173
2174 typedef const char *ccp;
2175
2176 static inline int
2177 test_restrict (ccp restrict text)
2178 {
2179 // See if C++-style comments work.
2180 // Iterate through items via the restricted pointer.
2181 // Also check for declarations in for loops.
2182 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2183 continue;
2184 return 0;
2185 }
2186
2187 // Check varargs and va_copy.
2188 static bool
2189 test_varargs (const char *format, ...)
2190 {
2191 va_list args;
2192 va_start (args, format);
2193 va_list args_copy;
2194 va_copy (args_copy, args);
2195
2196 const char *str = "";
2197 int number = 0;
2198 float fnumber = 0;
2199
2200 while (*format)
2201 {
2202 switch (*format++)
2203 {
2204 case '\''s'\'': // string
2205 str = va_arg (args_copy, const char *);
2206 break;
2207 case '\''d'\'': // int
2208 number = va_arg (args_copy, int);
2209 break;
2210 case '\''f'\'': // float
2211 fnumber = va_arg (args_copy, double);
2212 break;
2213 default:
2214 break;
2215 }
2216 }
2217 va_end (args_copy);
2218 va_end (args);
2219
2220 return *str && number && fnumber;
2221 }
2222 '
2223
2224 # Test code for whether the C compiler supports C99 (body of main).
2225 ac_c_conftest_c99_main='
2226 // Check bool.
2227 _Bool success = false;
2228 success |= (argc != 0);
2229
2230 // Check restrict.
2231 if (test_restrict ("String literal") == 0)
2232 success = true;
2233 char *restrict newvar = "Another string";
2234
2235 // Check varargs.
2236 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2237 test_varargs_macros ();
2238
2239 // Check flexible array members.
2240 struct incomplete_array *ia =
2241 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2242 ia->datasize = 10;
2243 for (int i = 0; i < ia->datasize; ++i)
2244 ia->data[i] = i * 1.234;
2245
2246 // Check named initializers.
2247 struct named_init ni = {
2248 .number = 34,
2249 .name = L"Test wide string",
2250 .average = 543.34343,
2251 };
2252
2253 ni.number = 58;
2254
2255 int dynamic_array[ni.number];
2256 dynamic_array[0] = argv[0][0];
2257 dynamic_array[ni.number - 1] = 543;
2258
2259 // work around unused variable warnings
2260 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2261 || dynamic_array[ni.number - 1] != 543);
2262 '
2263
2264 # Test code for whether the C compiler supports C11 (global declarations)
2265 ac_c_conftest_c11_globals='
2266 // Does the compiler advertise C11 conformance?
2267 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2268 # error "Compiler does not advertise C11 conformance"
2269 #endif
2270
2271 // Check _Alignas.
2272 char _Alignas (double) aligned_as_double;
2273 char _Alignas (0) no_special_alignment;
2274 extern char aligned_as_int;
2275 char _Alignas (0) _Alignas (int) aligned_as_int;
2276
2277 // Check _Alignof.
2278 enum
2279 {
2280 int_alignment = _Alignof (int),
2281 int_array_alignment = _Alignof (int[100]),
2282 char_alignment = _Alignof (char)
2283 };
2284 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2285
2286 // Check _Noreturn.
2287 int _Noreturn does_not_return (void) { for (;;) continue; }
2288
2289 // Check _Static_assert.
2290 struct test_static_assert
2291 {
2292 int x;
2293 _Static_assert (sizeof (int) <= sizeof (long int),
2294 "_Static_assert does not work in struct");
2295 long int y;
2296 };
2297
2298 // Check UTF-8 literals.
2299 #define u8 syntax error!
2300 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2301
2302 // Check duplicate typedefs.
2303 typedef long *long_ptr;
2304 typedef long int *long_ptr;
2305 typedef long_ptr long_ptr;
2306
2307 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2308 struct anonymous
2309 {
2310 union {
2311 struct { int i; int j; };
2312 struct { int k; long int l; } w;
2313 };
2314 int m;
2315 } v1;
2316 '
2317
2318 # Test code for whether the C compiler supports C11 (body of main).
2319 ac_c_conftest_c11_main='
2320 _Static_assert ((offsetof (struct anonymous, i)
2321 == offsetof (struct anonymous, w.k)),
2322 "Anonymous union alignment botch");
2323 v1.i = 2;
2324 v1.w.k = 5;
2325 ok |= v1.i != 5;
2326 '
2327
2328 # Test code for whether the C compiler supports C11 (complete).
2329 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2330 ${ac_c_conftest_c99_globals}
2331 ${ac_c_conftest_c11_globals}
2332
2333 int
2334 main (int argc, char **argv)
2335 {
2336 int ok = 0;
2337 ${ac_c_conftest_c89_main}
2338 ${ac_c_conftest_c99_main}
2339 ${ac_c_conftest_c11_main}
2340 return ok;
2341 }
2342 "
2343
2344 # Test code for whether the C compiler supports C99 (complete).
2345 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2346 ${ac_c_conftest_c99_globals}
2347
2348 int
2349 main (int argc, char **argv)
2350 {
2351 int ok = 0;
2352 ${ac_c_conftest_c89_main}
2353 ${ac_c_conftest_c99_main}
2354 return ok;
2355 }
2356 "
2357
2358 # Test code for whether the C compiler supports C89 (complete).
2359 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2360
2361 int
2362 main (int argc, char **argv)
2363 {
2364 int ok = 0;
2365 ${ac_c_conftest_c89_main}
2366 return ok;
2367 }
2368 "
2369
2370 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2371 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2372 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2373 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2374 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2375 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2376 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2377 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2378 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2379
2380 # Auxiliary files required by this configure script.
2381 ac_aux_files="config.guess config.sub compile missing install-sh"
2382
2383 # Locations in which to look for auxiliary files.
2384 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2385
2386 # Search for a directory containing all of the required auxiliary files,
2387 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2388 # If we don't find one directory that contains all the files we need,
2389 # we report the set of missing files from the *first* directory in
2390 # $ac_aux_dir_candidates and give up.
2391 ac_missing_aux_files=""
2392 ac_first_candidate=:
2393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 as_found=false
2396 for as_dir in $ac_aux_dir_candidates
2397 do
2398 IFS=$as_save_IFS
2399 case $as_dir in #(((
2400 '') as_dir=./ ;;
2401 */) ;;
2402 *) as_dir=$as_dir/ ;;
2403 esac
2404 as_found=:
2405
2406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2407 ac_aux_dir_found=yes
2408 ac_install_sh=
2409 for ac_aux in $ac_aux_files
2410 do
2411 # As a special case, if "install-sh" is required, that requirement
2412 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2413 # and $ac_install_sh is set appropriately for whichever one is found.
2414 if test x"$ac_aux" = x"install-sh"
2415 then
2416 if test -f "${as_dir}install-sh"; then
2417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2418 ac_install_sh="${as_dir}install-sh -c"
2419 elif test -f "${as_dir}install.sh"; then
2420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2421 ac_install_sh="${as_dir}install.sh -c"
2422 elif test -f "${as_dir}shtool"; then
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2424 ac_install_sh="${as_dir}shtool install -c"
2425 else
2426 ac_aux_dir_found=no
2427 if $ac_first_candidate; then
2428 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2429 else
2430 break
2431 fi
2432 fi
2433 else
2434 if test -f "${as_dir}${ac_aux}"; then
2435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2436 else
2437 ac_aux_dir_found=no
2438 if $ac_first_candidate; then
2439 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2440 else
2441 break
2442 fi
2443 fi
2444 fi
2445 done
2446 if test "$ac_aux_dir_found" = yes; then
2447 ac_aux_dir="$as_dir"
2448 break
2449 fi
2450 ac_first_candidate=false
2451
2452 as_found=false
2453 done
2454 IFS=$as_save_IFS
2455 if $as_found
2456 then :
2457
2458 else $as_nop
2459 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2460 fi
2461
2462
2463 # These three variables are undocumented and unsupported,
2464 # and are intended to be withdrawn in a future Autoconf release.
2465 # They can cause serious problems if a builder's source tree is in a directory
2466 # whose full name contains unusual characters.
2467 if test -f "${ac_aux_dir}config.guess"; then
2468 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2469 fi
2470 if test -f "${ac_aux_dir}config.sub"; then
2471 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2472 fi
2473 if test -f "$ac_aux_dir/configure"; then
2474 ac_configure="$SHELL ${ac_aux_dir}configure"
2475 fi
2476
2477 # Check that the precious variables saved in the cache have kept the same
2478 # value.
2479 ac_cache_corrupted=false
2480 for ac_var in $ac_precious_vars; do
2481 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2482 eval ac_new_set=\$ac_env_${ac_var}_set
2483 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2484 eval ac_new_val=\$ac_env_${ac_var}_value
2485 case $ac_old_set,$ac_new_set in
2486 set,)
2487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2488 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,set)
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2492 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2493 ac_cache_corrupted=: ;;
2494 ,);;
2495 *)
2496 if test "x$ac_old_val" != "x$ac_new_val"; then
2497 # differences in whitespace do not lead to failure.
2498 ac_old_val_w=`echo x $ac_old_val`
2499 ac_new_val_w=`echo x $ac_new_val`
2500 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2502 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2503 ac_cache_corrupted=:
2504 else
2505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2506 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2507 eval $ac_var=\$ac_old_val
2508 fi
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2510 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2512 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2513 fi;;
2514 esac
2515 # Pass precious variables to config.status.
2516 if test "$ac_new_set" = set; then
2517 case $ac_new_val in
2518 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2519 *) ac_arg=$ac_var=$ac_new_val ;;
2520 esac
2521 case " $ac_configure_args " in
2522 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2523 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2524 esac
2525 fi
2526 done
2527 if $ac_cache_corrupted; then
2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2529 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2531 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2532 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2533 and start over" "$LINENO" 5
2534 fi
2535 ## -------------------- ##
2536 ## Main body of script. ##
2537 ## -------------------- ##
2538
2539 ac_ext=c
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544
2545
2546
2547 ac_config_headers="$ac_config_headers config.h"
2548
2549
2550 # Initialize Automake
2551 am__api_version='1.16'
2552
2553
2554
2555 # Find a good install program. We prefer a C program (faster),
2556 # so one script is as good as another. But avoid the broken or
2557 # incompatible versions:
2558 # SysV /etc/install, /usr/sbin/install
2559 # SunOS /usr/etc/install
2560 # IRIX /sbin/install
2561 # AIX /bin/install
2562 # AmigaOS /C/install, which installs bootblocks on floppy discs
2563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2566 # OS/2's system install, which has a completely different semantic
2567 # ./install, which can be erroneously created by make from ./install.sh.
2568 # Reject install programs that cannot install multiple files.
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2570 printf %s "checking for a BSD-compatible install... " >&6; }
2571 if test -z "$INSTALL"; then
2572 if test ${ac_cv_path_install+y}
2573 then :
2574 printf %s "(cached) " >&6
2575 else $as_nop
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579 IFS=$as_save_IFS
2580 case $as_dir in #(((
2581 '') as_dir=./ ;;
2582 */) ;;
2583 *) as_dir=$as_dir/ ;;
2584 esac
2585 # Account for fact that we put trailing slashes in our PATH walk.
2586 case $as_dir in #((
2587 ./ | /[cC]/* | \
2588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2589 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2590 /usr/ucb/* ) ;;
2591 *)
2592 # OSF1 and SCO ODT 3.0 have their own names for install.
2593 # Don't use installbsd from OSF since it installs stuff as root
2594 # by default.
2595 for ac_prog in ginstall scoinst install; do
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2598 if test $ac_prog = install &&
2599 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600 # AIX install. It has an incompatible calling convention.
2601 :
2602 elif test $ac_prog = install &&
2603 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604 # program-specific install script used by HP pwplus--don't use.
2605 :
2606 else
2607 rm -rf conftest.one conftest.two conftest.dir
2608 echo one > conftest.one
2609 echo two > conftest.two
2610 mkdir conftest.dir
2611 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2612 test -s conftest.one && test -s conftest.two &&
2613 test -s conftest.dir/conftest.one &&
2614 test -s conftest.dir/conftest.two
2615 then
2616 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2617 break 3
2618 fi
2619 fi
2620 fi
2621 done
2622 done
2623 ;;
2624 esac
2625
2626 done
2627 IFS=$as_save_IFS
2628
2629 rm -rf conftest.one conftest.two conftest.dir
2630
2631 fi
2632 if test ${ac_cv_path_install+y}; then
2633 INSTALL=$ac_cv_path_install
2634 else
2635 # As a last resort, use the slow shell script. Don't cache a
2636 # value for INSTALL within a source directory, because that will
2637 # break other packages using the cache if that directory is
2638 # removed, or if the value is a relative name.
2639 INSTALL=$ac_install_sh
2640 fi
2641 fi
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2643 printf "%s\n" "$INSTALL" >&6; }
2644
2645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2646 # It thinks the first close brace ends the variable substitution.
2647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2648
2649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2650
2651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2652
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2654 printf %s "checking whether build environment is sane... " >&6; }
2655 # Reject unsafe characters in $srcdir or the absolute working directory
2656 # name. Accept space and tab only in the latter.
2657 am_lf='
2658 '
2659 case `pwd` in
2660 *[\\\"\#\$\&\'\`$am_lf]*)
2661 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2662 esac
2663 case $srcdir in
2664 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2665 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2666 esac
2667
2668 # Do 'set' in a subshell so we don't clobber the current shell's
2669 # arguments. Must try -L first in case configure is actually a
2670 # symlink; some systems play weird games with the mod time of symlinks
2671 # (eg FreeBSD returns the mod time of the symlink's containing
2672 # directory).
2673 if (
2674 am_has_slept=no
2675 for am_try in 1 2; do
2676 echo "timestamp, slept: $am_has_slept" > conftest.file
2677 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2678 if test "$*" = "X"; then
2679 # -L didn't work.
2680 set X `ls -t "$srcdir/configure" conftest.file`
2681 fi
2682 if test "$*" != "X $srcdir/configure conftest.file" \
2683 && test "$*" != "X conftest.file $srcdir/configure"; then
2684
2685 # If neither matched, then we have a broken ls. This can happen
2686 # if, for instance, CONFIG_SHELL is bash and it inherits a
2687 # broken ls alias from the environment. This has actually
2688 # happened. Such a system could not be considered "sane".
2689 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2690 alias in your environment" "$LINENO" 5
2691 fi
2692 if test "$2" = conftest.file || test $am_try -eq 2; then
2693 break
2694 fi
2695 # Just in case.
2696 sleep 1
2697 am_has_slept=yes
2698 done
2699 test "$2" = conftest.file
2700 )
2701 then
2702 # Ok.
2703 :
2704 else
2705 as_fn_error $? "newly created file is older than distributed files!
2706 Check your system clock" "$LINENO" 5
2707 fi
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2709 printf "%s\n" "yes" >&6; }
2710 # If we didn't sleep, we still need to ensure time stamps of config.status and
2711 # generated files are strictly newer.
2712 am_sleep_pid=
2713 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2714 ( sleep 1 ) &
2715 am_sleep_pid=$!
2716 fi
2717
2718 rm -f conftest.file
2719
2720 test "$program_prefix" != NONE &&
2721 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2722 # Use a double $ so make ignores it.
2723 test "$program_suffix" != NONE &&
2724 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2725 # Double any \ or $.
2726 # By default was `s,x,x', remove it if useless.
2727 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2728 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2729
2730
2731 # Expand $ac_aux_dir to an absolute path.
2732 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2733
2734
2735 if test x"${MISSING+set}" != xset; then
2736 MISSING="\${SHELL} '$am_aux_dir/missing'"
2737 fi
2738 # Use eval to expand $SHELL
2739 if eval "$MISSING --is-lightweight"; then
2740 am_missing_run="$MISSING "
2741 else
2742 am_missing_run=
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2744 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2745 fi
2746
2747 if test x"${install_sh+set}" != xset; then
2748 case $am_aux_dir in
2749 *\ * | *\ *)
2750 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2751 *)
2752 install_sh="\${SHELL} $am_aux_dir/install-sh"
2753 esac
2754 fi
2755
2756 # Installed binaries are usually stripped using 'strip' when the user
2757 # run "make install-strip". However 'strip' might not be the right
2758 # tool to use in cross-compilation environments, therefore Automake
2759 # will honor the 'STRIP' environment variable to overrule this program.
2760 if test "$cross_compiling" != no; then
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}strip; ac_word=$2
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 printf %s "checking for $ac_word... " >&6; }
2766 if test ${ac_cv_prog_STRIP+y}
2767 then :
2768 printf %s "(cached) " >&6
2769 else $as_nop
2770 if test -n "$STRIP"; then
2771 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776 IFS=$as_save_IFS
2777 case $as_dir in #(((
2778 '') as_dir=./ ;;
2779 */) ;;
2780 *) as_dir=$as_dir/ ;;
2781 esac
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 STRIP=$ac_cv_prog_STRIP
2795 if test -n "$STRIP"; then
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797 printf "%s\n" "$STRIP" >&6; }
2798 else
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 printf "%s\n" "no" >&6; }
2801 fi
2802
2803
2804 fi
2805 if test -z "$ac_cv_prog_STRIP"; then
2806 ac_ct_STRIP=$STRIP
2807 # Extract the first word of "strip", so it can be a program name with args.
2808 set dummy strip; ac_word=$2
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 printf %s "checking for $ac_word... " >&6; }
2811 if test ${ac_cv_prog_ac_ct_STRIP+y}
2812 then :
2813 printf %s "(cached) " >&6
2814 else $as_nop
2815 if test -n "$ac_ct_STRIP"; then
2816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 case $as_dir in #(((
2823 '') as_dir=./ ;;
2824 */) ;;
2825 *) as_dir=$as_dir/ ;;
2826 esac
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_STRIP="strip"
2830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2840 if test -n "$ac_ct_STRIP"; then
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2842 printf "%s\n" "$ac_ct_STRIP" >&6; }
2843 else
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 printf "%s\n" "no" >&6; }
2846 fi
2847
2848 if test "x$ac_ct_STRIP" = x; then
2849 STRIP=":"
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852 yes:)
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855 ac_tool_warned=yes ;;
2856 esac
2857 STRIP=$ac_ct_STRIP
2858 fi
2859 else
2860 STRIP="$ac_cv_prog_STRIP"
2861 fi
2862
2863 fi
2864 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2865
2866
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2868 printf %s "checking for a race-free mkdir -p... " >&6; }
2869 if test -z "$MKDIR_P"; then
2870 if test ${ac_cv_path_mkdir+y}
2871 then :
2872 printf %s "(cached) " >&6
2873 else $as_nop
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876 do
2877 IFS=$as_save_IFS
2878 case $as_dir in #(((
2879 '') as_dir=./ ;;
2880 */) ;;
2881 *) as_dir=$as_dir/ ;;
2882 esac
2883 for ac_prog in mkdir gmkdir; do
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2886 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887 'mkdir ('*'coreutils) '* | \
2888 'BusyBox '* | \
2889 'mkdir (fileutils) '4.1*)
2890 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2891 break 3;;
2892 esac
2893 done
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899
2900 test -d ./--version && rmdir ./--version
2901 if test ${ac_cv_path_mkdir+y}; then
2902 MKDIR_P="$ac_cv_path_mkdir -p"
2903 else
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for MKDIR_P within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 MKDIR_P="$ac_install_sh -d"
2909 fi
2910 fi
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912 printf "%s\n" "$MKDIR_P" >&6; }
2913
2914 for ac_prog in gawk mawk nawk awk
2915 do
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 printf %s "checking for $ac_word... " >&6; }
2920 if test ${ac_cv_prog_AWK+y}
2921 then :
2922 printf %s "(cached) " >&6
2923 else $as_nop
2924 if test -n "$AWK"; then
2925 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 case $as_dir in #(((
2932 '') as_dir=./ ;;
2933 */) ;;
2934 *) as_dir=$as_dir/ ;;
2935 esac
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_AWK="$ac_prog"
2939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 AWK=$ac_cv_prog_AWK
2949 if test -n "$AWK"; then
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2951 printf "%s\n" "$AWK" >&6; }
2952 else
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 printf "%s\n" "no" >&6; }
2955 fi
2956
2957
2958 test -n "$AWK" && break
2959 done
2960
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2962 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2963 set x ${MAKE-make}
2964 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2965 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2966 then :
2967 printf %s "(cached) " >&6
2968 else $as_nop
2969 cat >conftest.make <<\_ACEOF
2970 SHELL = /bin/sh
2971 all:
2972 @echo '@@@%%%=$(MAKE)=@@@%%%'
2973 _ACEOF
2974 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2975 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2976 *@@@%%%=?*=@@@%%%*)
2977 eval ac_cv_prog_make_${ac_make}_set=yes;;
2978 *)
2979 eval ac_cv_prog_make_${ac_make}_set=no;;
2980 esac
2981 rm -f conftest.make
2982 fi
2983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 printf "%s\n" "yes" >&6; }
2986 SET_MAKE=
2987 else
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 printf "%s\n" "no" >&6; }
2990 SET_MAKE="MAKE=${MAKE-make}"
2991 fi
2992
2993 rm -rf .tst 2>/dev/null
2994 mkdir .tst 2>/dev/null
2995 if test -d .tst; then
2996 am__leading_dot=.
2997 else
2998 am__leading_dot=_
2999 fi
3000 rmdir .tst 2>/dev/null
3001
3002 # Check whether --enable-silent-rules was given.
3003 if test ${enable_silent_rules+y}
3004 then :
3005 enableval=$enable_silent_rules;
3006 fi
3007
3008 case $enable_silent_rules in # (((
3009 yes) AM_DEFAULT_VERBOSITY=0;;
3010 no) AM_DEFAULT_VERBOSITY=1;;
3011 *) AM_DEFAULT_VERBOSITY=1;;
3012 esac
3013 am_make=${MAKE-make}
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3015 printf %s "checking whether $am_make supports nested variables... " >&6; }
3016 if test ${am_cv_make_support_nested_variables+y}
3017 then :
3018 printf %s "(cached) " >&6
3019 else $as_nop
3020 if printf "%s\n" 'TRUE=$(BAR$(V))
3021 BAR0=false
3022 BAR1=true
3023 V=1
3024 am__doit:
3025 @$(TRUE)
3026 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3027 am_cv_make_support_nested_variables=yes
3028 else
3029 am_cv_make_support_nested_variables=no
3030 fi
3031 fi
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3033 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3034 if test $am_cv_make_support_nested_variables = yes; then
3035 AM_V='$(V)'
3036 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3037 else
3038 AM_V=$AM_DEFAULT_VERBOSITY
3039 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3040 fi
3041 AM_BACKSLASH='\'
3042
3043 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3044 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3045 # is not polluted with repeated "-I."
3046 am__isrc=' -I$(srcdir)'
3047 # test to see if srcdir already configured
3048 if test -f $srcdir/config.status; then
3049 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3050 fi
3051 fi
3052
3053 # test whether we have cygpath
3054 if test -z "$CYGPATH_W"; then
3055 if (cygpath --version) >/dev/null 2>/dev/null; then
3056 CYGPATH_W='cygpath -w'
3057 else
3058 CYGPATH_W=echo
3059 fi
3060 fi
3061
3062
3063 # Define the identity of the package.
3064 PACKAGE='xgamma'
3065 VERSION='1.0.7'
3066
3067
3068 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3069
3070
3071 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3072
3073 # Some tools Automake needs.
3074
3075 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3076
3077
3078 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3079
3080
3081 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3082
3083
3084 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3085
3086
3087 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3088
3089 # For better backward compatibility. To be removed once Automake 1.9.x
3090 # dies out for good. For more background, see:
3091 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3092 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3093 mkdir_p='$(MKDIR_P)'
3094
3095 # We need awk for the "check" target (and possibly the TAP driver). The
3096 # system "awk" is bad on some platforms.
3097 # Always define AMTAR for backward compatibility. Yes, it's still used
3098 # in the wild :-( We should find a proper way to deprecate it ...
3099 AMTAR='$${TAR-tar}'
3100
3101
3102 # We'll loop over all known methods to create a tar archive until one works.
3103 _am_tools='gnutar pax cpio none'
3104
3105 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3106
3107
3108
3109
3110
3111 # Variables for tags utilities; see am/tags.am
3112 if test -z "$CTAGS"; then
3113 CTAGS=ctags
3114 fi
3115
3116 if test -z "$ETAGS"; then
3117 ETAGS=etags
3118 fi
3119
3120 if test -z "$CSCOPE"; then
3121 CSCOPE=cscope
3122 fi
3123
3124
3125
3126 # POSIX will say in a future version that running "rm -f" with no argument
3127 # is OK; and we want to be able to make that assumption in our Makefile
3128 # recipes. So use an aggressive probe to check that the usage we want is
3129 # actually supported "in the wild" to an acceptable degree.
3130 # See automake bug#10828.
3131 # To make any issue more visible, cause the running configure to be aborted
3132 # by default if the 'rm' program in use doesn't match our expectations; the
3133 # user can still override this though.
3134 if rm -f && rm -fr && rm -rf; then : OK; else
3135 cat >&2 <<'END'
3136 Oops!
3137
3138 Your 'rm' program seems unable to run without file operands specified
3139 on the command line, even when the '-f' option is present. This is contrary
3140 to the behaviour of most rm programs out there, and not conforming with
3141 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3142
3143 Please tell [email protected] about your system, including the value
3144 of your $PATH and any error possibly output before this message. This
3145 can help us improve future automake versions.
3146
3147 END
3148 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3149 echo 'Configuration will proceed anyway, since you have set the' >&2
3150 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3151 echo >&2
3152 else
3153 cat >&2 <<'END'
3154 Aborting the configuration process, to ensure you take notice of the issue.
3155
3156 You can download and install GNU coreutils to get an 'rm' implementation
3157 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3158
3159 If you want to complete the configuration process using your problematic
3160 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3161 to "yes", and re-run configure.
3162
3163 END
3164 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3165 fi
3166 fi
3167
3168
3169 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190 DEPDIR="${am__leading_dot}deps"
3191
3192 ac_config_commands="$ac_config_commands depfiles"
3193
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3195 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3196 cat > confinc.mk << 'END'
3197 am__doit:
3198 @echo this is the am__doit target >confinc.out
3199 .PHONY: am__doit
3200 END
3201 am__include="#"
3202 am__quote=
3203 # BSD make does it like this.
3204 echo '.include "confinc.mk" # ignored' > confmf.BSD
3205 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3206 echo 'include confinc.mk # ignored' > confmf.GNU
3207 _am_result=no
3208 for s in GNU BSD; do
3209 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3210 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }
3214 case $?:`cat confinc.out 2>/dev/null` in #(
3215 '0:this is the am__doit target') :
3216 case $s in #(
3217 BSD) :
3218 am__include='.include' am__quote='"' ;; #(
3219 *) :
3220 am__include='include' am__quote='' ;;
3221 esac ;; #(
3222 *) :
3223 ;;
3224 esac
3225 if test "$am__include" != "#"; then
3226 _am_result="yes ($s style)"
3227 break
3228 fi
3229 done
3230 rm -f confinc.* confmf.*
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3232 printf "%s\n" "${_am_result}" >&6; }
3233
3234 # Check whether --enable-dependency-tracking was given.
3235 if test ${enable_dependency_tracking+y}
3236 then :
3237 enableval=$enable_dependency_tracking;
3238 fi
3239
3240 if test "x$enable_dependency_tracking" != xno; then
3241 am_depcomp="$ac_aux_dir/depcomp"
3242 AMDEPBACKSLASH='\'
3243 am__nodep='_no'
3244 fi
3245 if test "x$enable_dependency_tracking" != xno; then
3246 AMDEP_TRUE=
3247 AMDEP_FALSE='#'
3248 else
3249 AMDEP_TRUE='#'
3250 AMDEP_FALSE=
3251 fi
3252
3253
3254 ac_ext=c
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 if test -n "$ac_tool_prefix"; then
3260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 printf %s "checking for $ac_word... " >&6; }
3264 if test ${ac_cv_prog_CC+y}
3265 then :
3266 printf %s "(cached) " >&6
3267 else $as_nop
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 case $as_dir in #(((
3276 '') as_dir=./ ;;
3277 */) ;;
3278 *) as_dir=$as_dir/ ;;
3279 esac
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 printf "%s\n" "$CC" >&6; }
3296 else
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 printf "%s\n" "no" >&6; }
3299 fi
3300
3301
3302 fi
3303 if test -z "$ac_cv_prog_CC"; then
3304 ac_ct_CC=$CC
3305 # Extract the first word of "gcc", so it can be a program name with args.
3306 set dummy gcc; ac_word=$2
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 printf %s "checking for $ac_word... " >&6; }
3309 if test ${ac_cv_prog_ac_ct_CC+y}
3310 then :
3311 printf %s "(cached) " >&6
3312 else $as_nop
3313 if test -n "$ac_ct_CC"; then
3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 case $as_dir in #(((
3321 '') as_dir=./ ;;
3322 */) ;;
3323 *) as_dir=$as_dir/ ;;
3324 esac
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 printf "%s\n" "$ac_ct_CC" >&6; }
3341 else
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 printf "%s\n" "no" >&6; }
3344 fi
3345
3346 if test "x$ac_ct_CC" = x; then
3347 CC=""
3348 else
3349 case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3353 ac_tool_warned=yes ;;
3354 esac
3355 CC=$ac_ct_CC
3356 fi
3357 else
3358 CC="$ac_cv_prog_CC"
3359 fi
3360
3361 if test -z "$CC"; then
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}cc; ac_word=$2
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 printf %s "checking for $ac_word... " >&6; }
3367 if test ${ac_cv_prog_CC+y}
3368 then :
3369 printf %s "(cached) " >&6
3370 else $as_nop
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 case $as_dir in #(((
3379 '') as_dir=./ ;;
3380 */) ;;
3381 *) as_dir=$as_dir/ ;;
3382 esac
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_CC="${ac_tool_prefix}cc"
3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 printf "%s\n" "$CC" >&6; }
3399 else
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 printf "%s\n" "no" >&6; }
3402 fi
3403
3404
3405 fi
3406 fi
3407 if test -z "$CC"; then
3408 # Extract the first word of "cc", so it can be a program name with args.
3409 set dummy cc; ac_word=$2
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 printf %s "checking for $ac_word... " >&6; }
3412 if test ${ac_cv_prog_CC+y}
3413 then :
3414 printf %s "(cached) " >&6
3415 else $as_nop
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 else
3419 ac_prog_rejected=no
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 case $as_dir in #(((
3425 '') as_dir=./ ;;
3426 */) ;;
3427 *) as_dir=$as_dir/ ;;
3428 esac
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3431 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3432 ac_prog_rejected=yes
3433 continue
3434 fi
3435 ac_cv_prog_CC="cc"
3436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 if test $ac_prog_rejected = yes; then
3444 # We found a bogon in the path, so make sure we never use it.
3445 set dummy $ac_cv_prog_CC
3446 shift
3447 if test $# != 0; then
3448 # We chose a different compiler from the bogus one.
3449 # However, it has the same basename, so the bogon will be chosen
3450 # first if we set CC to just the basename; use the full file name.
3451 shift
3452 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3453 fi
3454 fi
3455 fi
3456 fi
3457 CC=$ac_cv_prog_CC
3458 if test -n "$CC"; then
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 printf "%s\n" "$CC" >&6; }
3461 else
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 printf "%s\n" "no" >&6; }
3464 fi
3465
3466
3467 fi
3468 if test -z "$CC"; then
3469 if test -n "$ac_tool_prefix"; then
3470 for ac_prog in cl.exe
3471 do
3472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 printf %s "checking for $ac_word... " >&6; }
3476 if test ${ac_cv_prog_CC+y}
3477 then :
3478 printf %s "(cached) " >&6
3479 else $as_nop
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 case $as_dir in #(((
3488 '') as_dir=./ ;;
3489 */) ;;
3490 *) as_dir=$as_dir/ ;;
3491 esac
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 printf "%s\n" "$CC" >&6; }
3508 else
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 printf "%s\n" "no" >&6; }
3511 fi
3512
3513
3514 test -n "$CC" && break
3515 done
3516 fi
3517 if test -z "$CC"; then
3518 ac_ct_CC=$CC
3519 for ac_prog in cl.exe
3520 do
3521 # Extract the first word of "$ac_prog", so it can be a program name with args.
3522 set dummy $ac_prog; ac_word=$2
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 printf %s "checking for $ac_word... " >&6; }
3525 if test ${ac_cv_prog_ac_ct_CC+y}
3526 then :
3527 printf %s "(cached) " >&6
3528 else $as_nop
3529 if test -n "$ac_ct_CC"; then
3530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 case $as_dir in #(((
3537 '') as_dir=./ ;;
3538 */) ;;
3539 *) as_dir=$as_dir/ ;;
3540 esac
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_ac_ct_CC="$ac_prog"
3544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547 done
3548 done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554 if test -n "$ac_ct_CC"; then
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556 printf "%s\n" "$ac_ct_CC" >&6; }
3557 else
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 printf "%s\n" "no" >&6; }
3560 fi
3561
3562
3563 test -n "$ac_ct_CC" && break
3564 done
3565
3566 if test "x$ac_ct_CC" = x; then
3567 CC=""
3568 else
3569 case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3574 esac
3575 CC=$ac_ct_CC
3576 fi
3577 fi
3578
3579 fi
3580 if test -z "$CC"; then
3581 if test -n "$ac_tool_prefix"; then
3582 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}clang; ac_word=$2
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 printf %s "checking for $ac_word... " >&6; }
3586 if test ${ac_cv_prog_CC+y}
3587 then :
3588 printf %s "(cached) " >&6
3589 else $as_nop
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 case $as_dir in #(((
3598 '') as_dir=./ ;;
3599 */) ;;
3600 *) as_dir=$as_dir/ ;;
3601 esac
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_CC="${ac_tool_prefix}clang"
3605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 printf "%s\n" "$CC" >&6; }
3618 else
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 printf "%s\n" "no" >&6; }
3621 fi
3622
3623
3624 fi
3625 if test -z "$ac_cv_prog_CC"; then
3626 ac_ct_CC=$CC
3627 # Extract the first word of "clang", so it can be a program name with args.
3628 set dummy clang; ac_word=$2
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 printf %s "checking for $ac_word... " >&6; }
3631 if test ${ac_cv_prog_ac_ct_CC+y}
3632 then :
3633 printf %s "(cached) " >&6
3634 else $as_nop
3635 if test -n "$ac_ct_CC"; then
3636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 case $as_dir in #(((
3643 '') as_dir=./ ;;
3644 */) ;;
3645 *) as_dir=$as_dir/ ;;
3646 esac
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_ac_ct_CC="clang"
3650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653 done
3654 done
3655 IFS=$as_save_IFS
3656
3657 fi
3658 fi
3659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660 if test -n "$ac_ct_CC"; then
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662 printf "%s\n" "$ac_ct_CC" >&6; }
3663 else
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 printf "%s\n" "no" >&6; }
3666 fi
3667
3668 if test "x$ac_ct_CC" = x; then
3669 CC=""
3670 else
3671 case $cross_compiling:$ac_tool_warned in
3672 yes:)
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3675 ac_tool_warned=yes ;;
3676 esac
3677 CC=$ac_ct_CC
3678 fi
3679 else
3680 CC="$ac_cv_prog_CC"
3681 fi
3682
3683 fi
3684
3685
3686 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $? "no acceptable C compiler found in \$PATH
3689 See \`config.log' for more details" "$LINENO" 5; }
3690
3691 # Provide some information about the compiler.
3692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3693 set X $ac_compile
3694 ac_compiler=$2
3695 for ac_option in --version -v -V -qversion -version; do
3696 { { ac_try="$ac_compiler $ac_option >&5"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 printf "%s\n" "$ac_try_echo"; } >&5
3703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3704 ac_status=$?
3705 if test -s conftest.err; then
3706 sed '10a\
3707 ... rest of stderr output deleted ...
3708 10q' conftest.err >conftest.er1
3709 cat conftest.er1 >&5
3710 fi
3711 rm -f conftest.er1 conftest.err
3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }
3714 done
3715
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718
3719 int
3720 main (void)
3721 {
3722
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 ac_clean_files_save=$ac_clean_files
3728 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3729 # Try to create an executable without -o first, disregard a.out.
3730 # It will help us diagnose broken compilers, and finding out an intuition
3731 # of exeext.
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3733 printf %s "checking whether the C compiler works... " >&6; }
3734 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3735
3736 # The possible output files:
3737 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3738
3739 ac_rmfiles=
3740 for ac_file in $ac_files
3741 do
3742 case $ac_file in
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3744 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3745 esac
3746 done
3747 rm -f $ac_rmfiles
3748
3749 if { { ac_try="$ac_link_default"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 printf "%s\n" "$ac_try_echo"; } >&5
3756 (eval "$ac_link_default") 2>&5
3757 ac_status=$?
3758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }
3760 then :
3761 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3762 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3763 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3764 # so that the user can short-circuit this test for compilers unknown to
3765 # Autoconf.
3766 for ac_file in $ac_files ''
3767 do
3768 test -f "$ac_file" || continue
3769 case $ac_file in
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3771 ;;
3772 [ab].out )
3773 # We found the default executable, but exeext='' is most
3774 # certainly right.
3775 break;;
3776 *.* )
3777 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3778 then :; else
3779 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3780 fi
3781 # We set ac_cv_exeext here because the later test for it is not
3782 # safe: cross compilers may not add the suffix if given an `-o'
3783 # argument, so we may need to know it at that point already.
3784 # Even if this section looks crufty: it has the advantage of
3785 # actually working.
3786 break;;
3787 * )
3788 break;;
3789 esac
3790 done
3791 test "$ac_cv_exeext" = no && ac_cv_exeext=
3792
3793 else $as_nop
3794 ac_file=''
3795 fi
3796 if test -z "$ac_file"
3797 then :
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 printf "%s\n" "no" >&6; }
3800 printf "%s\n" "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error 77 "C compiler cannot create executables
3806 See \`config.log' for more details" "$LINENO" 5; }
3807 else $as_nop
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809 printf "%s\n" "yes" >&6; }
3810 fi
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3812 printf %s "checking for C compiler default output file name... " >&6; }
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814 printf "%s\n" "$ac_file" >&6; }
3815 ac_exeext=$ac_cv_exeext
3816
3817 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3818 ac_clean_files=$ac_clean_files_save
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820 printf %s "checking for suffix of executables... " >&6; }
3821 if { { ac_try="$ac_link"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 printf "%s\n" "$ac_try_echo"; } >&5
3828 (eval "$ac_link") 2>&5
3829 ac_status=$?
3830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }
3832 then :
3833 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3834 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3835 # work properly (i.e., refer to `conftest.exe'), while it won't with
3836 # `rm'.
3837 for ac_file in conftest.exe conftest conftest.*; do
3838 test -f "$ac_file" || continue
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 break;;
3843 * ) break;;
3844 esac
3845 done
3846 else $as_nop
3847 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3849 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3850 See \`config.log' for more details" "$LINENO" 5; }
3851 fi
3852 rm -f conftest conftest$ac_cv_exeext
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3854 printf "%s\n" "$ac_cv_exeext" >&6; }
3855
3856 rm -f conftest.$ac_ext
3857 EXEEXT=$ac_cv_exeext
3858 ac_exeext=$EXEEXT
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <stdio.h>
3862 int
3863 main (void)
3864 {
3865 FILE *f = fopen ("conftest.out", "w");
3866 return ferror (f) || fclose (f) != 0;
3867
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 ac_clean_files="$ac_clean_files conftest.out"
3873 # Check that the compiler produces executables we can run. If not, either
3874 # the compiler is broken, or we cross compile.
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3876 printf %s "checking whether we are cross compiling... " >&6; }
3877 if test "$cross_compiling" != yes; then
3878 { { ac_try="$ac_link"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 printf "%s\n" "$ac_try_echo"; } >&5
3885 (eval "$ac_link") 2>&5
3886 ac_status=$?
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888 test $ac_status = 0; }
3889 if { ac_try='./conftest$ac_cv_exeext'
3890 { { case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 printf "%s\n" "$ac_try_echo"; } >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; }; then
3900 cross_compiling=no
3901 else
3902 if test "$cross_compiling" = maybe; then
3903 cross_compiling=yes
3904 else
3905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error 77 "cannot run C compiled programs.
3908 If you meant to cross compile, use \`--host'.
3909 See \`config.log' for more details" "$LINENO" 5; }
3910 fi
3911 fi
3912 fi
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3914 printf "%s\n" "$cross_compiling" >&6; }
3915
3916 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3917 ac_clean_files=$ac_clean_files_save
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3919 printf %s "checking for suffix of object files... " >&6; }
3920 if test ${ac_cv_objext+y}
3921 then :
3922 printf %s "(cached) " >&6
3923 else $as_nop
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926
3927 int
3928 main (void)
3929 {
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.o conftest.obj
3936 if { { ac_try="$ac_compile"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 printf "%s\n" "$ac_try_echo"; } >&5
3943 (eval "$ac_compile") 2>&5
3944 ac_status=$?
3945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }
3947 then :
3948 for ac_file in conftest.o conftest.obj conftest.*; do
3949 test -f "$ac_file" || continue;
3950 case $ac_file in
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3953 break;;
3954 esac
3955 done
3956 else $as_nop
3957 printf "%s\n" "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3959
3960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error $? "cannot compute suffix of object files: cannot compile
3963 See \`config.log' for more details" "$LINENO" 5; }
3964 fi
3965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3966 fi
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3968 printf "%s\n" "$ac_cv_objext" >&6; }
3969 OBJEXT=$ac_cv_objext
3970 ac_objext=$OBJEXT
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3972 printf %s "checking whether the compiler supports GNU C... " >&6; }
3973 if test ${ac_cv_c_compiler_gnu+y}
3974 then :
3975 printf %s "(cached) " >&6
3976 else $as_nop
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979
3980 int
3981 main (void)
3982 {
3983 #ifndef __GNUC__
3984 choke me
3985 #endif
3986
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"
3992 then :
3993 ac_compiler_gnu=yes
3994 else $as_nop
3995 ac_compiler_gnu=no
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3998 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3999
4000 fi
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4002 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005 if test $ac_compiler_gnu = yes; then
4006 GCC=yes
4007 else
4008 GCC=
4009 fi
4010 ac_test_CFLAGS=${CFLAGS+y}
4011 ac_save_CFLAGS=$CFLAGS
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4013 printf %s "checking whether $CC accepts -g... " >&6; }
4014 if test ${ac_cv_prog_cc_g+y}
4015 then :
4016 printf %s "(cached) " >&6
4017 else $as_nop
4018 ac_save_c_werror_flag=$ac_c_werror_flag
4019 ac_c_werror_flag=yes
4020 ac_cv_prog_cc_g=no
4021 CFLAGS="-g"
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024
4025 int
4026 main (void)
4027 {
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"
4034 then :
4035 ac_cv_prog_cc_g=yes
4036 else $as_nop
4037 CFLAGS=""
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040
4041 int
4042 main (void)
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"
4050 then :
4051
4052 else $as_nop
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4054 CFLAGS="-g"
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main (void)
4060 {
4061
4062 ;
4063 return 0;
4064 }
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"
4067 then :
4068 ac_cv_prog_cc_g=yes
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 ac_c_werror_flag=$ac_save_c_werror_flag
4076 fi
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4078 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4079 if test $ac_test_CFLAGS; then
4080 CFLAGS=$ac_save_CFLAGS
4081 elif test $ac_cv_prog_cc_g = yes; then
4082 if test "$GCC" = yes; then
4083 CFLAGS="-g -O2"
4084 else
4085 CFLAGS="-g"
4086 fi
4087 else
4088 if test "$GCC" = yes; then
4089 CFLAGS="-O2"
4090 else
4091 CFLAGS=
4092 fi
4093 fi
4094 ac_prog_cc_stdc=no
4095 if test x$ac_prog_cc_stdc = xno
4096 then :
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4098 printf %s "checking for $CC option to enable C11 features... " >&6; }
4099 if test ${ac_cv_prog_cc_c11+y}
4100 then :
4101 printf %s "(cached) " >&6
4102 else $as_nop
4103 ac_cv_prog_cc_c11=no
4104 ac_save_CC=$CC
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 $ac_c_conftest_c11_program
4108 _ACEOF
4109 for ac_arg in '' -std=gnu11
4110 do
4111 CC="$ac_save_CC $ac_arg"
4112 if ac_fn_c_try_compile "$LINENO"
4113 then :
4114 ac_cv_prog_cc_c11=$ac_arg
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext conftest.beam
4117 test "x$ac_cv_prog_cc_c11" != "xno" && break
4118 done
4119 rm -f conftest.$ac_ext
4120 CC=$ac_save_CC
4121 fi
4122
4123 if test "x$ac_cv_prog_cc_c11" = xno
4124 then :
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126 printf "%s\n" "unsupported" >&6; }
4127 else $as_nop
4128 if test "x$ac_cv_prog_cc_c11" = x
4129 then :
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 printf "%s\n" "none needed" >&6; }
4132 else $as_nop
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4134 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4135 CC="$CC $ac_cv_prog_cc_c11"
4136 fi
4137 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4138 ac_prog_cc_stdc=c11
4139 fi
4140 fi
4141 if test x$ac_prog_cc_stdc = xno
4142 then :
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4144 printf %s "checking for $CC option to enable C99 features... " >&6; }
4145 if test ${ac_cv_prog_cc_c99+y}
4146 then :
4147 printf %s "(cached) " >&6
4148 else $as_nop
4149 ac_cv_prog_cc_c99=no
4150 ac_save_CC=$CC
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 $ac_c_conftest_c99_program
4154 _ACEOF
4155 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4156 do
4157 CC="$ac_save_CC $ac_arg"
4158 if ac_fn_c_try_compile "$LINENO"
4159 then :
4160 ac_cv_prog_cc_c99=$ac_arg
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.beam
4163 test "x$ac_cv_prog_cc_c99" != "xno" && break
4164 done
4165 rm -f conftest.$ac_ext
4166 CC=$ac_save_CC
4167 fi
4168
4169 if test "x$ac_cv_prog_cc_c99" = xno
4170 then :
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172 printf "%s\n" "unsupported" >&6; }
4173 else $as_nop
4174 if test "x$ac_cv_prog_cc_c99" = x
4175 then :
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4177 printf "%s\n" "none needed" >&6; }
4178 else $as_nop
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4180 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4181 CC="$CC $ac_cv_prog_cc_c99"
4182 fi
4183 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4184 ac_prog_cc_stdc=c99
4185 fi
4186 fi
4187 if test x$ac_prog_cc_stdc = xno
4188 then :
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4190 printf %s "checking for $CC option to enable C89 features... " >&6; }
4191 if test ${ac_cv_prog_cc_c89+y}
4192 then :
4193 printf %s "(cached) " >&6
4194 else $as_nop
4195 ac_cv_prog_cc_c89=no
4196 ac_save_CC=$CC
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 $ac_c_conftest_c89_program
4200 _ACEOF
4201 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4202 do
4203 CC="$ac_save_CC $ac_arg"
4204 if ac_fn_c_try_compile "$LINENO"
4205 then :
4206 ac_cv_prog_cc_c89=$ac_arg
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.beam
4209 test "x$ac_cv_prog_cc_c89" != "xno" && break
4210 done
4211 rm -f conftest.$ac_ext
4212 CC=$ac_save_CC
4213 fi
4214
4215 if test "x$ac_cv_prog_cc_c89" = xno
4216 then :
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218 printf "%s\n" "unsupported" >&6; }
4219 else $as_nop
4220 if test "x$ac_cv_prog_cc_c89" = x
4221 then :
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 printf "%s\n" "none needed" >&6; }
4224 else $as_nop
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4226 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4227 CC="$CC $ac_cv_prog_cc_c89"
4228 fi
4229 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4230 ac_prog_cc_stdc=c89
4231 fi
4232 fi
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241 ac_ext=c
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4247 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4248 if test ${am_cv_prog_cc_c_o+y}
4249 then :
4250 printf %s "(cached) " >&6
4251 else $as_nop
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254
4255 int
4256 main (void)
4257 {
4258
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 # Make sure it works both with $CC and with simple cc.
4264 # Following AC_PROG_CC_C_O, we do the test twice because some
4265 # compilers refuse to overwrite an existing .o file with -o,
4266 # though they will create one.
4267 am_cv_prog_cc_c_o=yes
4268 for am_i in 1 2; do
4269 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4270 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } \
4274 && test -f conftest2.$ac_objext; then
4275 : OK
4276 else
4277 am_cv_prog_cc_c_o=no
4278 break
4279 fi
4280 done
4281 rm -f core conftest*
4282 unset am_i
4283 fi
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4285 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4286 if test "$am_cv_prog_cc_c_o" != yes; then
4287 # Losing compiler, so override with the script.
4288 # FIXME: It is wrong to rewrite CC.
4289 # But if we don't then we get into trouble of one sort or another.
4290 # A longer-term fix would be to have automake use am__CC in this case,
4291 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4292 CC="$am_aux_dir/compile $CC"
4293 fi
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299
4300
4301 depcc="$CC" am_compiler_list=
4302
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304 printf %s "checking dependency style of $depcc... " >&6; }
4305 if test ${am_cv_CC_dependencies_compiler_type+y}
4306 then :
4307 printf %s "(cached) " >&6
4308 else $as_nop
4309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4310 # We make a subdir and do the tests there. Otherwise we can end up
4311 # making bogus files that we don't know about and never remove. For
4312 # instance it was reported that on HP-UX the gcc test will end up
4313 # making a dummy file named 'D' -- because '-MD' means "put the output
4314 # in D".
4315 rm -rf conftest.dir
4316 mkdir conftest.dir
4317 # Copy depcomp to subdir because otherwise we won't find it if we're
4318 # using a relative directory.
4319 cp "$am_depcomp" conftest.dir
4320 cd conftest.dir
4321 # We will build objects and dependencies in a subdirectory because
4322 # it helps to detect inapplicable dependency modes. For instance
4323 # both Tru64's cc and ICC support -MD to output dependencies as a
4324 # side effect of compilation, but ICC will put the dependencies in
4325 # the current directory while Tru64 will put them in the object
4326 # directory.
4327 mkdir sub
4328
4329 am_cv_CC_dependencies_compiler_type=none
4330 if test "$am_compiler_list" = ""; then
4331 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332 fi
4333 am__universal=false
4334 case " $depcc " in #(
4335 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4336 esac
4337
4338 for depmode in $am_compiler_list; do
4339 # Setup a source with many dependencies, because some compilers
4340 # like to wrap large dependency lists on column 80 (with \), and
4341 # we should not choose a depcomp mode which is confused by this.
4342 #
4343 # We need to recreate these files for each test, as the compiler may
4344 # overwrite some of them when testing with obscure command lines.
4345 # This happens at least with the AIX C compiler.
4346 : > sub/conftest.c
4347 for i in 1 2 3 4 5 6; do
4348 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4349 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4350 # Solaris 10 /bin/sh.
4351 echo '/* dummy */' > sub/conftst$i.h
4352 done
4353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4354
4355 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4356 # mode. It turns out that the SunPro C++ compiler does not properly
4357 # handle '-M -o', and we need to detect this. Also, some Intel
4358 # versions had trouble with output in subdirs.
4359 am__obj=sub/conftest.${OBJEXT-o}
4360 am__minus_obj="-o $am__obj"
4361 case $depmode in
4362 gcc)
4363 # This depmode causes a compiler race in universal mode.
4364 test "$am__universal" = false || continue
4365 ;;
4366 nosideeffect)
4367 # After this tag, mechanisms are not by side-effect, so they'll
4368 # only be used when explicitly requested.
4369 if test "x$enable_dependency_tracking" = xyes; then
4370 continue
4371 else
4372 break
4373 fi
4374 ;;
4375 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4376 # This compiler won't grok '-c -o', but also, the minuso test has
4377 # not run yet. These depmodes are late enough in the game, and
4378 # so weak that their functioning should not be impacted.
4379 am__obj=conftest.${OBJEXT-o}
4380 am__minus_obj=
4381 ;;
4382 none) break ;;
4383 esac
4384 if depmode=$depmode \
4385 source=sub/conftest.c object=$am__obj \
4386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4387 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4388 >/dev/null 2>conftest.err &&
4389 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4390 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4391 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4392 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4393 # icc doesn't choke on unknown options, it will just issue warnings
4394 # or remarks (even with -Werror). So we grep stderr for any message
4395 # that says an option was ignored or not supported.
4396 # When given -MP, icc 7.0 and 7.1 complain thusly:
4397 # icc: Command line warning: ignoring option '-M'; no argument required
4398 # The diagnosis changed in icc 8.0:
4399 # icc: Command line remark: option '-MP' not supported
4400 if (grep 'ignoring option' conftest.err ||
4401 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4402 am_cv_CC_dependencies_compiler_type=$depmode
4403 break
4404 fi
4405 fi
4406 done
4407
4408 cd ..
4409 rm -rf conftest.dir
4410 else
4411 am_cv_CC_dependencies_compiler_type=none
4412 fi
4413
4414 fi
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4416 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4417 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4418
4419 if
4420 test "x$enable_dependency_tracking" != xno \
4421 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4422 am__fastdepCC_TRUE=
4423 am__fastdepCC_FALSE='#'
4424 else
4425 am__fastdepCC_TRUE='#'
4426 am__fastdepCC_FALSE=
4427 fi
4428
4429
4430
4431
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4433 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4434 if test ${ac_cv_c_undeclared_builtin_options+y}
4435 then :
4436 printf %s "(cached) " >&6
4437 else $as_nop
4438 ac_save_CFLAGS=$CFLAGS
4439 ac_cv_c_undeclared_builtin_options='cannot detect'
4440 for ac_arg in '' -fno-builtin; do
4441 CFLAGS="$ac_save_CFLAGS $ac_arg"
4442 # This test program should *not* compile successfully.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445
4446 int
4447 main (void)
4448 {
4449 (void) strchr;
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"
4455 then :
4456
4457 else $as_nop
4458 # This test program should compile successfully.
4459 # No library function is consistently available on
4460 # freestanding implementations, so test against a dummy
4461 # declaration. Include always-available headers on the
4462 # off chance that they somehow elicit warnings.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #include <float.h>
4466 #include <limits.h>
4467 #include <stdarg.h>
4468 #include <stddef.h>
4469 extern void ac_decl (int, char *);
4470
4471 int
4472 main (void)
4473 {
4474 (void) ac_decl (0, (char *) 0);
4475 (void) ac_decl;
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"
4482 then :
4483 if test x"$ac_arg" = x
4484 then :
4485 ac_cv_c_undeclared_builtin_options='none needed'
4486 else $as_nop
4487 ac_cv_c_undeclared_builtin_options=$ac_arg
4488 fi
4489 break
4490 fi
4491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4494 done
4495 CFLAGS=$ac_save_CFLAGS
4496
4497 fi
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4499 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4500 case $ac_cv_c_undeclared_builtin_options in #(
4501 'cannot detect') :
4502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4504 as_fn_error $? "cannot make $CC report undeclared builtins
4505 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4506 'none needed') :
4507 ac_c_undeclared_builtin_options='' ;; #(
4508 *) :
4509 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4510 esac
4511
4512 ac_header= ac_cache=
4513 for ac_item in $ac_header_c_list
4514 do
4515 if test $ac_cache; then
4516 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4517 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4518 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4519 fi
4520 ac_header= ac_cache=
4521 elif test $ac_header; then
4522 ac_cache=$ac_item
4523 else
4524 ac_header=$ac_item
4525 fi
4526 done
4527
4528
4529
4530
4531
4532
4533
4534
4535 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4536 then :
4537
4538 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4539
4540 fi
4541
4542
4543
4544
4545 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4546 if test "x$ac_cv_have_decl___clang__" = xyes
4547 then :
4548 CLANGCC="yes"
4549 else $as_nop
4550 CLANGCC="no"
4551 fi
4552 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4553 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4554 then :
4555 INTELCC="yes"
4556 else $as_nop
4557 INTELCC="no"
4558 fi
4559 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4560 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4561 then :
4562 SUNCC="yes"
4563 else $as_nop
4564 SUNCC="no"
4565 fi
4566
4567
4568
4569
4570
4571
4572
4573
4574 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 printf %s "checking for $ac_word... " >&6; }
4580 if test ${ac_cv_path_PKG_CONFIG+y}
4581 then :
4582 printf %s "(cached) " >&6
4583 else $as_nop
4584 case $PKG_CONFIG in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4587 ;;
4588 *)
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592 IFS=$as_save_IFS
4593 case $as_dir in #(((
4594 '') as_dir=./ ;;
4595 */) ;;
4596 *) as_dir=$as_dir/ ;;
4597 esac
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4600 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 ;;
4609 esac
4610 fi
4611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4612 if test -n "$PKG_CONFIG"; then
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4614 printf "%s\n" "$PKG_CONFIG" >&6; }
4615 else
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 printf "%s\n" "no" >&6; }
4618 fi
4619
4620
4621 fi
4622 if test -z "$ac_cv_path_PKG_CONFIG"; then
4623 ac_pt_PKG_CONFIG=$PKG_CONFIG
4624 # Extract the first word of "pkg-config", so it can be a program name with args.
4625 set dummy pkg-config; ac_word=$2
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 printf %s "checking for $ac_word... " >&6; }
4628 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4629 then :
4630 printf %s "(cached) " >&6
4631 else $as_nop
4632 case $ac_pt_PKG_CONFIG in
4633 [\\/]* | ?:[\\/]*)
4634 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4635 ;;
4636 *)
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 case $as_dir in #(((
4642 '') as_dir=./ ;;
4643 */) ;;
4644 *) as_dir=$as_dir/ ;;
4645 esac
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4648 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 ;;
4657 esac
4658 fi
4659 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4660 if test -n "$ac_pt_PKG_CONFIG"; then
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4662 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4663 else
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 printf "%s\n" "no" >&6; }
4666 fi
4667
4668 if test "x$ac_pt_PKG_CONFIG" = x; then
4669 PKG_CONFIG=""
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 PKG_CONFIG=$ac_pt_PKG_CONFIG
4678 fi
4679 else
4680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4681 fi
4682
4683 fi
4684 if test -n "$PKG_CONFIG"; then
4685 _pkg_min_version=0.9.0
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4687 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4688 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4690 printf "%s\n" "yes" >&6; }
4691 else
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 printf "%s\n" "no" >&6; }
4694 PKG_CONFIG=""
4695 fi
4696 fi
4697
4698
4699 # Make sure we can run config.sub.
4700 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4701 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4702
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4704 printf %s "checking build system type... " >&6; }
4705 if test ${ac_cv_build+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else $as_nop
4709 ac_build_alias=$build_alias
4710 test "x$ac_build_alias" = x &&
4711 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4712 test "x$ac_build_alias" = x &&
4713 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4714 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4715 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4716
4717 fi
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4719 printf "%s\n" "$ac_cv_build" >&6; }
4720 case $ac_cv_build in
4721 *-*-*) ;;
4722 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4723 esac
4724 build=$ac_cv_build
4725 ac_save_IFS=$IFS; IFS='-'
4726 set x $ac_cv_build
4727 shift
4728 build_cpu=$1
4729 build_vendor=$2
4730 shift; shift
4731 # Remember, the first character of IFS is used to create $*,
4732 # except with old shells:
4733 build_os=$*
4734 IFS=$ac_save_IFS
4735 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4736
4737
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4739 printf %s "checking host system type... " >&6; }
4740 if test ${ac_cv_host+y}
4741 then :
4742 printf %s "(cached) " >&6
4743 else $as_nop
4744 if test "x$host_alias" = x; then
4745 ac_cv_host=$ac_cv_build
4746 else
4747 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4748 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4749 fi
4750
4751 fi
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4753 printf "%s\n" "$ac_cv_host" >&6; }
4754 case $ac_cv_host in
4755 *-*-*) ;;
4756 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4757 esac
4758 host=$ac_cv_host
4759 ac_save_IFS=$IFS; IFS='-'
4760 set x $ac_cv_host
4761 shift
4762 host_cpu=$1
4763 host_vendor=$2
4764 shift; shift
4765 # Remember, the first character of IFS is used to create $*,
4766 # except with old shells:
4767 host_os=$*
4768 IFS=$ac_save_IFS
4769 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4770
4771
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4773 printf %s "checking for a sed that does not truncate output... " >&6; }
4774 if test ${ac_cv_path_SED+y}
4775 then :
4776 printf %s "(cached) " >&6
4777 else $as_nop
4778 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4779 for ac_i in 1 2 3 4 5 6 7; do
4780 ac_script="$ac_script$as_nl$ac_script"
4781 done
4782 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4783 { ac_script=; unset ac_script;}
4784 if test -z "$SED"; then
4785 ac_path_SED_found=false
4786 # Loop through the user's path and test for each of PROGNAME-LIST
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790 IFS=$as_save_IFS
4791 case $as_dir in #(((
4792 '') as_dir=./ ;;
4793 */) ;;
4794 *) as_dir=$as_dir/ ;;
4795 esac
4796 for ac_prog in sed gsed
4797 do
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4800 as_fn_executable_p "$ac_path_SED" || continue
4801 # Check for GNU ac_path_SED and select it if it is found.
4802 # Check for GNU $ac_path_SED
4803 case `"$ac_path_SED" --version 2>&1` in
4804 *GNU*)
4805 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4806 *)
4807 ac_count=0
4808 printf %s 0123456789 >"conftest.in"
4809 while :
4810 do
4811 cat "conftest.in" "conftest.in" >"conftest.tmp"
4812 mv "conftest.tmp" "conftest.in"
4813 cp "conftest.in" "conftest.nl"
4814 printf "%s\n" '' >> "conftest.nl"
4815 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4816 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4817 as_fn_arith $ac_count + 1 && ac_count=$as_val
4818 if test $ac_count -gt ${ac_path_SED_max-0}; then
4819 # Best one so far, save it but keep looking for a better one
4820 ac_cv_path_SED="$ac_path_SED"
4821 ac_path_SED_max=$ac_count
4822 fi
4823 # 10*(2^10) chars as input seems more than enough
4824 test $ac_count -gt 10 && break
4825 done
4826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4827 esac
4828
4829 $ac_path_SED_found && break 3
4830 done
4831 done
4832 done
4833 IFS=$as_save_IFS
4834 if test -z "$ac_cv_path_SED"; then
4835 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4836 fi
4837 else
4838 ac_cv_path_SED=$SED
4839 fi
4840
4841 fi
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4843 printf "%s\n" "$ac_cv_path_SED" >&6; }
4844 SED="$ac_cv_path_SED"
4845 rm -f conftest.sed
4846
4847
4848
4849
4850
4851
4852 # Check whether --enable-selective-werror was given.
4853 if test ${enable_selective_werror+y}
4854 then :
4855 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4856 else $as_nop
4857 SELECTIVE_WERROR=yes
4858 fi
4859
4860
4861
4862
4863
4864 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4865 if test "x$SUNCC" = "xyes"; then
4866 BASE_CFLAGS="-v"
4867 else
4868 BASE_CFLAGS=""
4869 fi
4870
4871 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885 xorg_testset_save_CFLAGS="$CFLAGS"
4886
4887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4890 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4891 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4892 then :
4893 printf %s "(cached) " >&6
4894 else $as_nop
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 int i;
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"
4900 then :
4901 xorg_cv_cc_flag_unknown_warning_option=yes
4902 else $as_nop
4903 xorg_cv_cc_flag_unknown_warning_option=no
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4906 fi
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4908 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4910 CFLAGS="$xorg_testset_save_CFLAGS"
4911 fi
4912
4913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4916 fi
4917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4921 then :
4922 printf %s "(cached) " >&6
4923 else $as_nop
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 int i;
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"
4929 then :
4930 xorg_cv_cc_flag_unused_command_line_argument=yes
4931 else $as_nop
4932 xorg_cv_cc_flag_unused_command_line_argument=no
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4935 fi
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4937 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4939 CFLAGS="$xorg_testset_save_CFLAGS"
4940 fi
4941
4942 found="no"
4943
4944 if test $found = "no" ; then
4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947 fi
4948
4949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4951 fi
4952
4953 CFLAGS="$CFLAGS -Wall"
4954
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4956 printf %s "checking if $CC supports -Wall... " >&6; }
4957 cacheid=xorg_cv_cc_flag__Wall
4958 if eval test \${$cacheid+y}
4959 then :
4960 printf %s "(cached) " >&6
4961 else $as_nop
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 int i;
4965 int
4966 main (void)
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_link "$LINENO"
4974 then :
4975 eval $cacheid=yes
4976 else $as_nop
4977 eval $cacheid=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4980 conftest$ac_exeext conftest.$ac_ext
4981 fi
4982
4983
4984 CFLAGS="$xorg_testset_save_CFLAGS"
4985
4986 eval supported=\$$cacheid
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4988 printf "%s\n" "$supported" >&6; }
4989 if test "$supported" = "yes" ; then
4990 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4991 found="yes"
4992 fi
4993 fi
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 xorg_testset_save_CFLAGS="$CFLAGS"
5010
5011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5014 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5015 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5016 then :
5017 printf %s "(cached) " >&6
5018 else $as_nop
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 int i;
5022 _ACEOF
5023 if ac_fn_c_try_compile "$LINENO"
5024 then :
5025 xorg_cv_cc_flag_unknown_warning_option=yes
5026 else $as_nop
5027 xorg_cv_cc_flag_unknown_warning_option=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5030 fi
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5032 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5034 CFLAGS="$xorg_testset_save_CFLAGS"
5035 fi
5036
5037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040 fi
5041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5043 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5044 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5045 then :
5046 printf %s "(cached) " >&6
5047 else $as_nop
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 int i;
5051 _ACEOF
5052 if ac_fn_c_try_compile "$LINENO"
5053 then :
5054 xorg_cv_cc_flag_unused_command_line_argument=yes
5055 else $as_nop
5056 xorg_cv_cc_flag_unused_command_line_argument=no
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5059 fi
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5061 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5063 CFLAGS="$xorg_testset_save_CFLAGS"
5064 fi
5065
5066 found="no"
5067
5068 if test $found = "no" ; then
5069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5071 fi
5072
5073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5075 fi
5076
5077 CFLAGS="$CFLAGS -Wpointer-arith"
5078
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5080 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5081 cacheid=xorg_cv_cc_flag__Wpointer_arith
5082 if eval test \${$cacheid+y}
5083 then :
5084 printf %s "(cached) " >&6
5085 else $as_nop
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 int i;
5089 int
5090 main (void)
5091 {
5092
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 if ac_fn_c_try_link "$LINENO"
5098 then :
5099 eval $cacheid=yes
5100 else $as_nop
5101 eval $cacheid=no
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5104 conftest$ac_exeext conftest.$ac_ext
5105 fi
5106
5107
5108 CFLAGS="$xorg_testset_save_CFLAGS"
5109
5110 eval supported=\$$cacheid
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5112 printf "%s\n" "$supported" >&6; }
5113 if test "$supported" = "yes" ; then
5114 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5115 found="yes"
5116 fi
5117 fi
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133 xorg_testset_save_CFLAGS="$CFLAGS"
5134
5135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5138 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5139 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5140 then :
5141 printf %s "(cached) " >&6
5142 else $as_nop
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 int i;
5146 _ACEOF
5147 if ac_fn_c_try_compile "$LINENO"
5148 then :
5149 xorg_cv_cc_flag_unknown_warning_option=yes
5150 else $as_nop
5151 xorg_cv_cc_flag_unknown_warning_option=no
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5154 fi
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5158 CFLAGS="$xorg_testset_save_CFLAGS"
5159 fi
5160
5161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5164 fi
5165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5169 then :
5170 printf %s "(cached) " >&6
5171 else $as_nop
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 int i;
5175 _ACEOF
5176 if ac_fn_c_try_compile "$LINENO"
5177 then :
5178 xorg_cv_cc_flag_unused_command_line_argument=yes
5179 else $as_nop
5180 xorg_cv_cc_flag_unused_command_line_argument=no
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5183 fi
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5185 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5187 CFLAGS="$xorg_testset_save_CFLAGS"
5188 fi
5189
5190 found="no"
5191
5192 if test $found = "no" ; then
5193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195 fi
5196
5197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5199 fi
5200
5201 CFLAGS="$CFLAGS -Wmissing-declarations"
5202
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5204 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5205 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5206 if eval test \${$cacheid+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else $as_nop
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 int i;
5213 int
5214 main (void)
5215 {
5216
5217 ;
5218 return 0;
5219 }
5220 _ACEOF
5221 if ac_fn_c_try_link "$LINENO"
5222 then :
5223 eval $cacheid=yes
5224 else $as_nop
5225 eval $cacheid=no
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5228 conftest$ac_exeext conftest.$ac_ext
5229 fi
5230
5231
5232 CFLAGS="$xorg_testset_save_CFLAGS"
5233
5234 eval supported=\$$cacheid
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5236 printf "%s\n" "$supported" >&6; }
5237 if test "$supported" = "yes" ; then
5238 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5239 found="yes"
5240 fi
5241 fi
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257 xorg_testset_save_CFLAGS="$CFLAGS"
5258
5259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5262 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5263 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5264 then :
5265 printf %s "(cached) " >&6
5266 else $as_nop
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 int i;
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"
5272 then :
5273 xorg_cv_cc_flag_unknown_warning_option=yes
5274 else $as_nop
5275 xorg_cv_cc_flag_unknown_warning_option=no
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5278 fi
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5282 CFLAGS="$xorg_testset_save_CFLAGS"
5283 fi
5284
5285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5288 fi
5289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5293 then :
5294 printf %s "(cached) " >&6
5295 else $as_nop
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 int i;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"
5301 then :
5302 xorg_cv_cc_flag_unused_command_line_argument=yes
5303 else $as_nop
5304 xorg_cv_cc_flag_unused_command_line_argument=no
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5307 fi
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5309 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5311 CFLAGS="$xorg_testset_save_CFLAGS"
5312 fi
5313
5314 found="no"
5315
5316 if test $found = "no" ; then
5317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5319 fi
5320
5321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5323 fi
5324
5325 CFLAGS="$CFLAGS -Wformat=2"
5326
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5328 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5329 cacheid=xorg_cv_cc_flag__Wformat_2
5330 if eval test \${$cacheid+y}
5331 then :
5332 printf %s "(cached) " >&6
5333 else $as_nop
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 int i;
5337 int
5338 main (void)
5339 {
5340
5341 ;
5342 return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_link "$LINENO"
5346 then :
5347 eval $cacheid=yes
5348 else $as_nop
5349 eval $cacheid=no
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5352 conftest$ac_exeext conftest.$ac_ext
5353 fi
5354
5355
5356 CFLAGS="$xorg_testset_save_CFLAGS"
5357
5358 eval supported=\$$cacheid
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5360 printf "%s\n" "$supported" >&6; }
5361 if test "$supported" = "yes" ; then
5362 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5363 found="yes"
5364 fi
5365 fi
5366
5367 if test $found = "no" ; then
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 fi
5371
5372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5374 fi
5375
5376 CFLAGS="$CFLAGS -Wformat"
5377
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5379 printf %s "checking if $CC supports -Wformat... " >&6; }
5380 cacheid=xorg_cv_cc_flag__Wformat
5381 if eval test \${$cacheid+y}
5382 then :
5383 printf %s "(cached) " >&6
5384 else $as_nop
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 int i;
5388 int
5389 main (void)
5390 {
5391
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_link "$LINENO"
5397 then :
5398 eval $cacheid=yes
5399 else $as_nop
5400 eval $cacheid=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5403 conftest$ac_exeext conftest.$ac_ext
5404 fi
5405
5406
5407 CFLAGS="$xorg_testset_save_CFLAGS"
5408
5409 eval supported=\$$cacheid
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5411 printf "%s\n" "$supported" >&6; }
5412 if test "$supported" = "yes" ; then
5413 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5414 found="yes"
5415 fi
5416 fi
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434 xorg_testset_save_CFLAGS="$CFLAGS"
5435
5436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5439 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5440 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5441 then :
5442 printf %s "(cached) " >&6
5443 else $as_nop
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 int i;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"
5449 then :
5450 xorg_cv_cc_flag_unknown_warning_option=yes
5451 else $as_nop
5452 xorg_cv_cc_flag_unknown_warning_option=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5455 fi
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5457 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5460 fi
5461
5462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5465 fi
5466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5470 then :
5471 printf %s "(cached) " >&6
5472 else $as_nop
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 int i;
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"
5478 then :
5479 xorg_cv_cc_flag_unused_command_line_argument=yes
5480 else $as_nop
5481 xorg_cv_cc_flag_unused_command_line_argument=no
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5484 fi
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5486 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5488 CFLAGS="$xorg_testset_save_CFLAGS"
5489 fi
5490
5491 found="no"
5492
5493 if test $found = "no" ; then
5494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5496 fi
5497
5498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5500 fi
5501
5502 CFLAGS="$CFLAGS -Wstrict-prototypes"
5503
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5505 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5506 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5507 if eval test \${$cacheid+y}
5508 then :
5509 printf %s "(cached) " >&6
5510 else $as_nop
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 int i;
5514 int
5515 main (void)
5516 {
5517
5518 ;
5519 return 0;
5520 }
5521 _ACEOF
5522 if ac_fn_c_try_link "$LINENO"
5523 then :
5524 eval $cacheid=yes
5525 else $as_nop
5526 eval $cacheid=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5529 conftest$ac_exeext conftest.$ac_ext
5530 fi
5531
5532
5533 CFLAGS="$xorg_testset_save_CFLAGS"
5534
5535 eval supported=\$$cacheid
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5537 printf "%s\n" "$supported" >&6; }
5538 if test "$supported" = "yes" ; then
5539 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5540 found="yes"
5541 fi
5542 fi
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558 xorg_testset_save_CFLAGS="$CFLAGS"
5559
5560 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5563 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5564 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5565 then :
5566 printf %s "(cached) " >&6
5567 else $as_nop
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 int i;
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"
5573 then :
5574 xorg_cv_cc_flag_unknown_warning_option=yes
5575 else $as_nop
5576 xorg_cv_cc_flag_unknown_warning_option=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5579 fi
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5581 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5584 fi
5585
5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589 fi
5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5594 then :
5595 printf %s "(cached) " >&6
5596 else $as_nop
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 int i;
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"
5602 then :
5603 xorg_cv_cc_flag_unused_command_line_argument=yes
5604 else $as_nop
5605 xorg_cv_cc_flag_unused_command_line_argument=no
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5608 fi
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5610 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5612 CFLAGS="$xorg_testset_save_CFLAGS"
5613 fi
5614
5615 found="no"
5616
5617 if test $found = "no" ; then
5618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5620 fi
5621
5622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5624 fi
5625
5626 CFLAGS="$CFLAGS -Wmissing-prototypes"
5627
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5629 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5630 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5631 if eval test \${$cacheid+y}
5632 then :
5633 printf %s "(cached) " >&6
5634 else $as_nop
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 int i;
5638 int
5639 main (void)
5640 {
5641
5642 ;
5643 return 0;
5644 }
5645 _ACEOF
5646 if ac_fn_c_try_link "$LINENO"
5647 then :
5648 eval $cacheid=yes
5649 else $as_nop
5650 eval $cacheid=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5653 conftest$ac_exeext conftest.$ac_ext
5654 fi
5655
5656
5657 CFLAGS="$xorg_testset_save_CFLAGS"
5658
5659 eval supported=\$$cacheid
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5661 printf "%s\n" "$supported" >&6; }
5662 if test "$supported" = "yes" ; then
5663 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5664 found="yes"
5665 fi
5666 fi
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 xorg_testset_save_CFLAGS="$CFLAGS"
5683
5684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5687 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5688 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5689 then :
5690 printf %s "(cached) " >&6
5691 else $as_nop
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 int i;
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"
5697 then :
5698 xorg_cv_cc_flag_unknown_warning_option=yes
5699 else $as_nop
5700 xorg_cv_cc_flag_unknown_warning_option=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5703 fi
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5705 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5707 CFLAGS="$xorg_testset_save_CFLAGS"
5708 fi
5709
5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5713 fi
5714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5716 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5717 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5718 then :
5719 printf %s "(cached) " >&6
5720 else $as_nop
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 int i;
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"
5726 then :
5727 xorg_cv_cc_flag_unused_command_line_argument=yes
5728 else $as_nop
5729 xorg_cv_cc_flag_unused_command_line_argument=no
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5732 fi
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5734 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5736 CFLAGS="$xorg_testset_save_CFLAGS"
5737 fi
5738
5739 found="no"
5740
5741 if test $found = "no" ; then
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 fi
5745
5746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748 fi
5749
5750 CFLAGS="$CFLAGS -Wnested-externs"
5751
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5753 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5754 cacheid=xorg_cv_cc_flag__Wnested_externs
5755 if eval test \${$cacheid+y}
5756 then :
5757 printf %s "(cached) " >&6
5758 else $as_nop
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 int i;
5762 int
5763 main (void)
5764 {
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_link "$LINENO"
5771 then :
5772 eval $cacheid=yes
5773 else $as_nop
5774 eval $cacheid=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5777 conftest$ac_exeext conftest.$ac_ext
5778 fi
5779
5780
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782
5783 eval supported=\$$cacheid
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5785 printf "%s\n" "$supported" >&6; }
5786 if test "$supported" = "yes" ; then
5787 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5788 found="yes"
5789 fi
5790 fi
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 xorg_testset_save_CFLAGS="$CFLAGS"
5807
5808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5811 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5812 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5813 then :
5814 printf %s "(cached) " >&6
5815 else $as_nop
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 int i;
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"
5821 then :
5822 xorg_cv_cc_flag_unknown_warning_option=yes
5823 else $as_nop
5824 xorg_cv_cc_flag_unknown_warning_option=no
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5827 fi
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5829 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5831 CFLAGS="$xorg_testset_save_CFLAGS"
5832 fi
5833
5834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837 fi
5838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5840 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5841 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else $as_nop
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 int i;
5848 _ACEOF
5849 if ac_fn_c_try_compile "$LINENO"
5850 then :
5851 xorg_cv_cc_flag_unused_command_line_argument=yes
5852 else $as_nop
5853 xorg_cv_cc_flag_unused_command_line_argument=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5856 fi
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5858 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5860 CFLAGS="$xorg_testset_save_CFLAGS"
5861 fi
5862
5863 found="no"
5864
5865 if test $found = "no" ; then
5866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5868 fi
5869
5870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5872 fi
5873
5874 CFLAGS="$CFLAGS -Wbad-function-cast"
5875
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5877 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5878 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5879 if eval test \${$cacheid+y}
5880 then :
5881 printf %s "(cached) " >&6
5882 else $as_nop
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 int i;
5886 int
5887 main (void)
5888 {
5889
5890 ;
5891 return 0;
5892 }
5893 _ACEOF
5894 if ac_fn_c_try_link "$LINENO"
5895 then :
5896 eval $cacheid=yes
5897 else $as_nop
5898 eval $cacheid=no
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5901 conftest$ac_exeext conftest.$ac_ext
5902 fi
5903
5904
5905 CFLAGS="$xorg_testset_save_CFLAGS"
5906
5907 eval supported=\$$cacheid
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5909 printf "%s\n" "$supported" >&6; }
5910 if test "$supported" = "yes" ; then
5911 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5912 found="yes"
5913 fi
5914 fi
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930 xorg_testset_save_CFLAGS="$CFLAGS"
5931
5932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5937 then :
5938 printf %s "(cached) " >&6
5939 else $as_nop
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 int i;
5943 _ACEOF
5944 if ac_fn_c_try_compile "$LINENO"
5945 then :
5946 xorg_cv_cc_flag_unknown_warning_option=yes
5947 else $as_nop
5948 xorg_cv_cc_flag_unknown_warning_option=no
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5951 fi
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5953 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5955 CFLAGS="$xorg_testset_save_CFLAGS"
5956 fi
5957
5958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5961 fi
5962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5966 then :
5967 printf %s "(cached) " >&6
5968 else $as_nop
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 int i;
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"
5974 then :
5975 xorg_cv_cc_flag_unused_command_line_argument=yes
5976 else $as_nop
5977 xorg_cv_cc_flag_unused_command_line_argument=no
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5980 fi
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5982 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5984 CFLAGS="$xorg_testset_save_CFLAGS"
5985 fi
5986
5987 found="no"
5988
5989 if test $found = "no" ; then
5990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992 fi
5993
5994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996 fi
5997
5998 CFLAGS="$CFLAGS -Wold-style-definition"
5999
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6001 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6002 cacheid=xorg_cv_cc_flag__Wold_style_definition
6003 if eval test \${$cacheid+y}
6004 then :
6005 printf %s "(cached) " >&6
6006 else $as_nop
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 int i;
6010 int
6011 main (void)
6012 {
6013
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 if ac_fn_c_try_link "$LINENO"
6019 then :
6020 eval $cacheid=yes
6021 else $as_nop
6022 eval $cacheid=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6025 conftest$ac_exeext conftest.$ac_ext
6026 fi
6027
6028
6029 CFLAGS="$xorg_testset_save_CFLAGS"
6030
6031 eval supported=\$$cacheid
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6033 printf "%s\n" "$supported" >&6; }
6034 if test "$supported" = "yes" ; then
6035 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6036 found="yes"
6037 fi
6038 fi
6039
6040 if test $found = "no" ; then
6041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043 fi
6044
6045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6047 fi
6048
6049 CFLAGS="$CFLAGS -fd"
6050
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6052 printf %s "checking if $CC supports -fd... " >&6; }
6053 cacheid=xorg_cv_cc_flag__fd
6054 if eval test \${$cacheid+y}
6055 then :
6056 printf %s "(cached) " >&6
6057 else $as_nop
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 int i;
6061 int
6062 main (void)
6063 {
6064
6065 ;
6066 return 0;
6067 }
6068 _ACEOF
6069 if ac_fn_c_try_link "$LINENO"
6070 then :
6071 eval $cacheid=yes
6072 else $as_nop
6073 eval $cacheid=no
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6076 conftest$ac_exeext conftest.$ac_ext
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 -fd"
6087 found="yes"
6088 fi
6089 fi
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 xorg_testset_save_CFLAGS="$CFLAGS"
6106
6107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6110 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6111 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6112 then :
6113 printf %s "(cached) " >&6
6114 else $as_nop
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 int i;
6118 _ACEOF
6119 if ac_fn_c_try_compile "$LINENO"
6120 then :
6121 xorg_cv_cc_flag_unknown_warning_option=yes
6122 else $as_nop
6123 xorg_cv_cc_flag_unknown_warning_option=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6126 fi
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6128 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6130 CFLAGS="$xorg_testset_save_CFLAGS"
6131 fi
6132
6133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136 fi
6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6141 then :
6142 printf %s "(cached) " >&6
6143 else $as_nop
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 int i;
6147 _ACEOF
6148 if ac_fn_c_try_compile "$LINENO"
6149 then :
6150 xorg_cv_cc_flag_unused_command_line_argument=yes
6151 else $as_nop
6152 xorg_cv_cc_flag_unused_command_line_argument=no
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6155 fi
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6157 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6159 CFLAGS="$xorg_testset_save_CFLAGS"
6160 fi
6161
6162 found="no"
6163
6164 if test $found = "no" ; then
6165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167 fi
6168
6169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6171 fi
6172
6173 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6174
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6176 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6177 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6178 if eval test \${$cacheid+y}
6179 then :
6180 printf %s "(cached) " >&6
6181 else $as_nop
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 int i;
6185 int
6186 main (void)
6187 {
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_link "$LINENO"
6194 then :
6195 eval $cacheid=yes
6196 else $as_nop
6197 eval $cacheid=no
6198 fi
6199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6200 conftest$ac_exeext conftest.$ac_ext
6201 fi
6202
6203
6204 CFLAGS="$xorg_testset_save_CFLAGS"
6205
6206 eval supported=\$$cacheid
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6208 printf "%s\n" "$supported" >&6; }
6209 if test "$supported" = "yes" ; then
6210 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6211 found="yes"
6212 fi
6213 fi
6214
6215
6216
6217
6218
6219 # This chunk adds additional warnings that could catch undesired effects.
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 xorg_testset_save_CFLAGS="$CFLAGS"
6234
6235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6240 then :
6241 printf %s "(cached) " >&6
6242 else $as_nop
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 int i;
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"
6248 then :
6249 xorg_cv_cc_flag_unknown_warning_option=yes
6250 else $as_nop
6251 xorg_cv_cc_flag_unknown_warning_option=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6254 fi
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6258 CFLAGS="$xorg_testset_save_CFLAGS"
6259 fi
6260
6261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264 fi
6265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else $as_nop
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"
6277 then :
6278 xorg_cv_cc_flag_unused_command_line_argument=yes
6279 else $as_nop
6280 xorg_cv_cc_flag_unused_command_line_argument=no
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6283 fi
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6287 CFLAGS="$xorg_testset_save_CFLAGS"
6288 fi
6289
6290 found="no"
6291
6292 if test $found = "no" ; then
6293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295 fi
6296
6297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6299 fi
6300
6301 CFLAGS="$CFLAGS -Wunused"
6302
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6304 printf %s "checking if $CC supports -Wunused... " >&6; }
6305 cacheid=xorg_cv_cc_flag__Wunused
6306 if eval test \${$cacheid+y}
6307 then :
6308 printf %s "(cached) " >&6
6309 else $as_nop
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 int i;
6313 int
6314 main (void)
6315 {
6316
6317 ;
6318 return 0;
6319 }
6320 _ACEOF
6321 if ac_fn_c_try_link "$LINENO"
6322 then :
6323 eval $cacheid=yes
6324 else $as_nop
6325 eval $cacheid=no
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6328 conftest$ac_exeext conftest.$ac_ext
6329 fi
6330
6331
6332 CFLAGS="$xorg_testset_save_CFLAGS"
6333
6334 eval supported=\$$cacheid
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6336 printf "%s\n" "$supported" >&6; }
6337 if test "$supported" = "yes" ; then
6338 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6339 found="yes"
6340 fi
6341 fi
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 xorg_testset_save_CFLAGS="$CFLAGS"
6358
6359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6362 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6363 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6364 then :
6365 printf %s "(cached) " >&6
6366 else $as_nop
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 int i;
6370 _ACEOF
6371 if ac_fn_c_try_compile "$LINENO"
6372 then :
6373 xorg_cv_cc_flag_unknown_warning_option=yes
6374 else $as_nop
6375 xorg_cv_cc_flag_unknown_warning_option=no
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6378 fi
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6382 CFLAGS="$xorg_testset_save_CFLAGS"
6383 fi
6384
6385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388 fi
6389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6393 then :
6394 printf %s "(cached) " >&6
6395 else $as_nop
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398 int i;
6399 _ACEOF
6400 if ac_fn_c_try_compile "$LINENO"
6401 then :
6402 xorg_cv_cc_flag_unused_command_line_argument=yes
6403 else $as_nop
6404 xorg_cv_cc_flag_unused_command_line_argument=no
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6407 fi
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6411 CFLAGS="$xorg_testset_save_CFLAGS"
6412 fi
6413
6414 found="no"
6415
6416 if test $found = "no" ; then
6417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419 fi
6420
6421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423 fi
6424
6425 CFLAGS="$CFLAGS -Wuninitialized"
6426
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6428 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6429 cacheid=xorg_cv_cc_flag__Wuninitialized
6430 if eval test \${$cacheid+y}
6431 then :
6432 printf %s "(cached) " >&6
6433 else $as_nop
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 int i;
6437 int
6438 main (void)
6439 {
6440
6441 ;
6442 return 0;
6443 }
6444 _ACEOF
6445 if ac_fn_c_try_link "$LINENO"
6446 then :
6447 eval $cacheid=yes
6448 else $as_nop
6449 eval $cacheid=no
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6452 conftest$ac_exeext conftest.$ac_ext
6453 fi
6454
6455
6456 CFLAGS="$xorg_testset_save_CFLAGS"
6457
6458 eval supported=\$$cacheid
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6460 printf "%s\n" "$supported" >&6; }
6461 if test "$supported" = "yes" ; then
6462 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6463 found="yes"
6464 fi
6465 fi
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 xorg_testset_save_CFLAGS="$CFLAGS"
6482
6483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6487 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6488 then :
6489 printf %s "(cached) " >&6
6490 else $as_nop
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 int i;
6494 _ACEOF
6495 if ac_fn_c_try_compile "$LINENO"
6496 then :
6497 xorg_cv_cc_flag_unknown_warning_option=yes
6498 else $as_nop
6499 xorg_cv_cc_flag_unknown_warning_option=no
6500 fi
6501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6502 fi
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6504 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6506 CFLAGS="$xorg_testset_save_CFLAGS"
6507 fi
6508
6509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512 fi
6513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6515 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6516 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6517 then :
6518 printf %s "(cached) " >&6
6519 else $as_nop
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 int i;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"
6525 then :
6526 xorg_cv_cc_flag_unused_command_line_argument=yes
6527 else $as_nop
6528 xorg_cv_cc_flag_unused_command_line_argument=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6531 fi
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6536 fi
6537
6538 found="no"
6539
6540 if test $found = "no" ; then
6541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6543 fi
6544
6545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6547 fi
6548
6549 CFLAGS="$CFLAGS -Wshadow"
6550
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6552 printf %s "checking if $CC supports -Wshadow... " >&6; }
6553 cacheid=xorg_cv_cc_flag__Wshadow
6554 if eval test \${$cacheid+y}
6555 then :
6556 printf %s "(cached) " >&6
6557 else $as_nop
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560 int i;
6561 int
6562 main (void)
6563 {
6564
6565 ;
6566 return 0;
6567 }
6568 _ACEOF
6569 if ac_fn_c_try_link "$LINENO"
6570 then :
6571 eval $cacheid=yes
6572 else $as_nop
6573 eval $cacheid=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6576 conftest$ac_exeext conftest.$ac_ext
6577 fi
6578
6579
6580 CFLAGS="$xorg_testset_save_CFLAGS"
6581
6582 eval supported=\$$cacheid
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6584 printf "%s\n" "$supported" >&6; }
6585 if test "$supported" = "yes" ; then
6586 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6587 found="yes"
6588 fi
6589 fi
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605 xorg_testset_save_CFLAGS="$CFLAGS"
6606
6607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6610 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6611 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6612 then :
6613 printf %s "(cached) " >&6
6614 else $as_nop
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 int i;
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"
6620 then :
6621 xorg_cv_cc_flag_unknown_warning_option=yes
6622 else $as_nop
6623 xorg_cv_cc_flag_unknown_warning_option=no
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6626 fi
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6628 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6630 CFLAGS="$xorg_testset_save_CFLAGS"
6631 fi
6632
6633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6636 fi
6637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6639 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6640 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else $as_nop
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 int i;
6647 _ACEOF
6648 if ac_fn_c_try_compile "$LINENO"
6649 then :
6650 xorg_cv_cc_flag_unused_command_line_argument=yes
6651 else $as_nop
6652 xorg_cv_cc_flag_unused_command_line_argument=no
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6655 fi
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6659 CFLAGS="$xorg_testset_save_CFLAGS"
6660 fi
6661
6662 found="no"
6663
6664 if test $found = "no" ; then
6665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667 fi
6668
6669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6671 fi
6672
6673 CFLAGS="$CFLAGS -Wmissing-noreturn"
6674
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6676 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6677 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6678 if eval test \${$cacheid+y}
6679 then :
6680 printf %s "(cached) " >&6
6681 else $as_nop
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 int i;
6685 int
6686 main (void)
6687 {
6688
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_c_try_link "$LINENO"
6694 then :
6695 eval $cacheid=yes
6696 else $as_nop
6697 eval $cacheid=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6700 conftest$ac_exeext conftest.$ac_ext
6701 fi
6702
6703
6704 CFLAGS="$xorg_testset_save_CFLAGS"
6705
6706 eval supported=\$$cacheid
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6708 printf "%s\n" "$supported" >&6; }
6709 if test "$supported" = "yes" ; then
6710 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6711 found="yes"
6712 fi
6713 fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 xorg_testset_save_CFLAGS="$CFLAGS"
6730
6731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6734 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6735 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6736 then :
6737 printf %s "(cached) " >&6
6738 else $as_nop
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 int i;
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"
6744 then :
6745 xorg_cv_cc_flag_unknown_warning_option=yes
6746 else $as_nop
6747 xorg_cv_cc_flag_unknown_warning_option=no
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6750 fi
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6752 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6754 CFLAGS="$xorg_testset_save_CFLAGS"
6755 fi
6756
6757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6760 fi
6761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6763 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6764 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6765 then :
6766 printf %s "(cached) " >&6
6767 else $as_nop
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 int i;
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"
6773 then :
6774 xorg_cv_cc_flag_unused_command_line_argument=yes
6775 else $as_nop
6776 xorg_cv_cc_flag_unused_command_line_argument=no
6777 fi
6778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6779 fi
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6781 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6783 CFLAGS="$xorg_testset_save_CFLAGS"
6784 fi
6785
6786 found="no"
6787
6788 if test $found = "no" ; then
6789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791 fi
6792
6793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6795 fi
6796
6797 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6798
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6800 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6801 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6802 if eval test \${$cacheid+y}
6803 then :
6804 printf %s "(cached) " >&6
6805 else $as_nop
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 int i;
6809 int
6810 main (void)
6811 {
6812
6813 ;
6814 return 0;
6815 }
6816 _ACEOF
6817 if ac_fn_c_try_link "$LINENO"
6818 then :
6819 eval $cacheid=yes
6820 else $as_nop
6821 eval $cacheid=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6824 conftest$ac_exeext conftest.$ac_ext
6825 fi
6826
6827
6828 CFLAGS="$xorg_testset_save_CFLAGS"
6829
6830 eval supported=\$$cacheid
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6832 printf "%s\n" "$supported" >&6; }
6833 if test "$supported" = "yes" ; then
6834 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6835 found="yes"
6836 fi
6837 fi
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853 xorg_testset_save_CFLAGS="$CFLAGS"
6854
6855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6858 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6859 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6860 then :
6861 printf %s "(cached) " >&6
6862 else $as_nop
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 int i;
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"
6868 then :
6869 xorg_cv_cc_flag_unknown_warning_option=yes
6870 else $as_nop
6871 xorg_cv_cc_flag_unknown_warning_option=no
6872 fi
6873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6874 fi
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6876 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6878 CFLAGS="$xorg_testset_save_CFLAGS"
6879 fi
6880
6881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6884 fi
6885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6887 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6888 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6889 then :
6890 printf %s "(cached) " >&6
6891 else $as_nop
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 int i;
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"
6897 then :
6898 xorg_cv_cc_flag_unused_command_line_argument=yes
6899 else $as_nop
6900 xorg_cv_cc_flag_unused_command_line_argument=no
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6903 fi
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6905 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6907 CFLAGS="$xorg_testset_save_CFLAGS"
6908 fi
6909
6910 found="no"
6911
6912 if test $found = "no" ; then
6913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915 fi
6916
6917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919 fi
6920
6921 CFLAGS="$CFLAGS -Wredundant-decls"
6922
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6924 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6925 cacheid=xorg_cv_cc_flag__Wredundant_decls
6926 if eval test \${$cacheid+y}
6927 then :
6928 printf %s "(cached) " >&6
6929 else $as_nop
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 int i;
6933 int
6934 main (void)
6935 {
6936
6937 ;
6938 return 0;
6939 }
6940 _ACEOF
6941 if ac_fn_c_try_link "$LINENO"
6942 then :
6943 eval $cacheid=yes
6944 else $as_nop
6945 eval $cacheid=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6948 conftest$ac_exeext conftest.$ac_ext
6949 fi
6950
6951
6952 CFLAGS="$xorg_testset_save_CFLAGS"
6953
6954 eval supported=\$$cacheid
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956 printf "%s\n" "$supported" >&6; }
6957 if test "$supported" = "yes" ; then
6958 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6959 found="yes"
6960 fi
6961 fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977 xorg_testset_save_CFLAGS="$CFLAGS"
6978
6979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6982 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6983 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6984 then :
6985 printf %s "(cached) " >&6
6986 else $as_nop
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 int i;
6990 _ACEOF
6991 if ac_fn_c_try_compile "$LINENO"
6992 then :
6993 xorg_cv_cc_flag_unknown_warning_option=yes
6994 else $as_nop
6995 xorg_cv_cc_flag_unknown_warning_option=no
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6998 fi
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7000 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7002 CFLAGS="$xorg_testset_save_CFLAGS"
7003 fi
7004
7005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7008 fi
7009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7011 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7012 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else $as_nop
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 int i;
7019 _ACEOF
7020 if ac_fn_c_try_compile "$LINENO"
7021 then :
7022 xorg_cv_cc_flag_unused_command_line_argument=yes
7023 else $as_nop
7024 xorg_cv_cc_flag_unused_command_line_argument=no
7025 fi
7026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7027 fi
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7029 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7031 CFLAGS="$xorg_testset_save_CFLAGS"
7032 fi
7033
7034 found="no"
7035
7036 if test $found = "no" ; then
7037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039 fi
7040
7041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043 fi
7044
7045 CFLAGS="$CFLAGS -Wlogical-op"
7046
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7048 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7049 cacheid=xorg_cv_cc_flag__Wlogical_op
7050 if eval test \${$cacheid+y}
7051 then :
7052 printf %s "(cached) " >&6
7053 else $as_nop
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 int i;
7057 int
7058 main (void)
7059 {
7060
7061 ;
7062 return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_link "$LINENO"
7066 then :
7067 eval $cacheid=yes
7068 else $as_nop
7069 eval $cacheid=no
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7072 conftest$ac_exeext conftest.$ac_ext
7073 fi
7074
7075
7076 CFLAGS="$xorg_testset_save_CFLAGS"
7077
7078 eval supported=\$$cacheid
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7080 printf "%s\n" "$supported" >&6; }
7081 if test "$supported" = "yes" ; then
7082 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7083 found="yes"
7084 fi
7085 fi
7086
7087
7088
7089 # These are currently disabled because they are noisy. They will be enabled
7090 # in the future once the codebase is sufficiently modernized to silence
7091 # them. For now, I don't want them to drown out the other warnings.
7092 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7093 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7094 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7095
7096 # Turn some warnings into errors, so we don't accidently get successful builds
7097 # when there are problems that should be fixed.
7098
7099 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113 xorg_testset_save_CFLAGS="$CFLAGS"
7114
7115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7118 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7119 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7120 then :
7121 printf %s "(cached) " >&6
7122 else $as_nop
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 int i;
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"
7128 then :
7129 xorg_cv_cc_flag_unknown_warning_option=yes
7130 else $as_nop
7131 xorg_cv_cc_flag_unknown_warning_option=no
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7134 fi
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7136 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7138 CFLAGS="$xorg_testset_save_CFLAGS"
7139 fi
7140
7141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7144 fi
7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7147 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7148 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7149 then :
7150 printf %s "(cached) " >&6
7151 else $as_nop
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 int i;
7155 _ACEOF
7156 if ac_fn_c_try_compile "$LINENO"
7157 then :
7158 xorg_cv_cc_flag_unused_command_line_argument=yes
7159 else $as_nop
7160 xorg_cv_cc_flag_unused_command_line_argument=no
7161 fi
7162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7163 fi
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7167 CFLAGS="$xorg_testset_save_CFLAGS"
7168 fi
7169
7170 found="no"
7171
7172 if test $found = "no" ; then
7173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175 fi
7176
7177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7179 fi
7180
7181 CFLAGS="$CFLAGS -Werror=implicit"
7182
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7184 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7185 cacheid=xorg_cv_cc_flag__Werror_implicit
7186 if eval test \${$cacheid+y}
7187 then :
7188 printf %s "(cached) " >&6
7189 else $as_nop
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 int i;
7193 int
7194 main (void)
7195 {
7196
7197 ;
7198 return 0;
7199 }
7200 _ACEOF
7201 if ac_fn_c_try_link "$LINENO"
7202 then :
7203 eval $cacheid=yes
7204 else $as_nop
7205 eval $cacheid=no
7206 fi
7207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7208 conftest$ac_exeext conftest.$ac_ext
7209 fi
7210
7211
7212 CFLAGS="$xorg_testset_save_CFLAGS"
7213
7214 eval supported=\$$cacheid
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7216 printf "%s\n" "$supported" >&6; }
7217 if test "$supported" = "yes" ; then
7218 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7219 found="yes"
7220 fi
7221 fi
7222
7223 if test $found = "no" ; then
7224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226 fi
7227
7228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7230 fi
7231
7232 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7233
7234 { 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
7235 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7236 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7237 if eval test \${$cacheid+y}
7238 then :
7239 printf %s "(cached) " >&6
7240 else $as_nop
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 int i;
7244 int
7245 main (void)
7246 {
7247
7248 ;
7249 return 0;
7250 }
7251 _ACEOF
7252 if ac_fn_c_try_link "$LINENO"
7253 then :
7254 eval $cacheid=yes
7255 else $as_nop
7256 eval $cacheid=no
7257 fi
7258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7259 conftest$ac_exeext conftest.$ac_ext
7260 fi
7261
7262
7263 CFLAGS="$xorg_testset_save_CFLAGS"
7264
7265 eval supported=\$$cacheid
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7267 printf "%s\n" "$supported" >&6; }
7268 if test "$supported" = "yes" ; then
7269 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7270 found="yes"
7271 fi
7272 fi
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288 xorg_testset_save_CFLAGS="$CFLAGS"
7289
7290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7293 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7294 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7295 then :
7296 printf %s "(cached) " >&6
7297 else $as_nop
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 int i;
7301 _ACEOF
7302 if ac_fn_c_try_compile "$LINENO"
7303 then :
7304 xorg_cv_cc_flag_unknown_warning_option=yes
7305 else $as_nop
7306 xorg_cv_cc_flag_unknown_warning_option=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7309 fi
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7311 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7313 CFLAGS="$xorg_testset_save_CFLAGS"
7314 fi
7315
7316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7319 fi
7320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7322 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7323 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7324 then :
7325 printf %s "(cached) " >&6
7326 else $as_nop
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 int i;
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"
7332 then :
7333 xorg_cv_cc_flag_unused_command_line_argument=yes
7334 else $as_nop
7335 xorg_cv_cc_flag_unused_command_line_argument=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7338 fi
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7340 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7342 CFLAGS="$xorg_testset_save_CFLAGS"
7343 fi
7344
7345 found="no"
7346
7347 if test $found = "no" ; then
7348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350 fi
7351
7352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354 fi
7355
7356 CFLAGS="$CFLAGS -Werror=nonnull"
7357
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7359 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7360 cacheid=xorg_cv_cc_flag__Werror_nonnull
7361 if eval test \${$cacheid+y}
7362 then :
7363 printf %s "(cached) " >&6
7364 else $as_nop
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 int i;
7368 int
7369 main (void)
7370 {
7371
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 if ac_fn_c_try_link "$LINENO"
7377 then :
7378 eval $cacheid=yes
7379 else $as_nop
7380 eval $cacheid=no
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7383 conftest$ac_exeext conftest.$ac_ext
7384 fi
7385
7386
7387 CFLAGS="$xorg_testset_save_CFLAGS"
7388
7389 eval supported=\$$cacheid
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7391 printf "%s\n" "$supported" >&6; }
7392 if test "$supported" = "yes" ; then
7393 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7394 found="yes"
7395 fi
7396 fi
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412 xorg_testset_save_CFLAGS="$CFLAGS"
7413
7414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7417 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7418 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7419 then :
7420 printf %s "(cached) " >&6
7421 else $as_nop
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 int i;
7425 _ACEOF
7426 if ac_fn_c_try_compile "$LINENO"
7427 then :
7428 xorg_cv_cc_flag_unknown_warning_option=yes
7429 else $as_nop
7430 xorg_cv_cc_flag_unknown_warning_option=no
7431 fi
7432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7433 fi
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7435 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7437 CFLAGS="$xorg_testset_save_CFLAGS"
7438 fi
7439
7440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443 fi
7444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7446 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7447 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7448 then :
7449 printf %s "(cached) " >&6
7450 else $as_nop
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 int i;
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"
7456 then :
7457 xorg_cv_cc_flag_unused_command_line_argument=yes
7458 else $as_nop
7459 xorg_cv_cc_flag_unused_command_line_argument=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7462 fi
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7464 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7466 CFLAGS="$xorg_testset_save_CFLAGS"
7467 fi
7468
7469 found="no"
7470
7471 if test $found = "no" ; then
7472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474 fi
7475
7476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7478 fi
7479
7480 CFLAGS="$CFLAGS -Werror=init-self"
7481
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7483 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7484 cacheid=xorg_cv_cc_flag__Werror_init_self
7485 if eval test \${$cacheid+y}
7486 then :
7487 printf %s "(cached) " >&6
7488 else $as_nop
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491 int i;
7492 int
7493 main (void)
7494 {
7495
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"
7501 then :
7502 eval $cacheid=yes
7503 else $as_nop
7504 eval $cacheid=no
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7507 conftest$ac_exeext conftest.$ac_ext
7508 fi
7509
7510
7511 CFLAGS="$xorg_testset_save_CFLAGS"
7512
7513 eval supported=\$$cacheid
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7515 printf "%s\n" "$supported" >&6; }
7516 if test "$supported" = "yes" ; then
7517 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7518 found="yes"
7519 fi
7520 fi
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 xorg_testset_save_CFLAGS="$CFLAGS"
7537
7538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7541 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7542 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7543 then :
7544 printf %s "(cached) " >&6
7545 else $as_nop
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 int i;
7549 _ACEOF
7550 if ac_fn_c_try_compile "$LINENO"
7551 then :
7552 xorg_cv_cc_flag_unknown_warning_option=yes
7553 else $as_nop
7554 xorg_cv_cc_flag_unknown_warning_option=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7557 fi
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7559 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7561 CFLAGS="$xorg_testset_save_CFLAGS"
7562 fi
7563
7564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7567 fi
7568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7570 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7571 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7572 then :
7573 printf %s "(cached) " >&6
7574 else $as_nop
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 int i;
7578 _ACEOF
7579 if ac_fn_c_try_compile "$LINENO"
7580 then :
7581 xorg_cv_cc_flag_unused_command_line_argument=yes
7582 else $as_nop
7583 xorg_cv_cc_flag_unused_command_line_argument=no
7584 fi
7585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7586 fi
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7588 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7590 CFLAGS="$xorg_testset_save_CFLAGS"
7591 fi
7592
7593 found="no"
7594
7595 if test $found = "no" ; then
7596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7598 fi
7599
7600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7602 fi
7603
7604 CFLAGS="$CFLAGS -Werror=main"
7605
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7607 printf %s "checking if $CC supports -Werror=main... " >&6; }
7608 cacheid=xorg_cv_cc_flag__Werror_main
7609 if eval test \${$cacheid+y}
7610 then :
7611 printf %s "(cached) " >&6
7612 else $as_nop
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 int i;
7616 int
7617 main (void)
7618 {
7619
7620 ;
7621 return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_link "$LINENO"
7625 then :
7626 eval $cacheid=yes
7627 else $as_nop
7628 eval $cacheid=no
7629 fi
7630 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7631 conftest$ac_exeext conftest.$ac_ext
7632 fi
7633
7634
7635 CFLAGS="$xorg_testset_save_CFLAGS"
7636
7637 eval supported=\$$cacheid
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7639 printf "%s\n" "$supported" >&6; }
7640 if test "$supported" = "yes" ; then
7641 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7642 found="yes"
7643 fi
7644 fi
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660 xorg_testset_save_CFLAGS="$CFLAGS"
7661
7662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7666 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7667 then :
7668 printf %s "(cached) " >&6
7669 else $as_nop
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672 int i;
7673 _ACEOF
7674 if ac_fn_c_try_compile "$LINENO"
7675 then :
7676 xorg_cv_cc_flag_unknown_warning_option=yes
7677 else $as_nop
7678 xorg_cv_cc_flag_unknown_warning_option=no
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7681 fi
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7683 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7685 CFLAGS="$xorg_testset_save_CFLAGS"
7686 fi
7687
7688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7691 fi
7692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7696 then :
7697 printf %s "(cached) " >&6
7698 else $as_nop
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 int i;
7702 _ACEOF
7703 if ac_fn_c_try_compile "$LINENO"
7704 then :
7705 xorg_cv_cc_flag_unused_command_line_argument=yes
7706 else $as_nop
7707 xorg_cv_cc_flag_unused_command_line_argument=no
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7710 fi
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7712 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7714 CFLAGS="$xorg_testset_save_CFLAGS"
7715 fi
7716
7717 found="no"
7718
7719 if test $found = "no" ; then
7720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722 fi
7723
7724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7726 fi
7727
7728 CFLAGS="$CFLAGS -Werror=missing-braces"
7729
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7731 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7732 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7733 if eval test \${$cacheid+y}
7734 then :
7735 printf %s "(cached) " >&6
7736 else $as_nop
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 int i;
7740 int
7741 main (void)
7742 {
7743
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 if ac_fn_c_try_link "$LINENO"
7749 then :
7750 eval $cacheid=yes
7751 else $as_nop
7752 eval $cacheid=no
7753 fi
7754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7755 conftest$ac_exeext conftest.$ac_ext
7756 fi
7757
7758
7759 CFLAGS="$xorg_testset_save_CFLAGS"
7760
7761 eval supported=\$$cacheid
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7763 printf "%s\n" "$supported" >&6; }
7764 if test "$supported" = "yes" ; then
7765 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7766 found="yes"
7767 fi
7768 fi
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 xorg_testset_save_CFLAGS="$CFLAGS"
7785
7786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7789 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7790 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7791 then :
7792 printf %s "(cached) " >&6
7793 else $as_nop
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 int i;
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"
7799 then :
7800 xorg_cv_cc_flag_unknown_warning_option=yes
7801 else $as_nop
7802 xorg_cv_cc_flag_unknown_warning_option=no
7803 fi
7804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7805 fi
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7807 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7809 CFLAGS="$xorg_testset_save_CFLAGS"
7810 fi
7811
7812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815 fi
7816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else $as_nop
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 int i;
7826 _ACEOF
7827 if ac_fn_c_try_compile "$LINENO"
7828 then :
7829 xorg_cv_cc_flag_unused_command_line_argument=yes
7830 else $as_nop
7831 xorg_cv_cc_flag_unused_command_line_argument=no
7832 fi
7833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7834 fi
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7836 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7839 fi
7840
7841 found="no"
7842
7843 if test $found = "no" ; then
7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 fi
7847
7848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850 fi
7851
7852 CFLAGS="$CFLAGS -Werror=sequence-point"
7853
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7855 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7856 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7857 if eval test \${$cacheid+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else $as_nop
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 int i;
7864 int
7865 main (void)
7866 {
7867
7868 ;
7869 return 0;
7870 }
7871 _ACEOF
7872 if ac_fn_c_try_link "$LINENO"
7873 then :
7874 eval $cacheid=yes
7875 else $as_nop
7876 eval $cacheid=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7879 conftest$ac_exeext conftest.$ac_ext
7880 fi
7881
7882
7883 CFLAGS="$xorg_testset_save_CFLAGS"
7884
7885 eval supported=\$$cacheid
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7887 printf "%s\n" "$supported" >&6; }
7888 if test "$supported" = "yes" ; then
7889 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7890 found="yes"
7891 fi
7892 fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 xorg_testset_save_CFLAGS="$CFLAGS"
7909
7910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7913 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7914 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7915 then :
7916 printf %s "(cached) " >&6
7917 else $as_nop
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 int i;
7921 _ACEOF
7922 if ac_fn_c_try_compile "$LINENO"
7923 then :
7924 xorg_cv_cc_flag_unknown_warning_option=yes
7925 else $as_nop
7926 xorg_cv_cc_flag_unknown_warning_option=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7929 fi
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7931 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7933 CFLAGS="$xorg_testset_save_CFLAGS"
7934 fi
7935
7936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939 fi
7940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7942 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7943 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7944 then :
7945 printf %s "(cached) " >&6
7946 else $as_nop
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 int i;
7950 _ACEOF
7951 if ac_fn_c_try_compile "$LINENO"
7952 then :
7953 xorg_cv_cc_flag_unused_command_line_argument=yes
7954 else $as_nop
7955 xorg_cv_cc_flag_unused_command_line_argument=no
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7958 fi
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7960 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7962 CFLAGS="$xorg_testset_save_CFLAGS"
7963 fi
7964
7965 found="no"
7966
7967 if test $found = "no" ; then
7968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7970 fi
7971
7972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7974 fi
7975
7976 CFLAGS="$CFLAGS -Werror=return-type"
7977
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7979 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7980 cacheid=xorg_cv_cc_flag__Werror_return_type
7981 if eval test \${$cacheid+y}
7982 then :
7983 printf %s "(cached) " >&6
7984 else $as_nop
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 int i;
7988 int
7989 main (void)
7990 {
7991
7992 ;
7993 return 0;
7994 }
7995 _ACEOF
7996 if ac_fn_c_try_link "$LINENO"
7997 then :
7998 eval $cacheid=yes
7999 else $as_nop
8000 eval $cacheid=no
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8003 conftest$ac_exeext conftest.$ac_ext
8004 fi
8005
8006
8007 CFLAGS="$xorg_testset_save_CFLAGS"
8008
8009 eval supported=\$$cacheid
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8011 printf "%s\n" "$supported" >&6; }
8012 if test "$supported" = "yes" ; then
8013 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8014 found="yes"
8015 fi
8016 fi
8017
8018 if test $found = "no" ; then
8019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021 fi
8022
8023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8025 fi
8026
8027 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8028
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8030 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8031 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8032 if eval test \${$cacheid+y}
8033 then :
8034 printf %s "(cached) " >&6
8035 else $as_nop
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 int i;
8039 int
8040 main (void)
8041 {
8042
8043 ;
8044 return 0;
8045 }
8046 _ACEOF
8047 if ac_fn_c_try_link "$LINENO"
8048 then :
8049 eval $cacheid=yes
8050 else $as_nop
8051 eval $cacheid=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8054 conftest$ac_exeext conftest.$ac_ext
8055 fi
8056
8057
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060 eval supported=\$$cacheid
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8062 printf "%s\n" "$supported" >&6; }
8063 if test "$supported" = "yes" ; then
8064 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8065 found="yes"
8066 fi
8067 fi
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 xorg_testset_save_CFLAGS="$CFLAGS"
8084
8085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8089 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8090 then :
8091 printf %s "(cached) " >&6
8092 else $as_nop
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 int i;
8096 _ACEOF
8097 if ac_fn_c_try_compile "$LINENO"
8098 then :
8099 xorg_cv_cc_flag_unknown_warning_option=yes
8100 else $as_nop
8101 xorg_cv_cc_flag_unknown_warning_option=no
8102 fi
8103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8104 fi
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8108 CFLAGS="$xorg_testset_save_CFLAGS"
8109 fi
8110
8111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114 fi
8115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8119 then :
8120 printf %s "(cached) " >&6
8121 else $as_nop
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 int i;
8125 _ACEOF
8126 if ac_fn_c_try_compile "$LINENO"
8127 then :
8128 xorg_cv_cc_flag_unused_command_line_argument=yes
8129 else $as_nop
8130 xorg_cv_cc_flag_unused_command_line_argument=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8133 fi
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8137 CFLAGS="$xorg_testset_save_CFLAGS"
8138 fi
8139
8140 found="no"
8141
8142 if test $found = "no" ; then
8143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 fi
8146
8147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149 fi
8150
8151 CFLAGS="$CFLAGS -Werror=trigraphs"
8152
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8154 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8155 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8156 if eval test \${$cacheid+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else $as_nop
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 int i;
8163 int
8164 main (void)
8165 {
8166
8167 ;
8168 return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_link "$LINENO"
8172 then :
8173 eval $cacheid=yes
8174 else $as_nop
8175 eval $cacheid=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8178 conftest$ac_exeext conftest.$ac_ext
8179 fi
8180
8181
8182 CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184 eval supported=\$$cacheid
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186 printf "%s\n" "$supported" >&6; }
8187 if test "$supported" = "yes" ; then
8188 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8189 found="yes"
8190 fi
8191 fi
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 xorg_testset_save_CFLAGS="$CFLAGS"
8208
8209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8213 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8214 then :
8215 printf %s "(cached) " >&6
8216 else $as_nop
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 int i;
8220 _ACEOF
8221 if ac_fn_c_try_compile "$LINENO"
8222 then :
8223 xorg_cv_cc_flag_unknown_warning_option=yes
8224 else $as_nop
8225 xorg_cv_cc_flag_unknown_warning_option=no
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8228 fi
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8232 CFLAGS="$xorg_testset_save_CFLAGS"
8233 fi
8234
8235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238 fi
8239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8243 then :
8244 printf %s "(cached) " >&6
8245 else $as_nop
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248 int i;
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"
8251 then :
8252 xorg_cv_cc_flag_unused_command_line_argument=yes
8253 else $as_nop
8254 xorg_cv_cc_flag_unused_command_line_argument=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8257 fi
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8261 CFLAGS="$xorg_testset_save_CFLAGS"
8262 fi
8263
8264 found="no"
8265
8266 if test $found = "no" ; then
8267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269 fi
8270
8271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8273 fi
8274
8275 CFLAGS="$CFLAGS -Werror=array-bounds"
8276
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8278 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8279 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8280 if eval test \${$cacheid+y}
8281 then :
8282 printf %s "(cached) " >&6
8283 else $as_nop
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 int i;
8287 int
8288 main (void)
8289 {
8290
8291 ;
8292 return 0;
8293 }
8294 _ACEOF
8295 if ac_fn_c_try_link "$LINENO"
8296 then :
8297 eval $cacheid=yes
8298 else $as_nop
8299 eval $cacheid=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8302 conftest$ac_exeext conftest.$ac_ext
8303 fi
8304
8305
8306 CFLAGS="$xorg_testset_save_CFLAGS"
8307
8308 eval supported=\$$cacheid
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8310 printf "%s\n" "$supported" >&6; }
8311 if test "$supported" = "yes" ; then
8312 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8313 found="yes"
8314 fi
8315 fi
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331 xorg_testset_save_CFLAGS="$CFLAGS"
8332
8333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8337 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8338 then :
8339 printf %s "(cached) " >&6
8340 else $as_nop
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 int i;
8344 _ACEOF
8345 if ac_fn_c_try_compile "$LINENO"
8346 then :
8347 xorg_cv_cc_flag_unknown_warning_option=yes
8348 else $as_nop
8349 xorg_cv_cc_flag_unknown_warning_option=no
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8352 fi
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8356 CFLAGS="$xorg_testset_save_CFLAGS"
8357 fi
8358
8359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8362 fi
8363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8367 then :
8368 printf %s "(cached) " >&6
8369 else $as_nop
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 int i;
8373 _ACEOF
8374 if ac_fn_c_try_compile "$LINENO"
8375 then :
8376 xorg_cv_cc_flag_unused_command_line_argument=yes
8377 else $as_nop
8378 xorg_cv_cc_flag_unused_command_line_argument=no
8379 fi
8380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8381 fi
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8385 CFLAGS="$xorg_testset_save_CFLAGS"
8386 fi
8387
8388 found="no"
8389
8390 if test $found = "no" ; then
8391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393 fi
8394
8395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8397 fi
8398
8399 CFLAGS="$CFLAGS -Werror=write-strings"
8400
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8402 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8403 cacheid=xorg_cv_cc_flag__Werror_write_strings
8404 if eval test \${$cacheid+y}
8405 then :
8406 printf %s "(cached) " >&6
8407 else $as_nop
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 int i;
8411 int
8412 main (void)
8413 {
8414
8415 ;
8416 return 0;
8417 }
8418 _ACEOF
8419 if ac_fn_c_try_link "$LINENO"
8420 then :
8421 eval $cacheid=yes
8422 else $as_nop
8423 eval $cacheid=no
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8426 conftest$ac_exeext conftest.$ac_ext
8427 fi
8428
8429
8430 CFLAGS="$xorg_testset_save_CFLAGS"
8431
8432 eval supported=\$$cacheid
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8434 printf "%s\n" "$supported" >&6; }
8435 if test "$supported" = "yes" ; then
8436 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8437 found="yes"
8438 fi
8439 fi
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455 xorg_testset_save_CFLAGS="$CFLAGS"
8456
8457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8460 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8461 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8462 then :
8463 printf %s "(cached) " >&6
8464 else $as_nop
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 int i;
8468 _ACEOF
8469 if ac_fn_c_try_compile "$LINENO"
8470 then :
8471 xorg_cv_cc_flag_unknown_warning_option=yes
8472 else $as_nop
8473 xorg_cv_cc_flag_unknown_warning_option=no
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8476 fi
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8478 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8480 CFLAGS="$xorg_testset_save_CFLAGS"
8481 fi
8482
8483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486 fi
8487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8489 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8490 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8491 then :
8492 printf %s "(cached) " >&6
8493 else $as_nop
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 int i;
8497 _ACEOF
8498 if ac_fn_c_try_compile "$LINENO"
8499 then :
8500 xorg_cv_cc_flag_unused_command_line_argument=yes
8501 else $as_nop
8502 xorg_cv_cc_flag_unused_command_line_argument=no
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8505 fi
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8507 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8509 CFLAGS="$xorg_testset_save_CFLAGS"
8510 fi
8511
8512 found="no"
8513
8514 if test $found = "no" ; then
8515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517 fi
8518
8519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8521 fi
8522
8523 CFLAGS="$CFLAGS -Werror=address"
8524
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8526 printf %s "checking if $CC supports -Werror=address... " >&6; }
8527 cacheid=xorg_cv_cc_flag__Werror_address
8528 if eval test \${$cacheid+y}
8529 then :
8530 printf %s "(cached) " >&6
8531 else $as_nop
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534 int i;
8535 int
8536 main (void)
8537 {
8538
8539 ;
8540 return 0;
8541 }
8542 _ACEOF
8543 if ac_fn_c_try_link "$LINENO"
8544 then :
8545 eval $cacheid=yes
8546 else $as_nop
8547 eval $cacheid=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8550 conftest$ac_exeext conftest.$ac_ext
8551 fi
8552
8553
8554 CFLAGS="$xorg_testset_save_CFLAGS"
8555
8556 eval supported=\$$cacheid
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8558 printf "%s\n" "$supported" >&6; }
8559 if test "$supported" = "yes" ; then
8560 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8561 found="yes"
8562 fi
8563 fi
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579 xorg_testset_save_CFLAGS="$CFLAGS"
8580
8581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8585 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8586 then :
8587 printf %s "(cached) " >&6
8588 else $as_nop
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 int i;
8592 _ACEOF
8593 if ac_fn_c_try_compile "$LINENO"
8594 then :
8595 xorg_cv_cc_flag_unknown_warning_option=yes
8596 else $as_nop
8597 xorg_cv_cc_flag_unknown_warning_option=no
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8600 fi
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8602 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8604 CFLAGS="$xorg_testset_save_CFLAGS"
8605 fi
8606
8607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610 fi
8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8613 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8614 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8615 then :
8616 printf %s "(cached) " >&6
8617 else $as_nop
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 int i;
8621 _ACEOF
8622 if ac_fn_c_try_compile "$LINENO"
8623 then :
8624 xorg_cv_cc_flag_unused_command_line_argument=yes
8625 else $as_nop
8626 xorg_cv_cc_flag_unused_command_line_argument=no
8627 fi
8628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8629 fi
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8631 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8633 CFLAGS="$xorg_testset_save_CFLAGS"
8634 fi
8635
8636 found="no"
8637
8638 if test $found = "no" ; then
8639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641 fi
8642
8643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8645 fi
8646
8647 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8648
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8650 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8651 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8652 if eval test \${$cacheid+y}
8653 then :
8654 printf %s "(cached) " >&6
8655 else $as_nop
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658 int i;
8659 int
8660 main (void)
8661 {
8662
8663 ;
8664 return 0;
8665 }
8666 _ACEOF
8667 if ac_fn_c_try_link "$LINENO"
8668 then :
8669 eval $cacheid=yes
8670 else $as_nop
8671 eval $cacheid=no
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8674 conftest$ac_exeext conftest.$ac_ext
8675 fi
8676
8677
8678 CFLAGS="$xorg_testset_save_CFLAGS"
8679
8680 eval supported=\$$cacheid
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8682 printf "%s\n" "$supported" >&6; }
8683 if test "$supported" = "yes" ; then
8684 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8685 found="yes"
8686 fi
8687 fi
8688
8689 if test $found = "no" ; then
8690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 fi
8693
8694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8696 fi
8697
8698 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8699
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8701 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8702 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8703 if eval test \${$cacheid+y}
8704 then :
8705 printf %s "(cached) " >&6
8706 else $as_nop
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 int i;
8710 int
8711 main (void)
8712 {
8713
8714 ;
8715 return 0;
8716 }
8717 _ACEOF
8718 if ac_fn_c_try_link "$LINENO"
8719 then :
8720 eval $cacheid=yes
8721 else $as_nop
8722 eval $cacheid=no
8723 fi
8724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8725 conftest$ac_exeext conftest.$ac_ext
8726 fi
8727
8728
8729 CFLAGS="$xorg_testset_save_CFLAGS"
8730
8731 eval supported=\$$cacheid
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8733 printf "%s\n" "$supported" >&6; }
8734 if test "$supported" = "yes" ; then
8735 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8736 found="yes"
8737 fi
8738 fi
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754 xorg_testset_save_CFLAGS="$CFLAGS"
8755
8756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8760 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8761 then :
8762 printf %s "(cached) " >&6
8763 else $as_nop
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8766 int i;
8767 _ACEOF
8768 if ac_fn_c_try_compile "$LINENO"
8769 then :
8770 xorg_cv_cc_flag_unknown_warning_option=yes
8771 else $as_nop
8772 xorg_cv_cc_flag_unknown_warning_option=no
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 $as_nop
8793 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 $as_nop
8801 xorg_cv_cc_flag_unused_command_line_argument=no
8802 fi
8803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8804 fi
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8806 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8808 CFLAGS="$xorg_testset_save_CFLAGS"
8809 fi
8810
8811 found="no"
8812
8813 if test $found = "no" ; then
8814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816 fi
8817
8818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820 fi
8821
8822 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8823
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8825 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8826 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8827 if eval test \${$cacheid+y}
8828 then :
8829 printf %s "(cached) " >&6
8830 else $as_nop
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 int i;
8834 int
8835 main (void)
8836 {
8837
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 if ac_fn_c_try_link "$LINENO"
8843 then :
8844 eval $cacheid=yes
8845 else $as_nop
8846 eval $cacheid=no
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8849 conftest$ac_exeext conftest.$ac_ext
8850 fi
8851
8852
8853 CFLAGS="$xorg_testset_save_CFLAGS"
8854
8855 eval supported=\$$cacheid
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8857 printf "%s\n" "$supported" >&6; }
8858 if test "$supported" = "yes" ; then
8859 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8860 found="yes"
8861 fi
8862 fi
8863
8864 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8865 else
8866 { 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
8867 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;}
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881 xorg_testset_save_CFLAGS="$CFLAGS"
8882
8883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8887 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8888 then :
8889 printf %s "(cached) " >&6
8890 else $as_nop
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 int i;
8894 _ACEOF
8895 if ac_fn_c_try_compile "$LINENO"
8896 then :
8897 xorg_cv_cc_flag_unknown_warning_option=yes
8898 else $as_nop
8899 xorg_cv_cc_flag_unknown_warning_option=no
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8902 fi
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8906 CFLAGS="$xorg_testset_save_CFLAGS"
8907 fi
8908
8909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8912 fi
8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8917 then :
8918 printf %s "(cached) " >&6
8919 else $as_nop
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 int i;
8923 _ACEOF
8924 if ac_fn_c_try_compile "$LINENO"
8925 then :
8926 xorg_cv_cc_flag_unused_command_line_argument=yes
8927 else $as_nop
8928 xorg_cv_cc_flag_unused_command_line_argument=no
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8931 fi
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8935 CFLAGS="$xorg_testset_save_CFLAGS"
8936 fi
8937
8938 found="no"
8939
8940 if test $found = "no" ; then
8941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8943 fi
8944
8945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947 fi
8948
8949 CFLAGS="$CFLAGS -Wimplicit"
8950
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8952 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8953 cacheid=xorg_cv_cc_flag__Wimplicit
8954 if eval test \${$cacheid+y}
8955 then :
8956 printf %s "(cached) " >&6
8957 else $as_nop
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 int i;
8961 int
8962 main (void)
8963 {
8964
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 if ac_fn_c_try_link "$LINENO"
8970 then :
8971 eval $cacheid=yes
8972 else $as_nop
8973 eval $cacheid=no
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8976 conftest$ac_exeext conftest.$ac_ext
8977 fi
8978
8979
8980 CFLAGS="$xorg_testset_save_CFLAGS"
8981
8982 eval supported=\$$cacheid
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8984 printf "%s\n" "$supported" >&6; }
8985 if test "$supported" = "yes" ; then
8986 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8987 found="yes"
8988 fi
8989 fi
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005 xorg_testset_save_CFLAGS="$CFLAGS"
9006
9007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9011 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9012 then :
9013 printf %s "(cached) " >&6
9014 else $as_nop
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 int i;
9018 _ACEOF
9019 if ac_fn_c_try_compile "$LINENO"
9020 then :
9021 xorg_cv_cc_flag_unknown_warning_option=yes
9022 else $as_nop
9023 xorg_cv_cc_flag_unknown_warning_option=no
9024 fi
9025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9026 fi
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9030 CFLAGS="$xorg_testset_save_CFLAGS"
9031 fi
9032
9033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9036 fi
9037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9041 then :
9042 printf %s "(cached) " >&6
9043 else $as_nop
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 int i;
9047 _ACEOF
9048 if ac_fn_c_try_compile "$LINENO"
9049 then :
9050 xorg_cv_cc_flag_unused_command_line_argument=yes
9051 else $as_nop
9052 xorg_cv_cc_flag_unused_command_line_argument=no
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9055 fi
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9059 CFLAGS="$xorg_testset_save_CFLAGS"
9060 fi
9061
9062 found="no"
9063
9064 if test $found = "no" ; then
9065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9067 fi
9068
9069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9071 fi
9072
9073 CFLAGS="$CFLAGS -Wnonnull"
9074
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9076 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9077 cacheid=xorg_cv_cc_flag__Wnonnull
9078 if eval test \${$cacheid+y}
9079 then :
9080 printf %s "(cached) " >&6
9081 else $as_nop
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084 int i;
9085 int
9086 main (void)
9087 {
9088
9089 ;
9090 return 0;
9091 }
9092 _ACEOF
9093 if ac_fn_c_try_link "$LINENO"
9094 then :
9095 eval $cacheid=yes
9096 else $as_nop
9097 eval $cacheid=no
9098 fi
9099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9100 conftest$ac_exeext conftest.$ac_ext
9101 fi
9102
9103
9104 CFLAGS="$xorg_testset_save_CFLAGS"
9105
9106 eval supported=\$$cacheid
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9108 printf "%s\n" "$supported" >&6; }
9109 if test "$supported" = "yes" ; then
9110 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9111 found="yes"
9112 fi
9113 fi
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129 xorg_testset_save_CFLAGS="$CFLAGS"
9130
9131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9134 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9135 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9136 then :
9137 printf %s "(cached) " >&6
9138 else $as_nop
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 int i;
9142 _ACEOF
9143 if ac_fn_c_try_compile "$LINENO"
9144 then :
9145 xorg_cv_cc_flag_unknown_warning_option=yes
9146 else $as_nop
9147 xorg_cv_cc_flag_unknown_warning_option=no
9148 fi
9149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9150 fi
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9152 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9154 CFLAGS="$xorg_testset_save_CFLAGS"
9155 fi
9156
9157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9160 fi
9161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9163 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9164 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9165 then :
9166 printf %s "(cached) " >&6
9167 else $as_nop
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170 int i;
9171 _ACEOF
9172 if ac_fn_c_try_compile "$LINENO"
9173 then :
9174 xorg_cv_cc_flag_unused_command_line_argument=yes
9175 else $as_nop
9176 xorg_cv_cc_flag_unused_command_line_argument=no
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9179 fi
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9181 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9183 CFLAGS="$xorg_testset_save_CFLAGS"
9184 fi
9185
9186 found="no"
9187
9188 if test $found = "no" ; then
9189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191 fi
9192
9193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195 fi
9196
9197 CFLAGS="$CFLAGS -Winit-self"
9198
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9200 printf %s "checking if $CC supports -Winit-self... " >&6; }
9201 cacheid=xorg_cv_cc_flag__Winit_self
9202 if eval test \${$cacheid+y}
9203 then :
9204 printf %s "(cached) " >&6
9205 else $as_nop
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int i;
9209 int
9210 main (void)
9211 {
9212
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"
9218 then :
9219 eval $cacheid=yes
9220 else $as_nop
9221 eval $cacheid=no
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9224 conftest$ac_exeext conftest.$ac_ext
9225 fi
9226
9227
9228 CFLAGS="$xorg_testset_save_CFLAGS"
9229
9230 eval supported=\$$cacheid
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9232 printf "%s\n" "$supported" >&6; }
9233 if test "$supported" = "yes" ; then
9234 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9235 found="yes"
9236 fi
9237 fi
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253 xorg_testset_save_CFLAGS="$CFLAGS"
9254
9255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9258 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9259 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9260 then :
9261 printf %s "(cached) " >&6
9262 else $as_nop
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 int i;
9266 _ACEOF
9267 if ac_fn_c_try_compile "$LINENO"
9268 then :
9269 xorg_cv_cc_flag_unknown_warning_option=yes
9270 else $as_nop
9271 xorg_cv_cc_flag_unknown_warning_option=no
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9274 fi
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9278 CFLAGS="$xorg_testset_save_CFLAGS"
9279 fi
9280
9281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9284 fi
9285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9289 then :
9290 printf %s "(cached) " >&6
9291 else $as_nop
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 int i;
9295 _ACEOF
9296 if ac_fn_c_try_compile "$LINENO"
9297 then :
9298 xorg_cv_cc_flag_unused_command_line_argument=yes
9299 else $as_nop
9300 xorg_cv_cc_flag_unused_command_line_argument=no
9301 fi
9302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9303 fi
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9307 CFLAGS="$xorg_testset_save_CFLAGS"
9308 fi
9309
9310 found="no"
9311
9312 if test $found = "no" ; then
9313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315 fi
9316
9317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9319 fi
9320
9321 CFLAGS="$CFLAGS -Wmain"
9322
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9324 printf %s "checking if $CC supports -Wmain... " >&6; }
9325 cacheid=xorg_cv_cc_flag__Wmain
9326 if eval test \${$cacheid+y}
9327 then :
9328 printf %s "(cached) " >&6
9329 else $as_nop
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 int i;
9333 int
9334 main (void)
9335 {
9336
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_link "$LINENO"
9342 then :
9343 eval $cacheid=yes
9344 else $as_nop
9345 eval $cacheid=no
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9348 conftest$ac_exeext conftest.$ac_ext
9349 fi
9350
9351
9352 CFLAGS="$xorg_testset_save_CFLAGS"
9353
9354 eval supported=\$$cacheid
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9356 printf "%s\n" "$supported" >&6; }
9357 if test "$supported" = "yes" ; then
9358 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9359 found="yes"
9360 fi
9361 fi
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377 xorg_testset_save_CFLAGS="$CFLAGS"
9378
9379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9384 then :
9385 printf %s "(cached) " >&6
9386 else $as_nop
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 int i;
9390 _ACEOF
9391 if ac_fn_c_try_compile "$LINENO"
9392 then :
9393 xorg_cv_cc_flag_unknown_warning_option=yes
9394 else $as_nop
9395 xorg_cv_cc_flag_unknown_warning_option=no
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9398 fi
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9402 CFLAGS="$xorg_testset_save_CFLAGS"
9403 fi
9404
9405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408 fi
9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9413 then :
9414 printf %s "(cached) " >&6
9415 else $as_nop
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418 int i;
9419 _ACEOF
9420 if ac_fn_c_try_compile "$LINENO"
9421 then :
9422 xorg_cv_cc_flag_unused_command_line_argument=yes
9423 else $as_nop
9424 xorg_cv_cc_flag_unused_command_line_argument=no
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9427 fi
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9431 CFLAGS="$xorg_testset_save_CFLAGS"
9432 fi
9433
9434 found="no"
9435
9436 if test $found = "no" ; then
9437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439 fi
9440
9441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443 fi
9444
9445 CFLAGS="$CFLAGS -Wmissing-braces"
9446
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9448 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9449 cacheid=xorg_cv_cc_flag__Wmissing_braces
9450 if eval test \${$cacheid+y}
9451 then :
9452 printf %s "(cached) " >&6
9453 else $as_nop
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 int i;
9457 int
9458 main (void)
9459 {
9460
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"
9466 then :
9467 eval $cacheid=yes
9468 else $as_nop
9469 eval $cacheid=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9472 conftest$ac_exeext conftest.$ac_ext
9473 fi
9474
9475
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9477
9478 eval supported=\$$cacheid
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9480 printf "%s\n" "$supported" >&6; }
9481 if test "$supported" = "yes" ; then
9482 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9483 found="yes"
9484 fi
9485 fi
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501 xorg_testset_save_CFLAGS="$CFLAGS"
9502
9503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9507 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9508 then :
9509 printf %s "(cached) " >&6
9510 else $as_nop
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513 int i;
9514 _ACEOF
9515 if ac_fn_c_try_compile "$LINENO"
9516 then :
9517 xorg_cv_cc_flag_unknown_warning_option=yes
9518 else $as_nop
9519 xorg_cv_cc_flag_unknown_warning_option=no
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9522 fi
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9526 CFLAGS="$xorg_testset_save_CFLAGS"
9527 fi
9528
9529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9532 fi
9533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9537 then :
9538 printf %s "(cached) " >&6
9539 else $as_nop
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int i;
9543 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"
9545 then :
9546 xorg_cv_cc_flag_unused_command_line_argument=yes
9547 else $as_nop
9548 xorg_cv_cc_flag_unused_command_line_argument=no
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9551 fi
9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9555 CFLAGS="$xorg_testset_save_CFLAGS"
9556 fi
9557
9558 found="no"
9559
9560 if test $found = "no" ; then
9561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563 fi
9564
9565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567 fi
9568
9569 CFLAGS="$CFLAGS -Wsequence-point"
9570
9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9572 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9573 cacheid=xorg_cv_cc_flag__Wsequence_point
9574 if eval test \${$cacheid+y}
9575 then :
9576 printf %s "(cached) " >&6
9577 else $as_nop
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580 int i;
9581 int
9582 main (void)
9583 {
9584
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"
9590 then :
9591 eval $cacheid=yes
9592 else $as_nop
9593 eval $cacheid=no
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9596 conftest$ac_exeext conftest.$ac_ext
9597 fi
9598
9599
9600 CFLAGS="$xorg_testset_save_CFLAGS"
9601
9602 eval supported=\$$cacheid
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9604 printf "%s\n" "$supported" >&6; }
9605 if test "$supported" = "yes" ; then
9606 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9607 found="yes"
9608 fi
9609 fi
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625 xorg_testset_save_CFLAGS="$CFLAGS"
9626
9627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9631 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9632 then :
9633 printf %s "(cached) " >&6
9634 else $as_nop
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637 int i;
9638 _ACEOF
9639 if ac_fn_c_try_compile "$LINENO"
9640 then :
9641 xorg_cv_cc_flag_unknown_warning_option=yes
9642 else $as_nop
9643 xorg_cv_cc_flag_unknown_warning_option=no
9644 fi
9645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9646 fi
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9650 CFLAGS="$xorg_testset_save_CFLAGS"
9651 fi
9652
9653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9656 fi
9657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9661 then :
9662 printf %s "(cached) " >&6
9663 else $as_nop
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 int i;
9667 _ACEOF
9668 if ac_fn_c_try_compile "$LINENO"
9669 then :
9670 xorg_cv_cc_flag_unused_command_line_argument=yes
9671 else $as_nop
9672 xorg_cv_cc_flag_unused_command_line_argument=no
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9675 fi
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9679 CFLAGS="$xorg_testset_save_CFLAGS"
9680 fi
9681
9682 found="no"
9683
9684 if test $found = "no" ; then
9685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9687 fi
9688
9689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9691 fi
9692
9693 CFLAGS="$CFLAGS -Wreturn-type"
9694
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9696 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9697 cacheid=xorg_cv_cc_flag__Wreturn_type
9698 if eval test \${$cacheid+y}
9699 then :
9700 printf %s "(cached) " >&6
9701 else $as_nop
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 int i;
9705 int
9706 main (void)
9707 {
9708
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_link "$LINENO"
9714 then :
9715 eval $cacheid=yes
9716 else $as_nop
9717 eval $cacheid=no
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9720 conftest$ac_exeext conftest.$ac_ext
9721 fi
9722
9723
9724 CFLAGS="$xorg_testset_save_CFLAGS"
9725
9726 eval supported=\$$cacheid
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9728 printf "%s\n" "$supported" >&6; }
9729 if test "$supported" = "yes" ; then
9730 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9731 found="yes"
9732 fi
9733 fi
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749 xorg_testset_save_CFLAGS="$CFLAGS"
9750
9751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9755 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9756 then :
9757 printf %s "(cached) " >&6
9758 else $as_nop
9759 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_unknown_warning_option=yes
9766 else $as_nop
9767 xorg_cv_cc_flag_unknown_warning_option=no
9768 fi
9769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9770 fi
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9774 CFLAGS="$xorg_testset_save_CFLAGS"
9775 fi
9776
9777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9780 fi
9781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9784 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9785 then :
9786 printf %s "(cached) " >&6
9787 else $as_nop
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 int i;
9791 _ACEOF
9792 if ac_fn_c_try_compile "$LINENO"
9793 then :
9794 xorg_cv_cc_flag_unused_command_line_argument=yes
9795 else $as_nop
9796 xorg_cv_cc_flag_unused_command_line_argument=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9799 fi
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9803 CFLAGS="$xorg_testset_save_CFLAGS"
9804 fi
9805
9806 found="no"
9807
9808 if test $found = "no" ; then
9809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811 fi
9812
9813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815 fi
9816
9817 CFLAGS="$CFLAGS -Wtrigraphs"
9818
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9820 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9821 cacheid=xorg_cv_cc_flag__Wtrigraphs
9822 if eval test \${$cacheid+y}
9823 then :
9824 printf %s "(cached) " >&6
9825 else $as_nop
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 int i;
9829 int
9830 main (void)
9831 {
9832
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 if ac_fn_c_try_link "$LINENO"
9838 then :
9839 eval $cacheid=yes
9840 else $as_nop
9841 eval $cacheid=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9844 conftest$ac_exeext conftest.$ac_ext
9845 fi
9846
9847
9848 CFLAGS="$xorg_testset_save_CFLAGS"
9849
9850 eval supported=\$$cacheid
9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9852 printf "%s\n" "$supported" >&6; }
9853 if test "$supported" = "yes" ; then
9854 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9855 found="yes"
9856 fi
9857 fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873 xorg_testset_save_CFLAGS="$CFLAGS"
9874
9875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9878 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9879 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9880 then :
9881 printf %s "(cached) " >&6
9882 else $as_nop
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 int i;
9886 _ACEOF
9887 if ac_fn_c_try_compile "$LINENO"
9888 then :
9889 xorg_cv_cc_flag_unknown_warning_option=yes
9890 else $as_nop
9891 xorg_cv_cc_flag_unknown_warning_option=no
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9894 fi
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9898 CFLAGS="$xorg_testset_save_CFLAGS"
9899 fi
9900
9901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904 fi
9905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9909 then :
9910 printf %s "(cached) " >&6
9911 else $as_nop
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 int i;
9915 _ACEOF
9916 if ac_fn_c_try_compile "$LINENO"
9917 then :
9918 xorg_cv_cc_flag_unused_command_line_argument=yes
9919 else $as_nop
9920 xorg_cv_cc_flag_unused_command_line_argument=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9923 fi
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9925 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9927 CFLAGS="$xorg_testset_save_CFLAGS"
9928 fi
9929
9930 found="no"
9931
9932 if test $found = "no" ; then
9933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935 fi
9936
9937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939 fi
9940
9941 CFLAGS="$CFLAGS -Warray-bounds"
9942
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9944 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9945 cacheid=xorg_cv_cc_flag__Warray_bounds
9946 if eval test \${$cacheid+y}
9947 then :
9948 printf %s "(cached) " >&6
9949 else $as_nop
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9952 int i;
9953 int
9954 main (void)
9955 {
9956
9957 ;
9958 return 0;
9959 }
9960 _ACEOF
9961 if ac_fn_c_try_link "$LINENO"
9962 then :
9963 eval $cacheid=yes
9964 else $as_nop
9965 eval $cacheid=no
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9968 conftest$ac_exeext conftest.$ac_ext
9969 fi
9970
9971
9972 CFLAGS="$xorg_testset_save_CFLAGS"
9973
9974 eval supported=\$$cacheid
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9976 printf "%s\n" "$supported" >&6; }
9977 if test "$supported" = "yes" ; then
9978 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9979 found="yes"
9980 fi
9981 fi
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 xorg_testset_save_CFLAGS="$CFLAGS"
9998
9999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10002 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10003 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10004 then :
10005 printf %s "(cached) " >&6
10006 else $as_nop
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10009 int i;
10010 _ACEOF
10011 if ac_fn_c_try_compile "$LINENO"
10012 then :
10013 xorg_cv_cc_flag_unknown_warning_option=yes
10014 else $as_nop
10015 xorg_cv_cc_flag_unknown_warning_option=no
10016 fi
10017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10018 fi
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10020 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10022 CFLAGS="$xorg_testset_save_CFLAGS"
10023 fi
10024
10025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10028 fi
10029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10031 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10032 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10033 then :
10034 printf %s "(cached) " >&6
10035 else $as_nop
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 int i;
10039 _ACEOF
10040 if ac_fn_c_try_compile "$LINENO"
10041 then :
10042 xorg_cv_cc_flag_unused_command_line_argument=yes
10043 else $as_nop
10044 xorg_cv_cc_flag_unused_command_line_argument=no
10045 fi
10046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10047 fi
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10049 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10051 CFLAGS="$xorg_testset_save_CFLAGS"
10052 fi
10053
10054 found="no"
10055
10056 if test $found = "no" ; then
10057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10059 fi
10060
10061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10063 fi
10064
10065 CFLAGS="$CFLAGS -Wwrite-strings"
10066
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10068 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10069 cacheid=xorg_cv_cc_flag__Wwrite_strings
10070 if eval test \${$cacheid+y}
10071 then :
10072 printf %s "(cached) " >&6
10073 else $as_nop
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076 int i;
10077 int
10078 main (void)
10079 {
10080
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"
10086 then :
10087 eval $cacheid=yes
10088 else $as_nop
10089 eval $cacheid=no
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10092 conftest$ac_exeext conftest.$ac_ext
10093 fi
10094
10095
10096 CFLAGS="$xorg_testset_save_CFLAGS"
10097
10098 eval supported=\$$cacheid
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10100 printf "%s\n" "$supported" >&6; }
10101 if test "$supported" = "yes" ; then
10102 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10103 found="yes"
10104 fi
10105 fi
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121 xorg_testset_save_CFLAGS="$CFLAGS"
10122
10123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10126 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10127 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10128 then :
10129 printf %s "(cached) " >&6
10130 else $as_nop
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133 int i;
10134 _ACEOF
10135 if ac_fn_c_try_compile "$LINENO"
10136 then :
10137 xorg_cv_cc_flag_unknown_warning_option=yes
10138 else $as_nop
10139 xorg_cv_cc_flag_unknown_warning_option=no
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10142 fi
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10144 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10146 CFLAGS="$xorg_testset_save_CFLAGS"
10147 fi
10148
10149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10152 fi
10153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10157 then :
10158 printf %s "(cached) " >&6
10159 else $as_nop
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162 int i;
10163 _ACEOF
10164 if ac_fn_c_try_compile "$LINENO"
10165 then :
10166 xorg_cv_cc_flag_unused_command_line_argument=yes
10167 else $as_nop
10168 xorg_cv_cc_flag_unused_command_line_argument=no
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10171 fi
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10173 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10175 CFLAGS="$xorg_testset_save_CFLAGS"
10176 fi
10177
10178 found="no"
10179
10180 if test $found = "no" ; then
10181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183 fi
10184
10185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10187 fi
10188
10189 CFLAGS="$CFLAGS -Waddress"
10190
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10192 printf %s "checking if $CC supports -Waddress... " >&6; }
10193 cacheid=xorg_cv_cc_flag__Waddress
10194 if eval test \${$cacheid+y}
10195 then :
10196 printf %s "(cached) " >&6
10197 else $as_nop
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10200 int i;
10201 int
10202 main (void)
10203 {
10204
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"
10210 then :
10211 eval $cacheid=yes
10212 else $as_nop
10213 eval $cacheid=no
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10216 conftest$ac_exeext conftest.$ac_ext
10217 fi
10218
10219
10220 CFLAGS="$xorg_testset_save_CFLAGS"
10221
10222 eval supported=\$$cacheid
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10224 printf "%s\n" "$supported" >&6; }
10225 if test "$supported" = "yes" ; then
10226 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10227 found="yes"
10228 fi
10229 fi
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245 xorg_testset_save_CFLAGS="$CFLAGS"
10246
10247 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10250 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10251 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10252 then :
10253 printf %s "(cached) " >&6
10254 else $as_nop
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10257 int i;
10258 _ACEOF
10259 if ac_fn_c_try_compile "$LINENO"
10260 then :
10261 xorg_cv_cc_flag_unknown_warning_option=yes
10262 else $as_nop
10263 xorg_cv_cc_flag_unknown_warning_option=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10266 fi
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10268 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10270 CFLAGS="$xorg_testset_save_CFLAGS"
10271 fi
10272
10273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276 fi
10277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10279 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10280 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10281 then :
10282 printf %s "(cached) " >&6
10283 else $as_nop
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 int i;
10287 _ACEOF
10288 if ac_fn_c_try_compile "$LINENO"
10289 then :
10290 xorg_cv_cc_flag_unused_command_line_argument=yes
10291 else $as_nop
10292 xorg_cv_cc_flag_unused_command_line_argument=no
10293 fi
10294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10295 fi
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10297 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10299 CFLAGS="$xorg_testset_save_CFLAGS"
10300 fi
10301
10302 found="no"
10303
10304 if test $found = "no" ; then
10305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10307 fi
10308
10309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10311 fi
10312
10313 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10314
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10316 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10317 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10318 if eval test \${$cacheid+y}
10319 then :
10320 printf %s "(cached) " >&6
10321 else $as_nop
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324 int i;
10325 int
10326 main (void)
10327 {
10328
10329 ;
10330 return 0;
10331 }
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"
10334 then :
10335 eval $cacheid=yes
10336 else $as_nop
10337 eval $cacheid=no
10338 fi
10339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10340 conftest$ac_exeext conftest.$ac_ext
10341 fi
10342
10343
10344 CFLAGS="$xorg_testset_save_CFLAGS"
10345
10346 eval supported=\$$cacheid
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10348 printf "%s\n" "$supported" >&6; }
10349 if test "$supported" = "yes" ; then
10350 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10351 found="yes"
10352 fi
10353 fi
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 xorg_testset_save_CFLAGS="$CFLAGS"
10370
10371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10375 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10376 then :
10377 printf %s "(cached) " >&6
10378 else $as_nop
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 int i;
10382 _ACEOF
10383 if ac_fn_c_try_compile "$LINENO"
10384 then :
10385 xorg_cv_cc_flag_unknown_warning_option=yes
10386 else $as_nop
10387 xorg_cv_cc_flag_unknown_warning_option=no
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10390 fi
10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10392 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10394 CFLAGS="$xorg_testset_save_CFLAGS"
10395 fi
10396
10397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400 fi
10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10403 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10404 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10405 then :
10406 printf %s "(cached) " >&6
10407 else $as_nop
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 int i;
10411 _ACEOF
10412 if ac_fn_c_try_compile "$LINENO"
10413 then :
10414 xorg_cv_cc_flag_unused_command_line_argument=yes
10415 else $as_nop
10416 xorg_cv_cc_flag_unused_command_line_argument=no
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10419 fi
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10421 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10423 CFLAGS="$xorg_testset_save_CFLAGS"
10424 fi
10425
10426 found="no"
10427
10428 if test $found = "no" ; then
10429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10431 fi
10432
10433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10435 fi
10436
10437 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10438
10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10440 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10441 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10442 if eval test \${$cacheid+y}
10443 then :
10444 printf %s "(cached) " >&6
10445 else $as_nop
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 int i;
10449 int
10450 main (void)
10451 {
10452
10453 ;
10454 return 0;
10455 }
10456 _ACEOF
10457 if ac_fn_c_try_link "$LINENO"
10458 then :
10459 eval $cacheid=yes
10460 else $as_nop
10461 eval $cacheid=no
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10464 conftest$ac_exeext conftest.$ac_ext
10465 fi
10466
10467
10468 CFLAGS="$xorg_testset_save_CFLAGS"
10469
10470 eval supported=\$$cacheid
10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10472 printf "%s\n" "$supported" >&6; }
10473 if test "$supported" = "yes" ; then
10474 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10475 found="yes"
10476 fi
10477 fi
10478
10479
10480 fi
10481
10482
10483
10484
10485
10486
10487
10488 CWARNFLAGS="$BASE_CFLAGS"
10489 if test "x$GCC" = xyes ; then
10490 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10491 fi
10492
10493
10494
10495
10496
10497
10498
10499
10500 # Check whether --enable-strict-compilation was given.
10501 if test ${enable_strict_compilation+y}
10502 then :
10503 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10504 else $as_nop
10505 STRICT_COMPILE=no
10506 fi
10507
10508
10509
10510
10511
10512
10513 STRICT_CFLAGS=""
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527 xorg_testset_save_CFLAGS="$CFLAGS"
10528
10529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10532 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10533 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10534 then :
10535 printf %s "(cached) " >&6
10536 else $as_nop
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10539 int i;
10540 _ACEOF
10541 if ac_fn_c_try_compile "$LINENO"
10542 then :
10543 xorg_cv_cc_flag_unknown_warning_option=yes
10544 else $as_nop
10545 xorg_cv_cc_flag_unknown_warning_option=no
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10548 fi
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10550 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10552 CFLAGS="$xorg_testset_save_CFLAGS"
10553 fi
10554
10555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10558 fi
10559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10561 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10562 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10563 then :
10564 printf %s "(cached) " >&6
10565 else $as_nop
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 int i;
10569 _ACEOF
10570 if ac_fn_c_try_compile "$LINENO"
10571 then :
10572 xorg_cv_cc_flag_unused_command_line_argument=yes
10573 else $as_nop
10574 xorg_cv_cc_flag_unused_command_line_argument=no
10575 fi
10576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10577 fi
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10579 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10581 CFLAGS="$xorg_testset_save_CFLAGS"
10582 fi
10583
10584 found="no"
10585
10586 if test $found = "no" ; then
10587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10589 fi
10590
10591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10593 fi
10594
10595 CFLAGS="$CFLAGS -pedantic"
10596
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10598 printf %s "checking if $CC supports -pedantic... " >&6; }
10599 cacheid=xorg_cv_cc_flag__pedantic
10600 if eval test \${$cacheid+y}
10601 then :
10602 printf %s "(cached) " >&6
10603 else $as_nop
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606 int i;
10607 int
10608 main (void)
10609 {
10610
10611 ;
10612 return 0;
10613 }
10614 _ACEOF
10615 if ac_fn_c_try_link "$LINENO"
10616 then :
10617 eval $cacheid=yes
10618 else $as_nop
10619 eval $cacheid=no
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10622 conftest$ac_exeext conftest.$ac_ext
10623 fi
10624
10625
10626 CFLAGS="$xorg_testset_save_CFLAGS"
10627
10628 eval supported=\$$cacheid
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10630 printf "%s\n" "$supported" >&6; }
10631 if test "$supported" = "yes" ; then
10632 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10633 found="yes"
10634 fi
10635 fi
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651 xorg_testset_save_CFLAGS="$CFLAGS"
10652
10653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10656 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10657 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10658 then :
10659 printf %s "(cached) " >&6
10660 else $as_nop
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 int i;
10664 _ACEOF
10665 if ac_fn_c_try_compile "$LINENO"
10666 then :
10667 xorg_cv_cc_flag_unknown_warning_option=yes
10668 else $as_nop
10669 xorg_cv_cc_flag_unknown_warning_option=no
10670 fi
10671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10672 fi
10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10674 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10676 CFLAGS="$xorg_testset_save_CFLAGS"
10677 fi
10678
10679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10682 fi
10683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10685 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10686 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10687 then :
10688 printf %s "(cached) " >&6
10689 else $as_nop
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 int i;
10693 _ACEOF
10694 if ac_fn_c_try_compile "$LINENO"
10695 then :
10696 xorg_cv_cc_flag_unused_command_line_argument=yes
10697 else $as_nop
10698 xorg_cv_cc_flag_unused_command_line_argument=no
10699 fi
10700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10701 fi
10702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10703 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10705 CFLAGS="$xorg_testset_save_CFLAGS"
10706 fi
10707
10708 found="no"
10709
10710 if test $found = "no" ; then
10711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10713 fi
10714
10715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10717 fi
10718
10719 CFLAGS="$CFLAGS -Werror"
10720
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10722 printf %s "checking if $CC supports -Werror... " >&6; }
10723 cacheid=xorg_cv_cc_flag__Werror
10724 if eval test \${$cacheid+y}
10725 then :
10726 printf %s "(cached) " >&6
10727 else $as_nop
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730 int i;
10731 int
10732 main (void)
10733 {
10734
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"
10740 then :
10741 eval $cacheid=yes
10742 else $as_nop
10743 eval $cacheid=no
10744 fi
10745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10746 conftest$ac_exeext conftest.$ac_ext
10747 fi
10748
10749
10750 CFLAGS="$xorg_testset_save_CFLAGS"
10751
10752 eval supported=\$$cacheid
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10754 printf "%s\n" "$supported" >&6; }
10755 if test "$supported" = "yes" ; then
10756 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10757 found="yes"
10758 fi
10759 fi
10760
10761 if test $found = "no" ; then
10762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764 fi
10765
10766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10768 fi
10769
10770 CFLAGS="$CFLAGS -errwarn"
10771
10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10773 printf %s "checking if $CC supports -errwarn... " >&6; }
10774 cacheid=xorg_cv_cc_flag__errwarn
10775 if eval test \${$cacheid+y}
10776 then :
10777 printf %s "(cached) " >&6
10778 else $as_nop
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 int i;
10782 int
10783 main (void)
10784 {
10785
10786 ;
10787 return 0;
10788 }
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"
10791 then :
10792 eval $cacheid=yes
10793 else $as_nop
10794 eval $cacheid=no
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10797 conftest$ac_exeext conftest.$ac_ext
10798 fi
10799
10800
10801 CFLAGS="$xorg_testset_save_CFLAGS"
10802
10803 eval supported=\$$cacheid
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10805 printf "%s\n" "$supported" >&6; }
10806 if test "$supported" = "yes" ; then
10807 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10808 found="yes"
10809 fi
10810 fi
10811
10812
10813
10814 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10815 # activate it with -Werror, so we add it here explicitly.
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829 xorg_testset_save_CFLAGS="$CFLAGS"
10830
10831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10834 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10835 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10836 then :
10837 printf %s "(cached) " >&6
10838 else $as_nop
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841 int i;
10842 _ACEOF
10843 if ac_fn_c_try_compile "$LINENO"
10844 then :
10845 xorg_cv_cc_flag_unknown_warning_option=yes
10846 else $as_nop
10847 xorg_cv_cc_flag_unknown_warning_option=no
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10850 fi
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10854 CFLAGS="$xorg_testset_save_CFLAGS"
10855 fi
10856
10857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10860 fi
10861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10865 then :
10866 printf %s "(cached) " >&6
10867 else $as_nop
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 int i;
10871 _ACEOF
10872 if ac_fn_c_try_compile "$LINENO"
10873 then :
10874 xorg_cv_cc_flag_unused_command_line_argument=yes
10875 else $as_nop
10876 xorg_cv_cc_flag_unused_command_line_argument=no
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10879 fi
10880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10883 CFLAGS="$xorg_testset_save_CFLAGS"
10884 fi
10885
10886 found="no"
10887
10888 if test $found = "no" ; then
10889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10891 fi
10892
10893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10895 fi
10896
10897 CFLAGS="$CFLAGS -Werror=attributes"
10898
10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10900 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10901 cacheid=xorg_cv_cc_flag__Werror_attributes
10902 if eval test \${$cacheid+y}
10903 then :
10904 printf %s "(cached) " >&6
10905 else $as_nop
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 int i;
10909 int
10910 main (void)
10911 {
10912
10913 ;
10914 return 0;
10915 }
10916 _ACEOF
10917 if ac_fn_c_try_link "$LINENO"
10918 then :
10919 eval $cacheid=yes
10920 else $as_nop
10921 eval $cacheid=no
10922 fi
10923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10924 conftest$ac_exeext conftest.$ac_ext
10925 fi
10926
10927
10928 CFLAGS="$xorg_testset_save_CFLAGS"
10929
10930 eval supported=\$$cacheid
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10932 printf "%s\n" "$supported" >&6; }
10933 if test "$supported" = "yes" ; then
10934 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10935 found="yes"
10936 fi
10937 fi
10938
10939
10940
10941 if test "x$STRICT_COMPILE" = "xyes"; then
10942 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10943 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10944 fi
10945
10946
10947
10948
10949
10950
10951 cat >>confdefs.h <<_ACEOF
10952 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10953 _ACEOF
10954
10955 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10956 if test "x$PVM" = "x"; then
10957 PVM="0"
10958 fi
10959
10960 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10961
10962 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10963 if test "x$PVP" = "x"; then
10964 PVP="0"
10965 fi
10966
10967 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10968
10969
10970
10971 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10972 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10973 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10974 touch \$(top_srcdir)/ChangeLog; \
10975 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10976
10977
10978
10979
10980 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10981 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10982 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10983 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10984 touch \$(top_srcdir)/INSTALL; \
10985 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10986
10987
10988
10989
10990
10991
10992 case $host_os in
10993 solaris*)
10994 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10995 # check for a man page file found in later versions that use
10996 # traditional section numbers instead
10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10998 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10999 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11000 then :
11001 printf %s "(cached) " >&6
11002 else $as_nop
11003 test "$cross_compiling" = yes &&
11004 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11005 if test -r "/usr/share/man/man7/attributes.7"; then
11006 ac_cv_file__usr_share_man_man7_attributes_7=yes
11007 else
11008 ac_cv_file__usr_share_man_man7_attributes_7=no
11009 fi
11010 fi
11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11012 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11013 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11014 then :
11015 SYSV_MAN_SECTIONS=false
11016 else $as_nop
11017 SYSV_MAN_SECTIONS=true
11018 fi
11019
11020 ;;
11021 *) SYSV_MAN_SECTIONS=false ;;
11022 esac
11023
11024 if test x$APP_MAN_SUFFIX = x ; then
11025 APP_MAN_SUFFIX=1
11026 fi
11027 if test x$APP_MAN_DIR = x ; then
11028 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11029 fi
11030
11031 if test x$LIB_MAN_SUFFIX = x ; then
11032 LIB_MAN_SUFFIX=3
11033 fi
11034 if test x$LIB_MAN_DIR = x ; then
11035 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11036 fi
11037
11038 if test x$FILE_MAN_SUFFIX = x ; then
11039 case $SYSV_MAN_SECTIONS in
11040 true) FILE_MAN_SUFFIX=4 ;;
11041 *) FILE_MAN_SUFFIX=5 ;;
11042 esac
11043 fi
11044 if test x$FILE_MAN_DIR = x ; then
11045 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11046 fi
11047
11048 if test x$MISC_MAN_SUFFIX = x ; then
11049 case $SYSV_MAN_SECTIONS in
11050 true) MISC_MAN_SUFFIX=5 ;;
11051 *) MISC_MAN_SUFFIX=7 ;;
11052 esac
11053 fi
11054 if test x$MISC_MAN_DIR = x ; then
11055 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11056 fi
11057
11058 if test x$DRIVER_MAN_SUFFIX = x ; then
11059 case $SYSV_MAN_SECTIONS in
11060 true) DRIVER_MAN_SUFFIX=7 ;;
11061 *) DRIVER_MAN_SUFFIX=4 ;;
11062 esac
11063 fi
11064 if test x$DRIVER_MAN_DIR = x ; then
11065 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11066 fi
11067
11068 if test x$ADMIN_MAN_SUFFIX = x ; then
11069 case $SYSV_MAN_SECTIONS in
11070 true) ADMIN_MAN_SUFFIX=1m ;;
11071 *) ADMIN_MAN_SUFFIX=8 ;;
11072 esac
11073 fi
11074 if test x$ADMIN_MAN_DIR = x ; then
11075 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11076 fi
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092 XORG_MAN_PAGE="X Version 11"
11093
11094 MAN_SUBSTS="\
11095 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11096 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11097 -e 's|__xservername__|Xorg|g' \
11098 -e 's|__xconfigfile__|xorg.conf|g' \
11099 -e 's|__projectroot__|\$(prefix)|g' \
11100 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11101 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11102 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11103 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11104 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11105 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11106 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11107
11108
11109
11110 # Check whether --enable-silent-rules was given.
11111 if test ${enable_silent_rules+y}
11112 then :
11113 enableval=$enable_silent_rules;
11114 fi
11115
11116 case $enable_silent_rules in # (((
11117 yes) AM_DEFAULT_VERBOSITY=0;;
11118 no) AM_DEFAULT_VERBOSITY=1;;
11119 *) AM_DEFAULT_VERBOSITY=0;;
11120 esac
11121 am_make=${MAKE-make}
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11123 printf %s "checking whether $am_make supports nested variables... " >&6; }
11124 if test ${am_cv_make_support_nested_variables+y}
11125 then :
11126 printf %s "(cached) " >&6
11127 else $as_nop
11128 if printf "%s\n" 'TRUE=$(BAR$(V))
11129 BAR0=false
11130 BAR1=true
11131 V=1
11132 am__doit:
11133 @$(TRUE)
11134 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11135 am_cv_make_support_nested_variables=yes
11136 else
11137 am_cv_make_support_nested_variables=no
11138 fi
11139 fi
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11141 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11142 if test $am_cv_make_support_nested_variables = yes; then
11143 AM_V='$(V)'
11144 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11145 else
11146 AM_V=$AM_DEFAULT_VERBOSITY
11147 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11148 fi
11149 AM_BACKSLASH='\'
11150
11151
11152
11153 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
11154 if test "x$ac_cv_func_strtof" = xyes
11155 then :
11156 printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
11157
11158 fi
11159
11160
11161 # Checks for pkg-config packages
11162
11163 pkg_failed=no
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGAMMA" >&5
11165 printf %s "checking for XGAMMA... " >&6; }
11166
11167 if test -n "$XGAMMA_CFLAGS"; then
11168 pkg_cv_XGAMMA_CFLAGS="$XGAMMA_CFLAGS"
11169 elif test -n "$PKG_CONFIG"; then
11170 if test -n "$PKG_CONFIG" && \
11171 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm xproto >= 7.0.17\""; } >&5
11172 ($PKG_CONFIG --exists --print-errors "x11 xxf86vm xproto >= 7.0.17") 2>&5
11173 ac_status=$?
11174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; }; then
11176 pkg_cv_XGAMMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xxf86vm xproto >= 7.0.17" 2>/dev/null`
11177 test "x$?" != "x0" && pkg_failed=yes
11178 else
11179 pkg_failed=yes
11180 fi
11181 else
11182 pkg_failed=untried
11183 fi
11184 if test -n "$XGAMMA_LIBS"; then
11185 pkg_cv_XGAMMA_LIBS="$XGAMMA_LIBS"
11186 elif test -n "$PKG_CONFIG"; then
11187 if test -n "$PKG_CONFIG" && \
11188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm xproto >= 7.0.17\""; } >&5
11189 ($PKG_CONFIG --exists --print-errors "x11 xxf86vm xproto >= 7.0.17") 2>&5
11190 ac_status=$?
11191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192 test $ac_status = 0; }; then
11193 pkg_cv_XGAMMA_LIBS=`$PKG_CONFIG --libs "x11 xxf86vm xproto >= 7.0.17" 2>/dev/null`
11194 test "x$?" != "x0" && pkg_failed=yes
11195 else
11196 pkg_failed=yes
11197 fi
11198 else
11199 pkg_failed=untried
11200 fi
11201
11202
11203
11204 if test $pkg_failed = yes; then
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 printf "%s\n" "no" >&6; }
11207
11208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11209 _pkg_short_errors_supported=yes
11210 else
11211 _pkg_short_errors_supported=no
11212 fi
11213 if test $_pkg_short_errors_supported = yes; then
11214 XGAMMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xxf86vm xproto >= 7.0.17" 2>&1`
11215 else
11216 XGAMMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xxf86vm xproto >= 7.0.17" 2>&1`
11217 fi
11218 # Put the nasty error message in config.log where it belongs
11219 echo "$XGAMMA_PKG_ERRORS" >&5
11220
11221 as_fn_error $? "Package requirements (x11 xxf86vm xproto >= 7.0.17) were not met:
11222
11223 $XGAMMA_PKG_ERRORS
11224
11225 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11226 installed software in a non-standard prefix.
11227
11228 Alternatively, you may set the environment variables XGAMMA_CFLAGS
11229 and XGAMMA_LIBS to avoid the need to call pkg-config.
11230 See the pkg-config man page for more details." "$LINENO" 5
11231 elif test $pkg_failed = untried; then
11232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 printf "%s\n" "no" >&6; }
11234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11235 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11236 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11237 is in your PATH or set the PKG_CONFIG environment variable to the full
11238 path to pkg-config.
11239
11240 Alternatively, you may set the environment variables XGAMMA_CFLAGS
11241 and XGAMMA_LIBS to avoid the need to call pkg-config.
11242 See the pkg-config man page for more details.
11243
11244 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11245 See \`config.log' for more details" "$LINENO" 5; }
11246 else
11247 XGAMMA_CFLAGS=$pkg_cv_XGAMMA_CFLAGS
11248 XGAMMA_LIBS=$pkg_cv_XGAMMA_LIBS
11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11250 printf "%s\n" "yes" >&6; }
11251
11252 fi
11253
11254 ac_config_files="$ac_config_files Makefile man/Makefile"
11255
11256 cat >confcache <<\_ACEOF
11257 # This file is a shell script that caches the results of configure
11258 # tests run on this system so they can be shared between configure
11259 # scripts and configure runs, see configure's option --config-cache.
11260 # It is not useful on other systems. If it contains results you don't
11261 # want to keep, you may remove or edit it.
11262 #
11263 # config.status only pays attention to the cache file if you give it
11264 # the --recheck option to rerun configure.
11265 #
11266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11268 # following values.
11269
11270 _ACEOF
11271
11272 # The following way of writing the cache mishandles newlines in values,
11273 # but we know of no workaround that is simple, portable, and efficient.
11274 # So, we kill variables containing newlines.
11275 # Ultrix sh set writes to stderr and can't be redirected directly,
11276 # and sets the high bit in the cache file unless we assign to the vars.
11277 (
11278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11279 eval ac_val=\$$ac_var
11280 case $ac_val in #(
11281 *${as_nl}*)
11282 case $ac_var in #(
11283 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11284 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11285 esac
11286 case $ac_var in #(
11287 _ | IFS | as_nl) ;; #(
11288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11289 *) { eval $ac_var=; unset $ac_var;} ;;
11290 esac ;;
11291 esac
11292 done
11293
11294 (set) 2>&1 |
11295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11296 *${as_nl}ac_space=\ *)
11297 # `set' does not quote correctly, so add quotes: double-quote
11298 # substitution turns \\\\ into \\, and sed turns \\ into \.
11299 sed -n \
11300 "s/'/'\\\\''/g;
11301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11302 ;; #(
11303 *)
11304 # `set' quotes correctly as required by POSIX, so do not add quotes.
11305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11306 ;;
11307 esac |
11308 sort
11309 ) |
11310 sed '
11311 /^ac_cv_env_/b end
11312 t clear
11313 :clear
11314 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11315 t end
11316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11317 :end' >>confcache
11318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11319 if test -w "$cache_file"; then
11320 if test "x$cache_file" != "x/dev/null"; then
11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11322 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11323 if test ! -f "$cache_file" || test -h "$cache_file"; then
11324 cat confcache >"$cache_file"
11325 else
11326 case $cache_file in #(
11327 */* | ?:*)
11328 mv -f confcache "$cache_file"$$ &&
11329 mv -f "$cache_file"$$ "$cache_file" ;; #(
11330 *)
11331 mv -f confcache "$cache_file" ;;
11332 esac
11333 fi
11334 fi
11335 else
11336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11337 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11338 fi
11339 fi
11340 rm -f confcache
11341
11342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11343 # Let make expand exec_prefix.
11344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11345
11346 DEFS=-DHAVE_CONFIG_H
11347
11348 ac_libobjs=
11349 ac_ltlibobjs=
11350 U=
11351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11352 # 1. Remove the extension, and $U if already installed.
11353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11354 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11356 # will be set to the directory where LIBOBJS objects are built.
11357 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11358 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11359 done
11360 LIBOBJS=$ac_libobjs
11361
11362 LTLIBOBJS=$ac_ltlibobjs
11363
11364
11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11366 printf %s "checking that generated files are newer than configure... " >&6; }
11367 if test -n "$am_sleep_pid"; then
11368 # Hide warnings about reused PIDs.
11369 wait $am_sleep_pid 2>/dev/null
11370 fi
11371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11372 printf "%s\n" "done" >&6; }
11373 if test -n "$EXEEXT"; then
11374 am__EXEEXT_TRUE=
11375 am__EXEEXT_FALSE='#'
11376 else
11377 am__EXEEXT_TRUE='#'
11378 am__EXEEXT_FALSE=
11379 fi
11380
11381 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11382 as_fn_error $? "conditional \"AMDEP\" was never defined.
11383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11384 fi
11385 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11386 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11388 fi
11389
11390 : "${CONFIG_STATUS=./config.status}"
11391 ac_write_fail=0
11392 ac_clean_files_save=$ac_clean_files
11393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11395 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11396 as_write_fail=0
11397 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11398 #! $SHELL
11399 # Generated by $as_me.
11400 # Run this file to recreate the current configuration.
11401 # Compiler output produced by configure, useful for debugging
11402 # configure, is in config.log if it exists.
11403
11404 debug=false
11405 ac_cs_recheck=false
11406 ac_cs_silent=false
11407
11408 SHELL=\${CONFIG_SHELL-$SHELL}
11409 export SHELL
11410 _ASEOF
11411 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11412 ## -------------------- ##
11413 ## M4sh Initialization. ##
11414 ## -------------------- ##
11415
11416 # Be more Bourne compatible
11417 DUALCASE=1; export DUALCASE # for MKS sh
11418 as_nop=:
11419 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11420 then :
11421 emulate sh
11422 NULLCMD=:
11423 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11424 # is contrary to our usage. Disable this feature.
11425 alias -g '${1+"$@"}'='"$@"'
11426 setopt NO_GLOB_SUBST
11427 else $as_nop
11428 case `(set -o) 2>/dev/null` in #(
11429 *posix*) :
11430 set -o posix ;; #(
11431 *) :
11432 ;;
11433 esac
11434 fi
11435
11436
11437
11438 # Reset variables that may have inherited troublesome values from
11439 # the environment.
11440
11441 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11442 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11443 # side effect of setting IFS to empty, thus disabling word splitting.)
11444 # Quoting is to prevent editors from complaining about space-tab.
11445 as_nl='
11446 '
11447 export as_nl
11448 IFS=" "" $as_nl"
11449
11450 PS1='$ '
11451 PS2='> '
11452 PS4='+ '
11453
11454 # Ensure predictable behavior from utilities with locale-dependent output.
11455 LC_ALL=C
11456 export LC_ALL
11457 LANGUAGE=C
11458 export LANGUAGE
11459
11460 # We cannot yet rely on "unset" to work, but we need these variables
11461 # to be unset--not just set to an empty or harmless value--now, to
11462 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11463 # also avoids known problems related to "unset" and subshell syntax
11464 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11465 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11466 do eval test \${$as_var+y} \
11467 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11468 done
11469
11470 # Ensure that fds 0, 1, and 2 are open.
11471 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11472 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11473 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11474
11475 # The user is always right.
11476 if ${PATH_SEPARATOR+false} :; then
11477 PATH_SEPARATOR=:
11478 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11479 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11480 PATH_SEPARATOR=';'
11481 }
11482 fi
11483
11484
11485 # Find who we are. Look in the path if we contain no directory separator.
11486 as_myself=
11487 case $0 in #((
11488 *[\\/]* ) as_myself=$0 ;;
11489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492 IFS=$as_save_IFS
11493 case $as_dir in #(((
11494 '') as_dir=./ ;;
11495 */) ;;
11496 *) as_dir=$as_dir/ ;;
11497 esac
11498 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11499 done
11500 IFS=$as_save_IFS
11501
11502 ;;
11503 esac
11504 # We did not find ourselves, most probably we were run as `sh COMMAND'
11505 # in which case we are not to be found in the path.
11506 if test "x$as_myself" = x; then
11507 as_myself=$0
11508 fi
11509 if test ! -f "$as_myself"; then
11510 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11511 exit 1
11512 fi
11513
11514
11515
11516 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11517 # ----------------------------------------
11518 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11519 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11520 # script with STATUS, using 1 if that was 0.
11521 as_fn_error ()
11522 {
11523 as_status=$1; test $as_status -eq 0 && as_status=1
11524 if test "$4"; then
11525 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11527 fi
11528 printf "%s\n" "$as_me: error: $2" >&2
11529 as_fn_exit $as_status
11530 } # as_fn_error
11531
11532
11533
11534 # as_fn_set_status STATUS
11535 # -----------------------
11536 # Set $? to STATUS, without forking.
11537 as_fn_set_status ()
11538 {
11539 return $1
11540 } # as_fn_set_status
11541
11542 # as_fn_exit STATUS
11543 # -----------------
11544 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11545 as_fn_exit ()
11546 {
11547 set +e
11548 as_fn_set_status $1
11549 exit $1
11550 } # as_fn_exit
11551
11552 # as_fn_unset VAR
11553 # ---------------
11554 # Portably unset VAR.
11555 as_fn_unset ()
11556 {
11557 { eval $1=; unset $1;}
11558 }
11559 as_unset=as_fn_unset
11560
11561 # as_fn_append VAR VALUE
11562 # ----------------------
11563 # Append the text in VALUE to the end of the definition contained in VAR. Take
11564 # advantage of any shell optimizations that allow amortized linear growth over
11565 # repeated appends, instead of the typical quadratic growth present in naive
11566 # implementations.
11567 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11568 then :
11569 eval 'as_fn_append ()
11570 {
11571 eval $1+=\$2
11572 }'
11573 else $as_nop
11574 as_fn_append ()
11575 {
11576 eval $1=\$$1\$2
11577 }
11578 fi # as_fn_append
11579
11580 # as_fn_arith ARG...
11581 # ------------------
11582 # Perform arithmetic evaluation on the ARGs, and store the result in the
11583 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11584 # must be portable across $(()) and expr.
11585 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11586 then :
11587 eval 'as_fn_arith ()
11588 {
11589 as_val=$(( $* ))
11590 }'
11591 else $as_nop
11592 as_fn_arith ()
11593 {
11594 as_val=`expr "$@" || test $? -eq 1`
11595 }
11596 fi # as_fn_arith
11597
11598
11599 if expr a : '\(a\)' >/dev/null 2>&1 &&
11600 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11601 as_expr=expr
11602 else
11603 as_expr=false
11604 fi
11605
11606 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11607 as_basename=basename
11608 else
11609 as_basename=false
11610 fi
11611
11612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11613 as_dirname=dirname
11614 else
11615 as_dirname=false
11616 fi
11617
11618 as_me=`$as_basename -- "$0" ||
11619 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11620 X"$0" : 'X\(//\)$' \| \
11621 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11622 printf "%s\n" X/"$0" |
11623 sed '/^.*\/\([^/][^/]*\)\/*$/{
11624 s//\1/
11625 q
11626 }
11627 /^X\/\(\/\/\)$/{
11628 s//\1/
11629 q
11630 }
11631 /^X\/\(\/\).*/{
11632 s//\1/
11633 q
11634 }
11635 s/.*/./; q'`
11636
11637 # Avoid depending upon Character Ranges.
11638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11641 as_cr_digits='0123456789'
11642 as_cr_alnum=$as_cr_Letters$as_cr_digits
11643
11644
11645 # Determine whether it's possible to make 'echo' print without a newline.
11646 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11647 # for compatibility with existing Makefiles.
11648 ECHO_C= ECHO_N= ECHO_T=
11649 case `echo -n x` in #(((((
11650 -n*)
11651 case `echo 'xy\c'` in
11652 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11653 xy) ECHO_C='\c';;
11654 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11655 ECHO_T=' ';;
11656 esac;;
11657 *)
11658 ECHO_N='-n';;
11659 esac
11660
11661 # For backward compatibility with old third-party macros, we provide
11662 # the shell variables $as_echo and $as_echo_n. New code should use
11663 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11664 as_echo='printf %s\n'
11665 as_echo_n='printf %s'
11666
11667 rm -f conf$$ conf$$.exe conf$$.file
11668 if test -d conf$$.dir; then
11669 rm -f conf$$.dir/conf$$.file
11670 else
11671 rm -f conf$$.dir
11672 mkdir conf$$.dir 2>/dev/null
11673 fi
11674 if (echo >conf$$.file) 2>/dev/null; then
11675 if ln -s conf$$.file conf$$ 2>/dev/null; then
11676 as_ln_s='ln -s'
11677 # ... but there are two gotchas:
11678 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11679 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11680 # In both cases, we have to default to `cp -pR'.
11681 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11682 as_ln_s='cp -pR'
11683 elif ln conf$$.file conf$$ 2>/dev/null; then
11684 as_ln_s=ln
11685 else
11686 as_ln_s='cp -pR'
11687 fi
11688 else
11689 as_ln_s='cp -pR'
11690 fi
11691 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11692 rmdir conf$$.dir 2>/dev/null
11693
11694
11695 # as_fn_mkdir_p
11696 # -------------
11697 # Create "$as_dir" as a directory, including parents if necessary.
11698 as_fn_mkdir_p ()
11699 {
11700
11701 case $as_dir in #(
11702 -*) as_dir=./$as_dir;;
11703 esac
11704 test -d "$as_dir" || eval $as_mkdir_p || {
11705 as_dirs=
11706 while :; do
11707 case $as_dir in #(
11708 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11709 *) as_qdir=$as_dir;;
11710 esac
11711 as_dirs="'$as_qdir' $as_dirs"
11712 as_dir=`$as_dirname -- "$as_dir" ||
11713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11714 X"$as_dir" : 'X\(//\)[^/]' \| \
11715 X"$as_dir" : 'X\(//\)$' \| \
11716 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11717 printf "%s\n" X"$as_dir" |
11718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11719 s//\1/
11720 q
11721 }
11722 /^X\(\/\/\)[^/].*/{
11723 s//\1/
11724 q
11725 }
11726 /^X\(\/\/\)$/{
11727 s//\1/
11728 q
11729 }
11730 /^X\(\/\).*/{
11731 s//\1/
11732 q
11733 }
11734 s/.*/./; q'`
11735 test -d "$as_dir" && break
11736 done
11737 test -z "$as_dirs" || eval "mkdir $as_dirs"
11738 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11739
11740
11741 } # as_fn_mkdir_p
11742 if mkdir -p . 2>/dev/null; then
11743 as_mkdir_p='mkdir -p "$as_dir"'
11744 else
11745 test -d ./-p && rmdir ./-p
11746 as_mkdir_p=false
11747 fi
11748
11749
11750 # as_fn_executable_p FILE
11751 # -----------------------
11752 # Test if FILE is an executable regular file.
11753 as_fn_executable_p ()
11754 {
11755 test -f "$1" && test -x "$1"
11756 } # as_fn_executable_p
11757 as_test_x='test -x'
11758 as_executable_p=as_fn_executable_p
11759
11760 # Sed expression to map a string onto a valid CPP name.
11761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11762
11763 # Sed expression to map a string onto a valid variable name.
11764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11765
11766
11767 exec 6>&1
11768 ## ----------------------------------- ##
11769 ## Main body of $CONFIG_STATUS script. ##
11770 ## ----------------------------------- ##
11771 _ASEOF
11772 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11773
11774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11775 # Save the log message, to keep $0 and so on meaningful, and to
11776 # report actual input values of CONFIG_FILES etc. instead of their
11777 # values after options handling.
11778 ac_log="
11779 This file was extended by xgamma $as_me 1.0.7, which was
11780 generated by GNU Autoconf 2.71. Invocation command line was
11781
11782 CONFIG_FILES = $CONFIG_FILES
11783 CONFIG_HEADERS = $CONFIG_HEADERS
11784 CONFIG_LINKS = $CONFIG_LINKS
11785 CONFIG_COMMANDS = $CONFIG_COMMANDS
11786 $ $0 $@
11787
11788 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11789 "
11790
11791 _ACEOF
11792
11793 case $ac_config_files in *"
11794 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11795 esac
11796
11797 case $ac_config_headers in *"
11798 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11799 esac
11800
11801
11802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11803 # Files that config.status was made for.
11804 config_files="$ac_config_files"
11805 config_headers="$ac_config_headers"
11806 config_commands="$ac_config_commands"
11807
11808 _ACEOF
11809
11810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11811 ac_cs_usage="\
11812 \`$as_me' instantiates files and other configuration actions
11813 from templates according to the current configuration. Unless the files
11814 and actions are specified as TAGs, all are instantiated by default.
11815
11816 Usage: $0 [OPTION]... [TAG]...
11817
11818 -h, --help print this help, then exit
11819 -V, --version print version number and configuration settings, then exit
11820 --config print configuration, then exit
11821 -q, --quiet, --silent
11822 do not print progress messages
11823 -d, --debug don't remove temporary files
11824 --recheck update $as_me by reconfiguring in the same conditions
11825 --file=FILE[:TEMPLATE]
11826 instantiate the configuration file FILE
11827 --header=FILE[:TEMPLATE]
11828 instantiate the configuration header FILE
11829
11830 Configuration files:
11831 $config_files
11832
11833 Configuration headers:
11834 $config_headers
11835
11836 Configuration commands:
11837 $config_commands
11838
11839 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>."
11840
11841 _ACEOF
11842 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11843 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11845 ac_cs_config='$ac_cs_config_escaped'
11846 ac_cs_version="\\
11847 xgamma config.status 1.0.7
11848 configured by $0, generated by GNU Autoconf 2.71,
11849 with options \\"\$ac_cs_config\\"
11850
11851 Copyright (C) 2021 Free Software Foundation, Inc.
11852 This config.status script is free software; the Free Software Foundation
11853 gives unlimited permission to copy, distribute and modify it."
11854
11855 ac_pwd='$ac_pwd'
11856 srcdir='$srcdir'
11857 INSTALL='$INSTALL'
11858 MKDIR_P='$MKDIR_P'
11859 AWK='$AWK'
11860 test -n "\$AWK" || AWK=awk
11861 _ACEOF
11862
11863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11864 # The default lists apply if the user does not specify any file.
11865 ac_need_defaults=:
11866 while test $# != 0
11867 do
11868 case $1 in
11869 --*=?*)
11870 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11871 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11872 ac_shift=:
11873 ;;
11874 --*=)
11875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11876 ac_optarg=
11877 ac_shift=:
11878 ;;
11879 *)
11880 ac_option=$1
11881 ac_optarg=$2
11882 ac_shift=shift
11883 ;;
11884 esac
11885
11886 case $ac_option in
11887 # Handling of the options.
11888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11889 ac_cs_recheck=: ;;
11890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11891 printf "%s\n" "$ac_cs_version"; exit ;;
11892 --config | --confi | --conf | --con | --co | --c )
11893 printf "%s\n" "$ac_cs_config"; exit ;;
11894 --debug | --debu | --deb | --de | --d | -d )
11895 debug=: ;;
11896 --file | --fil | --fi | --f )
11897 $ac_shift
11898 case $ac_optarg in
11899 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11900 '') as_fn_error $? "missing file argument" ;;
11901 esac
11902 as_fn_append CONFIG_FILES " '$ac_optarg'"
11903 ac_need_defaults=false;;
11904 --header | --heade | --head | --hea )
11905 $ac_shift
11906 case $ac_optarg in
11907 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11908 esac
11909 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11910 ac_need_defaults=false;;
11911 --he | --h)
11912 # Conflict between --help and --header
11913 as_fn_error $? "ambiguous option: \`$1'
11914 Try \`$0 --help' for more information.";;
11915 --help | --hel | -h )
11916 printf "%s\n" "$ac_cs_usage"; exit ;;
11917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11918 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11919 ac_cs_silent=: ;;
11920
11921 # This is an error.
11922 -*) as_fn_error $? "unrecognized option: \`$1'
11923 Try \`$0 --help' for more information." ;;
11924
11925 *) as_fn_append ac_config_targets " $1"
11926 ac_need_defaults=false ;;
11927
11928 esac
11929 shift
11930 done
11931
11932 ac_configure_extra_args=
11933
11934 if $ac_cs_silent; then
11935 exec 6>/dev/null
11936 ac_configure_extra_args="$ac_configure_extra_args --silent"
11937 fi
11938
11939 _ACEOF
11940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941 if \$ac_cs_recheck; then
11942 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11943 shift
11944 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11945 CONFIG_SHELL='$SHELL'
11946 export CONFIG_SHELL
11947 exec "\$@"
11948 fi
11949
11950 _ACEOF
11951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11952 exec 5>>config.log
11953 {
11954 echo
11955 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11956 ## Running $as_me. ##
11957 _ASBOX
11958 printf "%s\n" "$ac_log"
11959 } >&5
11960
11961 _ACEOF
11962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11963 #
11964 # INIT-COMMANDS
11965 #
11966 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11967
11968 _ACEOF
11969
11970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11971
11972 # Handling of arguments.
11973 for ac_config_target in $ac_config_targets
11974 do
11975 case $ac_config_target in
11976 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11977 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11978 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11979 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11980
11981 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11982 esac
11983 done
11984
11985
11986 # If the user did not use the arguments to specify the items to instantiate,
11987 # then the envvar interface is used. Set only those that are not.
11988 # We use the long form for the default assignment because of an extremely
11989 # bizarre bug on SunOS 4.1.3.
11990 if $ac_need_defaults; then
11991 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11992 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11993 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11994 fi
11995
11996 # Have a temporary directory for convenience. Make it in the build tree
11997 # simply because there is no reason against having it here, and in addition,
11998 # creating and moving files from /tmp can sometimes cause problems.
11999 # Hook for its removal unless debugging.
12000 # Note that there is a small window in which the directory will not be cleaned:
12001 # after its creation but before its name has been assigned to `$tmp'.
12002 $debug ||
12003 {
12004 tmp= ac_tmp=
12005 trap 'exit_status=$?
12006 : "${ac_tmp:=$tmp}"
12007 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12008 ' 0
12009 trap 'as_fn_exit 1' 1 2 13 15
12010 }
12011 # Create a (secure) tmp directory for tmp files.
12012
12013 {
12014 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12015 test -d "$tmp"
12016 } ||
12017 {
12018 tmp=./conf$$-$RANDOM
12019 (umask 077 && mkdir "$tmp")
12020 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12021 ac_tmp=$tmp
12022
12023 # Set up the scripts for CONFIG_FILES section.
12024 # No need to generate them if there are no CONFIG_FILES.
12025 # This happens for instance with `./config.status config.h'.
12026 if test -n "$CONFIG_FILES"; then
12027
12028
12029 ac_cr=`echo X | tr X '\015'`
12030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12031 # But we know of no other shell where ac_cr would be empty at this
12032 # point, so we can use a bashism as a fallback.
12033 if test "x$ac_cr" = x; then
12034 eval ac_cr=\$\'\\r\'
12035 fi
12036 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12038 ac_cs_awk_cr='\\r'
12039 else
12040 ac_cs_awk_cr=$ac_cr
12041 fi
12042
12043 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12044 _ACEOF
12045
12046
12047 {
12048 echo "cat >conf$$subs.awk <<_ACEOF" &&
12049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12050 echo "_ACEOF"
12051 } >conf$$subs.sh ||
12052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12053 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12054 ac_delim='%!_!# '
12055 for ac_last_try in false false false false false :; do
12056 . ./conf$$subs.sh ||
12057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12058
12059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12060 if test $ac_delim_n = $ac_delim_num; then
12061 break
12062 elif $ac_last_try; then
12063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12064 else
12065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12066 fi
12067 done
12068 rm -f conf$$subs.sh
12069
12070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12071 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12072 _ACEOF
12073 sed -n '
12074 h
12075 s/^/S["/; s/!.*/"]=/
12076 p
12077 g
12078 s/^[^!]*!//
12079 :repl
12080 t repl
12081 s/'"$ac_delim"'$//
12082 t delim
12083 :nl
12084 h
12085 s/\(.\{148\}\)..*/\1/
12086 t more1
12087 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12088 p
12089 n
12090 b repl
12091 :more1
12092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12093 p
12094 g
12095 s/.\{148\}//
12096 t nl
12097 :delim
12098 h
12099 s/\(.\{148\}\)..*/\1/
12100 t more2
12101 s/["\\]/\\&/g; s/^/"/; s/$/"/
12102 p
12103 b
12104 :more2
12105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12106 p
12107 g
12108 s/.\{148\}//
12109 t delim
12110 ' <conf$$subs.awk | sed '
12111 /^[^""]/{
12112 N
12113 s/\n//
12114 }
12115 ' >>$CONFIG_STATUS || ac_write_fail=1
12116 rm -f conf$$subs.awk
12117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12118 _ACAWK
12119 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12120 for (key in S) S_is_set[key] = 1
12121 FS = ""
12122
12123 }
12124 {
12125 line = $ 0
12126 nfields = split(line, field, "@")
12127 substed = 0
12128 len = length(field[1])
12129 for (i = 2; i < nfields; i++) {
12130 key = field[i]
12131 keylen = length(key)
12132 if (S_is_set[key]) {
12133 value = S[key]
12134 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12135 len += length(value) + length(field[++i])
12136 substed = 1
12137 } else
12138 len += 1 + keylen
12139 }
12140
12141 print line
12142 }
12143
12144 _ACAWK
12145 _ACEOF
12146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12147 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12149 else
12150 cat
12151 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12152 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12153 _ACEOF
12154
12155 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12156 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12157 # trailing colons and then remove the whole line if VPATH becomes empty
12158 # (actually we leave an empty line to preserve line numbers).
12159 if test "x$srcdir" = x.; then
12160 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12161 h
12162 s///
12163 s/^/:/
12164 s/[ ]*$/:/
12165 s/:\$(srcdir):/:/g
12166 s/:\${srcdir}:/:/g
12167 s/:@srcdir@:/:/g
12168 s/^:*//
12169 s/:*$//
12170 x
12171 s/\(=[ ]*\).*/\1/
12172 G
12173 s/\n//
12174 s/^[^=]*=[ ]*$//
12175 }'
12176 fi
12177
12178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12179 fi # test -n "$CONFIG_FILES"
12180
12181 # Set up the scripts for CONFIG_HEADERS section.
12182 # No need to generate them if there are no CONFIG_HEADERS.
12183 # This happens for instance with `./config.status Makefile'.
12184 if test -n "$CONFIG_HEADERS"; then
12185 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12186 BEGIN {
12187 _ACEOF
12188
12189 # Transform confdefs.h into an awk script `defines.awk', embedded as
12190 # here-document in config.status, that substitutes the proper values into
12191 # config.h.in to produce config.h.
12192
12193 # Create a delimiter string that does not exist in confdefs.h, to ease
12194 # handling of long lines.
12195 ac_delim='%!_!# '
12196 for ac_last_try in false false :; do
12197 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12198 if test -z "$ac_tt"; then
12199 break
12200 elif $ac_last_try; then
12201 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12202 else
12203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12204 fi
12205 done
12206
12207 # For the awk script, D is an array of macro values keyed by name,
12208 # likewise P contains macro parameters if any. Preserve backslash
12209 # newline sequences.
12210
12211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12212 sed -n '
12213 s/.\{148\}/&'"$ac_delim"'/g
12214 t rset
12215 :rset
12216 s/^[ ]*#[ ]*define[ ][ ]*/ /
12217 t def
12218 d
12219 :def
12220 s/\\$//
12221 t bsnl
12222 s/["\\]/\\&/g
12223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12224 D["\1"]=" \3"/p
12225 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12226 d
12227 :bsnl
12228 s/["\\]/\\&/g
12229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12230 D["\1"]=" \3\\\\\\n"\\/p
12231 t cont
12232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12233 t cont
12234 d
12235 :cont
12236 n
12237 s/.\{148\}/&'"$ac_delim"'/g
12238 t clear
12239 :clear
12240 s/\\$//
12241 t bsnlc
12242 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12243 d
12244 :bsnlc
12245 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12246 b cont
12247 ' <confdefs.h | sed '
12248 s/'"$ac_delim"'/"\\\
12249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12250
12251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12252 for (key in D) D_is_set[key] = 1
12253 FS = ""
12254 }
12255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12256 line = \$ 0
12257 split(line, arg, " ")
12258 if (arg[1] == "#") {
12259 defundef = arg[2]
12260 mac1 = arg[3]
12261 } else {
12262 defundef = substr(arg[1], 2)
12263 mac1 = arg[2]
12264 }
12265 split(mac1, mac2, "(") #)
12266 macro = mac2[1]
12267 prefix = substr(line, 1, index(line, defundef) - 1)
12268 if (D_is_set[macro]) {
12269 # Preserve the white space surrounding the "#".
12270 print prefix "define", macro P[macro] D[macro]
12271 next
12272 } else {
12273 # Replace #undef with comments. This is necessary, for example,
12274 # in the case of _POSIX_SOURCE, which is predefined and required
12275 # on some systems where configure will not decide to define it.
12276 if (defundef == "undef") {
12277 print "/*", prefix defundef, macro, "*/"
12278 next
12279 }
12280 }
12281 }
12282 { print }
12283 _ACAWK
12284 _ACEOF
12285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12286 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12287 fi # test -n "$CONFIG_HEADERS"
12288
12289
12290 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12291 shift
12292 for ac_tag
12293 do
12294 case $ac_tag in
12295 :[FHLC]) ac_mode=$ac_tag; continue;;
12296 esac
12297 case $ac_mode$ac_tag in
12298 :[FHL]*:*);;
12299 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12300 :[FH]-) ac_tag=-:-;;
12301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12302 esac
12303 ac_save_IFS=$IFS
12304 IFS=:
12305 set x $ac_tag
12306 IFS=$ac_save_IFS
12307 shift
12308 ac_file=$1
12309 shift
12310
12311 case $ac_mode in
12312 :L) ac_source=$1;;
12313 :[FH])
12314 ac_file_inputs=
12315 for ac_f
12316 do
12317 case $ac_f in
12318 -) ac_f="$ac_tmp/stdin";;
12319 *) # Look for the file first in the build tree, then in the source tree
12320 # (if the path is not absolute). The absolute path cannot be DOS-style,
12321 # because $ac_f cannot contain `:'.
12322 test -f "$ac_f" ||
12323 case $ac_f in
12324 [\\/$]*) false;;
12325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12326 esac ||
12327 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12328 esac
12329 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12330 as_fn_append ac_file_inputs " '$ac_f'"
12331 done
12332
12333 # Let's still pretend it is `configure' which instantiates (i.e., don't
12334 # use $as_me), people would be surprised to read:
12335 # /* config.h. Generated by config.status. */
12336 configure_input='Generated from '`
12337 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12338 `' by configure.'
12339 if test x"$ac_file" != x-; then
12340 configure_input="$ac_file. $configure_input"
12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12342 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12343 fi
12344 # Neutralize special characters interpreted by sed in replacement strings.
12345 case $configure_input in #(
12346 *\&* | *\|* | *\\* )
12347 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12349 *) ac_sed_conf_input=$configure_input;;
12350 esac
12351
12352 case $ac_tag in
12353 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12355 esac
12356 ;;
12357 esac
12358
12359 ac_dir=`$as_dirname -- "$ac_file" ||
12360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12361 X"$ac_file" : 'X\(//\)[^/]' \| \
12362 X"$ac_file" : 'X\(//\)$' \| \
12363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12364 printf "%s\n" X"$ac_file" |
12365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12366 s//\1/
12367 q
12368 }
12369 /^X\(\/\/\)[^/].*/{
12370 s//\1/
12371 q
12372 }
12373 /^X\(\/\/\)$/{
12374 s//\1/
12375 q
12376 }
12377 /^X\(\/\).*/{
12378 s//\1/
12379 q
12380 }
12381 s/.*/./; q'`
12382 as_dir="$ac_dir"; as_fn_mkdir_p
12383 ac_builddir=.
12384
12385 case "$ac_dir" in
12386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12387 *)
12388 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12389 # A ".." for each directory in $ac_dir_suffix.
12390 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12391 case $ac_top_builddir_sub in
12392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12394 esac ;;
12395 esac
12396 ac_abs_top_builddir=$ac_pwd
12397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12398 # for backward compatibility:
12399 ac_top_builddir=$ac_top_build_prefix
12400
12401 case $srcdir in
12402 .) # We are building in place.
12403 ac_srcdir=.
12404 ac_top_srcdir=$ac_top_builddir_sub
12405 ac_abs_top_srcdir=$ac_pwd ;;
12406 [\\/]* | ?:[\\/]* ) # Absolute name.
12407 ac_srcdir=$srcdir$ac_dir_suffix;
12408 ac_top_srcdir=$srcdir
12409 ac_abs_top_srcdir=$srcdir ;;
12410 *) # Relative name.
12411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12412 ac_top_srcdir=$ac_top_build_prefix$srcdir
12413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12414 esac
12415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12416
12417
12418 case $ac_mode in
12419 :F)
12420 #
12421 # CONFIG_FILE
12422 #
12423
12424 case $INSTALL in
12425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12426 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12427 esac
12428 ac_MKDIR_P=$MKDIR_P
12429 case $MKDIR_P in
12430 [\\/$]* | ?:[\\/]* ) ;;
12431 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12432 esac
12433 _ACEOF
12434
12435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12436 # If the template does not know about datarootdir, expand it.
12437 # FIXME: This hack should be removed a few years after 2.60.
12438 ac_datarootdir_hack=; ac_datarootdir_seen=
12439 ac_sed_dataroot='
12440 /datarootdir/ {
12441 p
12442 q
12443 }
12444 /@datadir@/p
12445 /@docdir@/p
12446 /@infodir@/p
12447 /@localedir@/p
12448 /@mandir@/p'
12449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12450 *datarootdir*) ac_datarootdir_seen=yes;;
12451 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12453 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12454 _ACEOF
12455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12456 ac_datarootdir_hack='
12457 s&@datadir@&$datadir&g
12458 s&@docdir@&$docdir&g
12459 s&@infodir@&$infodir&g
12460 s&@localedir@&$localedir&g
12461 s&@mandir@&$mandir&g
12462 s&\\\${datarootdir}&$datarootdir&g' ;;
12463 esac
12464 _ACEOF
12465
12466 # Neutralize VPATH when `$srcdir' = `.'.
12467 # Shell code in configure.ac might set extrasub.
12468 # FIXME: do we really want to maintain this feature?
12469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12470 ac_sed_extra="$ac_vpsub
12471 $extrasub
12472 _ACEOF
12473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474 :t
12475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12476 s|@configure_input@|$ac_sed_conf_input|;t t
12477 s&@top_builddir@&$ac_top_builddir_sub&;t t
12478 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12479 s&@srcdir@&$ac_srcdir&;t t
12480 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12481 s&@top_srcdir@&$ac_top_srcdir&;t t
12482 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12483 s&@builddir@&$ac_builddir&;t t
12484 s&@abs_builddir@&$ac_abs_builddir&;t t
12485 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12486 s&@INSTALL@&$ac_INSTALL&;t t
12487 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12488 $ac_datarootdir_hack
12489 "
12490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12491 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12492
12493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12494 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12496 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12498 which seems to be undefined. Please make sure it is defined" >&5
12499 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12500 which seems to be undefined. Please make sure it is defined" >&2;}
12501
12502 rm -f "$ac_tmp/stdin"
12503 case $ac_file in
12504 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12505 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12506 esac \
12507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12508 ;;
12509 :H)
12510 #
12511 # CONFIG_HEADER
12512 #
12513 if test x"$ac_file" != x-; then
12514 {
12515 printf "%s\n" "/* $configure_input */" >&1 \
12516 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12517 } >"$ac_tmp/config.h" \
12518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12519 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12521 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12522 else
12523 rm -f "$ac_file"
12524 mv "$ac_tmp/config.h" "$ac_file" \
12525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12526 fi
12527 else
12528 printf "%s\n" "/* $configure_input */" >&1 \
12529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12530 || as_fn_error $? "could not create -" "$LINENO" 5
12531 fi
12532 # Compute "$ac_file"'s index in $config_headers.
12533 _am_arg="$ac_file"
12534 _am_stamp_count=1
12535 for _am_header in $config_headers :; do
12536 case $_am_header in
12537 $_am_arg | $_am_arg:* )
12538 break ;;
12539 * )
12540 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12541 esac
12542 done
12543 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12544 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12545 X"$_am_arg" : 'X\(//\)[^/]' \| \
12546 X"$_am_arg" : 'X\(//\)$' \| \
12547 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12548 printf "%s\n" X"$_am_arg" |
12549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12550 s//\1/
12551 q
12552 }
12553 /^X\(\/\/\)[^/].*/{
12554 s//\1/
12555 q
12556 }
12557 /^X\(\/\/\)$/{
12558 s//\1/
12559 q
12560 }
12561 /^X\(\/\).*/{
12562 s//\1/
12563 q
12564 }
12565 s/.*/./; q'`/stamp-h$_am_stamp_count
12566 ;;
12567
12568 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12569 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12570 ;;
12571 esac
12572
12573
12574 case $ac_file$ac_mode in
12575 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12576 # Older Autoconf quotes --file arguments for eval, but not when files
12577 # are listed without --file. Let's play safe and only enable the eval
12578 # if we detect the quoting.
12579 # TODO: see whether this extra hack can be removed once we start
12580 # requiring Autoconf 2.70 or later.
12581 case $CONFIG_FILES in #(
12582 *\'*) :
12583 eval set x "$CONFIG_FILES" ;; #(
12584 *) :
12585 set x $CONFIG_FILES ;; #(
12586 *) :
12587 ;;
12588 esac
12589 shift
12590 # Used to flag and report bootstrapping failures.
12591 am_rc=0
12592 for am_mf
12593 do
12594 # Strip MF so we end up with the name of the file.
12595 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12596 # Check whether this is an Automake generated Makefile which includes
12597 # dependency-tracking related rules and includes.
12598 # Grep'ing the whole file directly is not great: AIX grep has a line
12599 # limit of 2048, but all sed's we know have understand at least 4000.
12600 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12601 || continue
12602 am_dirpart=`$as_dirname -- "$am_mf" ||
12603 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12604 X"$am_mf" : 'X\(//\)[^/]' \| \
12605 X"$am_mf" : 'X\(//\)$' \| \
12606 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12607 printf "%s\n" X"$am_mf" |
12608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12609 s//\1/
12610 q
12611 }
12612 /^X\(\/\/\)[^/].*/{
12613 s//\1/
12614 q
12615 }
12616 /^X\(\/\/\)$/{
12617 s//\1/
12618 q
12619 }
12620 /^X\(\/\).*/{
12621 s//\1/
12622 q
12623 }
12624 s/.*/./; q'`
12625 am_filepart=`$as_basename -- "$am_mf" ||
12626 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12627 X"$am_mf" : 'X\(//\)$' \| \
12628 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12629 printf "%s\n" X/"$am_mf" |
12630 sed '/^.*\/\([^/][^/]*\)\/*$/{
12631 s//\1/
12632 q
12633 }
12634 /^X\/\(\/\/\)$/{
12635 s//\1/
12636 q
12637 }
12638 /^X\/\(\/\).*/{
12639 s//\1/
12640 q
12641 }
12642 s/.*/./; q'`
12643 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12644 && sed -e '/# am--include-marker/d' "$am_filepart" \
12645 | $MAKE -f - am--depfiles" >&5
12646 (cd "$am_dirpart" \
12647 && sed -e '/# am--include-marker/d' "$am_filepart" \
12648 | $MAKE -f - am--depfiles) >&5 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } || am_rc=$?
12652 done
12653 if test $am_rc -ne 0; then
12654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12655 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12656 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12657 for automatic dependency tracking. If GNU make was not used, consider
12658 re-running the configure script with MAKE=\"gmake\" (or whatever is
12659 necessary). You can also try re-running configure with the
12660 '--disable-dependency-tracking' option to at least be able to build
12661 the package (albeit without support for automatic dependency tracking).
12662 See \`config.log' for more details" "$LINENO" 5; }
12663 fi
12664 { am_dirpart=; unset am_dirpart;}
12665 { am_filepart=; unset am_filepart;}
12666 { am_mf=; unset am_mf;}
12667 { am_rc=; unset am_rc;}
12668 rm -f conftest-deps.mk
12669 }
12670 ;;
12671
12672 esac
12673 done # for ac_tag
12674
12675
12676 as_fn_exit 0
12677 _ACEOF
12678 ac_clean_files=$ac_clean_files_save
12679
12680 test $ac_write_fail = 0 ||
12681 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12682
12683
12684 # configure is writing to config.log, and then calls config.status.
12685 # config.status does its own redirection, appending to config.log.
12686 # Unfortunately, on DOS this fails, as config.log is still kept open
12687 # by configure, so config.status won't be able to write to it; its
12688 # output is simply discarded. So we exec the FD to /dev/null,
12689 # effectively closing config.log, so it can be properly (re)opened and
12690 # appended to by config.status. When coming back to configure, we
12691 # need to make the FD available again.
12692 if test "$no_create" != yes; then
12693 ac_cs_success=:
12694 ac_config_status_args=
12695 test "$silent" = yes &&
12696 ac_config_status_args="$ac_config_status_args --quiet"
12697 exec 5>/dev/null
12698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12699 exec 5>>config.log
12700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12701 # would make configure fail if this is the last instruction.
12702 $ac_cs_success || as_fn_exit 1
12703 fi
12704 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12706 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12707 fi
12708
12709