configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for appres 1.0.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/appres/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/appres/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='appres'
607 PACKAGE_TARNAME='appres'
608 PACKAGE_VERSION='1.0.7'
609 PACKAGE_STRING='appres 1.0.7'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/appres/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 APPRES_LIBS
651 APPRES_CFLAGS
652 MAN_SUBSTS
653 XORG_MAN_PAGE
654 ADMIN_MAN_DIR
655 DRIVER_MAN_DIR
656 MISC_MAN_DIR
657 FILE_MAN_DIR
658 LIB_MAN_DIR
659 APP_MAN_DIR
660 ADMIN_MAN_SUFFIX
661 DRIVER_MAN_SUFFIX
662 MISC_MAN_SUFFIX
663 FILE_MAN_SUFFIX
664 LIB_MAN_SUFFIX
665 APP_MAN_SUFFIX
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 INSTALL_CMD
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 CHANGELOG_CMD
680 STRICT_CFLAGS
681 CWARNFLAGS
682 BASE_CFLAGS
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 CSCOPE
704 ETAGS
705 CTAGS
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 runstatedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL
768 am__quote'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_silent_rules
773 enable_dependency_tracking
774 enable_selective_werror
775 enable_strict_compilation
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 PKG_CONFIG
786 PKG_CONFIG_PATH
787 PKG_CONFIG_LIBDIR
788 APPRES_CFLAGS
789 APPRES_LIBS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 runstatedir='${localstatedir}/run'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: '$ac_useropt'"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: '$ac_useropt'"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -runstatedir | --runstatedir | --runstatedi | --runstated \
1080 | --runstate | --runstat | --runsta | --runst | --runs \
1081 | --run | --ru | --r)
1082 ac_prev=runstatedir ;;
1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1085 | --run=* | --ru=* | --r=*)
1086 runstatedir=$ac_optarg ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: '$ac_useropt'"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: '$ac_useropt'"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: '$ac_option'
1184 Try '$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir runstatedir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: '$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 printf "%s\n" X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 'configure' configures appres 1.0.7 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print 'checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for '--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or '..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, 'make install' will install all the files in
1365 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than '$ac_default_prefix' using '--prefix',
1367 for instance '--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/appres]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1393
1394 cat <<\_ACEOF
1395
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of appres 1.0.7:";;
1410 esac
1411 cat <<\_ACEOF
1412
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419 --enable-dependency-tracking
1420 do not reject slow dependency extractors
1421 --disable-dependency-tracking
1422 speeds up one-time build
1423 --disable-selective-werror
1424 Turn off selective compiler errors. (default:
1425 enabled)
1426 --enable-strict-compilation
1427 Enable all warnings from compiler and make them
1428 errors (default: disabled)
1429
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 PKG_CONFIG path to pkg-config utility
1439 PKG_CONFIG_PATH
1440 directories to add to pkg-config's search path
1441 PKG_CONFIG_LIBDIR
1442 path overriding pkg-config's built-in search path
1443 APPRES_CFLAGS
1444 C compiler flags for APPRES, overriding pkg-config
1445 APPRES_LIBS linker flags for APPRES, overriding pkg-config
1446
1447 Use these variables to override the choices made by 'configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1449
1450 Report bugs to <https://gitlab.freedesktop.org/xorg/app/appres/issues>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for configure.gnu first; this name is used for a wrapper for
1497 # Metaconfig's "Configure" on case-insensitive file systems.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1504 else
1505 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1508 done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513 cat <<\_ACEOF
1514 appres configure 1.0.7
1515 generated by GNU Autoconf 2.72
1516
1517 Copyright (C) 2023 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521 exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext conftest.beam
1535 if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 printf "%s\n" "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext
1554 then :
1555 ac_retval=0
1556 else case e in #(
1557 e) printf "%s\n" "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1 ;;
1561 esac
1562 fi
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1565
1566 } # ac_fn_c_try_compile
1567
1568 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1569 # ------------------------------------------------------------------
1570 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1571 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1572 ac_fn_check_decl ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 as_decl_name=`echo $2|sed 's/ *(.*//'`
1576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1577 printf %s "checking whether $as_decl_name is declared... " >&6; }
1578 if eval test \${$3+y}
1579 then :
1580 printf %s "(cached) " >&6
1581 else case e in #(
1582 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1583 eval ac_save_FLAGS=\$$6
1584 as_fn_append $6 " $5"
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1587 $4
1588 int
1589 main (void)
1590 {
1591 #ifndef $as_decl_name
1592 #ifdef __cplusplus
1593 (void) $as_decl_use;
1594 #else
1595 (void) $as_decl_name;
1596 #endif
1597 #endif
1598
1599 ;
1600 return 0;
1601 }
1602 _ACEOF
1603 if ac_fn_c_try_compile "$LINENO"
1604 then :
1605 eval "$3=yes"
1606 else case e in #(
1607 e) eval "$3=no" ;;
1608 esac
1609 fi
1610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1611 eval $6=\$ac_save_FLAGS
1612 ;;
1613 esac
1614 fi
1615 eval ac_res=\$$3
1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617 printf "%s\n" "$ac_res" >&6; }
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619
1620 } # ac_fn_check_decl
1621
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 printf %s "checking for $2... " >&6; }
1631 if eval test \${$3+y}
1632 then :
1633 printf %s "(cached) " >&6
1634 else case e in #(
1635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 $4
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"
1641 then :
1642 eval "$3=yes"
1643 else case e in #(
1644 e) eval "$3=no" ;;
1645 esac
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1648 esac
1649 fi
1650 eval ac_res=\$$3
1651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 printf "%s\n" "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_header_compile
1656
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 printf "%s\n" "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1685 }
1686 then :
1687 ac_retval=0
1688 else case e in #(
1689 e) printf "%s\n" "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1 ;;
1693 esac
1694 fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_link
1704 ac_configure_args_raw=
1705 for ac_arg
1706 do
1707 case $ac_arg in
1708 *\'*)
1709 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710 esac
1711 as_fn_append ac_configure_args_raw " '$ac_arg'"
1712 done
1713
1714 case $ac_configure_args_raw in
1715 *$as_nl*)
1716 ac_safe_unquote= ;;
1717 *)
1718 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1719 ac_unsafe_a="$ac_unsafe_z#~"
1720 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1721 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1722 esac
1723
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1727
1728 It was created by appres $as_me 1.0.7, which was
1729 generated by GNU Autoconf 2.72. Invocation command line was
1730
1731 $ $0$ac_configure_args_raw
1732
1733 _ACEOF
1734 exec 5>>config.log
1735 {
1736 cat <<_ASUNAME
1737 ## --------- ##
1738 ## Platform. ##
1739 ## --------- ##
1740
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1749
1750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1757
1758 _ASUNAME
1759
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763 IFS=$as_save_IFS
1764 case $as_dir in #(((
1765 '') as_dir=./ ;;
1766 */) ;;
1767 *) as_dir=$as_dir/ ;;
1768 esac
1769 printf "%s\n" "PATH: $as_dir"
1770 done
1771 IFS=$as_save_IFS
1772
1773 } >&5
1774
1775 cat >&5 <<_ACEOF
1776
1777
1778 ## ----------- ##
1779 ## Core tests. ##
1780 ## ----------- ##
1781
1782 _ACEOF
1783
1784
1785 # Keep a trace of the command line.
1786 # Strip out --no-create and --no-recursion so they do not pile up.
1787 # Strip out --silent because we don't want to record it for future runs.
1788 # Also quote any args containing shell meta-characters.
1789 # Make two passes to allow for proper duplicate-argument suppression.
1790 ac_configure_args=
1791 ac_configure_args0=
1792 ac_configure_args1=
1793 ac_must_keep_next=false
1794 for ac_pass in 1 2
1795 do
1796 for ac_arg
1797 do
1798 case $ac_arg in
1799 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1801 | -silent | --silent | --silen | --sile | --sil)
1802 continue ;;
1803 *\'*)
1804 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805 esac
1806 case $ac_pass in
1807 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1808 2)
1809 as_fn_append ac_configure_args1 " '$ac_arg'"
1810 if test $ac_must_keep_next = true; then
1811 ac_must_keep_next=false # Got value, back to normal.
1812 else
1813 case $ac_arg in
1814 *=* | --config-cache | -C | -disable-* | --disable-* \
1815 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1816 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1817 | -with-* | --with-* | -without-* | --without-* | --x)
1818 case "$ac_configure_args0 " in
1819 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1820 esac
1821 ;;
1822 -* ) ac_must_keep_next=true ;;
1823 esac
1824 fi
1825 as_fn_append ac_configure_args " '$ac_arg'"
1826 ;;
1827 esac
1828 done
1829 done
1830 { ac_configure_args0=; unset ac_configure_args0;}
1831 { ac_configure_args1=; unset ac_configure_args1;}
1832
1833 # When interrupted or exit'd, cleanup temporary files, and complete
1834 # config.log. We remove comments because anyway the quotes in there
1835 # would cause problems or look ugly.
1836 # WARNING: Use '\'' to represent an apostrophe within the trap.
1837 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1838 trap 'exit_status=$?
1839 # Sanitize IFS.
1840 IFS=" "" $as_nl"
1841 # Save into config.log some information that might help in debugging.
1842 {
1843 echo
1844
1845 printf "%s\n" "## ---------------- ##
1846 ## Cache variables. ##
1847 ## ---------------- ##"
1848 echo
1849 # The following way of writing the cache mishandles newlines in values,
1850 (
1851 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1852 eval ac_val=\$$ac_var
1853 case $ac_val in #(
1854 *${as_nl}*)
1855 case $ac_var in #(
1856 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1857 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1858 esac
1859 case $ac_var in #(
1860 _ | IFS | as_nl) ;; #(
1861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1862 *) { eval $ac_var=; unset $ac_var;} ;;
1863 esac ;;
1864 esac
1865 done
1866 (set) 2>&1 |
1867 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1868 *${as_nl}ac_space=\ *)
1869 sed -n \
1870 "s/'\''/'\''\\\\'\'''\''/g;
1871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1872 ;; #(
1873 *)
1874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875 ;;
1876 esac |
1877 sort
1878 )
1879 echo
1880
1881 printf "%s\n" "## ----------------- ##
1882 ## Output variables. ##
1883 ## ----------------- ##"
1884 echo
1885 for ac_var in $ac_subst_vars
1886 do
1887 eval ac_val=\$$ac_var
1888 case $ac_val in
1889 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890 esac
1891 printf "%s\n" "$ac_var='\''$ac_val'\''"
1892 done | sort
1893 echo
1894
1895 if test -n "$ac_subst_files"; then
1896 printf "%s\n" "## ------------------- ##
1897 ## File substitutions. ##
1898 ## ------------------- ##"
1899 echo
1900 for ac_var in $ac_subst_files
1901 do
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
1904 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 esac
1906 printf "%s\n" "$ac_var='\''$ac_val'\''"
1907 done | sort
1908 echo
1909 fi
1910
1911 if test -s confdefs.h; then
1912 printf "%s\n" "## ----------- ##
1913 ## confdefs.h. ##
1914 ## ----------- ##"
1915 echo
1916 cat confdefs.h
1917 echo
1918 fi
1919 test "$ac_signal" != 0 &&
1920 printf "%s\n" "$as_me: caught signal $ac_signal"
1921 printf "%s\n" "$as_me: exit $exit_status"
1922 } >&5
1923 rm -f core *.core core.conftest.* &&
1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925 exit $exit_status
1926 ' 0
1927 for ac_signal in 1 2 13 15; do
1928 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1929 done
1930 ac_signal=0
1931
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1934
1935 printf "%s\n" "/* confdefs.h */" > confdefs.h
1936
1937 # Predefined preprocessor variables.
1938
1939 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1940
1941 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1942
1943 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1944
1945 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1946
1947 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1948
1949 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1950
1951
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer an explicitly selected file to automatically selected ones.
1954 if test -n "$CONFIG_SITE"; then
1955 ac_site_files="$CONFIG_SITE"
1956 elif test "x$prefix" != xNONE; then
1957 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1958 else
1959 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1960 fi
1961
1962 for ac_site_file in $ac_site_files
1963 do
1964 case $ac_site_file in #(
1965 */*) :
1966 ;; #(
1967 *) :
1968 ac_site_file=./$ac_site_file ;;
1969 esac
1970 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1972 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1973 sed 's/^/| /' "$ac_site_file" >&5
1974 . "$ac_site_file" \
1975 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1976 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1977 as_fn_error $? "failed to load site script $ac_site_file
1978 See 'config.log' for more details" "$LINENO" 5; }
1979 fi
1980 done
1981
1982 if test -r "$cache_file"; then
1983 # Some versions of bash will fail to source /dev/null (special files
1984 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1985 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1987 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1988 case $cache_file in
1989 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1990 *) . "./$cache_file";;
1991 esac
1992 fi
1993 else
1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1995 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1996 >$cache_file
1997 fi
1998
1999 # Test code for whether the C compiler supports C89 (global declarations)
2000 ac_c_conftest_c89_globals='
2001 /* Does the compiler advertise C89 conformance?
2002 Do not test the value of __STDC__, because some compilers set it to 0
2003 while being otherwise adequately conformant. */
2004 #if !defined __STDC__
2005 # error "Compiler does not advertise C89 conformance"
2006 #endif
2007
2008 #include <stddef.h>
2009 #include <stdarg.h>
2010 struct stat;
2011 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2012 struct buf { int x; };
2013 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2014 static char *e (char **p, int i)
2015 {
2016 return p[i];
2017 }
2018 static char *f (char * (*g) (char **, int), char **p, ...)
2019 {
2020 char *s;
2021 va_list v;
2022 va_start (v,p);
2023 s = g (p, va_arg (v,int));
2024 va_end (v);
2025 return s;
2026 }
2027
2028 /* C89 style stringification. */
2029 #define noexpand_stringify(a) #a
2030 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2031
2032 /* C89 style token pasting. Exercises some of the corner cases that
2033 e.g. old MSVC gets wrong, but not very hard. */
2034 #define noexpand_concat(a,b) a##b
2035 #define expand_concat(a,b) noexpand_concat(a,b)
2036 extern int vA;
2037 extern int vbee;
2038 #define aye A
2039 #define bee B
2040 int *pvA = &expand_concat(v,aye);
2041 int *pvbee = &noexpand_concat(v,bee);
2042
2043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2044 function prototypes and stuff, but not \xHH hex character constants.
2045 These do not provoke an error unfortunately, instead are silently treated
2046 as an "x". The following induces an error, until -std is added to get
2047 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2048 array size at least. It is necessary to write \x00 == 0 to get something
2049 that is true only with -std. */
2050 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2051
2052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2053 inside strings and character constants. */
2054 #define FOO(x) '\''x'\''
2055 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2056
2057 int test (int i, double x);
2058 struct s1 {int (*f) (int a);};
2059 struct s2 {int (*f) (double a);};
2060 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2061 int, int);'
2062
2063 # Test code for whether the C compiler supports C89 (body of main).
2064 ac_c_conftest_c89_main='
2065 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2066 '
2067
2068 # Test code for whether the C compiler supports C99 (global declarations)
2069 ac_c_conftest_c99_globals='
2070 /* Does the compiler advertise C99 conformance? */
2071 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2072 # error "Compiler does not advertise C99 conformance"
2073 #endif
2074
2075 // See if C++-style comments work.
2076
2077 #include <stdbool.h>
2078 extern int puts (const char *);
2079 extern int printf (const char *, ...);
2080 extern int dprintf (int, const char *, ...);
2081 extern void *malloc (size_t);
2082 extern void free (void *);
2083
2084 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2085 // dprintf is used instead of fprintf to avoid needing to declare
2086 // FILE and stderr.
2087 #define debug(...) dprintf (2, __VA_ARGS__)
2088 #define showlist(...) puts (#__VA_ARGS__)
2089 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2090 static void
2091 test_varargs_macros (void)
2092 {
2093 int x = 1234;
2094 int y = 5678;
2095 debug ("Flag");
2096 debug ("X = %d\n", x);
2097 showlist (The first, second, and third items.);
2098 report (x>y, "x is %d but y is %d", x, y);
2099 }
2100
2101 // Check long long types.
2102 #define BIG64 18446744073709551615ull
2103 #define BIG32 4294967295ul
2104 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2105 #if !BIG_OK
2106 #error "your preprocessor is broken"
2107 #endif
2108 #if BIG_OK
2109 #else
2110 #error "your preprocessor is broken"
2111 #endif
2112 static long long int bignum = -9223372036854775807LL;
2113 static unsigned long long int ubignum = BIG64;
2114
2115 struct incomplete_array
2116 {
2117 int datasize;
2118 double data[];
2119 };
2120
2121 struct named_init {
2122 int number;
2123 const wchar_t *name;
2124 double average;
2125 };
2126
2127 typedef const char *ccp;
2128
2129 static inline int
2130 test_restrict (ccp restrict text)
2131 {
2132 // Iterate through items via the restricted pointer.
2133 // Also check for declarations in for loops.
2134 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2135 continue;
2136 return 0;
2137 }
2138
2139 // Check varargs and va_copy.
2140 static bool
2141 test_varargs (const char *format, ...)
2142 {
2143 va_list args;
2144 va_start (args, format);
2145 va_list args_copy;
2146 va_copy (args_copy, args);
2147
2148 const char *str = "";
2149 int number = 0;
2150 float fnumber = 0;
2151
2152 while (*format)
2153 {
2154 switch (*format++)
2155 {
2156 case '\''s'\'': // string
2157 str = va_arg (args_copy, const char *);
2158 break;
2159 case '\''d'\'': // int
2160 number = va_arg (args_copy, int);
2161 break;
2162 case '\''f'\'': // float
2163 fnumber = va_arg (args_copy, double);
2164 break;
2165 default:
2166 break;
2167 }
2168 }
2169 va_end (args_copy);
2170 va_end (args);
2171
2172 return *str && number && fnumber;
2173 }
2174 '
2175
2176 # Test code for whether the C compiler supports C99 (body of main).
2177 ac_c_conftest_c99_main='
2178 // Check bool.
2179 _Bool success = false;
2180 success |= (argc != 0);
2181
2182 // Check restrict.
2183 if (test_restrict ("String literal") == 0)
2184 success = true;
2185 char *restrict newvar = "Another string";
2186
2187 // Check varargs.
2188 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2189 test_varargs_macros ();
2190
2191 // Check flexible array members.
2192 struct incomplete_array *ia =
2193 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2194 ia->datasize = 10;
2195 for (int i = 0; i < ia->datasize; ++i)
2196 ia->data[i] = i * 1.234;
2197 // Work around memory leak warnings.
2198 free (ia);
2199
2200 // Check named initializers.
2201 struct named_init ni = {
2202 .number = 34,
2203 .name = L"Test wide string",
2204 .average = 543.34343,
2205 };
2206
2207 ni.number = 58;
2208
2209 int dynamic_array[ni.number];
2210 dynamic_array[0] = argv[0][0];
2211 dynamic_array[ni.number - 1] = 543;
2212
2213 // work around unused variable warnings
2214 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2215 || dynamic_array[ni.number - 1] != 543);
2216 '
2217
2218 # Test code for whether the C compiler supports C11 (global declarations)
2219 ac_c_conftest_c11_globals='
2220 /* Does the compiler advertise C11 conformance? */
2221 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2222 # error "Compiler does not advertise C11 conformance"
2223 #endif
2224
2225 // Check _Alignas.
2226 char _Alignas (double) aligned_as_double;
2227 char _Alignas (0) no_special_alignment;
2228 extern char aligned_as_int;
2229 char _Alignas (0) _Alignas (int) aligned_as_int;
2230
2231 // Check _Alignof.
2232 enum
2233 {
2234 int_alignment = _Alignof (int),
2235 int_array_alignment = _Alignof (int[100]),
2236 char_alignment = _Alignof (char)
2237 };
2238 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2239
2240 // Check _Noreturn.
2241 int _Noreturn does_not_return (void) { for (;;) continue; }
2242
2243 // Check _Static_assert.
2244 struct test_static_assert
2245 {
2246 int x;
2247 _Static_assert (sizeof (int) <= sizeof (long int),
2248 "_Static_assert does not work in struct");
2249 long int y;
2250 };
2251
2252 // Check UTF-8 literals.
2253 #define u8 syntax error!
2254 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2255
2256 // Check duplicate typedefs.
2257 typedef long *long_ptr;
2258 typedef long int *long_ptr;
2259 typedef long_ptr long_ptr;
2260
2261 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2262 struct anonymous
2263 {
2264 union {
2265 struct { int i; int j; };
2266 struct { int k; long int l; } w;
2267 };
2268 int m;
2269 } v1;
2270 '
2271
2272 # Test code for whether the C compiler supports C11 (body of main).
2273 ac_c_conftest_c11_main='
2274 _Static_assert ((offsetof (struct anonymous, i)
2275 == offsetof (struct anonymous, w.k)),
2276 "Anonymous union alignment botch");
2277 v1.i = 2;
2278 v1.w.k = 5;
2279 ok |= v1.i != 5;
2280 '
2281
2282 # Test code for whether the C compiler supports C11 (complete).
2283 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2284 ${ac_c_conftest_c99_globals}
2285 ${ac_c_conftest_c11_globals}
2286
2287 int
2288 main (int argc, char **argv)
2289 {
2290 int ok = 0;
2291 ${ac_c_conftest_c89_main}
2292 ${ac_c_conftest_c99_main}
2293 ${ac_c_conftest_c11_main}
2294 return ok;
2295 }
2296 "
2297
2298 # Test code for whether the C compiler supports C99 (complete).
2299 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2300 ${ac_c_conftest_c99_globals}
2301
2302 int
2303 main (int argc, char **argv)
2304 {
2305 int ok = 0;
2306 ${ac_c_conftest_c89_main}
2307 ${ac_c_conftest_c99_main}
2308 return ok;
2309 }
2310 "
2311
2312 # Test code for whether the C compiler supports C89 (complete).
2313 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2314
2315 int
2316 main (int argc, char **argv)
2317 {
2318 int ok = 0;
2319 ${ac_c_conftest_c89_main}
2320 return ok;
2321 }
2322 "
2323
2324 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2325 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2326 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2327 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2328 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2329 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2330 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2331 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2332 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2333
2334 # Auxiliary files required by this configure script.
2335 ac_aux_files="config.guess config.sub compile missing install-sh"
2336
2337 # Locations in which to look for auxiliary files.
2338 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2339
2340 # Search for a directory containing all of the required auxiliary files,
2341 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2342 # If we don't find one directory that contains all the files we need,
2343 # we report the set of missing files from the *first* directory in
2344 # $ac_aux_dir_candidates and give up.
2345 ac_missing_aux_files=""
2346 ac_first_candidate=:
2347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 as_found=false
2350 for as_dir in $ac_aux_dir_candidates
2351 do
2352 IFS=$as_save_IFS
2353 case $as_dir in #(((
2354 '') as_dir=./ ;;
2355 */) ;;
2356 *) as_dir=$as_dir/ ;;
2357 esac
2358 as_found=:
2359
2360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2361 ac_aux_dir_found=yes
2362 ac_install_sh=
2363 for ac_aux in $ac_aux_files
2364 do
2365 # As a special case, if "install-sh" is required, that requirement
2366 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2367 # and $ac_install_sh is set appropriately for whichever one is found.
2368 if test x"$ac_aux" = x"install-sh"
2369 then
2370 if test -f "${as_dir}install-sh"; then
2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2372 ac_install_sh="${as_dir}install-sh -c"
2373 elif test -f "${as_dir}install.sh"; then
2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2375 ac_install_sh="${as_dir}install.sh -c"
2376 elif test -f "${as_dir}shtool"; then
2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2378 ac_install_sh="${as_dir}shtool install -c"
2379 else
2380 ac_aux_dir_found=no
2381 if $ac_first_candidate; then
2382 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2383 else
2384 break
2385 fi
2386 fi
2387 else
2388 if test -f "${as_dir}${ac_aux}"; then
2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2390 else
2391 ac_aux_dir_found=no
2392 if $ac_first_candidate; then
2393 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2394 else
2395 break
2396 fi
2397 fi
2398 fi
2399 done
2400 if test "$ac_aux_dir_found" = yes; then
2401 ac_aux_dir="$as_dir"
2402 break
2403 fi
2404 ac_first_candidate=false
2405
2406 as_found=false
2407 done
2408 IFS=$as_save_IFS
2409 if $as_found
2410 then :
2411
2412 else case e in #(
2413 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2414 esac
2415 fi
2416
2417
2418 # These three variables are undocumented and unsupported,
2419 # and are intended to be withdrawn in a future Autoconf release.
2420 # They can cause serious problems if a builder's source tree is in a directory
2421 # whose full name contains unusual characters.
2422 if test -f "${ac_aux_dir}config.guess"; then
2423 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2424 fi
2425 if test -f "${ac_aux_dir}config.sub"; then
2426 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2427 fi
2428 if test -f "$ac_aux_dir/configure"; then
2429 ac_configure="$SHELL ${ac_aux_dir}configure"
2430 fi
2431
2432 # Check that the precious variables saved in the cache have kept the same
2433 # value.
2434 ac_cache_corrupted=false
2435 for ac_var in $ac_precious_vars; do
2436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2437 eval ac_new_set=\$ac_env_${ac_var}_set
2438 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2439 eval ac_new_val=\$ac_env_${ac_var}_value
2440 case $ac_old_set,$ac_new_set in
2441 set,)
2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2443 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2444 ac_cache_corrupted=: ;;
2445 ,set)
2446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2447 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2449 ,);;
2450 *)
2451 if test "x$ac_old_val" != "x$ac_new_val"; then
2452 # differences in whitespace do not lead to failure.
2453 ac_old_val_w=`echo x $ac_old_val`
2454 ac_new_val_w=`echo x $ac_new_val`
2455 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2457 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2458 ac_cache_corrupted=:
2459 else
2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2461 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2462 eval $ac_var=\$ac_old_val
2463 fi
2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2465 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2467 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2468 fi;;
2469 esac
2470 # Pass precious variables to config.status.
2471 if test "$ac_new_set" = set; then
2472 case $ac_new_val in
2473 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2474 *) ac_arg=$ac_var=$ac_new_val ;;
2475 esac
2476 case " $ac_configure_args " in
2477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2478 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2479 esac
2480 fi
2481 done
2482 if $ac_cache_corrupted; then
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2484 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2486 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2487 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2488 and start over" "$LINENO" 5
2489 fi
2490 ## -------------------- ##
2491 ## Main body of script. ##
2492 ## -------------------- ##
2493
2494 ac_ext=c
2495 ac_cpp='$CPP $CPPFLAGS'
2496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2499
2500
2501
2502 ac_config_headers="$ac_config_headers config.h"
2503
2504
2505 # Initialize Automake
2506 am__api_version='1.16'
2507
2508
2509
2510 # Find a good install program. We prefer a C program (faster),
2511 # so one script is as good as another. But avoid the broken or
2512 # incompatible versions:
2513 # SysV /etc/install, /usr/sbin/install
2514 # SunOS /usr/etc/install
2515 # IRIX /sbin/install
2516 # AIX /bin/install
2517 # AmigaOS /C/install, which installs bootblocks on floppy discs
2518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2521 # OS/2's system install, which has a completely different semantic
2522 # ./install, which can be erroneously created by make from ./install.sh.
2523 # Reject install programs that cannot install multiple files.
2524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2525 printf %s "checking for a BSD-compatible install... " >&6; }
2526 if test -z "$INSTALL"; then
2527 if test ${ac_cv_path_install+y}
2528 then :
2529 printf %s "(cached) " >&6
2530 else case e in #(
2531 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534 IFS=$as_save_IFS
2535 case $as_dir in #(((
2536 '') as_dir=./ ;;
2537 */) ;;
2538 *) as_dir=$as_dir/ ;;
2539 esac
2540 # Account for fact that we put trailing slashes in our PATH walk.
2541 case $as_dir in #((
2542 ./ | /[cC]/* | \
2543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2545 /usr/ucb/* ) ;;
2546 *)
2547 # OSF1 and SCO ODT 3.0 have their own names for install.
2548 # Don't use installbsd from OSF since it installs stuff as root
2549 # by default.
2550 for ac_prog in ginstall scoinst install; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2553 if test $ac_prog = install &&
2554 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # AIX install. It has an incompatible calling convention.
2556 :
2557 elif test $ac_prog = install &&
2558 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # program-specific install script used by HP pwplus--don't use.
2560 :
2561 else
2562 rm -rf conftest.one conftest.two conftest.dir
2563 echo one > conftest.one
2564 echo two > conftest.two
2565 mkdir conftest.dir
2566 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2567 test -s conftest.one && test -s conftest.two &&
2568 test -s conftest.dir/conftest.one &&
2569 test -s conftest.dir/conftest.two
2570 then
2571 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2572 break 3
2573 fi
2574 fi
2575 fi
2576 done
2577 done
2578 ;;
2579 esac
2580
2581 done
2582 IFS=$as_save_IFS
2583
2584 rm -rf conftest.one conftest.two conftest.dir
2585 ;;
2586 esac
2587 fi
2588 if test ${ac_cv_path_install+y}; then
2589 INSTALL=$ac_cv_path_install
2590 else
2591 # As a last resort, use the slow shell script. Don't cache a
2592 # value for INSTALL within a source directory, because that will
2593 # break other packages using the cache if that directory is
2594 # removed, or if the value is a relative name.
2595 INSTALL=$ac_install_sh
2596 fi
2597 fi
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2599 printf "%s\n" "$INSTALL" >&6; }
2600
2601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2602 # It thinks the first close brace ends the variable substitution.
2603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604
2605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606
2607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2610 printf %s "checking whether build environment is sane... " >&6; }
2611 # Reject unsafe characters in $srcdir or the absolute working directory
2612 # name. Accept space and tab only in the latter.
2613 am_lf='
2614 '
2615 case `pwd` in
2616 *[\\\"\#\$\&\'\`$am_lf]*)
2617 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2618 esac
2619 case $srcdir in
2620 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2621 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2622 esac
2623
2624 # Do 'set' in a subshell so we don't clobber the current shell's
2625 # arguments. Must try -L first in case configure is actually a
2626 # symlink; some systems play weird games with the mod time of symlinks
2627 # (eg FreeBSD returns the mod time of the symlink's containing
2628 # directory).
2629 if (
2630 am_has_slept=no
2631 for am_try in 1 2; do
2632 echo "timestamp, slept: $am_has_slept" > conftest.file
2633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2634 if test "$*" = "X"; then
2635 # -L didn't work.
2636 set X `ls -t "$srcdir/configure" conftest.file`
2637 fi
2638 if test "$*" != "X $srcdir/configure conftest.file" \
2639 && test "$*" != "X conftest.file $srcdir/configure"; then
2640
2641 # If neither matched, then we have a broken ls. This can happen
2642 # if, for instance, CONFIG_SHELL is bash and it inherits a
2643 # broken ls alias from the environment. This has actually
2644 # happened. Such a system could not be considered "sane".
2645 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2646 alias in your environment" "$LINENO" 5
2647 fi
2648 if test "$2" = conftest.file || test $am_try -eq 2; then
2649 break
2650 fi
2651 # Just in case.
2652 sleep 1
2653 am_has_slept=yes
2654 done
2655 test "$2" = conftest.file
2656 )
2657 then
2658 # Ok.
2659 :
2660 else
2661 as_fn_error $? "newly created file is older than distributed files!
2662 Check your system clock" "$LINENO" 5
2663 fi
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 printf "%s\n" "yes" >&6; }
2666 # If we didn't sleep, we still need to ensure time stamps of config.status and
2667 # generated files are strictly newer.
2668 am_sleep_pid=
2669 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2670 ( sleep 1 ) &
2671 am_sleep_pid=$!
2672 fi
2673
2674 rm -f conftest.file
2675
2676 test "$program_prefix" != NONE &&
2677 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2678 # Use a double $ so make ignores it.
2679 test "$program_suffix" != NONE &&
2680 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2681 # Double any \ or $.
2682 # By default was 's,x,x', remove it if useless.
2683 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2684 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2685
2686
2687 # Expand $ac_aux_dir to an absolute path.
2688 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2689
2690
2691 if test x"${MISSING+set}" != xset; then
2692 MISSING="\${SHELL} '$am_aux_dir/missing'"
2693 fi
2694 # Use eval to expand $SHELL
2695 if eval "$MISSING --is-lightweight"; then
2696 am_missing_run="$MISSING "
2697 else
2698 am_missing_run=
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2700 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2701 fi
2702
2703 if test x"${install_sh+set}" != xset; then
2704 case $am_aux_dir in
2705 *\ * | *\ *)
2706 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2707 *)
2708 install_sh="\${SHELL} $am_aux_dir/install-sh"
2709 esac
2710 fi
2711
2712 # Installed binaries are usually stripped using 'strip' when the user
2713 # run "make install-strip". However 'strip' might not be the right
2714 # tool to use in cross-compilation environments, therefore Automake
2715 # will honor the 'STRIP' environment variable to overrule this program.
2716 if test "$cross_compiling" != no; then
2717 if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}strip; ac_word=$2
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 printf %s "checking for $ac_word... " >&6; }
2722 if test ${ac_cv_prog_STRIP+y}
2723 then :
2724 printf %s "(cached) " >&6
2725 else case e in #(
2726 e) if test -n "$STRIP"; then
2727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 case $as_dir in #(((
2734 '') as_dir=./ ;;
2735 */) ;;
2736 *) as_dir=$as_dir/ ;;
2737 esac
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746 IFS=$as_save_IFS
2747
2748 fi ;;
2749 esac
2750 fi
2751 STRIP=$ac_cv_prog_STRIP
2752 if test -n "$STRIP"; then
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2754 printf "%s\n" "$STRIP" >&6; }
2755 else
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 printf "%s\n" "no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$ac_cv_prog_STRIP"; then
2763 ac_ct_STRIP=$STRIP
2764 # Extract the first word of "strip", so it can be a program name with args.
2765 set dummy strip; ac_word=$2
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 printf %s "checking for $ac_word... " >&6; }
2768 if test ${ac_cv_prog_ac_ct_STRIP+y}
2769 then :
2770 printf %s "(cached) " >&6
2771 else case e in #(
2772 e) if test -n "$ac_ct_STRIP"; then
2773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 case $as_dir in #(((
2780 '') as_dir=./ ;;
2781 */) ;;
2782 *) as_dir=$as_dir/ ;;
2783 esac
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_ac_ct_STRIP="strip"
2787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794 fi ;;
2795 esac
2796 fi
2797 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2798 if test -n "$ac_ct_STRIP"; then
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2800 printf "%s\n" "$ac_ct_STRIP" >&6; }
2801 else
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 printf "%s\n" "no" >&6; }
2804 fi
2805
2806 if test "x$ac_ct_STRIP" = x; then
2807 STRIP=":"
2808 else
2809 case $cross_compiling:$ac_tool_warned in
2810 yes:)
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2813 ac_tool_warned=yes ;;
2814 esac
2815 STRIP=$ac_ct_STRIP
2816 fi
2817 else
2818 STRIP="$ac_cv_prog_STRIP"
2819 fi
2820
2821 fi
2822 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2823
2824
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2826 printf %s "checking for a race-free mkdir -p... " >&6; }
2827 if test -z "$MKDIR_P"; then
2828 if test ${ac_cv_path_mkdir+y}
2829 then :
2830 printf %s "(cached) " >&6
2831 else case e in #(
2832 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2834 do
2835 IFS=$as_save_IFS
2836 case $as_dir in #(((
2837 '') as_dir=./ ;;
2838 */) ;;
2839 *) as_dir=$as_dir/ ;;
2840 esac
2841 for ac_prog in mkdir gmkdir; do
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2844 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2845 'mkdir ('*'coreutils) '* | \
2846 *'BusyBox '* | \
2847 'mkdir (fileutils) '4.1*)
2848 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2849 break 3;;
2850 esac
2851 done
2852 done
2853 done
2854 IFS=$as_save_IFS
2855 ;;
2856 esac
2857 fi
2858
2859 test -d ./--version && rmdir ./--version
2860 if test ${ac_cv_path_mkdir+y}; then
2861 MKDIR_P="$ac_cv_path_mkdir -p"
2862 else
2863 # As a last resort, use plain mkdir -p,
2864 # in the hope it doesn't have the bugs of ancient mkdir.
2865 MKDIR_P='mkdir -p'
2866 fi
2867 fi
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2869 printf "%s\n" "$MKDIR_P" >&6; }
2870
2871 for ac_prog in gawk mawk nawk awk
2872 do
2873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy $ac_prog; ac_word=$2
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 printf %s "checking for $ac_word... " >&6; }
2877 if test ${ac_cv_prog_AWK+y}
2878 then :
2879 printf %s "(cached) " >&6
2880 else case e in #(
2881 e) if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 case $as_dir in #(((
2889 '') as_dir=./ ;;
2890 */) ;;
2891 *) as_dir=$as_dir/ ;;
2892 esac
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_AWK="$ac_prog"
2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi ;;
2904 esac
2905 fi
2906 AWK=$ac_cv_prog_AWK
2907 if test -n "$AWK"; then
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2909 printf "%s\n" "$AWK" >&6; }
2910 else
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 printf "%s\n" "no" >&6; }
2913 fi
2914
2915
2916 test -n "$AWK" && break
2917 done
2918
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2920 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2921 set x ${MAKE-make}
2922 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2923 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2924 then :
2925 printf %s "(cached) " >&6
2926 else case e in #(
2927 e) cat >conftest.make <<\_ACEOF
2928 SHELL = /bin/sh
2929 all:
2930 @echo '@@@%%%=$(MAKE)=@@@%%%'
2931 _ACEOF
2932 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2933 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2934 *@@@%%%=?*=@@@%%%*)
2935 eval ac_cv_prog_make_${ac_make}_set=yes;;
2936 *)
2937 eval ac_cv_prog_make_${ac_make}_set=no;;
2938 esac
2939 rm -f conftest.make ;;
2940 esac
2941 fi
2942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944 printf "%s\n" "yes" >&6; }
2945 SET_MAKE=
2946 else
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 printf "%s\n" "no" >&6; }
2949 SET_MAKE="MAKE=${MAKE-make}"
2950 fi
2951
2952 rm -rf .tst 2>/dev/null
2953 mkdir .tst 2>/dev/null
2954 if test -d .tst; then
2955 am__leading_dot=.
2956 else
2957 am__leading_dot=_
2958 fi
2959 rmdir .tst 2>/dev/null
2960
2961 # Check whether --enable-silent-rules was given.
2962 if test ${enable_silent_rules+y}
2963 then :
2964 enableval=$enable_silent_rules;
2965 fi
2966
2967 case $enable_silent_rules in # (((
2968 yes) AM_DEFAULT_VERBOSITY=0;;
2969 no) AM_DEFAULT_VERBOSITY=1;;
2970 *) AM_DEFAULT_VERBOSITY=1;;
2971 esac
2972 am_make=${MAKE-make}
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2974 printf %s "checking whether $am_make supports nested variables... " >&6; }
2975 if test ${am_cv_make_support_nested_variables+y}
2976 then :
2977 printf %s "(cached) " >&6
2978 else case e in #(
2979 e) if printf "%s\n" 'TRUE=$(BAR$(V))
2980 BAR0=false
2981 BAR1=true
2982 V=1
2983 am__doit:
2984 @$(TRUE)
2985 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2986 am_cv_make_support_nested_variables=yes
2987 else
2988 am_cv_make_support_nested_variables=no
2989 fi ;;
2990 esac
2991 fi
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2993 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2994 if test $am_cv_make_support_nested_variables = yes; then
2995 AM_V='$(V)'
2996 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2997 else
2998 AM_V=$AM_DEFAULT_VERBOSITY
2999 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3000 fi
3001 AM_BACKSLASH='\'
3002
3003 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3004 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3005 # is not polluted with repeated "-I."
3006 am__isrc=' -I$(srcdir)'
3007 # test to see if srcdir already configured
3008 if test -f $srcdir/config.status; then
3009 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3010 fi
3011 fi
3012
3013 # test whether we have cygpath
3014 if test -z "$CYGPATH_W"; then
3015 if (cygpath --version) >/dev/null 2>/dev/null; then
3016 CYGPATH_W='cygpath -w'
3017 else
3018 CYGPATH_W=echo
3019 fi
3020 fi
3021
3022
3023 # Define the identity of the package.
3024 PACKAGE='appres'
3025 VERSION='1.0.7'
3026
3027
3028 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3029
3030
3031 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3032
3033 # Some tools Automake needs.
3034
3035 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3036
3037
3038 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3039
3040
3041 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3042
3043
3044 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3045
3046
3047 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3048
3049 # For better backward compatibility. To be removed once Automake 1.9.x
3050 # dies out for good. For more background, see:
3051 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3052 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3053 mkdir_p='$(MKDIR_P)'
3054
3055 # We need awk for the "check" target (and possibly the TAP driver). The
3056 # system "awk" is bad on some platforms.
3057 # Always define AMTAR for backward compatibility. Yes, it's still used
3058 # in the wild :-( We should find a proper way to deprecate it ...
3059 AMTAR='$${TAR-tar}'
3060
3061
3062 # We'll loop over all known methods to create a tar archive until one works.
3063 _am_tools='gnutar pax cpio none'
3064
3065 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3066
3067
3068
3069
3070
3071 # Variables for tags utilities; see am/tags.am
3072 if test -z "$CTAGS"; then
3073 CTAGS=ctags
3074 fi
3075
3076 if test -z "$ETAGS"; then
3077 ETAGS=etags
3078 fi
3079
3080 if test -z "$CSCOPE"; then
3081 CSCOPE=cscope
3082 fi
3083
3084
3085
3086 # POSIX will say in a future version that running "rm -f" with no argument
3087 # is OK; and we want to be able to make that assumption in our Makefile
3088 # recipes. So use an aggressive probe to check that the usage we want is
3089 # actually supported "in the wild" to an acceptable degree.
3090 # See automake bug#10828.
3091 # To make any issue more visible, cause the running configure to be aborted
3092 # by default if the 'rm' program in use doesn't match our expectations; the
3093 # user can still override this though.
3094 if rm -f && rm -fr && rm -rf; then : OK; else
3095 cat >&2 <<'END'
3096 Oops!
3097
3098 Your 'rm' program seems unable to run without file operands specified
3099 on the command line, even when the '-f' option is present. This is contrary
3100 to the behaviour of most rm programs out there, and not conforming with
3101 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3102
3103 Please tell bug-automake@gnu.org about your system, including the value
3104 of your $PATH and any error possibly output before this message. This
3105 can help us improve future automake versions.
3106
3107 END
3108 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3109 echo 'Configuration will proceed anyway, since you have set the' >&2
3110 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3111 echo >&2
3112 else
3113 cat >&2 <<'END'
3114 Aborting the configuration process, to ensure you take notice of the issue.
3115
3116 You can download and install GNU coreutils to get an 'rm' implementation
3117 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3118
3119 If you want to complete the configuration process using your problematic
3120 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3121 to "yes", and re-run configure.
3122
3123 END
3124 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3125 fi
3126 fi
3127
3128
3129 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150 DEPDIR="${am__leading_dot}deps"
3151
3152 ac_config_commands="$ac_config_commands depfiles"
3153
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3155 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3156 cat > confinc.mk << 'END'
3157 am__doit:
3158 @echo this is the am__doit target >confinc.out
3159 .PHONY: am__doit
3160 END
3161 am__include="#"
3162 am__quote=
3163 # BSD make does it like this.
3164 echo '.include "confinc.mk" # ignored' > confmf.BSD
3165 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3166 echo 'include confinc.mk # ignored' > confmf.GNU
3167 _am_result=no
3168 for s in GNU BSD; do
3169 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3170 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }
3174 case $?:`cat confinc.out 2>/dev/null` in #(
3175 '0:this is the am__doit target') :
3176 case $s in #(
3177 BSD) :
3178 am__include='.include' am__quote='"' ;; #(
3179 *) :
3180 am__include='include' am__quote='' ;;
3181 esac ;; #(
3182 *) :
3183 ;;
3184 esac
3185 if test "$am__include" != "#"; then
3186 _am_result="yes ($s style)"
3187 break
3188 fi
3189 done
3190 rm -f confinc.* confmf.*
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3192 printf "%s\n" "${_am_result}" >&6; }
3193
3194 # Check whether --enable-dependency-tracking was given.
3195 if test ${enable_dependency_tracking+y}
3196 then :
3197 enableval=$enable_dependency_tracking;
3198 fi
3199
3200 if test "x$enable_dependency_tracking" != xno; then
3201 am_depcomp="$ac_aux_dir/depcomp"
3202 AMDEPBACKSLASH='\'
3203 am__nodep='_no'
3204 fi
3205 if test "x$enable_dependency_tracking" != xno; then
3206 AMDEP_TRUE=
3207 AMDEP_FALSE='#'
3208 else
3209 AMDEP_TRUE='#'
3210 AMDEP_FALSE=
3211 fi
3212
3213
3214 ac_ext=c
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219 if test -n "$ac_tool_prefix"; then
3220 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3221 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 printf %s "checking for $ac_word... " >&6; }
3224 if test ${ac_cv_prog_CC+y}
3225 then :
3226 printf %s "(cached) " >&6
3227 else case e in #(
3228 e) if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 case $as_dir in #(((
3236 '') as_dir=./ ;;
3237 */) ;;
3238 *) as_dir=$as_dir/ ;;
3239 esac
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 fi ;;
3251 esac
3252 fi
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 printf "%s\n" "$CC" >&6; }
3257 else
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 printf "%s\n" "no" >&6; }
3260 fi
3261
3262
3263 fi
3264 if test -z "$ac_cv_prog_CC"; then
3265 ac_ct_CC=$CC
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267 set dummy gcc; ac_word=$2
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 printf %s "checking for $ac_word... " >&6; }
3270 if test ${ac_cv_prog_ac_ct_CC+y}
3271 then :
3272 printf %s "(cached) " >&6
3273 else case e in #(
3274 e) if test -n "$ac_ct_CC"; then
3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280 IFS=$as_save_IFS
3281 case $as_dir in #(((
3282 '') as_dir=./ ;;
3283 */) ;;
3284 *) as_dir=$as_dir/ ;;
3285 esac
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_ac_ct_CC="gcc"
3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi ;;
3297 esac
3298 fi
3299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300 if test -n "$ac_ct_CC"; then
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302 printf "%s\n" "$ac_ct_CC" >&6; }
3303 else
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 printf "%s\n" "no" >&6; }
3306 fi
3307
3308 if test "x$ac_ct_CC" = x; then
3309 CC=""
3310 else
3311 case $cross_compiling:$ac_tool_warned in
3312 yes:)
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3315 ac_tool_warned=yes ;;
3316 esac
3317 CC=$ac_ct_CC
3318 fi
3319 else
3320 CC="$ac_cv_prog_CC"
3321 fi
3322
3323 if test -z "$CC"; then
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}cc; ac_word=$2
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 printf %s "checking for $ac_word... " >&6; }
3329 if test ${ac_cv_prog_CC+y}
3330 then :
3331 printf %s "(cached) " >&6
3332 else case e in #(
3333 e) if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 case $as_dir in #(((
3341 '') as_dir=./ ;;
3342 */) ;;
3343 *) as_dir=$as_dir/ ;;
3344 esac
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC="${ac_tool_prefix}cc"
3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351 done
3352 done
3353 IFS=$as_save_IFS
3354
3355 fi ;;
3356 esac
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 printf "%s\n" "$CC" >&6; }
3362 else
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 printf "%s\n" "no" >&6; }
3365 fi
3366
3367
3368 fi
3369 fi
3370 if test -z "$CC"; then
3371 # Extract the first word of "cc", so it can be a program name with args.
3372 set dummy cc; ac_word=$2
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 printf %s "checking for $ac_word... " >&6; }
3375 if test ${ac_cv_prog_CC+y}
3376 then :
3377 printf %s "(cached) " >&6
3378 else case e in #(
3379 e) if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 ac_prog_rejected=no
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386 IFS=$as_save_IFS
3387 case $as_dir in #(((
3388 '') as_dir=./ ;;
3389 */) ;;
3390 *) as_dir=$as_dir/ ;;
3391 esac
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3394 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3395 ac_prog_rejected=yes
3396 continue
3397 fi
3398 ac_cv_prog_CC="cc"
3399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3400 break 2
3401 fi
3402 done
3403 done
3404 IFS=$as_save_IFS
3405
3406 if test $ac_prog_rejected = yes; then
3407 # We found a bogon in the path, so make sure we never use it.
3408 set dummy $ac_cv_prog_CC
3409 shift
3410 if test $# != 0; then
3411 # We chose a different compiler from the bogus one.
3412 # However, it has the same basename, so the bogon will be chosen
3413 # first if we set CC to just the basename; use the full file name.
3414 shift
3415 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3416 fi
3417 fi
3418 fi ;;
3419 esac
3420 fi
3421 CC=$ac_cv_prog_CC
3422 if test -n "$CC"; then
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424 printf "%s\n" "$CC" >&6; }
3425 else
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 printf "%s\n" "no" >&6; }
3428 fi
3429
3430
3431 fi
3432 if test -z "$CC"; then
3433 if test -n "$ac_tool_prefix"; then
3434 for ac_prog in cl.exe
3435 do
3436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 printf %s "checking for $ac_word... " >&6; }
3440 if test ${ac_cv_prog_CC+y}
3441 then :
3442 printf %s "(cached) " >&6
3443 else case e in #(
3444 e) if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 case $as_dir in #(((
3452 '') as_dir=./ ;;
3453 */) ;;
3454 *) as_dir=$as_dir/ ;;
3455 esac
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi ;;
3467 esac
3468 fi
3469 CC=$ac_cv_prog_CC
3470 if test -n "$CC"; then
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3472 printf "%s\n" "$CC" >&6; }
3473 else
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 printf "%s\n" "no" >&6; }
3476 fi
3477
3478
3479 test -n "$CC" && break
3480 done
3481 fi
3482 if test -z "$CC"; then
3483 ac_ct_CC=$CC
3484 for ac_prog in cl.exe
3485 do
3486 # Extract the first word of "$ac_prog", so it can be a program name with args.
3487 set dummy $ac_prog; ac_word=$2
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489 printf %s "checking for $ac_word... " >&6; }
3490 if test ${ac_cv_prog_ac_ct_CC+y}
3491 then :
3492 printf %s "(cached) " >&6
3493 else case e in #(
3494 e) if test -n "$ac_ct_CC"; then
3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500 IFS=$as_save_IFS
3501 case $as_dir in #(((
3502 '') as_dir=./ ;;
3503 */) ;;
3504 *) as_dir=$as_dir/ ;;
3505 esac
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_ac_ct_CC="$ac_prog"
3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi ;;
3517 esac
3518 fi
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 printf "%s\n" "$ac_ct_CC" >&6; }
3523 else
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 printf "%s\n" "no" >&6; }
3526 fi
3527
3528
3529 test -n "$ac_ct_CC" && break
3530 done
3531
3532 if test "x$ac_ct_CC" = x; then
3533 CC=""
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541 CC=$ac_ct_CC
3542 fi
3543 fi
3544
3545 fi
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3549 set dummy ${ac_tool_prefix}clang; ac_word=$2
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 printf %s "checking for $ac_word... " >&6; }
3552 if test ${ac_cv_prog_CC+y}
3553 then :
3554 printf %s "(cached) " >&6
3555 else case e in #(
3556 e) if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562 IFS=$as_save_IFS
3563 case $as_dir in #(((
3564 '') as_dir=./ ;;
3565 */) ;;
3566 *) as_dir=$as_dir/ ;;
3567 esac
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}clang"
3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574 done
3575 done
3576 IFS=$as_save_IFS
3577
3578 fi ;;
3579 esac
3580 fi
3581 CC=$ac_cv_prog_CC
3582 if test -n "$CC"; then
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 printf "%s\n" "$CC" >&6; }
3585 else
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 printf "%s\n" "no" >&6; }
3588 fi
3589
3590
3591 fi
3592 if test -z "$ac_cv_prog_CC"; then
3593 ac_ct_CC=$CC
3594 # Extract the first word of "clang", so it can be a program name with args.
3595 set dummy clang; ac_word=$2
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 printf %s "checking for $ac_word... " >&6; }
3598 if test ${ac_cv_prog_ac_ct_CC+y}
3599 then :
3600 printf %s "(cached) " >&6
3601 else case e in #(
3602 e) if test -n "$ac_ct_CC"; then
3603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608 IFS=$as_save_IFS
3609 case $as_dir in #(((
3610 '') as_dir=./ ;;
3611 */) ;;
3612 *) as_dir=$as_dir/ ;;
3613 esac
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_ac_ct_CC="clang"
3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620 done
3621 done
3622 IFS=$as_save_IFS
3623
3624 fi ;;
3625 esac
3626 fi
3627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3628 if test -n "$ac_ct_CC"; then
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3630 printf "%s\n" "$ac_ct_CC" >&6; }
3631 else
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 printf "%s\n" "no" >&6; }
3634 fi
3635
3636 if test "x$ac_ct_CC" = x; then
3637 CC=""
3638 else
3639 case $cross_compiling:$ac_tool_warned in
3640 yes:)
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3642 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3643 ac_tool_warned=yes ;;
3644 esac
3645 CC=$ac_ct_CC
3646 fi
3647 else
3648 CC="$ac_cv_prog_CC"
3649 fi
3650
3651 fi
3652
3653
3654 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3655 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3656 as_fn_error $? "no acceptable C compiler found in \$PATH
3657 See 'config.log' for more details" "$LINENO" 5; }
3658
3659 # Provide some information about the compiler.
3660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3661 set X $ac_compile
3662 ac_compiler=$2
3663 for ac_option in --version -v -V -qversion -version; do
3664 { { ac_try="$ac_compiler $ac_option >&5"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 printf "%s\n" "$ac_try_echo"; } >&5
3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672 ac_status=$?
3673 if test -s conftest.err; then
3674 sed '10a\
3675 ... rest of stderr output deleted ...
3676 10q' conftest.err >conftest.er1
3677 cat conftest.er1 >&5
3678 fi
3679 rm -f conftest.er1 conftest.err
3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }
3682 done
3683
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main (void)
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 ac_clean_files_save=$ac_clean_files
3696 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3697 # Try to create an executable without -o first, disregard a.out.
3698 # It will help us diagnose broken compilers, and finding out an intuition
3699 # of exeext.
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3701 printf %s "checking whether the C compiler works... " >&6; }
3702 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3703
3704 # The possible output files:
3705 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3706
3707 ac_rmfiles=
3708 for ac_file in $ac_files
3709 do
3710 case $ac_file in
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713 esac
3714 done
3715 rm -f $ac_rmfiles
3716
3717 if { { ac_try="$ac_link_default"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 printf "%s\n" "$ac_try_echo"; } >&5
3724 (eval "$ac_link_default") 2>&5
3725 ac_status=$?
3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3728 then :
3729 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3730 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3731 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3732 # so that the user can short-circuit this test for compilers unknown to
3733 # Autoconf.
3734 for ac_file in $ac_files ''
3735 do
3736 test -f "$ac_file" || continue
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3739 ;;
3740 [ab].out )
3741 # We found the default executable, but exeext='' is most
3742 # certainly right.
3743 break;;
3744 *.* )
3745 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3746 then :; else
3747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748 fi
3749 # We set ac_cv_exeext here because the later test for it is not
3750 # safe: cross compilers may not add the suffix if given an '-o'
3751 # argument, so we may need to know it at that point already.
3752 # Even if this section looks crufty: it has the advantage of
3753 # actually working.
3754 break;;
3755 * )
3756 break;;
3757 esac
3758 done
3759 test "$ac_cv_exeext" = no && ac_cv_exeext=
3760
3761 else case e in #(
3762 e) ac_file='' ;;
3763 esac
3764 fi
3765 if test -z "$ac_file"
3766 then :
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 printf "%s\n" "no" >&6; }
3769 printf "%s\n" "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3773 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3774 as_fn_error 77 "C compiler cannot create executables
3775 See 'config.log' for more details" "$LINENO" 5; }
3776 else case e in #(
3777 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3778 printf "%s\n" "yes" >&6; } ;;
3779 esac
3780 fi
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3782 printf %s "checking for C compiler default output file name... " >&6; }
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3784 printf "%s\n" "$ac_file" >&6; }
3785 ac_exeext=$ac_cv_exeext
3786
3787 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3788 ac_clean_files=$ac_clean_files_save
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3790 printf %s "checking for suffix of executables... " >&6; }
3791 if { { ac_try="$ac_link"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 printf "%s\n" "$ac_try_echo"; } >&5
3798 (eval "$ac_link") 2>&5
3799 ac_status=$?
3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }
3802 then :
3803 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3804 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3805 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3806 # 'rm'.
3807 for ac_file in conftest.exe conftest conftest.*; do
3808 test -f "$ac_file" || continue
3809 case $ac_file in
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3812 break;;
3813 * ) break;;
3814 esac
3815 done
3816 else case e in #(
3817 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3820 See 'config.log' for more details" "$LINENO" 5; } ;;
3821 esac
3822 fi
3823 rm -f conftest conftest$ac_cv_exeext
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3825 printf "%s\n" "$ac_cv_exeext" >&6; }
3826
3827 rm -f conftest.$ac_ext
3828 EXEEXT=$ac_cv_exeext
3829 ac_exeext=$EXEEXT
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832 #include <stdio.h>
3833 int
3834 main (void)
3835 {
3836 FILE *f = fopen ("conftest.out", "w");
3837 if (!f)
3838 return 1;
3839 return ferror (f) || fclose (f) != 0;
3840
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 ac_clean_files="$ac_clean_files conftest.out"
3846 # Check that the compiler produces executables we can run. If not, either
3847 # the compiler is broken, or we cross compile.
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3849 printf %s "checking whether we are cross compiling... " >&6; }
3850 if test "$cross_compiling" != yes; then
3851 { { ac_try="$ac_link"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 printf "%s\n" "$ac_try_echo"; } >&5
3858 (eval "$ac_link") 2>&5
3859 ac_status=$?
3860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3862 if { ac_try='./conftest$ac_cv_exeext'
3863 { { case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 printf "%s\n" "$ac_try_echo"; } >&5
3869 (eval "$ac_try") 2>&5
3870 ac_status=$?
3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }; }; then
3873 cross_compiling=no
3874 else
3875 if test "$cross_compiling" = maybe; then
3876 cross_compiling=yes
3877 else
3878 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3879 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3880 as_fn_error 77 "cannot run C compiled programs.
3881 If you meant to cross compile, use '--host'.
3882 See 'config.log' for more details" "$LINENO" 5; }
3883 fi
3884 fi
3885 fi
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3887 printf "%s\n" "$cross_compiling" >&6; }
3888
3889 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3890 conftest.o conftest.obj conftest.out
3891 ac_clean_files=$ac_clean_files_save
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3893 printf %s "checking for suffix of object files... " >&6; }
3894 if test ${ac_cv_objext+y}
3895 then :
3896 printf %s "(cached) " >&6
3897 else case e in #(
3898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900
3901 int
3902 main (void)
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest.o conftest.obj
3910 if { { ac_try="$ac_compile"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 printf "%s\n" "$ac_try_echo"; } >&5
3917 (eval "$ac_compile") 2>&5
3918 ac_status=$?
3919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }
3921 then :
3922 for ac_file in conftest.o conftest.obj conftest.*; do
3923 test -f "$ac_file" || continue;
3924 case $ac_file in
3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3927 break;;
3928 esac
3929 done
3930 else case e in #(
3931 e) printf "%s\n" "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3935 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3936 as_fn_error $? "cannot compute suffix of object files: cannot compile
3937 See 'config.log' for more details" "$LINENO" 5; } ;;
3938 esac
3939 fi
3940 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3941 esac
3942 fi
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3944 printf "%s\n" "$ac_cv_objext" >&6; }
3945 OBJEXT=$ac_cv_objext
3946 ac_objext=$OBJEXT
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3948 printf %s "checking whether the compiler supports GNU C... " >&6; }
3949 if test ${ac_cv_c_compiler_gnu+y}
3950 then :
3951 printf %s "(cached) " >&6
3952 else case e in #(
3953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main (void)
3958 {
3959 #ifndef __GNUC__
3960 choke me
3961 #endif
3962
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_c_try_compile "$LINENO"
3968 then :
3969 ac_compiler_gnu=yes
3970 else case e in #(
3971 e) ac_compiler_gnu=no ;;
3972 esac
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976 ;;
3977 esac
3978 fi
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3980 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982
3983 if test $ac_compiler_gnu = yes; then
3984 GCC=yes
3985 else
3986 GCC=
3987 fi
3988 ac_test_CFLAGS=${CFLAGS+y}
3989 ac_save_CFLAGS=$CFLAGS
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3991 printf %s "checking whether $CC accepts -g... " >&6; }
3992 if test ${ac_cv_prog_cc_g+y}
3993 then :
3994 printf %s "(cached) " >&6
3995 else case e in #(
3996 e) ac_save_c_werror_flag=$ac_c_werror_flag
3997 ac_c_werror_flag=yes
3998 ac_cv_prog_cc_g=no
3999 CFLAGS="-g"
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002
4003 int
4004 main (void)
4005 {
4006
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"
4012 then :
4013 ac_cv_prog_cc_g=yes
4014 else case e in #(
4015 e) CFLAGS=""
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018
4019 int
4020 main (void)
4021 {
4022
4023 ;
4024 return 0;
4025 }
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"
4028 then :
4029
4030 else case e in #(
4031 e) ac_c_werror_flag=$ac_save_c_werror_flag
4032 CFLAGS="-g"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main (void)
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"
4045 then :
4046 ac_cv_prog_cc_g=yes
4047 fi
4048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4049 esac
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4052 esac
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4055 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4056 esac
4057 fi
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4059 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4060 if test $ac_test_CFLAGS; then
4061 CFLAGS=$ac_save_CFLAGS
4062 elif test $ac_cv_prog_cc_g = yes; then
4063 if test "$GCC" = yes; then
4064 CFLAGS="-g -O2"
4065 else
4066 CFLAGS="-g"
4067 fi
4068 else
4069 if test "$GCC" = yes; then
4070 CFLAGS="-O2"
4071 else
4072 CFLAGS=
4073 fi
4074 fi
4075 ac_prog_cc_stdc=no
4076 if test x$ac_prog_cc_stdc = xno
4077 then :
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4079 printf %s "checking for $CC option to enable C11 features... " >&6; }
4080 if test ${ac_cv_prog_cc_c11+y}
4081 then :
4082 printf %s "(cached) " >&6
4083 else case e in #(
4084 e) ac_cv_prog_cc_c11=no
4085 ac_save_CC=$CC
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 $ac_c_conftest_c11_program
4089 _ACEOF
4090 for ac_arg in '' -std=gnu11
4091 do
4092 CC="$ac_save_CC $ac_arg"
4093 if ac_fn_c_try_compile "$LINENO"
4094 then :
4095 ac_cv_prog_cc_c11=$ac_arg
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.beam
4098 test "x$ac_cv_prog_cc_c11" != "xno" && break
4099 done
4100 rm -f conftest.$ac_ext
4101 CC=$ac_save_CC ;;
4102 esac
4103 fi
4104
4105 if test "x$ac_cv_prog_cc_c11" = xno
4106 then :
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4108 printf "%s\n" "unsupported" >&6; }
4109 else case e in #(
4110 e) if test "x$ac_cv_prog_cc_c11" = x
4111 then :
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4113 printf "%s\n" "none needed" >&6; }
4114 else case e in #(
4115 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4116 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4117 CC="$CC $ac_cv_prog_cc_c11" ;;
4118 esac
4119 fi
4120 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4121 ac_prog_cc_stdc=c11 ;;
4122 esac
4123 fi
4124 fi
4125 if test x$ac_prog_cc_stdc = xno
4126 then :
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4128 printf %s "checking for $CC option to enable C99 features... " >&6; }
4129 if test ${ac_cv_prog_cc_c99+y}
4130 then :
4131 printf %s "(cached) " >&6
4132 else case e in #(
4133 e) ac_cv_prog_cc_c99=no
4134 ac_save_CC=$CC
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 $ac_c_conftest_c99_program
4138 _ACEOF
4139 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4140 do
4141 CC="$ac_save_CC $ac_arg"
4142 if ac_fn_c_try_compile "$LINENO"
4143 then :
4144 ac_cv_prog_cc_c99=$ac_arg
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.beam
4147 test "x$ac_cv_prog_cc_c99" != "xno" && break
4148 done
4149 rm -f conftest.$ac_ext
4150 CC=$ac_save_CC ;;
4151 esac
4152 fi
4153
4154 if test "x$ac_cv_prog_cc_c99" = xno
4155 then :
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4157 printf "%s\n" "unsupported" >&6; }
4158 else case e in #(
4159 e) if test "x$ac_cv_prog_cc_c99" = x
4160 then :
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4162 printf "%s\n" "none needed" >&6; }
4163 else case e in #(
4164 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4165 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4166 CC="$CC $ac_cv_prog_cc_c99" ;;
4167 esac
4168 fi
4169 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4170 ac_prog_cc_stdc=c99 ;;
4171 esac
4172 fi
4173 fi
4174 if test x$ac_prog_cc_stdc = xno
4175 then :
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4177 printf %s "checking for $CC option to enable C89 features... " >&6; }
4178 if test ${ac_cv_prog_cc_c89+y}
4179 then :
4180 printf %s "(cached) " >&6
4181 else case e in #(
4182 e) ac_cv_prog_cc_c89=no
4183 ac_save_CC=$CC
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 $ac_c_conftest_c89_program
4187 _ACEOF
4188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4189 do
4190 CC="$ac_save_CC $ac_arg"
4191 if ac_fn_c_try_compile "$LINENO"
4192 then :
4193 ac_cv_prog_cc_c89=$ac_arg
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.beam
4196 test "x$ac_cv_prog_cc_c89" != "xno" && break
4197 done
4198 rm -f conftest.$ac_ext
4199 CC=$ac_save_CC ;;
4200 esac
4201 fi
4202
4203 if test "x$ac_cv_prog_cc_c89" = xno
4204 then :
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4206 printf "%s\n" "unsupported" >&6; }
4207 else case e in #(
4208 e) if test "x$ac_cv_prog_cc_c89" = x
4209 then :
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4211 printf "%s\n" "none needed" >&6; }
4212 else case e in #(
4213 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4214 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4215 CC="$CC $ac_cv_prog_cc_c89" ;;
4216 esac
4217 fi
4218 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4219 ac_prog_cc_stdc=c89 ;;
4220 esac
4221 fi
4222 fi
4223
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230
4231 ac_ext=c
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4237 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4238 if test ${am_cv_prog_cc_c_o+y}
4239 then :
4240 printf %s "(cached) " >&6
4241 else case e in #(
4242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244
4245 int
4246 main (void)
4247 {
4248
4249 ;
4250 return 0;
4251 }
4252 _ACEOF
4253 # Make sure it works both with $CC and with simple cc.
4254 # Following AC_PROG_CC_C_O, we do the test twice because some
4255 # compilers refuse to overwrite an existing .o file with -o,
4256 # though they will create one.
4257 am_cv_prog_cc_c_o=yes
4258 for am_i in 1 2; do
4259 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4260 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } \
4264 && test -f conftest2.$ac_objext; then
4265 : OK
4266 else
4267 am_cv_prog_cc_c_o=no
4268 break
4269 fi
4270 done
4271 rm -f core conftest*
4272 unset am_i ;;
4273 esac
4274 fi
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4276 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4277 if test "$am_cv_prog_cc_c_o" != yes; then
4278 # Losing compiler, so override with the script.
4279 # FIXME: It is wrong to rewrite CC.
4280 # But if we don't then we get into trouble of one sort or another.
4281 # A longer-term fix would be to have automake use am__CC in this case,
4282 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4283 CC="$am_aux_dir/compile $CC"
4284 fi
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291
4292 depcc="$CC" am_compiler_list=
4293
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4295 printf %s "checking dependency style of $depcc... " >&6; }
4296 if test ${am_cv_CC_dependencies_compiler_type+y}
4297 then :
4298 printf %s "(cached) " >&6
4299 else case e in #(
4300 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4301 # We make a subdir and do the tests there. Otherwise we can end up
4302 # making bogus files that we don't know about and never remove. For
4303 # instance it was reported that on HP-UX the gcc test will end up
4304 # making a dummy file named 'D' -- because '-MD' means "put the output
4305 # in D".
4306 rm -rf conftest.dir
4307 mkdir conftest.dir
4308 # Copy depcomp to subdir because otherwise we won't find it if we're
4309 # using a relative directory.
4310 cp "$am_depcomp" conftest.dir
4311 cd conftest.dir
4312 # We will build objects and dependencies in a subdirectory because
4313 # it helps to detect inapplicable dependency modes. For instance
4314 # both Tru64's cc and ICC support -MD to output dependencies as a
4315 # side effect of compilation, but ICC will put the dependencies in
4316 # the current directory while Tru64 will put them in the object
4317 # directory.
4318 mkdir sub
4319
4320 am_cv_CC_dependencies_compiler_type=none
4321 if test "$am_compiler_list" = ""; then
4322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4323 fi
4324 am__universal=false
4325 case " $depcc " in #(
4326 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4327 esac
4328
4329 for depmode in $am_compiler_list; do
4330 # Setup a source with many dependencies, because some compilers
4331 # like to wrap large dependency lists on column 80 (with \), and
4332 # we should not choose a depcomp mode which is confused by this.
4333 #
4334 # We need to recreate these files for each test, as the compiler may
4335 # overwrite some of them when testing with obscure command lines.
4336 # This happens at least with the AIX C compiler.
4337 : > sub/conftest.c
4338 for i in 1 2 3 4 5 6; do
4339 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4340 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4341 # Solaris 10 /bin/sh.
4342 echo '/* dummy */' > sub/conftst$i.h
4343 done
4344 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4345
4346 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4347 # mode. It turns out that the SunPro C++ compiler does not properly
4348 # handle '-M -o', and we need to detect this. Also, some Intel
4349 # versions had trouble with output in subdirs.
4350 am__obj=sub/conftest.${OBJEXT-o}
4351 am__minus_obj="-o $am__obj"
4352 case $depmode in
4353 gcc)
4354 # This depmode causes a compiler race in universal mode.
4355 test "$am__universal" = false || continue
4356 ;;
4357 nosideeffect)
4358 # After this tag, mechanisms are not by side-effect, so they'll
4359 # only be used when explicitly requested.
4360 if test "x$enable_dependency_tracking" = xyes; then
4361 continue
4362 else
4363 break
4364 fi
4365 ;;
4366 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4367 # This compiler won't grok '-c -o', but also, the minuso test has
4368 # not run yet. These depmodes are late enough in the game, and
4369 # so weak that their functioning should not be impacted.
4370 am__obj=conftest.${OBJEXT-o}
4371 am__minus_obj=
4372 ;;
4373 none) break ;;
4374 esac
4375 if depmode=$depmode \
4376 source=sub/conftest.c object=$am__obj \
4377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4378 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4379 >/dev/null 2>conftest.err &&
4380 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4382 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4384 # icc doesn't choke on unknown options, it will just issue warnings
4385 # or remarks (even with -Werror). So we grep stderr for any message
4386 # that says an option was ignored or not supported.
4387 # When given -MP, icc 7.0 and 7.1 complain thusly:
4388 # icc: Command line warning: ignoring option '-M'; no argument required
4389 # The diagnosis changed in icc 8.0:
4390 # icc: Command line remark: option '-MP' not supported
4391 if (grep 'ignoring option' conftest.err ||
4392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4393 am_cv_CC_dependencies_compiler_type=$depmode
4394 break
4395 fi
4396 fi
4397 done
4398
4399 cd ..
4400 rm -rf conftest.dir
4401 else
4402 am_cv_CC_dependencies_compiler_type=none
4403 fi
4404 ;;
4405 esac
4406 fi
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4408 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4409 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4410
4411 if
4412 test "x$enable_dependency_tracking" != xno \
4413 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4414 am__fastdepCC_TRUE=
4415 am__fastdepCC_FALSE='#'
4416 else
4417 am__fastdepCC_TRUE='#'
4418 am__fastdepCC_FALSE=
4419 fi
4420
4421
4422
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4424 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4425 if test ${ac_cv_c_undeclared_builtin_options+y}
4426 then :
4427 printf %s "(cached) " >&6
4428 else case e in #(
4429 e) ac_save_CFLAGS=$CFLAGS
4430 ac_cv_c_undeclared_builtin_options='cannot detect'
4431 for ac_arg in '' -fno-builtin; do
4432 CFLAGS="$ac_save_CFLAGS $ac_arg"
4433 # This test program should *not* compile successfully.
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436
4437 int
4438 main (void)
4439 {
4440 (void) strchr;
4441 ;
4442 return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"
4446 then :
4447
4448 else case e in #(
4449 e) # This test program should compile successfully.
4450 # No library function is consistently available on
4451 # freestanding implementations, so test against a dummy
4452 # declaration. Include always-available headers on the
4453 # off chance that they somehow elicit warnings.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <float.h>
4457 #include <limits.h>
4458 #include <stdarg.h>
4459 #include <stddef.h>
4460 extern void ac_decl (int, char *);
4461
4462 int
4463 main (void)
4464 {
4465 (void) ac_decl (0, (char *) 0);
4466 (void) ac_decl;
4467
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"
4473 then :
4474 if test x"$ac_arg" = x
4475 then :
4476 ac_cv_c_undeclared_builtin_options='none needed'
4477 else case e in #(
4478 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4479 esac
4480 fi
4481 break
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4484 esac
4485 fi
4486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4487 done
4488 CFLAGS=$ac_save_CFLAGS
4489 ;;
4490 esac
4491 fi
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4493 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4494 case $ac_cv_c_undeclared_builtin_options in #(
4495 'cannot detect') :
4496 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4497 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4498 as_fn_error $? "cannot make $CC report undeclared builtins
4499 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4500 'none needed') :
4501 ac_c_undeclared_builtin_options='' ;; #(
4502 *) :
4503 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4504 esac
4505
4506 ac_header= ac_cache=
4507 for ac_item in $ac_header_c_list
4508 do
4509 if test $ac_cache; then
4510 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4511 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4512 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4513 fi
4514 ac_header= ac_cache=
4515 elif test $ac_header; then
4516 ac_cache=$ac_item
4517 else
4518 ac_header=$ac_item
4519 fi
4520 done
4521
4522
4523
4524
4525
4526
4527
4528
4529 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4530 then :
4531
4532 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4533
4534 fi
4535
4536
4537
4538
4539 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4540 if test "x$ac_cv_have_decl___clang__" = xyes
4541 then :
4542 CLANGCC="yes"
4543 else case e in #(
4544 e) CLANGCC="no" ;;
4545 esac
4546 fi
4547 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4548 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4549 then :
4550 INTELCC="yes"
4551 else case e in #(
4552 e) INTELCC="no" ;;
4553 esac
4554 fi
4555 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4556 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4557 then :
4558 SUNCC="yes"
4559 else case e in #(
4560 e) SUNCC="no" ;;
4561 esac
4562 fi
4563
4564
4565
4566
4567
4568
4569
4570
4571 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4572 if test -n "$ac_tool_prefix"; then
4573 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4574 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 printf %s "checking for $ac_word... " >&6; }
4577 if test ${ac_cv_path_PKG_CONFIG+y}
4578 then :
4579 printf %s "(cached) " >&6
4580 else case e in #(
4581 e) case $PKG_CONFIG in
4582 [\\/]* | ?:[\\/]*)
4583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4584 ;;
4585 *)
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589 IFS=$as_save_IFS
4590 case $as_dir in #(((
4591 '') as_dir=./ ;;
4592 */) ;;
4593 *) as_dir=$as_dir/ ;;
4594 esac
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4597 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605 ;;
4606 esac ;;
4607 esac
4608 fi
4609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4610 if test -n "$PKG_CONFIG"; then
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4612 printf "%s\n" "$PKG_CONFIG" >&6; }
4613 else
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 printf "%s\n" "no" >&6; }
4616 fi
4617
4618
4619 fi
4620 if test -z "$ac_cv_path_PKG_CONFIG"; then
4621 ac_pt_PKG_CONFIG=$PKG_CONFIG
4622 # Extract the first word of "pkg-config", so it can be a program name with args.
4623 set dummy pkg-config; ac_word=$2
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 printf %s "checking for $ac_word... " >&6; }
4626 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4627 then :
4628 printf %s "(cached) " >&6
4629 else case e in #(
4630 e) case $ac_pt_PKG_CONFIG in
4631 [\\/]* | ?:[\\/]*)
4632 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4633 ;;
4634 *)
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638 IFS=$as_save_IFS
4639 case $as_dir in #(((
4640 '') as_dir=./ ;;
4641 */) ;;
4642 *) as_dir=$as_dir/ ;;
4643 esac
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4646 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 ;;
4655 esac ;;
4656 esac
4657 fi
4658 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4659 if test -n "$ac_pt_PKG_CONFIG"; then
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4661 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4662 else
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 printf "%s\n" "no" >&6; }
4665 fi
4666
4667 if test "x$ac_pt_PKG_CONFIG" = x; then
4668 PKG_CONFIG=""
4669 else
4670 case $cross_compiling:$ac_tool_warned in
4671 yes:)
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674 ac_tool_warned=yes ;;
4675 esac
4676 PKG_CONFIG=$ac_pt_PKG_CONFIG
4677 fi
4678 else
4679 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4680 fi
4681
4682 fi
4683 if test -n "$PKG_CONFIG"; then
4684 _pkg_min_version=0.9.0
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4686 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4687 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4689 printf "%s\n" "yes" >&6; }
4690 else
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 printf "%s\n" "no" >&6; }
4693 PKG_CONFIG=""
4694 fi
4695 fi
4696
4697
4698 # Make sure we can run config.sub.
4699 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4700 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4701
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4703 printf %s "checking build system type... " >&6; }
4704 if test ${ac_cv_build+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else case e in #(
4708 e) ac_build_alias=$build_alias
4709 test "x$ac_build_alias" = x &&
4710 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4711 test "x$ac_build_alias" = x &&
4712 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4713 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4714 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4715 ;;
4716 esac
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 case e in #(
4744 e) 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 esac
4752 fi
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4754 printf "%s\n" "$ac_cv_host" >&6; }
4755 case $ac_cv_host in
4756 *-*-*) ;;
4757 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4758 esac
4759 host=$ac_cv_host
4760 ac_save_IFS=$IFS; IFS='-'
4761 set x $ac_cv_host
4762 shift
4763 host_cpu=$1
4764 host_vendor=$2
4765 shift; shift
4766 # Remember, the first character of IFS is used to create $*,
4767 # except with old shells:
4768 host_os=$*
4769 IFS=$ac_save_IFS
4770 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4771
4772
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4774 printf %s "checking for a sed that does not truncate output... " >&6; }
4775 if test ${ac_cv_path_SED+y}
4776 then :
4777 printf %s "(cached) " >&6
4778 else case e in #(
4779 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4780 for ac_i in 1 2 3 4 5 6 7; do
4781 ac_script="$ac_script$as_nl$ac_script"
4782 done
4783 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4784 { ac_script=; unset ac_script;}
4785 if test -z "$SED"; then
4786 ac_path_SED_found=false
4787 # Loop through the user's path and test for each of PROGNAME-LIST
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791 IFS=$as_save_IFS
4792 case $as_dir in #(((
4793 '') as_dir=./ ;;
4794 */) ;;
4795 *) as_dir=$as_dir/ ;;
4796 esac
4797 for ac_prog in sed gsed
4798 do
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4801 as_fn_executable_p "$ac_path_SED" || continue
4802 # Check for GNU ac_path_SED and select it if it is found.
4803 # Check for GNU $ac_path_SED
4804 case `"$ac_path_SED" --version 2>&1` in #(
4805 *GNU*)
4806 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4807 #(
4808 *)
4809 ac_count=0
4810 printf %s 0123456789 >"conftest.in"
4811 while :
4812 do
4813 cat "conftest.in" "conftest.in" >"conftest.tmp"
4814 mv "conftest.tmp" "conftest.in"
4815 cp "conftest.in" "conftest.nl"
4816 printf "%s\n" '' >> "conftest.nl"
4817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4819 as_fn_arith $ac_count + 1 && ac_count=$as_val
4820 if test $ac_count -gt ${ac_path_SED_max-0}; then
4821 # Best one so far, save it but keep looking for a better one
4822 ac_cv_path_SED="$ac_path_SED"
4823 ac_path_SED_max=$ac_count
4824 fi
4825 # 10*(2^10) chars as input seems more than enough
4826 test $ac_count -gt 10 && break
4827 done
4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4829 esac
4830
4831 $ac_path_SED_found && break 3
4832 done
4833 done
4834 done
4835 IFS=$as_save_IFS
4836 if test -z "$ac_cv_path_SED"; then
4837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4838 fi
4839 else
4840 ac_cv_path_SED=$SED
4841 fi
4842 ;;
4843 esac
4844 fi
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4846 printf "%s\n" "$ac_cv_path_SED" >&6; }
4847 SED="$ac_cv_path_SED"
4848 rm -f conftest.sed
4849
4850
4851
4852
4853
4854
4855 # Check whether --enable-selective-werror was given.
4856 if test ${enable_selective_werror+y}
4857 then :
4858 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4859 else case e in #(
4860 e) SELECTIVE_WERROR=yes ;;
4861 esac
4862 fi
4863
4864
4865
4866
4867
4868 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4869 if test "x$SUNCC" = "xyes"; then
4870 BASE_CFLAGS="-v"
4871 else
4872 BASE_CFLAGS=""
4873 fi
4874
4875 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889 xorg_testset_save_CFLAGS="$CFLAGS"
4890
4891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4894 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4895 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4896 then :
4897 printf %s "(cached) " >&6
4898 else case e in #(
4899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 int i;
4902 _ACEOF
4903 if ac_fn_c_try_compile "$LINENO"
4904 then :
4905 xorg_cv_cc_flag_unknown_warning_option=yes
4906 else case e in #(
4907 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4908 esac
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4911 esac
4912 fi
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4914 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4916 CFLAGS="$xorg_testset_save_CFLAGS"
4917 fi
4918
4919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922 fi
4923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4927 then :
4928 printf %s "(cached) " >&6
4929 else case e in #(
4930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 int i;
4933 _ACEOF
4934 if ac_fn_c_try_compile "$LINENO"
4935 then :
4936 xorg_cv_cc_flag_unused_command_line_argument=yes
4937 else case e in #(
4938 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4939 esac
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4942 esac
4943 fi
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4947 CFLAGS="$xorg_testset_save_CFLAGS"
4948 fi
4949
4950 found="no"
4951
4952 if test $found = "no" ; then
4953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4955 fi
4956
4957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4959 fi
4960
4961 CFLAGS="$CFLAGS -Wall"
4962
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4964 printf %s "checking if $CC supports -Wall... " >&6; }
4965 cacheid=xorg_cv_cc_flag__Wall
4966 if eval test \${$cacheid+y}
4967 then :
4968 printf %s "(cached) " >&6
4969 else case e in #(
4970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 int i;
4973 int
4974 main (void)
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_link "$LINENO"
4982 then :
4983 eval $cacheid=yes
4984 else case e in #(
4985 e) eval $cacheid=no ;;
4986 esac
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4989 conftest$ac_exeext conftest.$ac_ext ;;
4990 esac
4991 fi
4992
4993
4994 CFLAGS="$xorg_testset_save_CFLAGS"
4995
4996 eval supported=\$$cacheid
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4998 printf "%s\n" "$supported" >&6; }
4999 if test "$supported" = "yes" ; then
5000 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5001 found="yes"
5002 fi
5003 fi
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 xorg_testset_save_CFLAGS="$CFLAGS"
5020
5021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5024 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5025 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5026 then :
5027 printf %s "(cached) " >&6
5028 else case e in #(
5029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031 int i;
5032 _ACEOF
5033 if ac_fn_c_try_compile "$LINENO"
5034 then :
5035 xorg_cv_cc_flag_unknown_warning_option=yes
5036 else case e in #(
5037 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5038 esac
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5041 esac
5042 fi
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5046 CFLAGS="$xorg_testset_save_CFLAGS"
5047 fi
5048
5049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5052 fi
5053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5057 then :
5058 printf %s "(cached) " >&6
5059 else case e in #(
5060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 int i;
5063 _ACEOF
5064 if ac_fn_c_try_compile "$LINENO"
5065 then :
5066 xorg_cv_cc_flag_unused_command_line_argument=yes
5067 else case e in #(
5068 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5069 esac
5070 fi
5071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5072 esac
5073 fi
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5075 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5077 CFLAGS="$xorg_testset_save_CFLAGS"
5078 fi
5079
5080 found="no"
5081
5082 if test $found = "no" ; then
5083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5085 fi
5086
5087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5089 fi
5090
5091 CFLAGS="$CFLAGS -Wpointer-arith"
5092
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5094 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5095 cacheid=xorg_cv_cc_flag__Wpointer_arith
5096 if eval test \${$cacheid+y}
5097 then :
5098 printf %s "(cached) " >&6
5099 else case e in #(
5100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int i;
5103 int
5104 main (void)
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_link "$LINENO"
5112 then :
5113 eval $cacheid=yes
5114 else case e in #(
5115 e) eval $cacheid=no ;;
5116 esac
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5119 conftest$ac_exeext conftest.$ac_ext ;;
5120 esac
5121 fi
5122
5123
5124 CFLAGS="$xorg_testset_save_CFLAGS"
5125
5126 eval supported=\$$cacheid
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5128 printf "%s\n" "$supported" >&6; }
5129 if test "$supported" = "yes" ; then
5130 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5131 found="yes"
5132 fi
5133 fi
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 xorg_testset_save_CFLAGS="$CFLAGS"
5150
5151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5154 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5155 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5156 then :
5157 printf %s "(cached) " >&6
5158 else case e in #(
5159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 int i;
5162 _ACEOF
5163 if ac_fn_c_try_compile "$LINENO"
5164 then :
5165 xorg_cv_cc_flag_unknown_warning_option=yes
5166 else case e in #(
5167 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5168 esac
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5171 esac
5172 fi
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5174 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5176 CFLAGS="$xorg_testset_save_CFLAGS"
5177 fi
5178
5179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182 fi
5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5185 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5186 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5187 then :
5188 printf %s "(cached) " >&6
5189 else case e in #(
5190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 int i;
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"
5195 then :
5196 xorg_cv_cc_flag_unused_command_line_argument=yes
5197 else case e in #(
5198 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5199 esac
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5202 esac
5203 fi
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5205 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5207 CFLAGS="$xorg_testset_save_CFLAGS"
5208 fi
5209
5210 found="no"
5211
5212 if test $found = "no" ; then
5213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215 fi
5216
5217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5219 fi
5220
5221 CFLAGS="$CFLAGS -Wmissing-declarations"
5222
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5224 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5225 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5226 if eval test \${$cacheid+y}
5227 then :
5228 printf %s "(cached) " >&6
5229 else case e in #(
5230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 int i;
5233 int
5234 main (void)
5235 {
5236
5237 ;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_link "$LINENO"
5242 then :
5243 eval $cacheid=yes
5244 else case e in #(
5245 e) eval $cacheid=no ;;
5246 esac
5247 fi
5248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5249 conftest$ac_exeext conftest.$ac_ext ;;
5250 esac
5251 fi
5252
5253
5254 CFLAGS="$xorg_testset_save_CFLAGS"
5255
5256 eval supported=\$$cacheid
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5258 printf "%s\n" "$supported" >&6; }
5259 if test "$supported" = "yes" ; then
5260 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5261 found="yes"
5262 fi
5263 fi
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279 xorg_testset_save_CFLAGS="$CFLAGS"
5280
5281 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5284 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5285 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5286 then :
5287 printf %s "(cached) " >&6
5288 else case e in #(
5289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 int i;
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"
5294 then :
5295 xorg_cv_cc_flag_unknown_warning_option=yes
5296 else case e in #(
5297 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5298 esac
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5301 esac
5302 fi
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5304 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5306 CFLAGS="$xorg_testset_save_CFLAGS"
5307 fi
5308
5309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312 fi
5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5315 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5316 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5317 then :
5318 printf %s "(cached) " >&6
5319 else case e in #(
5320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 int i;
5323 _ACEOF
5324 if ac_fn_c_try_compile "$LINENO"
5325 then :
5326 xorg_cv_cc_flag_unused_command_line_argument=yes
5327 else case e in #(
5328 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5329 esac
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5332 esac
5333 fi
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5335 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5337 CFLAGS="$xorg_testset_save_CFLAGS"
5338 fi
5339
5340 found="no"
5341
5342 if test $found = "no" ; then
5343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5345 fi
5346
5347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5349 fi
5350
5351 CFLAGS="$CFLAGS -Wformat=2"
5352
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5354 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5355 cacheid=xorg_cv_cc_flag__Wformat_2
5356 if eval test \${$cacheid+y}
5357 then :
5358 printf %s "(cached) " >&6
5359 else case e in #(
5360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 int i;
5363 int
5364 main (void)
5365 {
5366
5367 ;
5368 return 0;
5369 }
5370 _ACEOF
5371 if ac_fn_c_try_link "$LINENO"
5372 then :
5373 eval $cacheid=yes
5374 else case e in #(
5375 e) eval $cacheid=no ;;
5376 esac
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5379 conftest$ac_exeext conftest.$ac_ext ;;
5380 esac
5381 fi
5382
5383
5384 CFLAGS="$xorg_testset_save_CFLAGS"
5385
5386 eval supported=\$$cacheid
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5388 printf "%s\n" "$supported" >&6; }
5389 if test "$supported" = "yes" ; then
5390 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5391 found="yes"
5392 fi
5393 fi
5394
5395 if test $found = "no" ; then
5396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398 fi
5399
5400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5402 fi
5403
5404 CFLAGS="$CFLAGS -Wformat"
5405
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5407 printf %s "checking if $CC supports -Wformat... " >&6; }
5408 cacheid=xorg_cv_cc_flag__Wformat
5409 if eval test \${$cacheid+y}
5410 then :
5411 printf %s "(cached) " >&6
5412 else case e in #(
5413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 int i;
5416 int
5417 main (void)
5418 {
5419
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 if ac_fn_c_try_link "$LINENO"
5425 then :
5426 eval $cacheid=yes
5427 else case e in #(
5428 e) eval $cacheid=no ;;
5429 esac
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5432 conftest$ac_exeext conftest.$ac_ext ;;
5433 esac
5434 fi
5435
5436
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438
5439 eval supported=\$$cacheid
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5441 printf "%s\n" "$supported" >&6; }
5442 if test "$supported" = "yes" ; then
5443 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5444 found="yes"
5445 fi
5446 fi
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 xorg_testset_save_CFLAGS="$CFLAGS"
5465
5466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5470 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5471 then :
5472 printf %s "(cached) " >&6
5473 else case e in #(
5474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 int i;
5477 _ACEOF
5478 if ac_fn_c_try_compile "$LINENO"
5479 then :
5480 xorg_cv_cc_flag_unknown_warning_option=yes
5481 else case e in #(
5482 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5483 esac
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5486 esac
5487 fi
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5491 CFLAGS="$xorg_testset_save_CFLAGS"
5492 fi
5493
5494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5497 fi
5498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5502 then :
5503 printf %s "(cached) " >&6
5504 else case e in #(
5505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 int i;
5508 _ACEOF
5509 if ac_fn_c_try_compile "$LINENO"
5510 then :
5511 xorg_cv_cc_flag_unused_command_line_argument=yes
5512 else case e in #(
5513 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5514 esac
5515 fi
5516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5517 esac
5518 fi
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5520 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5522 CFLAGS="$xorg_testset_save_CFLAGS"
5523 fi
5524
5525 found="no"
5526
5527 if test $found = "no" ; then
5528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530 fi
5531
5532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534 fi
5535
5536 CFLAGS="$CFLAGS -Wstrict-prototypes"
5537
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5539 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5540 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5541 if eval test \${$cacheid+y}
5542 then :
5543 printf %s "(cached) " >&6
5544 else case e in #(
5545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 int i;
5548 int
5549 main (void)
5550 {
5551
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 if ac_fn_c_try_link "$LINENO"
5557 then :
5558 eval $cacheid=yes
5559 else case e in #(
5560 e) eval $cacheid=no ;;
5561 esac
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5564 conftest$ac_exeext conftest.$ac_ext ;;
5565 esac
5566 fi
5567
5568
5569 CFLAGS="$xorg_testset_save_CFLAGS"
5570
5571 eval supported=\$$cacheid
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5573 printf "%s\n" "$supported" >&6; }
5574 if test "$supported" = "yes" ; then
5575 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5576 found="yes"
5577 fi
5578 fi
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594 xorg_testset_save_CFLAGS="$CFLAGS"
5595
5596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5599 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5600 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5601 then :
5602 printf %s "(cached) " >&6
5603 else case e in #(
5604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 int i;
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"
5609 then :
5610 xorg_cv_cc_flag_unknown_warning_option=yes
5611 else case e in #(
5612 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5613 esac
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5616 esac
5617 fi
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5619 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5621 CFLAGS="$xorg_testset_save_CFLAGS"
5622 fi
5623
5624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627 fi
5628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5630 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5631 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5632 then :
5633 printf %s "(cached) " >&6
5634 else case e in #(
5635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 int i;
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"
5640 then :
5641 xorg_cv_cc_flag_unused_command_line_argument=yes
5642 else case e in #(
5643 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5644 esac
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5647 esac
5648 fi
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5650 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5653 fi
5654
5655 found="no"
5656
5657 if test $found = "no" ; then
5658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660 fi
5661
5662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664 fi
5665
5666 CFLAGS="$CFLAGS -Wmissing-prototypes"
5667
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5669 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5670 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5671 if eval test \${$cacheid+y}
5672 then :
5673 printf %s "(cached) " >&6
5674 else case e in #(
5675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 int i;
5678 int
5679 main (void)
5680 {
5681
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 if ac_fn_c_try_link "$LINENO"
5687 then :
5688 eval $cacheid=yes
5689 else case e in #(
5690 e) eval $cacheid=no ;;
5691 esac
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5694 conftest$ac_exeext conftest.$ac_ext ;;
5695 esac
5696 fi
5697
5698
5699 CFLAGS="$xorg_testset_save_CFLAGS"
5700
5701 eval supported=\$$cacheid
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5703 printf "%s\n" "$supported" >&6; }
5704 if test "$supported" = "yes" ; then
5705 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5706 found="yes"
5707 fi
5708 fi
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 xorg_testset_save_CFLAGS="$CFLAGS"
5725
5726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5729 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5730 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5731 then :
5732 printf %s "(cached) " >&6
5733 else case e in #(
5734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 int i;
5737 _ACEOF
5738 if ac_fn_c_try_compile "$LINENO"
5739 then :
5740 xorg_cv_cc_flag_unknown_warning_option=yes
5741 else case e in #(
5742 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5743 esac
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5746 esac
5747 fi
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5749 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5751 CFLAGS="$xorg_testset_save_CFLAGS"
5752 fi
5753
5754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5757 fi
5758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5760 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5761 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else case e in #(
5765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 int i;
5768 _ACEOF
5769 if ac_fn_c_try_compile "$LINENO"
5770 then :
5771 xorg_cv_cc_flag_unused_command_line_argument=yes
5772 else case e in #(
5773 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5774 esac
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5777 esac
5778 fi
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5780 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5782 CFLAGS="$xorg_testset_save_CFLAGS"
5783 fi
5784
5785 found="no"
5786
5787 if test $found = "no" ; then
5788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790 fi
5791
5792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794 fi
5795
5796 CFLAGS="$CFLAGS -Wnested-externs"
5797
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5799 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5800 cacheid=xorg_cv_cc_flag__Wnested_externs
5801 if eval test \${$cacheid+y}
5802 then :
5803 printf %s "(cached) " >&6
5804 else case e in #(
5805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 int i;
5808 int
5809 main (void)
5810 {
5811
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 if ac_fn_c_try_link "$LINENO"
5817 then :
5818 eval $cacheid=yes
5819 else case e in #(
5820 e) eval $cacheid=no ;;
5821 esac
5822 fi
5823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5824 conftest$ac_exeext conftest.$ac_ext ;;
5825 esac
5826 fi
5827
5828
5829 CFLAGS="$xorg_testset_save_CFLAGS"
5830
5831 eval supported=\$$cacheid
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5833 printf "%s\n" "$supported" >&6; }
5834 if test "$supported" = "yes" ; then
5835 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5836 found="yes"
5837 fi
5838 fi
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854 xorg_testset_save_CFLAGS="$CFLAGS"
5855
5856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5859 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5860 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5861 then :
5862 printf %s "(cached) " >&6
5863 else case e in #(
5864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 int i;
5867 _ACEOF
5868 if ac_fn_c_try_compile "$LINENO"
5869 then :
5870 xorg_cv_cc_flag_unknown_warning_option=yes
5871 else case e in #(
5872 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5873 esac
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5876 esac
5877 fi
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5879 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5882 fi
5883
5884 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887 fi
5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5890 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5891 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5892 then :
5893 printf %s "(cached) " >&6
5894 else case e in #(
5895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 int i;
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"
5900 then :
5901 xorg_cv_cc_flag_unused_command_line_argument=yes
5902 else case e in #(
5903 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5904 esac
5905 fi
5906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5907 esac
5908 fi
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5912 CFLAGS="$xorg_testset_save_CFLAGS"
5913 fi
5914
5915 found="no"
5916
5917 if test $found = "no" ; then
5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5920 fi
5921
5922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5924 fi
5925
5926 CFLAGS="$CFLAGS -Wbad-function-cast"
5927
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5929 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5930 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5931 if eval test \${$cacheid+y}
5932 then :
5933 printf %s "(cached) " >&6
5934 else case e in #(
5935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 int i;
5938 int
5939 main (void)
5940 {
5941
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_link "$LINENO"
5947 then :
5948 eval $cacheid=yes
5949 else case e in #(
5950 e) eval $cacheid=no ;;
5951 esac
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5954 conftest$ac_exeext conftest.$ac_ext ;;
5955 esac
5956 fi
5957
5958
5959 CFLAGS="$xorg_testset_save_CFLAGS"
5960
5961 eval supported=\$$cacheid
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5963 printf "%s\n" "$supported" >&6; }
5964 if test "$supported" = "yes" ; then
5965 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5966 found="yes"
5967 fi
5968 fi
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984 xorg_testset_save_CFLAGS="$CFLAGS"
5985
5986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5989 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5990 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5991 then :
5992 printf %s "(cached) " >&6
5993 else case e in #(
5994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 int i;
5997 _ACEOF
5998 if ac_fn_c_try_compile "$LINENO"
5999 then :
6000 xorg_cv_cc_flag_unknown_warning_option=yes
6001 else case e in #(
6002 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6003 esac
6004 fi
6005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6006 esac
6007 fi
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6009 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6011 CFLAGS="$xorg_testset_save_CFLAGS"
6012 fi
6013
6014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017 fi
6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6020 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6021 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6022 then :
6023 printf %s "(cached) " >&6
6024 else case e in #(
6025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 int i;
6028 _ACEOF
6029 if ac_fn_c_try_compile "$LINENO"
6030 then :
6031 xorg_cv_cc_flag_unused_command_line_argument=yes
6032 else case e in #(
6033 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6034 esac
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6037 esac
6038 fi
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6040 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6042 CFLAGS="$xorg_testset_save_CFLAGS"
6043 fi
6044
6045 found="no"
6046
6047 if test $found = "no" ; then
6048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050 fi
6051
6052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6054 fi
6055
6056 CFLAGS="$CFLAGS -Wold-style-definition"
6057
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6059 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6060 cacheid=xorg_cv_cc_flag__Wold_style_definition
6061 if eval test \${$cacheid+y}
6062 then :
6063 printf %s "(cached) " >&6
6064 else case e in #(
6065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 int i;
6068 int
6069 main (void)
6070 {
6071
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 if ac_fn_c_try_link "$LINENO"
6077 then :
6078 eval $cacheid=yes
6079 else case e in #(
6080 e) eval $cacheid=no ;;
6081 esac
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6084 conftest$ac_exeext conftest.$ac_ext ;;
6085 esac
6086 fi
6087
6088
6089 CFLAGS="$xorg_testset_save_CFLAGS"
6090
6091 eval supported=\$$cacheid
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6093 printf "%s\n" "$supported" >&6; }
6094 if test "$supported" = "yes" ; then
6095 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6096 found="yes"
6097 fi
6098 fi
6099
6100 if test $found = "no" ; then
6101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6103 fi
6104
6105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6107 fi
6108
6109 CFLAGS="$CFLAGS -fd"
6110
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6112 printf %s "checking if $CC supports -fd... " >&6; }
6113 cacheid=xorg_cv_cc_flag__fd
6114 if eval test \${$cacheid+y}
6115 then :
6116 printf %s "(cached) " >&6
6117 else case e in #(
6118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 int i;
6121 int
6122 main (void)
6123 {
6124
6125 ;
6126 return 0;
6127 }
6128 _ACEOF
6129 if ac_fn_c_try_link "$LINENO"
6130 then :
6131 eval $cacheid=yes
6132 else case e in #(
6133 e) eval $cacheid=no ;;
6134 esac
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6137 conftest$ac_exeext conftest.$ac_ext ;;
6138 esac
6139 fi
6140
6141
6142 CFLAGS="$xorg_testset_save_CFLAGS"
6143
6144 eval supported=\$$cacheid
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6146 printf "%s\n" "$supported" >&6; }
6147 if test "$supported" = "yes" ; then
6148 BASE_CFLAGS="$BASE_CFLAGS -fd"
6149 found="yes"
6150 fi
6151 fi
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167 xorg_testset_save_CFLAGS="$CFLAGS"
6168
6169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6172 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6173 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6174 then :
6175 printf %s "(cached) " >&6
6176 else case e in #(
6177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 int i;
6180 _ACEOF
6181 if ac_fn_c_try_compile "$LINENO"
6182 then :
6183 xorg_cv_cc_flag_unknown_warning_option=yes
6184 else case e in #(
6185 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6186 esac
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6189 esac
6190 fi
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6192 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6194 CFLAGS="$xorg_testset_save_CFLAGS"
6195 fi
6196
6197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 fi
6201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6203 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6204 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6205 then :
6206 printf %s "(cached) " >&6
6207 else case e in #(
6208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 int i;
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"
6213 then :
6214 xorg_cv_cc_flag_unused_command_line_argument=yes
6215 else case e in #(
6216 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6217 esac
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6220 esac
6221 fi
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6223 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6225 CFLAGS="$xorg_testset_save_CFLAGS"
6226 fi
6227
6228 found="no"
6229
6230 if test $found = "no" ; then
6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6233 fi
6234
6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237 fi
6238
6239 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6240
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6242 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6243 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6244 if eval test \${$cacheid+y}
6245 then :
6246 printf %s "(cached) " >&6
6247 else case e in #(
6248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 int i;
6251 int
6252 main (void)
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_link "$LINENO"
6260 then :
6261 eval $cacheid=yes
6262 else case e in #(
6263 e) eval $cacheid=no ;;
6264 esac
6265 fi
6266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6267 conftest$ac_exeext conftest.$ac_ext ;;
6268 esac
6269 fi
6270
6271
6272 CFLAGS="$xorg_testset_save_CFLAGS"
6273
6274 eval supported=\$$cacheid
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6276 printf "%s\n" "$supported" >&6; }
6277 if test "$supported" = "yes" ; then
6278 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6279 found="yes"
6280 fi
6281 fi
6282
6283
6284
6285
6286
6287 # This chunk adds additional warnings that could catch undesired effects.
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 xorg_testset_save_CFLAGS="$CFLAGS"
6302
6303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6306 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6307 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else case e in #(
6311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 int i;
6314 _ACEOF
6315 if ac_fn_c_try_compile "$LINENO"
6316 then :
6317 xorg_cv_cc_flag_unknown_warning_option=yes
6318 else case e in #(
6319 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6320 esac
6321 fi
6322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6323 esac
6324 fi
6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6326 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6328 CFLAGS="$xorg_testset_save_CFLAGS"
6329 fi
6330
6331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 fi
6335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6337 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6338 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6339 then :
6340 printf %s "(cached) " >&6
6341 else case e in #(
6342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 int i;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"
6347 then :
6348 xorg_cv_cc_flag_unused_command_line_argument=yes
6349 else case e in #(
6350 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6351 esac
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6354 esac
6355 fi
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6357 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360 fi
6361
6362 found="no"
6363
6364 if test $found = "no" ; then
6365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6367 fi
6368
6369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6371 fi
6372
6373 CFLAGS="$CFLAGS -Wunused"
6374
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6376 printf %s "checking if $CC supports -Wunused... " >&6; }
6377 cacheid=xorg_cv_cc_flag__Wunused
6378 if eval test \${$cacheid+y}
6379 then :
6380 printf %s "(cached) " >&6
6381 else case e in #(
6382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384 int i;
6385 int
6386 main (void)
6387 {
6388
6389 ;
6390 return 0;
6391 }
6392 _ACEOF
6393 if ac_fn_c_try_link "$LINENO"
6394 then :
6395 eval $cacheid=yes
6396 else case e in #(
6397 e) eval $cacheid=no ;;
6398 esac
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6401 conftest$ac_exeext conftest.$ac_ext ;;
6402 esac
6403 fi
6404
6405
6406 CFLAGS="$xorg_testset_save_CFLAGS"
6407
6408 eval supported=\$$cacheid
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6410 printf "%s\n" "$supported" >&6; }
6411 if test "$supported" = "yes" ; then
6412 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6413 found="yes"
6414 fi
6415 fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 xorg_testset_save_CFLAGS="$CFLAGS"
6432
6433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6436 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6437 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6438 then :
6439 printf %s "(cached) " >&6
6440 else case e in #(
6441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"
6446 then :
6447 xorg_cv_cc_flag_unknown_warning_option=yes
6448 else case e in #(
6449 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6450 esac
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6453 esac
6454 fi
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6456 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6458 CFLAGS="$xorg_testset_save_CFLAGS"
6459 fi
6460
6461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464 fi
6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6467 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6468 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6469 then :
6470 printf %s "(cached) " >&6
6471 else case e in #(
6472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"
6477 then :
6478 xorg_cv_cc_flag_unused_command_line_argument=yes
6479 else case e in #(
6480 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6481 esac
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6484 esac
6485 fi
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6489 CFLAGS="$xorg_testset_save_CFLAGS"
6490 fi
6491
6492 found="no"
6493
6494 if test $found = "no" ; then
6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497 fi
6498
6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6501 fi
6502
6503 CFLAGS="$CFLAGS -Wuninitialized"
6504
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6506 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6507 cacheid=xorg_cv_cc_flag__Wuninitialized
6508 if eval test \${$cacheid+y}
6509 then :
6510 printf %s "(cached) " >&6
6511 else case e in #(
6512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 int i;
6515 int
6516 main (void)
6517 {
6518
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_link "$LINENO"
6524 then :
6525 eval $cacheid=yes
6526 else case e in #(
6527 e) eval $cacheid=no ;;
6528 esac
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6531 conftest$ac_exeext conftest.$ac_ext ;;
6532 esac
6533 fi
6534
6535
6536 CFLAGS="$xorg_testset_save_CFLAGS"
6537
6538 eval supported=\$$cacheid
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6540 printf "%s\n" "$supported" >&6; }
6541 if test "$supported" = "yes" ; then
6542 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6543 found="yes"
6544 fi
6545 fi
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561 xorg_testset_save_CFLAGS="$CFLAGS"
6562
6563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6566 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6567 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6568 then :
6569 printf %s "(cached) " >&6
6570 else case e in #(
6571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 int i;
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"
6576 then :
6577 xorg_cv_cc_flag_unknown_warning_option=yes
6578 else case e in #(
6579 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6580 esac
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6583 esac
6584 fi
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588 CFLAGS="$xorg_testset_save_CFLAGS"
6589 fi
6590
6591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 fi
6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6599 then :
6600 printf %s "(cached) " >&6
6601 else case e in #(
6602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 int i;
6605 _ACEOF
6606 if ac_fn_c_try_compile "$LINENO"
6607 then :
6608 xorg_cv_cc_flag_unused_command_line_argument=yes
6609 else case e in #(
6610 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6611 esac
6612 fi
6613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6614 esac
6615 fi
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6617 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6619 CFLAGS="$xorg_testset_save_CFLAGS"
6620 fi
6621
6622 found="no"
6623
6624 if test $found = "no" ; then
6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627 fi
6628
6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6631 fi
6632
6633 CFLAGS="$CFLAGS -Wshadow"
6634
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6636 printf %s "checking if $CC supports -Wshadow... " >&6; }
6637 cacheid=xorg_cv_cc_flag__Wshadow
6638 if eval test \${$cacheid+y}
6639 then :
6640 printf %s "(cached) " >&6
6641 else case e in #(
6642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 int i;
6645 int
6646 main (void)
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_link "$LINENO"
6654 then :
6655 eval $cacheid=yes
6656 else case e in #(
6657 e) eval $cacheid=no ;;
6658 esac
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6661 conftest$ac_exeext conftest.$ac_ext ;;
6662 esac
6663 fi
6664
6665
6666 CFLAGS="$xorg_testset_save_CFLAGS"
6667
6668 eval supported=\$$cacheid
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6670 printf "%s\n" "$supported" >&6; }
6671 if test "$supported" = "yes" ; then
6672 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6673 found="yes"
6674 fi
6675 fi
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 xorg_testset_save_CFLAGS="$CFLAGS"
6692
6693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6697 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6698 then :
6699 printf %s "(cached) " >&6
6700 else case e in #(
6701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 int i;
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"
6706 then :
6707 xorg_cv_cc_flag_unknown_warning_option=yes
6708 else case e in #(
6709 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6710 esac
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6713 esac
6714 fi
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6716 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6718 CFLAGS="$xorg_testset_save_CFLAGS"
6719 fi
6720
6721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724 fi
6725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6727 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6728 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6729 then :
6730 printf %s "(cached) " >&6
6731 else case e in #(
6732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 int i;
6735 _ACEOF
6736 if ac_fn_c_try_compile "$LINENO"
6737 then :
6738 xorg_cv_cc_flag_unused_command_line_argument=yes
6739 else case e in #(
6740 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6741 esac
6742 fi
6743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6744 esac
6745 fi
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6747 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6749 CFLAGS="$xorg_testset_save_CFLAGS"
6750 fi
6751
6752 found="no"
6753
6754 if test $found = "no" ; then
6755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6757 fi
6758
6759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6761 fi
6762
6763 CFLAGS="$CFLAGS -Wmissing-noreturn"
6764
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6766 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6767 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6768 if eval test \${$cacheid+y}
6769 then :
6770 printf %s "(cached) " >&6
6771 else case e in #(
6772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 int i;
6775 int
6776 main (void)
6777 {
6778
6779 ;
6780 return 0;
6781 }
6782 _ACEOF
6783 if ac_fn_c_try_link "$LINENO"
6784 then :
6785 eval $cacheid=yes
6786 else case e in #(
6787 e) eval $cacheid=no ;;
6788 esac
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6791 conftest$ac_exeext conftest.$ac_ext ;;
6792 esac
6793 fi
6794
6795
6796 CFLAGS="$xorg_testset_save_CFLAGS"
6797
6798 eval supported=\$$cacheid
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6800 printf "%s\n" "$supported" >&6; }
6801 if test "$supported" = "yes" ; then
6802 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6803 found="yes"
6804 fi
6805 fi
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821 xorg_testset_save_CFLAGS="$CFLAGS"
6822
6823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6827 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6828 then :
6829 printf %s "(cached) " >&6
6830 else case e in #(
6831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 int i;
6834 _ACEOF
6835 if ac_fn_c_try_compile "$LINENO"
6836 then :
6837 xorg_cv_cc_flag_unknown_warning_option=yes
6838 else case e in #(
6839 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6840 esac
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6843 esac
6844 fi
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6848 CFLAGS="$xorg_testset_save_CFLAGS"
6849 fi
6850
6851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6854 fi
6855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6859 then :
6860 printf %s "(cached) " >&6
6861 else case e in #(
6862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 int i;
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"
6867 then :
6868 xorg_cv_cc_flag_unused_command_line_argument=yes
6869 else case e in #(
6870 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6871 esac
6872 fi
6873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6874 esac
6875 fi
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6877 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6879 CFLAGS="$xorg_testset_save_CFLAGS"
6880 fi
6881
6882 found="no"
6883
6884 if test $found = "no" ; then
6885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6887 fi
6888
6889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6891 fi
6892
6893 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6894
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6896 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6897 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6898 if eval test \${$cacheid+y}
6899 then :
6900 printf %s "(cached) " >&6
6901 else case e in #(
6902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 int i;
6905 int
6906 main (void)
6907 {
6908
6909 ;
6910 return 0;
6911 }
6912 _ACEOF
6913 if ac_fn_c_try_link "$LINENO"
6914 then :
6915 eval $cacheid=yes
6916 else case e in #(
6917 e) eval $cacheid=no ;;
6918 esac
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6921 conftest$ac_exeext conftest.$ac_ext ;;
6922 esac
6923 fi
6924
6925
6926 CFLAGS="$xorg_testset_save_CFLAGS"
6927
6928 eval supported=\$$cacheid
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6930 printf "%s\n" "$supported" >&6; }
6931 if test "$supported" = "yes" ; then
6932 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6933 found="yes"
6934 fi
6935 fi
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 xorg_testset_save_CFLAGS="$CFLAGS"
6952
6953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6957 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6958 then :
6959 printf %s "(cached) " >&6
6960 else case e in #(
6961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 int i;
6964 _ACEOF
6965 if ac_fn_c_try_compile "$LINENO"
6966 then :
6967 xorg_cv_cc_flag_unknown_warning_option=yes
6968 else case e in #(
6969 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6970 esac
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6973 esac
6974 fi
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6976 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6978 CFLAGS="$xorg_testset_save_CFLAGS"
6979 fi
6980
6981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6984 fi
6985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6987 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6988 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6989 then :
6990 printf %s "(cached) " >&6
6991 else case e in #(
6992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 int i;
6995 _ACEOF
6996 if ac_fn_c_try_compile "$LINENO"
6997 then :
6998 xorg_cv_cc_flag_unused_command_line_argument=yes
6999 else case e in #(
7000 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7001 esac
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7004 esac
7005 fi
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7009 CFLAGS="$xorg_testset_save_CFLAGS"
7010 fi
7011
7012 found="no"
7013
7014 if test $found = "no" ; then
7015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7017 fi
7018
7019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7021 fi
7022
7023 CFLAGS="$CFLAGS -Wredundant-decls"
7024
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7026 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7027 cacheid=xorg_cv_cc_flag__Wredundant_decls
7028 if eval test \${$cacheid+y}
7029 then :
7030 printf %s "(cached) " >&6
7031 else case e in #(
7032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 int i;
7035 int
7036 main (void)
7037 {
7038
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_link "$LINENO"
7044 then :
7045 eval $cacheid=yes
7046 else case e in #(
7047 e) eval $cacheid=no ;;
7048 esac
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7051 conftest$ac_exeext conftest.$ac_ext ;;
7052 esac
7053 fi
7054
7055
7056 CFLAGS="$xorg_testset_save_CFLAGS"
7057
7058 eval supported=\$$cacheid
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7060 printf "%s\n" "$supported" >&6; }
7061 if test "$supported" = "yes" ; then
7062 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7063 found="yes"
7064 fi
7065 fi
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081 xorg_testset_save_CFLAGS="$CFLAGS"
7082
7083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7087 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else case e in #(
7091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 int i;
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"
7096 then :
7097 xorg_cv_cc_flag_unknown_warning_option=yes
7098 else case e in #(
7099 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7100 esac
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7103 esac
7104 fi
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7108 CFLAGS="$xorg_testset_save_CFLAGS"
7109 fi
7110
7111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7114 fi
7115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7119 then :
7120 printf %s "(cached) " >&6
7121 else case e in #(
7122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124 int i;
7125 _ACEOF
7126 if ac_fn_c_try_compile "$LINENO"
7127 then :
7128 xorg_cv_cc_flag_unused_command_line_argument=yes
7129 else case e in #(
7130 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7131 esac
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7134 esac
7135 fi
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7139 CFLAGS="$xorg_testset_save_CFLAGS"
7140 fi
7141
7142 found="no"
7143
7144 if test $found = "no" ; then
7145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7147 fi
7148
7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7151 fi
7152
7153 CFLAGS="$CFLAGS -Wlogical-op"
7154
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7156 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7157 cacheid=xorg_cv_cc_flag__Wlogical_op
7158 if eval test \${$cacheid+y}
7159 then :
7160 printf %s "(cached) " >&6
7161 else case e in #(
7162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 int i;
7165 int
7166 main (void)
7167 {
7168
7169 ;
7170 return 0;
7171 }
7172 _ACEOF
7173 if ac_fn_c_try_link "$LINENO"
7174 then :
7175 eval $cacheid=yes
7176 else case e in #(
7177 e) eval $cacheid=no ;;
7178 esac
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181 conftest$ac_exeext conftest.$ac_ext ;;
7182 esac
7183 fi
7184
7185
7186 CFLAGS="$xorg_testset_save_CFLAGS"
7187
7188 eval supported=\$$cacheid
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7190 printf "%s\n" "$supported" >&6; }
7191 if test "$supported" = "yes" ; then
7192 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7193 found="yes"
7194 fi
7195 fi
7196
7197
7198
7199 # These are currently disabled because they are noisy. They will be enabled
7200 # in the future once the codebase is sufficiently modernized to silence
7201 # them. For now, I don't want them to drown out the other warnings.
7202 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7203 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7204 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7205
7206 # Turn some warnings into errors, so we don't accidentally get successful builds
7207 # when there are problems that should be fixed.
7208
7209 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223 xorg_testset_save_CFLAGS="$CFLAGS"
7224
7225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7228 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7229 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7230 then :
7231 printf %s "(cached) " >&6
7232 else case e in #(
7233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 int i;
7236 _ACEOF
7237 if ac_fn_c_try_compile "$LINENO"
7238 then :
7239 xorg_cv_cc_flag_unknown_warning_option=yes
7240 else case e in #(
7241 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7242 esac
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7245 esac
7246 fi
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7250 CFLAGS="$xorg_testset_save_CFLAGS"
7251 fi
7252
7253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256 fi
7257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7261 then :
7262 printf %s "(cached) " >&6
7263 else case e in #(
7264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 int i;
7267 _ACEOF
7268 if ac_fn_c_try_compile "$LINENO"
7269 then :
7270 xorg_cv_cc_flag_unused_command_line_argument=yes
7271 else case e in #(
7272 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7273 esac
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7276 esac
7277 fi
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7279 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7281 CFLAGS="$xorg_testset_save_CFLAGS"
7282 fi
7283
7284 found="no"
7285
7286 if test $found = "no" ; then
7287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7289 fi
7290
7291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7293 fi
7294
7295 CFLAGS="$CFLAGS -Werror=implicit"
7296
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7298 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7299 cacheid=xorg_cv_cc_flag__Werror_implicit
7300 if eval test \${$cacheid+y}
7301 then :
7302 printf %s "(cached) " >&6
7303 else case e in #(
7304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 int i;
7307 int
7308 main (void)
7309 {
7310
7311 ;
7312 return 0;
7313 }
7314 _ACEOF
7315 if ac_fn_c_try_link "$LINENO"
7316 then :
7317 eval $cacheid=yes
7318 else case e in #(
7319 e) eval $cacheid=no ;;
7320 esac
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7323 conftest$ac_exeext conftest.$ac_ext ;;
7324 esac
7325 fi
7326
7327
7328 CFLAGS="$xorg_testset_save_CFLAGS"
7329
7330 eval supported=\$$cacheid
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7332 printf "%s\n" "$supported" >&6; }
7333 if test "$supported" = "yes" ; then
7334 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7335 found="yes"
7336 fi
7337 fi
7338
7339 if test $found = "no" ; then
7340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342 fi
7343
7344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7346 fi
7347
7348 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7349
7350 { 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
7351 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7352 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7353 if eval test \${$cacheid+y}
7354 then :
7355 printf %s "(cached) " >&6
7356 else case e in #(
7357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 int i;
7360 int
7361 main (void)
7362 {
7363
7364 ;
7365 return 0;
7366 }
7367 _ACEOF
7368 if ac_fn_c_try_link "$LINENO"
7369 then :
7370 eval $cacheid=yes
7371 else case e in #(
7372 e) eval $cacheid=no ;;
7373 esac
7374 fi
7375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7376 conftest$ac_exeext conftest.$ac_ext ;;
7377 esac
7378 fi
7379
7380
7381 CFLAGS="$xorg_testset_save_CFLAGS"
7382
7383 eval supported=\$$cacheid
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7385 printf "%s\n" "$supported" >&6; }
7386 if test "$supported" = "yes" ; then
7387 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7388 found="yes"
7389 fi
7390 fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406 xorg_testset_save_CFLAGS="$CFLAGS"
7407
7408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7411 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7412 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7413 then :
7414 printf %s "(cached) " >&6
7415 else case e in #(
7416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 int i;
7419 _ACEOF
7420 if ac_fn_c_try_compile "$LINENO"
7421 then :
7422 xorg_cv_cc_flag_unknown_warning_option=yes
7423 else case e in #(
7424 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7425 esac
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7428 esac
7429 fi
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7431 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434 fi
7435
7436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439 fi
7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7442 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7443 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7444 then :
7445 printf %s "(cached) " >&6
7446 else case e in #(
7447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"
7452 then :
7453 xorg_cv_cc_flag_unused_command_line_argument=yes
7454 else case e in #(
7455 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7456 esac
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7459 esac
7460 fi
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7462 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7464 CFLAGS="$xorg_testset_save_CFLAGS"
7465 fi
7466
7467 found="no"
7468
7469 if test $found = "no" ; then
7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7472 fi
7473
7474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7476 fi
7477
7478 CFLAGS="$CFLAGS -Werror=nonnull"
7479
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7481 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7482 cacheid=xorg_cv_cc_flag__Werror_nonnull
7483 if eval test \${$cacheid+y}
7484 then :
7485 printf %s "(cached) " >&6
7486 else case e in #(
7487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 int i;
7490 int
7491 main (void)
7492 {
7493
7494 ;
7495 return 0;
7496 }
7497 _ACEOF
7498 if ac_fn_c_try_link "$LINENO"
7499 then :
7500 eval $cacheid=yes
7501 else case e in #(
7502 e) eval $cacheid=no ;;
7503 esac
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7506 conftest$ac_exeext conftest.$ac_ext ;;
7507 esac
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=nonnull"
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 case e in #(
7546 e) 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 case e in #(
7554 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7555 esac
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7558 esac
7559 fi
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7561 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564 fi
7565
7566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569 fi
7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7572 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7573 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7574 then :
7575 printf %s "(cached) " >&6
7576 else case e in #(
7577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 int i;
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"
7582 then :
7583 xorg_cv_cc_flag_unused_command_line_argument=yes
7584 else case e in #(
7585 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7586 esac
7587 fi
7588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7589 esac
7590 fi
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7592 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7594 CFLAGS="$xorg_testset_save_CFLAGS"
7595 fi
7596
7597 found="no"
7598
7599 if test $found = "no" ; then
7600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602 fi
7603
7604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606 fi
7607
7608 CFLAGS="$CFLAGS -Werror=init-self"
7609
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7611 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7612 cacheid=xorg_cv_cc_flag__Werror_init_self
7613 if eval test \${$cacheid+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else case e in #(
7617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 int i;
7620 int
7621 main (void)
7622 {
7623
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"
7629 then :
7630 eval $cacheid=yes
7631 else case e in #(
7632 e) eval $cacheid=no ;;
7633 esac
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7636 conftest$ac_exeext conftest.$ac_ext ;;
7637 esac
7638 fi
7639
7640
7641 CFLAGS="$xorg_testset_save_CFLAGS"
7642
7643 eval supported=\$$cacheid
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7645 printf "%s\n" "$supported" >&6; }
7646 if test "$supported" = "yes" ; then
7647 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7648 found="yes"
7649 fi
7650 fi
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666 xorg_testset_save_CFLAGS="$CFLAGS"
7667
7668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7671 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7672 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7673 then :
7674 printf %s "(cached) " >&6
7675 else case e in #(
7676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678 int i;
7679 _ACEOF
7680 if ac_fn_c_try_compile "$LINENO"
7681 then :
7682 xorg_cv_cc_flag_unknown_warning_option=yes
7683 else case e in #(
7684 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7685 esac
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7688 esac
7689 fi
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7691 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7693 CFLAGS="$xorg_testset_save_CFLAGS"
7694 fi
7695
7696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7699 fi
7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7702 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7703 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7704 then :
7705 printf %s "(cached) " >&6
7706 else case e in #(
7707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 int i;
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"
7712 then :
7713 xorg_cv_cc_flag_unused_command_line_argument=yes
7714 else case e in #(
7715 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7716 esac
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7719 esac
7720 fi
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7722 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7724 CFLAGS="$xorg_testset_save_CFLAGS"
7725 fi
7726
7727 found="no"
7728
7729 if test $found = "no" ; then
7730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7732 fi
7733
7734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736 fi
7737
7738 CFLAGS="$CFLAGS -Werror=main"
7739
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7741 printf %s "checking if $CC supports -Werror=main... " >&6; }
7742 cacheid=xorg_cv_cc_flag__Werror_main
7743 if eval test \${$cacheid+y}
7744 then :
7745 printf %s "(cached) " >&6
7746 else case e in #(
7747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749 int i;
7750 int
7751 main (void)
7752 {
7753
7754 ;
7755 return 0;
7756 }
7757 _ACEOF
7758 if ac_fn_c_try_link "$LINENO"
7759 then :
7760 eval $cacheid=yes
7761 else case e in #(
7762 e) eval $cacheid=no ;;
7763 esac
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7766 conftest$ac_exeext conftest.$ac_ext ;;
7767 esac
7768 fi
7769
7770
7771 CFLAGS="$xorg_testset_save_CFLAGS"
7772
7773 eval supported=\$$cacheid
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7775 printf "%s\n" "$supported" >&6; }
7776 if test "$supported" = "yes" ; then
7777 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7778 found="yes"
7779 fi
7780 fi
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796 xorg_testset_save_CFLAGS="$CFLAGS"
7797
7798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7801 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7802 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7803 then :
7804 printf %s "(cached) " >&6
7805 else case e in #(
7806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 int i;
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"
7811 then :
7812 xorg_cv_cc_flag_unknown_warning_option=yes
7813 else case e in #(
7814 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7815 esac
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7818 esac
7819 fi
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7821 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7823 CFLAGS="$xorg_testset_save_CFLAGS"
7824 fi
7825
7826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7829 fi
7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7832 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7833 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7834 then :
7835 printf %s "(cached) " >&6
7836 else case e in #(
7837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 int i;
7840 _ACEOF
7841 if ac_fn_c_try_compile "$LINENO"
7842 then :
7843 xorg_cv_cc_flag_unused_command_line_argument=yes
7844 else case e in #(
7845 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7846 esac
7847 fi
7848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7849 esac
7850 fi
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7852 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7854 CFLAGS="$xorg_testset_save_CFLAGS"
7855 fi
7856
7857 found="no"
7858
7859 if test $found = "no" ; then
7860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7862 fi
7863
7864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866 fi
7867
7868 CFLAGS="$CFLAGS -Werror=missing-braces"
7869
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7871 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7872 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7873 if eval test \${$cacheid+y}
7874 then :
7875 printf %s "(cached) " >&6
7876 else case e in #(
7877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879 int i;
7880 int
7881 main (void)
7882 {
7883
7884 ;
7885 return 0;
7886 }
7887 _ACEOF
7888 if ac_fn_c_try_link "$LINENO"
7889 then :
7890 eval $cacheid=yes
7891 else case e in #(
7892 e) eval $cacheid=no ;;
7893 esac
7894 fi
7895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7896 conftest$ac_exeext conftest.$ac_ext ;;
7897 esac
7898 fi
7899
7900
7901 CFLAGS="$xorg_testset_save_CFLAGS"
7902
7903 eval supported=\$$cacheid
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7905 printf "%s\n" "$supported" >&6; }
7906 if test "$supported" = "yes" ; then
7907 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7908 found="yes"
7909 fi
7910 fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 xorg_testset_save_CFLAGS="$CFLAGS"
7927
7928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7933 then :
7934 printf %s "(cached) " >&6
7935 else case e in #(
7936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 int i;
7939 _ACEOF
7940 if ac_fn_c_try_compile "$LINENO"
7941 then :
7942 xorg_cv_cc_flag_unknown_warning_option=yes
7943 else case e in #(
7944 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7945 esac
7946 fi
7947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7948 esac
7949 fi
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7951 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7953 CFLAGS="$xorg_testset_save_CFLAGS"
7954 fi
7955
7956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959 fi
7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7962 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7963 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7964 then :
7965 printf %s "(cached) " >&6
7966 else case e in #(
7967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 int i;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"
7972 then :
7973 xorg_cv_cc_flag_unused_command_line_argument=yes
7974 else case e in #(
7975 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7976 esac
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7979 esac
7980 fi
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7982 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7984 CFLAGS="$xorg_testset_save_CFLAGS"
7985 fi
7986
7987 found="no"
7988
7989 if test $found = "no" ; then
7990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7992 fi
7993
7994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7996 fi
7997
7998 CFLAGS="$CFLAGS -Werror=sequence-point"
7999
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8001 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8002 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8003 if eval test \${$cacheid+y}
8004 then :
8005 printf %s "(cached) " >&6
8006 else case e in #(
8007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 int i;
8010 int
8011 main (void)
8012 {
8013
8014 ;
8015 return 0;
8016 }
8017 _ACEOF
8018 if ac_fn_c_try_link "$LINENO"
8019 then :
8020 eval $cacheid=yes
8021 else case e in #(
8022 e) eval $cacheid=no ;;
8023 esac
8024 fi
8025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8026 conftest$ac_exeext conftest.$ac_ext ;;
8027 esac
8028 fi
8029
8030
8031 CFLAGS="$xorg_testset_save_CFLAGS"
8032
8033 eval supported=\$$cacheid
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8035 printf "%s\n" "$supported" >&6; }
8036 if test "$supported" = "yes" ; then
8037 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8038 found="yes"
8039 fi
8040 fi
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056 xorg_testset_save_CFLAGS="$CFLAGS"
8057
8058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8061 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8062 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8063 then :
8064 printf %s "(cached) " >&6
8065 else case e in #(
8066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 int i;
8069 _ACEOF
8070 if ac_fn_c_try_compile "$LINENO"
8071 then :
8072 xorg_cv_cc_flag_unknown_warning_option=yes
8073 else case e in #(
8074 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8075 esac
8076 fi
8077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8078 esac
8079 fi
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8081 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8083 CFLAGS="$xorg_testset_save_CFLAGS"
8084 fi
8085
8086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8089 fi
8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8092 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8093 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8094 then :
8095 printf %s "(cached) " >&6
8096 else case e in #(
8097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 int i;
8100 _ACEOF
8101 if ac_fn_c_try_compile "$LINENO"
8102 then :
8103 xorg_cv_cc_flag_unused_command_line_argument=yes
8104 else case e in #(
8105 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8106 esac
8107 fi
8108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8109 esac
8110 fi
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8112 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8114 CFLAGS="$xorg_testset_save_CFLAGS"
8115 fi
8116
8117 found="no"
8118
8119 if test $found = "no" ; then
8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8122 fi
8123
8124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8126 fi
8127
8128 CFLAGS="$CFLAGS -Werror=return-type"
8129
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8131 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8132 cacheid=xorg_cv_cc_flag__Werror_return_type
8133 if eval test \${$cacheid+y}
8134 then :
8135 printf %s "(cached) " >&6
8136 else case e in #(
8137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8139 int i;
8140 int
8141 main (void)
8142 {
8143
8144 ;
8145 return 0;
8146 }
8147 _ACEOF
8148 if ac_fn_c_try_link "$LINENO"
8149 then :
8150 eval $cacheid=yes
8151 else case e in #(
8152 e) eval $cacheid=no ;;
8153 esac
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8156 conftest$ac_exeext conftest.$ac_ext ;;
8157 esac
8158 fi
8159
8160
8161 CFLAGS="$xorg_testset_save_CFLAGS"
8162
8163 eval supported=\$$cacheid
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8165 printf "%s\n" "$supported" >&6; }
8166 if test "$supported" = "yes" ; then
8167 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8168 found="yes"
8169 fi
8170 fi
8171
8172 if test $found = "no" ; then
8173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8175 fi
8176
8177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8179 fi
8180
8181 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8182
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8184 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8185 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8186 if eval test \${$cacheid+y}
8187 then :
8188 printf %s "(cached) " >&6
8189 else case e in #(
8190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 int i;
8193 int
8194 main (void)
8195 {
8196
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_link "$LINENO"
8202 then :
8203 eval $cacheid=yes
8204 else case e in #(
8205 e) eval $cacheid=no ;;
8206 esac
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8209 conftest$ac_exeext conftest.$ac_ext ;;
8210 esac
8211 fi
8212
8213
8214 CFLAGS="$xorg_testset_save_CFLAGS"
8215
8216 eval supported=\$$cacheid
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8218 printf "%s\n" "$supported" >&6; }
8219 if test "$supported" = "yes" ; then
8220 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8221 found="yes"
8222 fi
8223 fi
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239 xorg_testset_save_CFLAGS="$CFLAGS"
8240
8241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8245 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8246 then :
8247 printf %s "(cached) " >&6
8248 else case e in #(
8249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251 int i;
8252 _ACEOF
8253 if ac_fn_c_try_compile "$LINENO"
8254 then :
8255 xorg_cv_cc_flag_unknown_warning_option=yes
8256 else case e in #(
8257 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8258 esac
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8261 esac
8262 fi
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8266 CFLAGS="$xorg_testset_save_CFLAGS"
8267 fi
8268
8269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272 fi
8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8277 then :
8278 printf %s "(cached) " >&6
8279 else case e in #(
8280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8282 int i;
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"
8285 then :
8286 xorg_cv_cc_flag_unused_command_line_argument=yes
8287 else case e in #(
8288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8289 esac
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8292 esac
8293 fi
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8297 CFLAGS="$xorg_testset_save_CFLAGS"
8298 fi
8299
8300 found="no"
8301
8302 if test $found = "no" ; then
8303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305 fi
8306
8307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8309 fi
8310
8311 CFLAGS="$CFLAGS -Werror=trigraphs"
8312
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8314 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8315 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8316 if eval test \${$cacheid+y}
8317 then :
8318 printf %s "(cached) " >&6
8319 else case e in #(
8320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 int i;
8323 int
8324 main (void)
8325 {
8326
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_c_try_link "$LINENO"
8332 then :
8333 eval $cacheid=yes
8334 else case e in #(
8335 e) eval $cacheid=no ;;
8336 esac
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8339 conftest$ac_exeext conftest.$ac_ext ;;
8340 esac
8341 fi
8342
8343
8344 CFLAGS="$xorg_testset_save_CFLAGS"
8345
8346 eval supported=\$$cacheid
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8348 printf "%s\n" "$supported" >&6; }
8349 if test "$supported" = "yes" ; then
8350 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8351 found="yes"
8352 fi
8353 fi
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369 xorg_testset_save_CFLAGS="$CFLAGS"
8370
8371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8375 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8376 then :
8377 printf %s "(cached) " >&6
8378 else case e in #(
8379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8381 int i;
8382 _ACEOF
8383 if ac_fn_c_try_compile "$LINENO"
8384 then :
8385 xorg_cv_cc_flag_unknown_warning_option=yes
8386 else case e in #(
8387 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8388 esac
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8391 esac
8392 fi
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8396 CFLAGS="$xorg_testset_save_CFLAGS"
8397 fi
8398
8399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8402 fi
8403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8407 then :
8408 printf %s "(cached) " >&6
8409 else case e in #(
8410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 int i;
8413 _ACEOF
8414 if ac_fn_c_try_compile "$LINENO"
8415 then :
8416 xorg_cv_cc_flag_unused_command_line_argument=yes
8417 else case e in #(
8418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8419 esac
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8422 esac
8423 fi
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8427 CFLAGS="$xorg_testset_save_CFLAGS"
8428 fi
8429
8430 found="no"
8431
8432 if test $found = "no" ; then
8433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8435 fi
8436
8437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8439 fi
8440
8441 CFLAGS="$CFLAGS -Werror=array-bounds"
8442
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8444 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8445 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8446 if eval test \${$cacheid+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else case e in #(
8450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 int i;
8453 int
8454 main (void)
8455 {
8456
8457 ;
8458 return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_link "$LINENO"
8462 then :
8463 eval $cacheid=yes
8464 else case e in #(
8465 e) eval $cacheid=no ;;
8466 esac
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8469 conftest$ac_exeext conftest.$ac_ext ;;
8470 esac
8471 fi
8472
8473
8474 CFLAGS="$xorg_testset_save_CFLAGS"
8475
8476 eval supported=\$$cacheid
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8478 printf "%s\n" "$supported" >&6; }
8479 if test "$supported" = "yes" ; then
8480 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8481 found="yes"
8482 fi
8483 fi
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499 xorg_testset_save_CFLAGS="$CFLAGS"
8500
8501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8506 then :
8507 printf %s "(cached) " >&6
8508 else case e in #(
8509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 int i;
8512 _ACEOF
8513 if ac_fn_c_try_compile "$LINENO"
8514 then :
8515 xorg_cv_cc_flag_unknown_warning_option=yes
8516 else case e in #(
8517 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8518 esac
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8521 esac
8522 fi
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8526 CFLAGS="$xorg_testset_save_CFLAGS"
8527 fi
8528
8529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532 fi
8533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8537 then :
8538 printf %s "(cached) " >&6
8539 else case e in #(
8540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 int i;
8543 _ACEOF
8544 if ac_fn_c_try_compile "$LINENO"
8545 then :
8546 xorg_cv_cc_flag_unused_command_line_argument=yes
8547 else case e in #(
8548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8549 esac
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8552 esac
8553 fi
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8555 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8557 CFLAGS="$xorg_testset_save_CFLAGS"
8558 fi
8559
8560 found="no"
8561
8562 if test $found = "no" ; then
8563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8565 fi
8566
8567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8569 fi
8570
8571 CFLAGS="$CFLAGS -Werror=write-strings"
8572
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8574 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8575 cacheid=xorg_cv_cc_flag__Werror_write_strings
8576 if eval test \${$cacheid+y}
8577 then :
8578 printf %s "(cached) " >&6
8579 else case e in #(
8580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 int i;
8583 int
8584 main (void)
8585 {
8586
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 if ac_fn_c_try_link "$LINENO"
8592 then :
8593 eval $cacheid=yes
8594 else case e in #(
8595 e) eval $cacheid=no ;;
8596 esac
8597 fi
8598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8599 conftest$ac_exeext conftest.$ac_ext ;;
8600 esac
8601 fi
8602
8603
8604 CFLAGS="$xorg_testset_save_CFLAGS"
8605
8606 eval supported=\$$cacheid
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8608 printf "%s\n" "$supported" >&6; }
8609 if test "$supported" = "yes" ; then
8610 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8611 found="yes"
8612 fi
8613 fi
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629 xorg_testset_save_CFLAGS="$CFLAGS"
8630
8631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8635 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8636 then :
8637 printf %s "(cached) " >&6
8638 else case e in #(
8639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 int i;
8642 _ACEOF
8643 if ac_fn_c_try_compile "$LINENO"
8644 then :
8645 xorg_cv_cc_flag_unknown_warning_option=yes
8646 else case e in #(
8647 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8648 esac
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8651 esac
8652 fi
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8654 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8656 CFLAGS="$xorg_testset_save_CFLAGS"
8657 fi
8658
8659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 fi
8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8667 then :
8668 printf %s "(cached) " >&6
8669 else case e in #(
8670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 int i;
8673 _ACEOF
8674 if ac_fn_c_try_compile "$LINENO"
8675 then :
8676 xorg_cv_cc_flag_unused_command_line_argument=yes
8677 else case e in #(
8678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8679 esac
8680 fi
8681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8682 esac
8683 fi
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8687 CFLAGS="$xorg_testset_save_CFLAGS"
8688 fi
8689
8690 found="no"
8691
8692 if test $found = "no" ; then
8693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8695 fi
8696
8697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8699 fi
8700
8701 CFLAGS="$CFLAGS -Werror=address"
8702
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8704 printf %s "checking if $CC supports -Werror=address... " >&6; }
8705 cacheid=xorg_cv_cc_flag__Werror_address
8706 if eval test \${$cacheid+y}
8707 then :
8708 printf %s "(cached) " >&6
8709 else case e in #(
8710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8712 int i;
8713 int
8714 main (void)
8715 {
8716
8717 ;
8718 return 0;
8719 }
8720 _ACEOF
8721 if ac_fn_c_try_link "$LINENO"
8722 then :
8723 eval $cacheid=yes
8724 else case e in #(
8725 e) eval $cacheid=no ;;
8726 esac
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8729 conftest$ac_exeext conftest.$ac_ext ;;
8730 esac
8731 fi
8732
8733
8734 CFLAGS="$xorg_testset_save_CFLAGS"
8735
8736 eval supported=\$$cacheid
8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8738 printf "%s\n" "$supported" >&6; }
8739 if test "$supported" = "yes" ; then
8740 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8741 found="yes"
8742 fi
8743 fi
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759 xorg_testset_save_CFLAGS="$CFLAGS"
8760
8761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8764 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8765 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8766 then :
8767 printf %s "(cached) " >&6
8768 else case e in #(
8769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int i;
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"
8774 then :
8775 xorg_cv_cc_flag_unknown_warning_option=yes
8776 else case e in #(
8777 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8778 esac
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8781 esac
8782 fi
8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8784 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8786 CFLAGS="$xorg_testset_save_CFLAGS"
8787 fi
8788
8789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792 fi
8793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8795 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8796 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8797 then :
8798 printf %s "(cached) " >&6
8799 else case e in #(
8800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 int i;
8803 _ACEOF
8804 if ac_fn_c_try_compile "$LINENO"
8805 then :
8806 xorg_cv_cc_flag_unused_command_line_argument=yes
8807 else case e in #(
8808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8809 esac
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8812 esac
8813 fi
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8815 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8817 CFLAGS="$xorg_testset_save_CFLAGS"
8818 fi
8819
8820 found="no"
8821
8822 if test $found = "no" ; then
8823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8825 fi
8826
8827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8829 fi
8830
8831 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8832
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8834 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8835 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8836 if eval test \${$cacheid+y}
8837 then :
8838 printf %s "(cached) " >&6
8839 else case e in #(
8840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 int i;
8843 int
8844 main (void)
8845 {
8846
8847 ;
8848 return 0;
8849 }
8850 _ACEOF
8851 if ac_fn_c_try_link "$LINENO"
8852 then :
8853 eval $cacheid=yes
8854 else case e in #(
8855 e) eval $cacheid=no ;;
8856 esac
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8859 conftest$ac_exeext conftest.$ac_ext ;;
8860 esac
8861 fi
8862
8863
8864 CFLAGS="$xorg_testset_save_CFLAGS"
8865
8866 eval supported=\$$cacheid
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8868 printf "%s\n" "$supported" >&6; }
8869 if test "$supported" = "yes" ; then
8870 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8871 found="yes"
8872 fi
8873 fi
8874
8875 if test $found = "no" ; then
8876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8878 fi
8879
8880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882 fi
8883
8884 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8885
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8887 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8888 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8889 if eval test \${$cacheid+y}
8890 then :
8891 printf %s "(cached) " >&6
8892 else case e in #(
8893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 int i;
8896 int
8897 main (void)
8898 {
8899
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 if ac_fn_c_try_link "$LINENO"
8905 then :
8906 eval $cacheid=yes
8907 else case e in #(
8908 e) eval $cacheid=no ;;
8909 esac
8910 fi
8911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8912 conftest$ac_exeext conftest.$ac_ext ;;
8913 esac
8914 fi
8915
8916
8917 CFLAGS="$xorg_testset_save_CFLAGS"
8918
8919 eval supported=\$$cacheid
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8921 printf "%s\n" "$supported" >&6; }
8922 if test "$supported" = "yes" ; then
8923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8924 found="yes"
8925 fi
8926 fi
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942 xorg_testset_save_CFLAGS="$CFLAGS"
8943
8944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8948 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8949 then :
8950 printf %s "(cached) " >&6
8951 else case e in #(
8952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 int i;
8955 _ACEOF
8956 if ac_fn_c_try_compile "$LINENO"
8957 then :
8958 xorg_cv_cc_flag_unknown_warning_option=yes
8959 else case e in #(
8960 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8961 esac
8962 fi
8963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8964 esac
8965 fi
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8969 CFLAGS="$xorg_testset_save_CFLAGS"
8970 fi
8971
8972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975 fi
8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8980 then :
8981 printf %s "(cached) " >&6
8982 else case e in #(
8983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 int i;
8986 _ACEOF
8987 if ac_fn_c_try_compile "$LINENO"
8988 then :
8989 xorg_cv_cc_flag_unused_command_line_argument=yes
8990 else case e in #(
8991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8992 esac
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8995 esac
8996 fi
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8998 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9000 CFLAGS="$xorg_testset_save_CFLAGS"
9001 fi
9002
9003 found="no"
9004
9005 if test $found = "no" ; then
9006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9008 fi
9009
9010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9012 fi
9013
9014 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9015
9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9017 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9018 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9019 if eval test \${$cacheid+y}
9020 then :
9021 printf %s "(cached) " >&6
9022 else case e in #(
9023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025 int i;
9026 int
9027 main (void)
9028 {
9029
9030 ;
9031 return 0;
9032 }
9033 _ACEOF
9034 if ac_fn_c_try_link "$LINENO"
9035 then :
9036 eval $cacheid=yes
9037 else case e in #(
9038 e) eval $cacheid=no ;;
9039 esac
9040 fi
9041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9042 conftest$ac_exeext conftest.$ac_ext ;;
9043 esac
9044 fi
9045
9046
9047 CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049 eval supported=\$$cacheid
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051 printf "%s\n" "$supported" >&6; }
9052 if test "$supported" = "yes" ; then
9053 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9054 found="yes"
9055 fi
9056 fi
9057
9058 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9059 else
9060 { 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
9061 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;}
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075 xorg_testset_save_CFLAGS="$CFLAGS"
9076
9077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9081 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9082 then :
9083 printf %s "(cached) " >&6
9084 else case e in #(
9085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 int i;
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"
9090 then :
9091 xorg_cv_cc_flag_unknown_warning_option=yes
9092 else case e in #(
9093 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9094 esac
9095 fi
9096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9097 esac
9098 fi
9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103 fi
9104
9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 fi
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9113 then :
9114 printf %s "(cached) " >&6
9115 else case e in #(
9116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 int i;
9119 _ACEOF
9120 if ac_fn_c_try_compile "$LINENO"
9121 then :
9122 xorg_cv_cc_flag_unused_command_line_argument=yes
9123 else case e in #(
9124 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9125 esac
9126 fi
9127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9128 esac
9129 fi
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9131 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9133 CFLAGS="$xorg_testset_save_CFLAGS"
9134 fi
9135
9136 found="no"
9137
9138 if test $found = "no" ; then
9139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9141 fi
9142
9143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9145 fi
9146
9147 CFLAGS="$CFLAGS -Wimplicit"
9148
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9150 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9151 cacheid=xorg_cv_cc_flag__Wimplicit
9152 if eval test \${$cacheid+y}
9153 then :
9154 printf %s "(cached) " >&6
9155 else case e in #(
9156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 int i;
9159 int
9160 main (void)
9161 {
9162
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 if ac_fn_c_try_link "$LINENO"
9168 then :
9169 eval $cacheid=yes
9170 else case e in #(
9171 e) eval $cacheid=no ;;
9172 esac
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9175 conftest$ac_exeext conftest.$ac_ext ;;
9176 esac
9177 fi
9178
9179
9180 CFLAGS="$xorg_testset_save_CFLAGS"
9181
9182 eval supported=\$$cacheid
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9184 printf "%s\n" "$supported" >&6; }
9185 if test "$supported" = "yes" ; then
9186 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9187 found="yes"
9188 fi
9189 fi
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205 xorg_testset_save_CFLAGS="$CFLAGS"
9206
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9210 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9211 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9212 then :
9213 printf %s "(cached) " >&6
9214 else case e in #(
9215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217 int i;
9218 _ACEOF
9219 if ac_fn_c_try_compile "$LINENO"
9220 then :
9221 xorg_cv_cc_flag_unknown_warning_option=yes
9222 else case e in #(
9223 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9224 esac
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9227 esac
9228 fi
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9232 CFLAGS="$xorg_testset_save_CFLAGS"
9233 fi
9234
9235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9238 fi
9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9243 then :
9244 printf %s "(cached) " >&6
9245 else case e in #(
9246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 int i;
9249 _ACEOF
9250 if ac_fn_c_try_compile "$LINENO"
9251 then :
9252 xorg_cv_cc_flag_unused_command_line_argument=yes
9253 else case e in #(
9254 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9255 esac
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9258 esac
9259 fi
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9263 CFLAGS="$xorg_testset_save_CFLAGS"
9264 fi
9265
9266 found="no"
9267
9268 if test $found = "no" ; then
9269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9271 fi
9272
9273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9275 fi
9276
9277 CFLAGS="$CFLAGS -Wnonnull"
9278
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9280 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9281 cacheid=xorg_cv_cc_flag__Wnonnull
9282 if eval test \${$cacheid+y}
9283 then :
9284 printf %s "(cached) " >&6
9285 else case e in #(
9286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 int i;
9289 int
9290 main (void)
9291 {
9292
9293 ;
9294 return 0;
9295 }
9296 _ACEOF
9297 if ac_fn_c_try_link "$LINENO"
9298 then :
9299 eval $cacheid=yes
9300 else case e in #(
9301 e) eval $cacheid=no ;;
9302 esac
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9305 conftest$ac_exeext conftest.$ac_ext ;;
9306 esac
9307 fi
9308
9309
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311
9312 eval supported=\$$cacheid
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9314 printf "%s\n" "$supported" >&6; }
9315 if test "$supported" = "yes" ; then
9316 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9317 found="yes"
9318 fi
9319 fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 xorg_testset_save_CFLAGS="$CFLAGS"
9336
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9341 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9342 then :
9343 printf %s "(cached) " >&6
9344 else case e in #(
9345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 int i;
9348 _ACEOF
9349 if ac_fn_c_try_compile "$LINENO"
9350 then :
9351 xorg_cv_cc_flag_unknown_warning_option=yes
9352 else case e in #(
9353 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9354 esac
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9357 esac
9358 fi
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9360 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9362 CFLAGS="$xorg_testset_save_CFLAGS"
9363 fi
9364
9365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368 fi
9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9373 then :
9374 printf %s "(cached) " >&6
9375 else case e in #(
9376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 int i;
9379 _ACEOF
9380 if ac_fn_c_try_compile "$LINENO"
9381 then :
9382 xorg_cv_cc_flag_unused_command_line_argument=yes
9383 else case e in #(
9384 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9385 esac
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9388 esac
9389 fi
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9391 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9393 CFLAGS="$xorg_testset_save_CFLAGS"
9394 fi
9395
9396 found="no"
9397
9398 if test $found = "no" ; then
9399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401 fi
9402
9403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9405 fi
9406
9407 CFLAGS="$CFLAGS -Winit-self"
9408
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9410 printf %s "checking if $CC supports -Winit-self... " >&6; }
9411 cacheid=xorg_cv_cc_flag__Winit_self
9412 if eval test \${$cacheid+y}
9413 then :
9414 printf %s "(cached) " >&6
9415 else case e in #(
9416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418 int i;
9419 int
9420 main (void)
9421 {
9422
9423 ;
9424 return 0;
9425 }
9426 _ACEOF
9427 if ac_fn_c_try_link "$LINENO"
9428 then :
9429 eval $cacheid=yes
9430 else case e in #(
9431 e) eval $cacheid=no ;;
9432 esac
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9435 conftest$ac_exeext conftest.$ac_ext ;;
9436 esac
9437 fi
9438
9439
9440 CFLAGS="$xorg_testset_save_CFLAGS"
9441
9442 eval supported=\$$cacheid
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9444 printf "%s\n" "$supported" >&6; }
9445 if test "$supported" = "yes" ; then
9446 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9447 found="yes"
9448 fi
9449 fi
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465 xorg_testset_save_CFLAGS="$CFLAGS"
9466
9467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9471 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9472 then :
9473 printf %s "(cached) " >&6
9474 else case e in #(
9475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 int i;
9478 _ACEOF
9479 if ac_fn_c_try_compile "$LINENO"
9480 then :
9481 xorg_cv_cc_flag_unknown_warning_option=yes
9482 else case e in #(
9483 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9484 esac
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9487 esac
9488 fi
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9490 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9492 CFLAGS="$xorg_testset_save_CFLAGS"
9493 fi
9494
9495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9498 fi
9499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9503 then :
9504 printf %s "(cached) " >&6
9505 else case e in #(
9506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508 int i;
9509 _ACEOF
9510 if ac_fn_c_try_compile "$LINENO"
9511 then :
9512 xorg_cv_cc_flag_unused_command_line_argument=yes
9513 else case e in #(
9514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9515 esac
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9518 esac
9519 fi
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9523 CFLAGS="$xorg_testset_save_CFLAGS"
9524 fi
9525
9526 found="no"
9527
9528 if test $found = "no" ; then
9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531 fi
9532
9533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9535 fi
9536
9537 CFLAGS="$CFLAGS -Wmain"
9538
9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9540 printf %s "checking if $CC supports -Wmain... " >&6; }
9541 cacheid=xorg_cv_cc_flag__Wmain
9542 if eval test \${$cacheid+y}
9543 then :
9544 printf %s "(cached) " >&6
9545 else case e in #(
9546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548 int i;
9549 int
9550 main (void)
9551 {
9552
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 if ac_fn_c_try_link "$LINENO"
9558 then :
9559 eval $cacheid=yes
9560 else case e in #(
9561 e) eval $cacheid=no ;;
9562 esac
9563 fi
9564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9565 conftest$ac_exeext conftest.$ac_ext ;;
9566 esac
9567 fi
9568
9569
9570 CFLAGS="$xorg_testset_save_CFLAGS"
9571
9572 eval supported=\$$cacheid
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9574 printf "%s\n" "$supported" >&6; }
9575 if test "$supported" = "yes" ; then
9576 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9577 found="yes"
9578 fi
9579 fi
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595 xorg_testset_save_CFLAGS="$CFLAGS"
9596
9597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9600 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9601 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9602 then :
9603 printf %s "(cached) " >&6
9604 else case e in #(
9605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9607 int i;
9608 _ACEOF
9609 if ac_fn_c_try_compile "$LINENO"
9610 then :
9611 xorg_cv_cc_flag_unknown_warning_option=yes
9612 else case e in #(
9613 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9614 esac
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9617 esac
9618 fi
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9622 CFLAGS="$xorg_testset_save_CFLAGS"
9623 fi
9624
9625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628 fi
9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9633 then :
9634 printf %s "(cached) " >&6
9635 else case e in #(
9636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 int i;
9639 _ACEOF
9640 if ac_fn_c_try_compile "$LINENO"
9641 then :
9642 xorg_cv_cc_flag_unused_command_line_argument=yes
9643 else case e in #(
9644 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9645 esac
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9648 esac
9649 fi
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9653 CFLAGS="$xorg_testset_save_CFLAGS"
9654 fi
9655
9656 found="no"
9657
9658 if test $found = "no" ; then
9659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9661 fi
9662
9663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9665 fi
9666
9667 CFLAGS="$CFLAGS -Wmissing-braces"
9668
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9670 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9671 cacheid=xorg_cv_cc_flag__Wmissing_braces
9672 if eval test \${$cacheid+y}
9673 then :
9674 printf %s "(cached) " >&6
9675 else case e in #(
9676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 int i;
9679 int
9680 main (void)
9681 {
9682
9683 ;
9684 return 0;
9685 }
9686 _ACEOF
9687 if ac_fn_c_try_link "$LINENO"
9688 then :
9689 eval $cacheid=yes
9690 else case e in #(
9691 e) eval $cacheid=no ;;
9692 esac
9693 fi
9694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9695 conftest$ac_exeext conftest.$ac_ext ;;
9696 esac
9697 fi
9698
9699
9700 CFLAGS="$xorg_testset_save_CFLAGS"
9701
9702 eval supported=\$$cacheid
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9704 printf "%s\n" "$supported" >&6; }
9705 if test "$supported" = "yes" ; then
9706 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9707 found="yes"
9708 fi
9709 fi
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725 xorg_testset_save_CFLAGS="$CFLAGS"
9726
9727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9730 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9731 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9732 then :
9733 printf %s "(cached) " >&6
9734 else case e in #(
9735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 int i;
9738 _ACEOF
9739 if ac_fn_c_try_compile "$LINENO"
9740 then :
9741 xorg_cv_cc_flag_unknown_warning_option=yes
9742 else case e in #(
9743 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9744 esac
9745 fi
9746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9747 esac
9748 fi
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9750 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9752 CFLAGS="$xorg_testset_save_CFLAGS"
9753 fi
9754
9755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758 fi
9759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9761 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9762 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9763 then :
9764 printf %s "(cached) " >&6
9765 else case e in #(
9766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768 int i;
9769 _ACEOF
9770 if ac_fn_c_try_compile "$LINENO"
9771 then :
9772 xorg_cv_cc_flag_unused_command_line_argument=yes
9773 else case e in #(
9774 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9775 esac
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9778 esac
9779 fi
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9781 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9783 CFLAGS="$xorg_testset_save_CFLAGS"
9784 fi
9785
9786 found="no"
9787
9788 if test $found = "no" ; then
9789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9791 fi
9792
9793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9795 fi
9796
9797 CFLAGS="$CFLAGS -Wsequence-point"
9798
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9800 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9801 cacheid=xorg_cv_cc_flag__Wsequence_point
9802 if eval test \${$cacheid+y}
9803 then :
9804 printf %s "(cached) " >&6
9805 else case e in #(
9806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9808 int i;
9809 int
9810 main (void)
9811 {
9812
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 if ac_fn_c_try_link "$LINENO"
9818 then :
9819 eval $cacheid=yes
9820 else case e in #(
9821 e) eval $cacheid=no ;;
9822 esac
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9825 conftest$ac_exeext conftest.$ac_ext ;;
9826 esac
9827 fi
9828
9829
9830 CFLAGS="$xorg_testset_save_CFLAGS"
9831
9832 eval supported=\$$cacheid
9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9834 printf "%s\n" "$supported" >&6; }
9835 if test "$supported" = "yes" ; then
9836 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9837 found="yes"
9838 fi
9839 fi
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855 xorg_testset_save_CFLAGS="$CFLAGS"
9856
9857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9861 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9862 then :
9863 printf %s "(cached) " >&6
9864 else case e in #(
9865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9867 int i;
9868 _ACEOF
9869 if ac_fn_c_try_compile "$LINENO"
9870 then :
9871 xorg_cv_cc_flag_unknown_warning_option=yes
9872 else case e in #(
9873 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9874 esac
9875 fi
9876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9877 esac
9878 fi
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9880 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9882 CFLAGS="$xorg_testset_save_CFLAGS"
9883 fi
9884
9885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888 fi
9889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9891 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9892 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9893 then :
9894 printf %s "(cached) " >&6
9895 else case e in #(
9896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 int i;
9899 _ACEOF
9900 if ac_fn_c_try_compile "$LINENO"
9901 then :
9902 xorg_cv_cc_flag_unused_command_line_argument=yes
9903 else case e in #(
9904 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9905 esac
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9908 esac
9909 fi
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9911 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9913 CFLAGS="$xorg_testset_save_CFLAGS"
9914 fi
9915
9916 found="no"
9917
9918 if test $found = "no" ; then
9919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921 fi
9922
9923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9925 fi
9926
9927 CFLAGS="$CFLAGS -Wreturn-type"
9928
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9930 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9931 cacheid=xorg_cv_cc_flag__Wreturn_type
9932 if eval test \${$cacheid+y}
9933 then :
9934 printf %s "(cached) " >&6
9935 else case e in #(
9936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9938 int i;
9939 int
9940 main (void)
9941 {
9942
9943 ;
9944 return 0;
9945 }
9946 _ACEOF
9947 if ac_fn_c_try_link "$LINENO"
9948 then :
9949 eval $cacheid=yes
9950 else case e in #(
9951 e) eval $cacheid=no ;;
9952 esac
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9955 conftest$ac_exeext conftest.$ac_ext ;;
9956 esac
9957 fi
9958
9959
9960 CFLAGS="$xorg_testset_save_CFLAGS"
9961
9962 eval supported=\$$cacheid
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9964 printf "%s\n" "$supported" >&6; }
9965 if test "$supported" = "yes" ; then
9966 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9967 found="yes"
9968 fi
9969 fi
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985 xorg_testset_save_CFLAGS="$CFLAGS"
9986
9987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9992 then :
9993 printf %s "(cached) " >&6
9994 else case e in #(
9995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
9997 int i;
9998 _ACEOF
9999 if ac_fn_c_try_compile "$LINENO"
10000 then :
10001 xorg_cv_cc_flag_unknown_warning_option=yes
10002 else case e in #(
10003 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10004 esac
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10007 esac
10008 fi
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10010 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10012 CFLAGS="$xorg_testset_save_CFLAGS"
10013 fi
10014
10015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018 fi
10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10021 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10022 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10023 then :
10024 printf %s "(cached) " >&6
10025 else case e in #(
10026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 int i;
10029 _ACEOF
10030 if ac_fn_c_try_compile "$LINENO"
10031 then :
10032 xorg_cv_cc_flag_unused_command_line_argument=yes
10033 else case e in #(
10034 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10035 esac
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10038 esac
10039 fi
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10041 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10043 CFLAGS="$xorg_testset_save_CFLAGS"
10044 fi
10045
10046 found="no"
10047
10048 if test $found = "no" ; then
10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10051 fi
10052
10053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10055 fi
10056
10057 CFLAGS="$CFLAGS -Wtrigraphs"
10058
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10060 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10061 cacheid=xorg_cv_cc_flag__Wtrigraphs
10062 if eval test \${$cacheid+y}
10063 then :
10064 printf %s "(cached) " >&6
10065 else case e in #(
10066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 int i;
10069 int
10070 main (void)
10071 {
10072
10073 ;
10074 return 0;
10075 }
10076 _ACEOF
10077 if ac_fn_c_try_link "$LINENO"
10078 then :
10079 eval $cacheid=yes
10080 else case e in #(
10081 e) eval $cacheid=no ;;
10082 esac
10083 fi
10084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10085 conftest$ac_exeext conftest.$ac_ext ;;
10086 esac
10087 fi
10088
10089
10090 CFLAGS="$xorg_testset_save_CFLAGS"
10091
10092 eval supported=\$$cacheid
10093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10094 printf "%s\n" "$supported" >&6; }
10095 if test "$supported" = "yes" ; then
10096 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10097 found="yes"
10098 fi
10099 fi
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115 xorg_testset_save_CFLAGS="$CFLAGS"
10116
10117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10120 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10121 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10122 then :
10123 printf %s "(cached) " >&6
10124 else case e in #(
10125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 int i;
10128 _ACEOF
10129 if ac_fn_c_try_compile "$LINENO"
10130 then :
10131 xorg_cv_cc_flag_unknown_warning_option=yes
10132 else case e in #(
10133 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10134 esac
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10137 esac
10138 fi
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10140 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10142 CFLAGS="$xorg_testset_save_CFLAGS"
10143 fi
10144
10145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148 fi
10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10151 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10152 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10153 then :
10154 printf %s "(cached) " >&6
10155 else case e in #(
10156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 int i;
10159 _ACEOF
10160 if ac_fn_c_try_compile "$LINENO"
10161 then :
10162 xorg_cv_cc_flag_unused_command_line_argument=yes
10163 else case e in #(
10164 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10165 esac
10166 fi
10167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10168 esac
10169 fi
10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10171 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10173 CFLAGS="$xorg_testset_save_CFLAGS"
10174 fi
10175
10176 found="no"
10177
10178 if test $found = "no" ; then
10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10181 fi
10182
10183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10185 fi
10186
10187 CFLAGS="$CFLAGS -Warray-bounds"
10188
10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10190 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10191 cacheid=xorg_cv_cc_flag__Warray_bounds
10192 if eval test \${$cacheid+y}
10193 then :
10194 printf %s "(cached) " >&6
10195 else case e in #(
10196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 int i;
10199 int
10200 main (void)
10201 {
10202
10203 ;
10204 return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"
10208 then :
10209 eval $cacheid=yes
10210 else case e in #(
10211 e) eval $cacheid=no ;;
10212 esac
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10215 conftest$ac_exeext conftest.$ac_ext ;;
10216 esac
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 -Warray-bounds"
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 case e in #(
10255 e) 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 case e in #(
10263 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10264 esac
10265 fi
10266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10267 esac
10268 fi
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10270 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10272 CFLAGS="$xorg_testset_save_CFLAGS"
10273 fi
10274
10275 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10278 fi
10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10281 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10282 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10283 then :
10284 printf %s "(cached) " >&6
10285 else case e in #(
10286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 int i;
10289 _ACEOF
10290 if ac_fn_c_try_compile "$LINENO"
10291 then :
10292 xorg_cv_cc_flag_unused_command_line_argument=yes
10293 else case e in #(
10294 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10295 esac
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10298 esac
10299 fi
10300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10301 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10303 CFLAGS="$xorg_testset_save_CFLAGS"
10304 fi
10305
10306 found="no"
10307
10308 if test $found = "no" ; then
10309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311 fi
10312
10313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10315 fi
10316
10317 CFLAGS="$CFLAGS -Wwrite-strings"
10318
10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10320 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10321 cacheid=xorg_cv_cc_flag__Wwrite_strings
10322 if eval test \${$cacheid+y}
10323 then :
10324 printf %s "(cached) " >&6
10325 else case e in #(
10326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10328 int i;
10329 int
10330 main (void)
10331 {
10332
10333 ;
10334 return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_link "$LINENO"
10338 then :
10339 eval $cacheid=yes
10340 else case e in #(
10341 e) eval $cacheid=no ;;
10342 esac
10343 fi
10344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10345 conftest$ac_exeext conftest.$ac_ext ;;
10346 esac
10347 fi
10348
10349
10350 CFLAGS="$xorg_testset_save_CFLAGS"
10351
10352 eval supported=\$$cacheid
10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10354 printf "%s\n" "$supported" >&6; }
10355 if test "$supported" = "yes" ; then
10356 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10357 found="yes"
10358 fi
10359 fi
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375 xorg_testset_save_CFLAGS="$CFLAGS"
10376
10377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10381 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10382 then :
10383 printf %s "(cached) " >&6
10384 else case e in #(
10385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 int i;
10388 _ACEOF
10389 if ac_fn_c_try_compile "$LINENO"
10390 then :
10391 xorg_cv_cc_flag_unknown_warning_option=yes
10392 else case e in #(
10393 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10394 esac
10395 fi
10396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10397 esac
10398 fi
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10402 CFLAGS="$xorg_testset_save_CFLAGS"
10403 fi
10404
10405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408 fi
10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10413 then :
10414 printf %s "(cached) " >&6
10415 else case e in #(
10416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 int i;
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"
10421 then :
10422 xorg_cv_cc_flag_unused_command_line_argument=yes
10423 else case e in #(
10424 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10425 esac
10426 fi
10427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10428 esac
10429 fi
10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10431 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10433 CFLAGS="$xorg_testset_save_CFLAGS"
10434 fi
10435
10436 found="no"
10437
10438 if test $found = "no" ; then
10439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10441 fi
10442
10443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10445 fi
10446
10447 CFLAGS="$CFLAGS -Waddress"
10448
10449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10450 printf %s "checking if $CC supports -Waddress... " >&6; }
10451 cacheid=xorg_cv_cc_flag__Waddress
10452 if eval test \${$cacheid+y}
10453 then :
10454 printf %s "(cached) " >&6
10455 else case e in #(
10456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458 int i;
10459 int
10460 main (void)
10461 {
10462
10463 ;
10464 return 0;
10465 }
10466 _ACEOF
10467 if ac_fn_c_try_link "$LINENO"
10468 then :
10469 eval $cacheid=yes
10470 else case e in #(
10471 e) eval $cacheid=no ;;
10472 esac
10473 fi
10474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10475 conftest$ac_exeext conftest.$ac_ext ;;
10476 esac
10477 fi
10478
10479
10480 CFLAGS="$xorg_testset_save_CFLAGS"
10481
10482 eval supported=\$$cacheid
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10484 printf "%s\n" "$supported" >&6; }
10485 if test "$supported" = "yes" ; then
10486 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10487 found="yes"
10488 fi
10489 fi
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505 xorg_testset_save_CFLAGS="$CFLAGS"
10506
10507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10510 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10511 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10512 then :
10513 printf %s "(cached) " >&6
10514 else case e in #(
10515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517 int i;
10518 _ACEOF
10519 if ac_fn_c_try_compile "$LINENO"
10520 then :
10521 xorg_cv_cc_flag_unknown_warning_option=yes
10522 else case e in #(
10523 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10524 esac
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10527 esac
10528 fi
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10530 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10532 CFLAGS="$xorg_testset_save_CFLAGS"
10533 fi
10534
10535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10538 fi
10539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10541 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10542 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10543 then :
10544 printf %s "(cached) " >&6
10545 else case e in #(
10546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548 int i;
10549 _ACEOF
10550 if ac_fn_c_try_compile "$LINENO"
10551 then :
10552 xorg_cv_cc_flag_unused_command_line_argument=yes
10553 else case e in #(
10554 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10555 esac
10556 fi
10557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10558 esac
10559 fi
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10561 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10563 CFLAGS="$xorg_testset_save_CFLAGS"
10564 fi
10565
10566 found="no"
10567
10568 if test $found = "no" ; then
10569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10571 fi
10572
10573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10575 fi
10576
10577 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10578
10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10580 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10581 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10582 if eval test \${$cacheid+y}
10583 then :
10584 printf %s "(cached) " >&6
10585 else case e in #(
10586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588 int i;
10589 int
10590 main (void)
10591 {
10592
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 if ac_fn_c_try_link "$LINENO"
10598 then :
10599 eval $cacheid=yes
10600 else case e in #(
10601 e) eval $cacheid=no ;;
10602 esac
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10605 conftest$ac_exeext conftest.$ac_ext ;;
10606 esac
10607 fi
10608
10609
10610 CFLAGS="$xorg_testset_save_CFLAGS"
10611
10612 eval supported=\$$cacheid
10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10614 printf "%s\n" "$supported" >&6; }
10615 if test "$supported" = "yes" ; then
10616 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10617 found="yes"
10618 fi
10619 fi
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635 xorg_testset_save_CFLAGS="$CFLAGS"
10636
10637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10640 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10641 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10642 then :
10643 printf %s "(cached) " >&6
10644 else case e in #(
10645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 int i;
10648 _ACEOF
10649 if ac_fn_c_try_compile "$LINENO"
10650 then :
10651 xorg_cv_cc_flag_unknown_warning_option=yes
10652 else case e in #(
10653 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10654 esac
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10657 esac
10658 fi
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10660 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10662 CFLAGS="$xorg_testset_save_CFLAGS"
10663 fi
10664
10665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10668 fi
10669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10671 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10672 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10673 then :
10674 printf %s "(cached) " >&6
10675 else case e in #(
10676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678 int i;
10679 _ACEOF
10680 if ac_fn_c_try_compile "$LINENO"
10681 then :
10682 xorg_cv_cc_flag_unused_command_line_argument=yes
10683 else case e in #(
10684 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10685 esac
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10688 esac
10689 fi
10690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10691 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10693 CFLAGS="$xorg_testset_save_CFLAGS"
10694 fi
10695
10696 found="no"
10697
10698 if test $found = "no" ; then
10699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10701 fi
10702
10703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10705 fi
10706
10707 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10708
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10710 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10711 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10712 if eval test \${$cacheid+y}
10713 then :
10714 printf %s "(cached) " >&6
10715 else case e in #(
10716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 int i;
10719 int
10720 main (void)
10721 {
10722
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"
10728 then :
10729 eval $cacheid=yes
10730 else case e in #(
10731 e) eval $cacheid=no ;;
10732 esac
10733 fi
10734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10735 conftest$ac_exeext conftest.$ac_ext ;;
10736 esac
10737 fi
10738
10739
10740 CFLAGS="$xorg_testset_save_CFLAGS"
10741
10742 eval supported=\$$cacheid
10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10744 printf "%s\n" "$supported" >&6; }
10745 if test "$supported" = "yes" ; then
10746 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10747 found="yes"
10748 fi
10749 fi
10750
10751
10752 fi
10753
10754
10755
10756
10757
10758
10759
10760 CWARNFLAGS="$BASE_CFLAGS"
10761 if test "x$GCC" = xyes ; then
10762 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10763 fi
10764
10765
10766
10767
10768
10769
10770
10771
10772 # Check whether --enable-strict-compilation was given.
10773 if test ${enable_strict_compilation+y}
10774 then :
10775 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10776 else case e in #(
10777 e) STRICT_COMPILE=no ;;
10778 esac
10779 fi
10780
10781
10782
10783
10784
10785
10786 STRICT_CFLAGS=""
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800 xorg_testset_save_CFLAGS="$CFLAGS"
10801
10802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10805 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10806 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10807 then :
10808 printf %s "(cached) " >&6
10809 else case e in #(
10810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812 int i;
10813 _ACEOF
10814 if ac_fn_c_try_compile "$LINENO"
10815 then :
10816 xorg_cv_cc_flag_unknown_warning_option=yes
10817 else case e in #(
10818 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10819 esac
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10822 esac
10823 fi
10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10825 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10827 CFLAGS="$xorg_testset_save_CFLAGS"
10828 fi
10829
10830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10833 fi
10834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10838 then :
10839 printf %s "(cached) " >&6
10840 else case e in #(
10841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10843 int i;
10844 _ACEOF
10845 if ac_fn_c_try_compile "$LINENO"
10846 then :
10847 xorg_cv_cc_flag_unused_command_line_argument=yes
10848 else case e in #(
10849 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10850 esac
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10853 esac
10854 fi
10855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10856 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10858 CFLAGS="$xorg_testset_save_CFLAGS"
10859 fi
10860
10861 found="no"
10862
10863 if test $found = "no" ; then
10864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10866 fi
10867
10868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10870 fi
10871
10872 CFLAGS="$CFLAGS -pedantic"
10873
10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10875 printf %s "checking if $CC supports -pedantic... " >&6; }
10876 cacheid=xorg_cv_cc_flag__pedantic
10877 if eval test \${$cacheid+y}
10878 then :
10879 printf %s "(cached) " >&6
10880 else case e in #(
10881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 int i;
10884 int
10885 main (void)
10886 {
10887
10888 ;
10889 return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"
10893 then :
10894 eval $cacheid=yes
10895 else case e in #(
10896 e) eval $cacheid=no ;;
10897 esac
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10900 conftest$ac_exeext conftest.$ac_ext ;;
10901 esac
10902 fi
10903
10904
10905 CFLAGS="$xorg_testset_save_CFLAGS"
10906
10907 eval supported=\$$cacheid
10908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10909 printf "%s\n" "$supported" >&6; }
10910 if test "$supported" = "yes" ; then
10911 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10912 found="yes"
10913 fi
10914 fi
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930 xorg_testset_save_CFLAGS="$CFLAGS"
10931
10932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10937 then :
10938 printf %s "(cached) " >&6
10939 else case e in #(
10940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 int i;
10943 _ACEOF
10944 if ac_fn_c_try_compile "$LINENO"
10945 then :
10946 xorg_cv_cc_flag_unknown_warning_option=yes
10947 else case e in #(
10948 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10949 esac
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10952 esac
10953 fi
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10955 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10957 CFLAGS="$xorg_testset_save_CFLAGS"
10958 fi
10959
10960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10963 fi
10964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10966 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10967 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10968 then :
10969 printf %s "(cached) " >&6
10970 else case e in #(
10971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973 int i;
10974 _ACEOF
10975 if ac_fn_c_try_compile "$LINENO"
10976 then :
10977 xorg_cv_cc_flag_unused_command_line_argument=yes
10978 else case e in #(
10979 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10980 esac
10981 fi
10982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10983 esac
10984 fi
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10986 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10988 CFLAGS="$xorg_testset_save_CFLAGS"
10989 fi
10990
10991 found="no"
10992
10993 if test $found = "no" ; then
10994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10996 fi
10997
10998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11000 fi
11001
11002 CFLAGS="$CFLAGS -Werror"
11003
11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11005 printf %s "checking if $CC supports -Werror... " >&6; }
11006 cacheid=xorg_cv_cc_flag__Werror
11007 if eval test \${$cacheid+y}
11008 then :
11009 printf %s "(cached) " >&6
11010 else case e in #(
11011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11013 int i;
11014 int
11015 main (void)
11016 {
11017
11018 ;
11019 return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"
11023 then :
11024 eval $cacheid=yes
11025 else case e in #(
11026 e) eval $cacheid=no ;;
11027 esac
11028 fi
11029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11030 conftest$ac_exeext conftest.$ac_ext ;;
11031 esac
11032 fi
11033
11034
11035 CFLAGS="$xorg_testset_save_CFLAGS"
11036
11037 eval supported=\$$cacheid
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11039 printf "%s\n" "$supported" >&6; }
11040 if test "$supported" = "yes" ; then
11041 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11042 found="yes"
11043 fi
11044 fi
11045
11046 if test $found = "no" ; then
11047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11049 fi
11050
11051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11053 fi
11054
11055 CFLAGS="$CFLAGS -errwarn"
11056
11057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11058 printf %s "checking if $CC supports -errwarn... " >&6; }
11059 cacheid=xorg_cv_cc_flag__errwarn
11060 if eval test \${$cacheid+y}
11061 then :
11062 printf %s "(cached) " >&6
11063 else case e in #(
11064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 int i;
11067 int
11068 main (void)
11069 {
11070
11071 ;
11072 return 0;
11073 }
11074 _ACEOF
11075 if ac_fn_c_try_link "$LINENO"
11076 then :
11077 eval $cacheid=yes
11078 else case e in #(
11079 e) eval $cacheid=no ;;
11080 esac
11081 fi
11082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11083 conftest$ac_exeext conftest.$ac_ext ;;
11084 esac
11085 fi
11086
11087
11088 CFLAGS="$xorg_testset_save_CFLAGS"
11089
11090 eval supported=\$$cacheid
11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11092 printf "%s\n" "$supported" >&6; }
11093 if test "$supported" = "yes" ; then
11094 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11095 found="yes"
11096 fi
11097 fi
11098
11099
11100
11101 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11102 # activate it with -Werror, so we add it here explicitly.
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116 xorg_testset_save_CFLAGS="$CFLAGS"
11117
11118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11121 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11122 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11123 then :
11124 printf %s "(cached) " >&6
11125 else case e in #(
11126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11128 int i;
11129 _ACEOF
11130 if ac_fn_c_try_compile "$LINENO"
11131 then :
11132 xorg_cv_cc_flag_unknown_warning_option=yes
11133 else case e in #(
11134 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11135 esac
11136 fi
11137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11138 esac
11139 fi
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11141 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11143 CFLAGS="$xorg_testset_save_CFLAGS"
11144 fi
11145
11146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11149 fi
11150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11152 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11153 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11154 then :
11155 printf %s "(cached) " >&6
11156 else case e in #(
11157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159 int i;
11160 _ACEOF
11161 if ac_fn_c_try_compile "$LINENO"
11162 then :
11163 xorg_cv_cc_flag_unused_command_line_argument=yes
11164 else case e in #(
11165 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11166 esac
11167 fi
11168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11169 esac
11170 fi
11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11172 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11174 CFLAGS="$xorg_testset_save_CFLAGS"
11175 fi
11176
11177 found="no"
11178
11179 if test $found = "no" ; then
11180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11182 fi
11183
11184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11186 fi
11187
11188 CFLAGS="$CFLAGS -Werror=attributes"
11189
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11191 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11192 cacheid=xorg_cv_cc_flag__Werror_attributes
11193 if eval test \${$cacheid+y}
11194 then :
11195 printf %s "(cached) " >&6
11196 else case e in #(
11197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199 int i;
11200 int
11201 main (void)
11202 {
11203
11204 ;
11205 return 0;
11206 }
11207 _ACEOF
11208 if ac_fn_c_try_link "$LINENO"
11209 then :
11210 eval $cacheid=yes
11211 else case e in #(
11212 e) eval $cacheid=no ;;
11213 esac
11214 fi
11215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11216 conftest$ac_exeext conftest.$ac_ext ;;
11217 esac
11218 fi
11219
11220
11221 CFLAGS="$xorg_testset_save_CFLAGS"
11222
11223 eval supported=\$$cacheid
11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11225 printf "%s\n" "$supported" >&6; }
11226 if test "$supported" = "yes" ; then
11227 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11228 found="yes"
11229 fi
11230 fi
11231
11232
11233
11234 if test "x$STRICT_COMPILE" = "xyes"; then
11235 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11236 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11237 fi
11238
11239
11240
11241
11242
11243
11244
11245
11246 cat >>confdefs.h <<_ACEOF
11247 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11248 _ACEOF
11249
11250 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11251 if test "x$PVM" = "x"; then
11252 PVM="0"
11253 fi
11254
11255 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11256
11257 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11258 if test "x$PVP" = "x"; then
11259 PVP="0"
11260 fi
11261
11262 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11263
11264
11265
11266 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11267 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11268 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11269 touch \$(top_srcdir)/ChangeLog; \
11270 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11271
11272
11273
11274
11275 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11276 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11277 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11278 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11279 touch \$(top_srcdir)/INSTALL; \
11280 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11281
11282
11283
11284
11285
11286
11287 case $host_os in
11288 solaris*)
11289 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11290 # check for a man page file found in later versions that use
11291 # traditional section numbers instead
11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11293 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11294 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11295 then :
11296 printf %s "(cached) " >&6
11297 else case e in #(
11298 e) test "$cross_compiling" = yes &&
11299 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11300 if test -r "/usr/share/man/man7/attributes.7"; then
11301 ac_cv_file__usr_share_man_man7_attributes_7=yes
11302 else
11303 ac_cv_file__usr_share_man_man7_attributes_7=no
11304 fi ;;
11305 esac
11306 fi
11307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11308 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11309 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11310 then :
11311 SYSV_MAN_SECTIONS=false
11312 else case e in #(
11313 e) SYSV_MAN_SECTIONS=true ;;
11314 esac
11315 fi
11316
11317 ;;
11318 *) SYSV_MAN_SECTIONS=false ;;
11319 esac
11320
11321 if test x$APP_MAN_SUFFIX = x ; then
11322 APP_MAN_SUFFIX=1
11323 fi
11324 if test x$APP_MAN_DIR = x ; then
11325 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11326 fi
11327
11328 if test x$LIB_MAN_SUFFIX = x ; then
11329 LIB_MAN_SUFFIX=3
11330 fi
11331 if test x$LIB_MAN_DIR = x ; then
11332 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11333 fi
11334
11335 if test x$FILE_MAN_SUFFIX = x ; then
11336 case $SYSV_MAN_SECTIONS in
11337 true) FILE_MAN_SUFFIX=4 ;;
11338 *) FILE_MAN_SUFFIX=5 ;;
11339 esac
11340 fi
11341 if test x$FILE_MAN_DIR = x ; then
11342 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11343 fi
11344
11345 if test x$MISC_MAN_SUFFIX = x ; then
11346 case $SYSV_MAN_SECTIONS in
11347 true) MISC_MAN_SUFFIX=5 ;;
11348 *) MISC_MAN_SUFFIX=7 ;;
11349 esac
11350 fi
11351 if test x$MISC_MAN_DIR = x ; then
11352 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11353 fi
11354
11355 if test x$DRIVER_MAN_SUFFIX = x ; then
11356 case $SYSV_MAN_SECTIONS in
11357 true) DRIVER_MAN_SUFFIX=7 ;;
11358 *) DRIVER_MAN_SUFFIX=4 ;;
11359 esac
11360 fi
11361 if test x$DRIVER_MAN_DIR = x ; then
11362 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11363 fi
11364
11365 if test x$ADMIN_MAN_SUFFIX = x ; then
11366 case $SYSV_MAN_SECTIONS in
11367 true) ADMIN_MAN_SUFFIX=1m ;;
11368 *) ADMIN_MAN_SUFFIX=8 ;;
11369 esac
11370 fi
11371 if test x$ADMIN_MAN_DIR = x ; then
11372 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11373 fi
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389 XORG_MAN_PAGE="X Version 11"
11390
11391 MAN_SUBSTS="\
11392 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11393 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11394 -e 's|__xservername__|Xorg|g' \
11395 -e 's|__xconfigfile__|xorg.conf|g' \
11396 -e 's|__projectroot__|\$(prefix)|g' \
11397 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11398 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11399 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11400 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11401 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11402 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11403 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11404
11405
11406
11407 # Check whether --enable-silent-rules was given.
11408 if test ${enable_silent_rules+y}
11409 then :
11410 enableval=$enable_silent_rules;
11411 fi
11412
11413 case $enable_silent_rules in # (((
11414 yes) AM_DEFAULT_VERBOSITY=0;;
11415 no) AM_DEFAULT_VERBOSITY=1;;
11416 *) AM_DEFAULT_VERBOSITY=0;;
11417 esac
11418 am_make=${MAKE-make}
11419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11420 printf %s "checking whether $am_make supports nested variables... " >&6; }
11421 if test ${am_cv_make_support_nested_variables+y}
11422 then :
11423 printf %s "(cached) " >&6
11424 else case e in #(
11425 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11426 BAR0=false
11427 BAR1=true
11428 V=1
11429 am__doit:
11430 @$(TRUE)
11431 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11432 am_cv_make_support_nested_variables=yes
11433 else
11434 am_cv_make_support_nested_variables=no
11435 fi ;;
11436 esac
11437 fi
11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11439 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11440 if test $am_cv_make_support_nested_variables = yes; then
11441 AM_V='$(V)'
11442 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11443 else
11444 AM_V=$AM_DEFAULT_VERBOSITY
11445 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11446 fi
11447 AM_BACKSLASH='\'
11448
11449
11450
11451
11452 # Checks for pkg-config packages
11453
11454 pkg_failed=no
11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPRES" >&5
11456 printf %s "checking for APPRES... " >&6; }
11457
11458 if test -n "$APPRES_CFLAGS"; then
11459 pkg_cv_APPRES_CFLAGS="$APPRES_CFLAGS"
11460 elif test -n "$PKG_CONFIG"; then
11461 if test -n "$PKG_CONFIG" && \
11462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xproto >= 7.0.17\""; } >&5
11463 ($PKG_CONFIG --exists --print-errors "x11 xt xproto >= 7.0.17") 2>&5
11464 ac_status=$?
11465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11466 test $ac_status = 0; }; then
11467 pkg_cv_APPRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xproto >= 7.0.17" 2>/dev/null`
11468 test "x$?" != "x0" && pkg_failed=yes
11469 else
11470 pkg_failed=yes
11471 fi
11472 else
11473 pkg_failed=untried
11474 fi
11475 if test -n "$APPRES_LIBS"; then
11476 pkg_cv_APPRES_LIBS="$APPRES_LIBS"
11477 elif test -n "$PKG_CONFIG"; then
11478 if test -n "$PKG_CONFIG" && \
11479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xproto >= 7.0.17\""; } >&5
11480 ($PKG_CONFIG --exists --print-errors "x11 xt xproto >= 7.0.17") 2>&5
11481 ac_status=$?
11482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11483 test $ac_status = 0; }; then
11484 pkg_cv_APPRES_LIBS=`$PKG_CONFIG --libs "x11 xt xproto >= 7.0.17" 2>/dev/null`
11485 test "x$?" != "x0" && pkg_failed=yes
11486 else
11487 pkg_failed=yes
11488 fi
11489 else
11490 pkg_failed=untried
11491 fi
11492
11493
11494
11495 if test $pkg_failed = yes; then
11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 printf "%s\n" "no" >&6; }
11498
11499 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11500 _pkg_short_errors_supported=yes
11501 else
11502 _pkg_short_errors_supported=no
11503 fi
11504 if test $_pkg_short_errors_supported = yes; then
11505 APPRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xproto >= 7.0.17" 2>&1`
11506 else
11507 APPRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xproto >= 7.0.17" 2>&1`
11508 fi
11509 # Put the nasty error message in config.log where it belongs
11510 echo "$APPRES_PKG_ERRORS" >&5
11511
11512 as_fn_error $? "Package requirements (x11 xt xproto >= 7.0.17) were not met:
11513
11514 $APPRES_PKG_ERRORS
11515
11516 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11517 installed software in a non-standard prefix.
11518
11519 Alternatively, you may set the environment variables APPRES_CFLAGS
11520 and APPRES_LIBS to avoid the need to call pkg-config.
11521 See the pkg-config man page for more details." "$LINENO" 5
11522 elif test $pkg_failed = untried; then
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 printf "%s\n" "no" >&6; }
11525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11526 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11527 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11528 is in your PATH or set the PKG_CONFIG environment variable to the full
11529 path to pkg-config.
11530
11531 Alternatively, you may set the environment variables APPRES_CFLAGS
11532 and APPRES_LIBS to avoid the need to call pkg-config.
11533 See the pkg-config man page for more details.
11534
11535 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11536 See 'config.log' for more details" "$LINENO" 5; }
11537 else
11538 APPRES_CFLAGS=$pkg_cv_APPRES_CFLAGS
11539 APPRES_LIBS=$pkg_cv_APPRES_LIBS
11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 printf "%s\n" "yes" >&6; }
11542
11543 fi
11544
11545 # Substitute config variables in man pages
11546 ac_config_files="$ac_config_files man/appres.1:man/appres.man"
11547
11548
11549 ac_config_files="$ac_config_files Makefile man/Makefile"
11550
11551 cat >confcache <<\_ACEOF
11552 # This file is a shell script that caches the results of configure
11553 # tests run on this system so they can be shared between configure
11554 # scripts and configure runs, see configure's option --config-cache.
11555 # It is not useful on other systems. If it contains results you don't
11556 # want to keep, you may remove or edit it.
11557 #
11558 # config.status only pays attention to the cache file if you give it
11559 # the --recheck option to rerun configure.
11560 #
11561 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11562 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11563 # following values.
11564
11565 _ACEOF
11566
11567 # The following way of writing the cache mishandles newlines in values,
11568 # but we know of no workaround that is simple, portable, and efficient.
11569 # So, we kill variables containing newlines.
11570 # Ultrix sh set writes to stderr and can't be redirected directly,
11571 # and sets the high bit in the cache file unless we assign to the vars.
11572 (
11573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11574 eval ac_val=\$$ac_var
11575 case $ac_val in #(
11576 *${as_nl}*)
11577 case $ac_var in #(
11578 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11579 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11580 esac
11581 case $ac_var in #(
11582 _ | IFS | as_nl) ;; #(
11583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11584 *) { eval $ac_var=; unset $ac_var;} ;;
11585 esac ;;
11586 esac
11587 done
11588
11589 (set) 2>&1 |
11590 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11591 *${as_nl}ac_space=\ *)
11592 # 'set' does not quote correctly, so add quotes: double-quote
11593 # substitution turns \\\\ into \\, and sed turns \\ into \.
11594 sed -n \
11595 "s/'/'\\\\''/g;
11596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11597 ;; #(
11598 *)
11599 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11601 ;;
11602 esac |
11603 sort
11604 ) |
11605 sed '
11606 /^ac_cv_env_/b end
11607 t clear
11608 :clear
11609 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11610 t end
11611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11612 :end' >>confcache
11613 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11614 if test -w "$cache_file"; then
11615 if test "x$cache_file" != "x/dev/null"; then
11616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11617 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11618 if test ! -f "$cache_file" || test -h "$cache_file"; then
11619 cat confcache >"$cache_file"
11620 else
11621 case $cache_file in #(
11622 */* | ?:*)
11623 mv -f confcache "$cache_file"$$ &&
11624 mv -f "$cache_file"$$ "$cache_file" ;; #(
11625 *)
11626 mv -f confcache "$cache_file" ;;
11627 esac
11628 fi
11629 fi
11630 else
11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11632 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11633 fi
11634 fi
11635 rm -f confcache
11636
11637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11638 # Let make expand exec_prefix.
11639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11640
11641 DEFS=-DHAVE_CONFIG_H
11642
11643 ac_libobjs=
11644 ac_ltlibobjs=
11645 U=
11646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11647 # 1. Remove the extension, and $U if already installed.
11648 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11649 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11650 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11651 # will be set to the directory where LIBOBJS objects are built.
11652 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11653 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11654 done
11655 LIBOBJS=$ac_libobjs
11656
11657 LTLIBOBJS=$ac_ltlibobjs
11658
11659
11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11661 printf %s "checking that generated files are newer than configure... " >&6; }
11662 if test -n "$am_sleep_pid"; then
11663 # Hide warnings about reused PIDs.
11664 wait $am_sleep_pid 2>/dev/null
11665 fi
11666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11667 printf "%s\n" "done" >&6; }
11668 if test -n "$EXEEXT"; then
11669 am__EXEEXT_TRUE=
11670 am__EXEEXT_FALSE='#'
11671 else
11672 am__EXEEXT_TRUE='#'
11673 am__EXEEXT_FALSE=
11674 fi
11675
11676 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11677 as_fn_error $? "conditional \"AMDEP\" was never defined.
11678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11679 fi
11680 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11681 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11683 fi
11684
11685 : "${CONFIG_STATUS=./config.status}"
11686 ac_write_fail=0
11687 ac_clean_files_save=$ac_clean_files
11688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11690 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11691 as_write_fail=0
11692 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11693 #! $SHELL
11694 # Generated by $as_me.
11695 # Run this file to recreate the current configuration.
11696 # Compiler output produced by configure, useful for debugging
11697 # configure, is in config.log if it exists.
11698
11699 debug=false
11700 ac_cs_recheck=false
11701 ac_cs_silent=false
11702
11703 SHELL=\${CONFIG_SHELL-$SHELL}
11704 export SHELL
11705 _ASEOF
11706 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11707 ## -------------------- ##
11708 ## M4sh Initialization. ##
11709 ## -------------------- ##
11710
11711 # Be more Bourne compatible
11712 DUALCASE=1; export DUALCASE # for MKS sh
11713 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11714 then :
11715 emulate sh
11716 NULLCMD=:
11717 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11718 # is contrary to our usage. Disable this feature.
11719 alias -g '${1+"$@"}'='"$@"'
11720 setopt NO_GLOB_SUBST
11721 else case e in #(
11722 e) case `(set -o) 2>/dev/null` in #(
11723 *posix*) :
11724 set -o posix ;; #(
11725 *) :
11726 ;;
11727 esac ;;
11728 esac
11729 fi
11730
11731
11732
11733 # Reset variables that may have inherited troublesome values from
11734 # the environment.
11735
11736 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11737 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11738 # side effect of setting IFS to empty, thus disabling word splitting.)
11739 # Quoting is to prevent editors from complaining about space-tab.
11740 as_nl='
11741 '
11742 export as_nl
11743 IFS=" "" $as_nl"
11744
11745 PS1='$ '
11746 PS2='> '
11747 PS4='+ '
11748
11749 # Ensure predictable behavior from utilities with locale-dependent output.
11750 LC_ALL=C
11751 export LC_ALL
11752 LANGUAGE=C
11753 export LANGUAGE
11754
11755 # We cannot yet rely on "unset" to work, but we need these variables
11756 # to be unset--not just set to an empty or harmless value--now, to
11757 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11758 # also avoids known problems related to "unset" and subshell syntax
11759 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11760 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11761 do eval test \${$as_var+y} \
11762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11763 done
11764
11765 # Ensure that fds 0, 1, and 2 are open.
11766 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11767 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11768 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11769
11770 # The user is always right.
11771 if ${PATH_SEPARATOR+false} :; then
11772 PATH_SEPARATOR=:
11773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11775 PATH_SEPARATOR=';'
11776 }
11777 fi
11778
11779
11780 # Find who we are. Look in the path if we contain no directory separator.
11781 as_myself=
11782 case $0 in #((
11783 *[\\/]* ) as_myself=$0 ;;
11784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787 IFS=$as_save_IFS
11788 case $as_dir in #(((
11789 '') as_dir=./ ;;
11790 */) ;;
11791 *) as_dir=$as_dir/ ;;
11792 esac
11793 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11794 done
11795 IFS=$as_save_IFS
11796
11797 ;;
11798 esac
11799 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11800 # in which case we are not to be found in the path.
11801 if test "x$as_myself" = x; then
11802 as_myself=$0
11803 fi
11804 if test ! -f "$as_myself"; then
11805 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11806 exit 1
11807 fi
11808
11809
11810
11811 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11812 # ----------------------------------------
11813 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11814 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11815 # script with STATUS, using 1 if that was 0.
11816 as_fn_error ()
11817 {
11818 as_status=$1; test $as_status -eq 0 && as_status=1
11819 if test "$4"; then
11820 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11822 fi
11823 printf "%s\n" "$as_me: error: $2" >&2
11824 as_fn_exit $as_status
11825 } # as_fn_error
11826
11827
11828 # as_fn_set_status STATUS
11829 # -----------------------
11830 # Set $? to STATUS, without forking.
11831 as_fn_set_status ()
11832 {
11833 return $1
11834 } # as_fn_set_status
11835
11836 # as_fn_exit STATUS
11837 # -----------------
11838 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11839 as_fn_exit ()
11840 {
11841 set +e
11842 as_fn_set_status $1
11843 exit $1
11844 } # as_fn_exit
11845
11846 # as_fn_unset VAR
11847 # ---------------
11848 # Portably unset VAR.
11849 as_fn_unset ()
11850 {
11851 { eval $1=; unset $1;}
11852 }
11853 as_unset=as_fn_unset
11854
11855 # as_fn_append VAR VALUE
11856 # ----------------------
11857 # Append the text in VALUE to the end of the definition contained in VAR. Take
11858 # advantage of any shell optimizations that allow amortized linear growth over
11859 # repeated appends, instead of the typical quadratic growth present in naive
11860 # implementations.
11861 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11862 then :
11863 eval 'as_fn_append ()
11864 {
11865 eval $1+=\$2
11866 }'
11867 else case e in #(
11868 e) as_fn_append ()
11869 {
11870 eval $1=\$$1\$2
11871 } ;;
11872 esac
11873 fi # as_fn_append
11874
11875 # as_fn_arith ARG...
11876 # ------------------
11877 # Perform arithmetic evaluation on the ARGs, and store the result in the
11878 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11879 # must be portable across $(()) and expr.
11880 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11881 then :
11882 eval 'as_fn_arith ()
11883 {
11884 as_val=$(( $* ))
11885 }'
11886 else case e in #(
11887 e) as_fn_arith ()
11888 {
11889 as_val=`expr "$@" || test $? -eq 1`
11890 } ;;
11891 esac
11892 fi # as_fn_arith
11893
11894
11895 if expr a : '\(a\)' >/dev/null 2>&1 &&
11896 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11897 as_expr=expr
11898 else
11899 as_expr=false
11900 fi
11901
11902 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11903 as_basename=basename
11904 else
11905 as_basename=false
11906 fi
11907
11908 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11909 as_dirname=dirname
11910 else
11911 as_dirname=false
11912 fi
11913
11914 as_me=`$as_basename -- "$0" ||
11915 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11916 X"$0" : 'X\(//\)$' \| \
11917 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11918 printf "%s\n" X/"$0" |
11919 sed '/^.*\/\([^/][^/]*\)\/*$/{
11920 s//\1/
11921 q
11922 }
11923 /^X\/\(\/\/\)$/{
11924 s//\1/
11925 q
11926 }
11927 /^X\/\(\/\).*/{
11928 s//\1/
11929 q
11930 }
11931 s/.*/./; q'`
11932
11933 # Avoid depending upon Character Ranges.
11934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11937 as_cr_digits='0123456789'
11938 as_cr_alnum=$as_cr_Letters$as_cr_digits
11939
11940
11941 # Determine whether it's possible to make 'echo' print without a newline.
11942 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11943 # for compatibility with existing Makefiles.
11944 ECHO_C= ECHO_N= ECHO_T=
11945 case `echo -n x` in #(((((
11946 -n*)
11947 case `echo 'xy\c'` in
11948 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11949 xy) ECHO_C='\c';;
11950 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11951 ECHO_T=' ';;
11952 esac;;
11953 *)
11954 ECHO_N='-n';;
11955 esac
11956
11957 # For backward compatibility with old third-party macros, we provide
11958 # the shell variables $as_echo and $as_echo_n. New code should use
11959 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11960 as_echo='printf %s\n'
11961 as_echo_n='printf %s'
11962
11963 rm -f conf$$ conf$$.exe conf$$.file
11964 if test -d conf$$.dir; then
11965 rm -f conf$$.dir/conf$$.file
11966 else
11967 rm -f conf$$.dir
11968 mkdir conf$$.dir 2>/dev/null
11969 fi
11970 if (echo >conf$$.file) 2>/dev/null; then
11971 if ln -s conf$$.file conf$$ 2>/dev/null; then
11972 as_ln_s='ln -s'
11973 # ... but there are two gotchas:
11974 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11975 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11976 # In both cases, we have to default to 'cp -pR'.
11977 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11978 as_ln_s='cp -pR'
11979 elif ln conf$$.file conf$$ 2>/dev/null; then
11980 as_ln_s=ln
11981 else
11982 as_ln_s='cp -pR'
11983 fi
11984 else
11985 as_ln_s='cp -pR'
11986 fi
11987 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11988 rmdir conf$$.dir 2>/dev/null
11989
11990
11991 # as_fn_mkdir_p
11992 # -------------
11993 # Create "$as_dir" as a directory, including parents if necessary.
11994 as_fn_mkdir_p ()
11995 {
11996
11997 case $as_dir in #(
11998 -*) as_dir=./$as_dir;;
11999 esac
12000 test -d "$as_dir" || eval $as_mkdir_p || {
12001 as_dirs=
12002 while :; do
12003 case $as_dir in #(
12004 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12005 *) as_qdir=$as_dir;;
12006 esac
12007 as_dirs="'$as_qdir' $as_dirs"
12008 as_dir=`$as_dirname -- "$as_dir" ||
12009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12010 X"$as_dir" : 'X\(//\)[^/]' \| \
12011 X"$as_dir" : 'X\(//\)$' \| \
12012 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12013 printf "%s\n" X"$as_dir" |
12014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12015 s//\1/
12016 q
12017 }
12018 /^X\(\/\/\)[^/].*/{
12019 s//\1/
12020 q
12021 }
12022 /^X\(\/\/\)$/{
12023 s//\1/
12024 q
12025 }
12026 /^X\(\/\).*/{
12027 s//\1/
12028 q
12029 }
12030 s/.*/./; q'`
12031 test -d "$as_dir" && break
12032 done
12033 test -z "$as_dirs" || eval "mkdir $as_dirs"
12034 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12035
12036
12037 } # as_fn_mkdir_p
12038 if mkdir -p . 2>/dev/null; then
12039 as_mkdir_p='mkdir -p "$as_dir"'
12040 else
12041 test -d ./-p && rmdir ./-p
12042 as_mkdir_p=false
12043 fi
12044
12045
12046 # as_fn_executable_p FILE
12047 # -----------------------
12048 # Test if FILE is an executable regular file.
12049 as_fn_executable_p ()
12050 {
12051 test -f "$1" && test -x "$1"
12052 } # as_fn_executable_p
12053 as_test_x='test -x'
12054 as_executable_p=as_fn_executable_p
12055
12056 # Sed expression to map a string onto a valid CPP name.
12057 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12058 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12059
12060 # Sed expression to map a string onto a valid variable name.
12061 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12062 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12063
12064
12065 exec 6>&1
12066 ## ----------------------------------- ##
12067 ## Main body of $CONFIG_STATUS script. ##
12068 ## ----------------------------------- ##
12069 _ASEOF
12070 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12071
12072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12073 # Save the log message, to keep $0 and so on meaningful, and to
12074 # report actual input values of CONFIG_FILES etc. instead of their
12075 # values after options handling.
12076 ac_log="
12077 This file was extended by appres $as_me 1.0.7, which was
12078 generated by GNU Autoconf 2.72. Invocation command line was
12079
12080 CONFIG_FILES = $CONFIG_FILES
12081 CONFIG_HEADERS = $CONFIG_HEADERS
12082 CONFIG_LINKS = $CONFIG_LINKS
12083 CONFIG_COMMANDS = $CONFIG_COMMANDS
12084 $ $0 $@
12085
12086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12087 "
12088
12089 _ACEOF
12090
12091 case $ac_config_files in *"
12092 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12093 esac
12094
12095 case $ac_config_headers in *"
12096 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12097 esac
12098
12099
12100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101 # Files that config.status was made for.
12102 config_files="$ac_config_files"
12103 config_headers="$ac_config_headers"
12104 config_commands="$ac_config_commands"
12105
12106 _ACEOF
12107
12108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12109 ac_cs_usage="\
12110 '$as_me' instantiates files and other configuration actions
12111 from templates according to the current configuration. Unless the files
12112 and actions are specified as TAGs, all are instantiated by default.
12113
12114 Usage: $0 [OPTION]... [TAG]...
12115
12116 -h, --help print this help, then exit
12117 -V, --version print version number and configuration settings, then exit
12118 --config print configuration, then exit
12119 -q, --quiet, --silent
12120 do not print progress messages
12121 -d, --debug don't remove temporary files
12122 --recheck update $as_me by reconfiguring in the same conditions
12123 --file=FILE[:TEMPLATE]
12124 instantiate the configuration file FILE
12125 --header=FILE[:TEMPLATE]
12126 instantiate the configuration header FILE
12127
12128 Configuration files:
12129 $config_files
12130
12131 Configuration headers:
12132 $config_headers
12133
12134 Configuration commands:
12135 $config_commands
12136
12137 Report bugs to <https://gitlab.freedesktop.org/xorg/app/appres/issues>."
12138
12139 _ACEOF
12140 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12141 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12143 ac_cs_config='$ac_cs_config_escaped'
12144 ac_cs_version="\\
12145 appres config.status 1.0.7
12146 configured by $0, generated by GNU Autoconf 2.72,
12147 with options \\"\$ac_cs_config\\"
12148
12149 Copyright (C) 2023 Free Software Foundation, Inc.
12150 This config.status script is free software; the Free Software Foundation
12151 gives unlimited permission to copy, distribute and modify it."
12152
12153 ac_pwd='$ac_pwd'
12154 srcdir='$srcdir'
12155 INSTALL='$INSTALL'
12156 MKDIR_P='$MKDIR_P'
12157 AWK='$AWK'
12158 test -n "\$AWK" || AWK=awk
12159 _ACEOF
12160
12161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12162 # The default lists apply if the user does not specify any file.
12163 ac_need_defaults=:
12164 while test $# != 0
12165 do
12166 case $1 in
12167 --*=?*)
12168 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12169 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12170 ac_shift=:
12171 ;;
12172 --*=)
12173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12174 ac_optarg=
12175 ac_shift=:
12176 ;;
12177 *)
12178 ac_option=$1
12179 ac_optarg=$2
12180 ac_shift=shift
12181 ;;
12182 esac
12183
12184 case $ac_option in
12185 # Handling of the options.
12186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12187 ac_cs_recheck=: ;;
12188 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12189 printf "%s\n" "$ac_cs_version"; exit ;;
12190 --config | --confi | --conf | --con | --co | --c )
12191 printf "%s\n" "$ac_cs_config"; exit ;;
12192 --debug | --debu | --deb | --de | --d | -d )
12193 debug=: ;;
12194 --file | --fil | --fi | --f )
12195 $ac_shift
12196 case $ac_optarg in
12197 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12198 '') as_fn_error $? "missing file argument" ;;
12199 esac
12200 as_fn_append CONFIG_FILES " '$ac_optarg'"
12201 ac_need_defaults=false;;
12202 --header | --heade | --head | --hea )
12203 $ac_shift
12204 case $ac_optarg in
12205 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12206 esac
12207 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12208 ac_need_defaults=false;;
12209 --he | --h)
12210 # Conflict between --help and --header
12211 as_fn_error $? "ambiguous option: '$1'
12212 Try '$0 --help' for more information.";;
12213 --help | --hel | -h )
12214 printf "%s\n" "$ac_cs_usage"; exit ;;
12215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12216 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12217 ac_cs_silent=: ;;
12218
12219 # This is an error.
12220 -*) as_fn_error $? "unrecognized option: '$1'
12221 Try '$0 --help' for more information." ;;
12222
12223 *) as_fn_append ac_config_targets " $1"
12224 ac_need_defaults=false ;;
12225
12226 esac
12227 shift
12228 done
12229
12230 ac_configure_extra_args=
12231
12232 if $ac_cs_silent; then
12233 exec 6>/dev/null
12234 ac_configure_extra_args="$ac_configure_extra_args --silent"
12235 fi
12236
12237 _ACEOF
12238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12239 if \$ac_cs_recheck; then
12240 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12241 shift
12242 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12243 CONFIG_SHELL='$SHELL'
12244 export CONFIG_SHELL
12245 exec "\$@"
12246 fi
12247
12248 _ACEOF
12249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12250 exec 5>>config.log
12251 {
12252 echo
12253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12254 ## Running $as_me. ##
12255 _ASBOX
12256 printf "%s\n" "$ac_log"
12257 } >&5
12258
12259 _ACEOF
12260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12261 #
12262 # INIT-COMMANDS
12263 #
12264 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12265
12266 _ACEOF
12267
12268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12269
12270 # Handling of arguments.
12271 for ac_config_target in $ac_config_targets
12272 do
12273 case $ac_config_target in
12274 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12276 "man/appres.1") CONFIG_FILES="$CONFIG_FILES man/appres.1:man/appres.man" ;;
12277 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12278 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12279
12280 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12281 esac
12282 done
12283
12284
12285 # If the user did not use the arguments to specify the items to instantiate,
12286 # then the envvar interface is used. Set only those that are not.
12287 # We use the long form for the default assignment because of an extremely
12288 # bizarre bug on SunOS 4.1.3.
12289 if $ac_need_defaults; then
12290 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12291 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12292 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12293 fi
12294
12295 # Have a temporary directory for convenience. Make it in the build tree
12296 # simply because there is no reason against having it here, and in addition,
12297 # creating and moving files from /tmp can sometimes cause problems.
12298 # Hook for its removal unless debugging.
12299 # Note that there is a small window in which the directory will not be cleaned:
12300 # after its creation but before its name has been assigned to '$tmp'.
12301 $debug ||
12302 {
12303 tmp= ac_tmp=
12304 trap 'exit_status=$?
12305 : "${ac_tmp:=$tmp}"
12306 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12307 ' 0
12308 trap 'as_fn_exit 1' 1 2 13 15
12309 }
12310 # Create a (secure) tmp directory for tmp files.
12311
12312 {
12313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12314 test -d "$tmp"
12315 } ||
12316 {
12317 tmp=./conf$$-$RANDOM
12318 (umask 077 && mkdir "$tmp")
12319 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12320 ac_tmp=$tmp
12321
12322 # Set up the scripts for CONFIG_FILES section.
12323 # No need to generate them if there are no CONFIG_FILES.
12324 # This happens for instance with './config.status config.h'.
12325 if test -n "$CONFIG_FILES"; then
12326
12327
12328 ac_cr=`echo X | tr X '\015'`
12329 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12330 # But we know of no other shell where ac_cr would be empty at this
12331 # point, so we can use a bashism as a fallback.
12332 if test "x$ac_cr" = x; then
12333 eval ac_cr=\$\'\\r\'
12334 fi
12335 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12336 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12337 ac_cs_awk_cr='\\r'
12338 else
12339 ac_cs_awk_cr=$ac_cr
12340 fi
12341
12342 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12343 _ACEOF
12344
12345
12346 {
12347 echo "cat >conf$$subs.awk <<_ACEOF" &&
12348 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12349 echo "_ACEOF"
12350 } >conf$$subs.sh ||
12351 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12352 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12353 ac_delim='%!_!# '
12354 for ac_last_try in false false false false false :; do
12355 . ./conf$$subs.sh ||
12356 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12357
12358 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12359 if test $ac_delim_n = $ac_delim_num; then
12360 break
12361 elif $ac_last_try; then
12362 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12363 else
12364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12365 fi
12366 done
12367 rm -f conf$$subs.sh
12368
12369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12370 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12371 _ACEOF
12372 sed -n '
12373 h
12374 s/^/S["/; s/!.*/"]=/
12375 p
12376 g
12377 s/^[^!]*!//
12378 :repl
12379 t repl
12380 s/'"$ac_delim"'$//
12381 t delim
12382 :nl
12383 h
12384 s/\(.\{148\}\)..*/\1/
12385 t more1
12386 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12387 p
12388 n
12389 b repl
12390 :more1
12391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12392 p
12393 g
12394 s/.\{148\}//
12395 t nl
12396 :delim
12397 h
12398 s/\(.\{148\}\)..*/\1/
12399 t more2
12400 s/["\\]/\\&/g; s/^/"/; s/$/"/
12401 p
12402 b
12403 :more2
12404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12405 p
12406 g
12407 s/.\{148\}//
12408 t delim
12409 ' <conf$$subs.awk | sed '
12410 /^[^""]/{
12411 N
12412 s/\n//
12413 }
12414 ' >>$CONFIG_STATUS || ac_write_fail=1
12415 rm -f conf$$subs.awk
12416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12417 _ACAWK
12418 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12419 for (key in S) S_is_set[key] = 1
12420 FS = ""
12421
12422 }
12423 {
12424 line = $ 0
12425 nfields = split(line, field, "@")
12426 substed = 0
12427 len = length(field[1])
12428 for (i = 2; i < nfields; i++) {
12429 key = field[i]
12430 keylen = length(key)
12431 if (S_is_set[key]) {
12432 value = S[key]
12433 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12434 len += length(value) + length(field[++i])
12435 substed = 1
12436 } else
12437 len += 1 + keylen
12438 }
12439
12440 print line
12441 }
12442
12443 _ACAWK
12444 _ACEOF
12445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12446 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12447 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12448 else
12449 cat
12450 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12451 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12452 _ACEOF
12453
12454 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12455 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12456 # trailing colons and then remove the whole line if VPATH becomes empty
12457 # (actually we leave an empty line to preserve line numbers).
12458 if test "x$srcdir" = x.; then
12459 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12460 h
12461 s///
12462 s/^/:/
12463 s/[ ]*$/:/
12464 s/:\$(srcdir):/:/g
12465 s/:\${srcdir}:/:/g
12466 s/:@srcdir@:/:/g
12467 s/^:*//
12468 s/:*$//
12469 x
12470 s/\(=[ ]*\).*/\1/
12471 G
12472 s/\n//
12473 s/^[^=]*=[ ]*$//
12474 }'
12475 fi
12476
12477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12478 fi # test -n "$CONFIG_FILES"
12479
12480 # Set up the scripts for CONFIG_HEADERS section.
12481 # No need to generate them if there are no CONFIG_HEADERS.
12482 # This happens for instance with './config.status Makefile'.
12483 if test -n "$CONFIG_HEADERS"; then
12484 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12485 BEGIN {
12486 _ACEOF
12487
12488 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12489 # here-document in config.status, that substitutes the proper values into
12490 # config.h.in to produce config.h.
12491
12492 # Create a delimiter string that does not exist in confdefs.h, to ease
12493 # handling of long lines.
12494 ac_delim='%!_!# '
12495 for ac_last_try in false false :; do
12496 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12497 if test -z "$ac_tt"; then
12498 break
12499 elif $ac_last_try; then
12500 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12501 else
12502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12503 fi
12504 done
12505
12506 # For the awk script, D is an array of macro values keyed by name,
12507 # likewise P contains macro parameters if any. Preserve backslash
12508 # newline sequences.
12509
12510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12511 sed -n '
12512 s/.\{148\}/&'"$ac_delim"'/g
12513 t rset
12514 :rset
12515 s/^[ ]*#[ ]*define[ ][ ]*/ /
12516 t def
12517 d
12518 :def
12519 s/\\$//
12520 t bsnl
12521 s/["\\]/\\&/g
12522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12523 D["\1"]=" \3"/p
12524 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12525 d
12526 :bsnl
12527 s/["\\]/\\&/g
12528 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12529 D["\1"]=" \3\\\\\\n"\\/p
12530 t cont
12531 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12532 t cont
12533 d
12534 :cont
12535 n
12536 s/.\{148\}/&'"$ac_delim"'/g
12537 t clear
12538 :clear
12539 s/\\$//
12540 t bsnlc
12541 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12542 d
12543 :bsnlc
12544 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12545 b cont
12546 ' <confdefs.h | sed '
12547 s/'"$ac_delim"'/"\\\
12548 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12549
12550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12551 for (key in D) D_is_set[key] = 1
12552 FS = ""
12553 }
12554 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12555 line = \$ 0
12556 split(line, arg, " ")
12557 if (arg[1] == "#") {
12558 defundef = arg[2]
12559 mac1 = arg[3]
12560 } else {
12561 defundef = substr(arg[1], 2)
12562 mac1 = arg[2]
12563 }
12564 split(mac1, mac2, "(") #)
12565 macro = mac2[1]
12566 prefix = substr(line, 1, index(line, defundef) - 1)
12567 if (D_is_set[macro]) {
12568 # Preserve the white space surrounding the "#".
12569 print prefix "define", macro P[macro] D[macro]
12570 next
12571 } else {
12572 # Replace #undef with comments. This is necessary, for example,
12573 # in the case of _POSIX_SOURCE, which is predefined and required
12574 # on some systems where configure will not decide to define it.
12575 if (defundef == "undef") {
12576 print "/*", prefix defundef, macro, "*/"
12577 next
12578 }
12579 }
12580 }
12581 { print }
12582 _ACAWK
12583 _ACEOF
12584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12586 fi # test -n "$CONFIG_HEADERS"
12587
12588
12589 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12590 shift
12591 for ac_tag
12592 do
12593 case $ac_tag in
12594 :[FHLC]) ac_mode=$ac_tag; continue;;
12595 esac
12596 case $ac_mode$ac_tag in
12597 :[FHL]*:*);;
12598 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12599 :[FH]-) ac_tag=-:-;;
12600 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12601 esac
12602 ac_save_IFS=$IFS
12603 IFS=:
12604 set x $ac_tag
12605 IFS=$ac_save_IFS
12606 shift
12607 ac_file=$1
12608 shift
12609
12610 case $ac_mode in
12611 :L) ac_source=$1;;
12612 :[FH])
12613 ac_file_inputs=
12614 for ac_f
12615 do
12616 case $ac_f in
12617 -) ac_f="$ac_tmp/stdin";;
12618 *) # Look for the file first in the build tree, then in the source tree
12619 # (if the path is not absolute). The absolute path cannot be DOS-style,
12620 # because $ac_f cannot contain ':'.
12621 test -f "$ac_f" ||
12622 case $ac_f in
12623 [\\/$]*) false;;
12624 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12625 esac ||
12626 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12627 esac
12628 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12629 as_fn_append ac_file_inputs " '$ac_f'"
12630 done
12631
12632 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12633 # use $as_me), people would be surprised to read:
12634 # /* config.h. Generated by config.status. */
12635 configure_input='Generated from '`
12636 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12637 `' by configure.'
12638 if test x"$ac_file" != x-; then
12639 configure_input="$ac_file. $configure_input"
12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12641 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12642 fi
12643 # Neutralize special characters interpreted by sed in replacement strings.
12644 case $configure_input in #(
12645 *\&* | *\|* | *\\* )
12646 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12647 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12648 *) ac_sed_conf_input=$configure_input;;
12649 esac
12650
12651 case $ac_tag in
12652 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12654 esac
12655 ;;
12656 esac
12657
12658 ac_dir=`$as_dirname -- "$ac_file" ||
12659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12660 X"$ac_file" : 'X\(//\)[^/]' \| \
12661 X"$ac_file" : 'X\(//\)$' \| \
12662 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12663 printf "%s\n" X"$ac_file" |
12664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12665 s//\1/
12666 q
12667 }
12668 /^X\(\/\/\)[^/].*/{
12669 s//\1/
12670 q
12671 }
12672 /^X\(\/\/\)$/{
12673 s//\1/
12674 q
12675 }
12676 /^X\(\/\).*/{
12677 s//\1/
12678 q
12679 }
12680 s/.*/./; q'`
12681 as_dir="$ac_dir"; as_fn_mkdir_p
12682 ac_builddir=.
12683
12684 case "$ac_dir" in
12685 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12686 *)
12687 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12688 # A ".." for each directory in $ac_dir_suffix.
12689 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12690 case $ac_top_builddir_sub in
12691 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12692 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12693 esac ;;
12694 esac
12695 ac_abs_top_builddir=$ac_pwd
12696 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12697 # for backward compatibility:
12698 ac_top_builddir=$ac_top_build_prefix
12699
12700 case $srcdir in
12701 .) # We are building in place.
12702 ac_srcdir=.
12703 ac_top_srcdir=$ac_top_builddir_sub
12704 ac_abs_top_srcdir=$ac_pwd ;;
12705 [\\/]* | ?:[\\/]* ) # Absolute name.
12706 ac_srcdir=$srcdir$ac_dir_suffix;
12707 ac_top_srcdir=$srcdir
12708 ac_abs_top_srcdir=$srcdir ;;
12709 *) # Relative name.
12710 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12711 ac_top_srcdir=$ac_top_build_prefix$srcdir
12712 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12713 esac
12714 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12715
12716
12717 case $ac_mode in
12718 :F)
12719 #
12720 # CONFIG_FILE
12721 #
12722
12723 case $INSTALL in
12724 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12725 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12726 esac
12727 ac_MKDIR_P=$MKDIR_P
12728 case $MKDIR_P in
12729 [\\/$]* | ?:[\\/]* ) ;;
12730 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12731 esac
12732 _ACEOF
12733
12734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12735 # If the template does not know about datarootdir, expand it.
12736 # FIXME: This hack should be removed a few years after 2.60.
12737 ac_datarootdir_hack=; ac_datarootdir_seen=
12738 ac_sed_dataroot='
12739 /datarootdir/ {
12740 p
12741 q
12742 }
12743 /@datadir@/p
12744 /@docdir@/p
12745 /@infodir@/p
12746 /@localedir@/p
12747 /@mandir@/p'
12748 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12749 *datarootdir*) ac_datarootdir_seen=yes;;
12750 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12752 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12753 _ACEOF
12754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12755 ac_datarootdir_hack='
12756 s&@datadir@&$datadir&g
12757 s&@docdir@&$docdir&g
12758 s&@infodir@&$infodir&g
12759 s&@localedir@&$localedir&g
12760 s&@mandir@&$mandir&g
12761 s&\\\${datarootdir}&$datarootdir&g' ;;
12762 esac
12763 _ACEOF
12764
12765 # Neutralize VPATH when '$srcdir' = '.'.
12766 # Shell code in configure.ac might set extrasub.
12767 # FIXME: do we really want to maintain this feature?
12768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12769 ac_sed_extra="$ac_vpsub
12770 $extrasub
12771 _ACEOF
12772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12773 :t
12774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12775 s|@configure_input@|$ac_sed_conf_input|;t t
12776 s&@top_builddir@&$ac_top_builddir_sub&;t t
12777 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12778 s&@srcdir@&$ac_srcdir&;t t
12779 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12780 s&@top_srcdir@&$ac_top_srcdir&;t t
12781 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12782 s&@builddir@&$ac_builddir&;t t
12783 s&@abs_builddir@&$ac_abs_builddir&;t t
12784 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12785 s&@INSTALL@&$ac_INSTALL&;t t
12786 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12787 $ac_datarootdir_hack
12788 "
12789 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12790 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12791
12792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12793 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12795 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12797 which seems to be undefined. Please make sure it is defined" >&5
12798 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12799 which seems to be undefined. Please make sure it is defined" >&2;}
12800
12801 rm -f "$ac_tmp/stdin"
12802 case $ac_file in
12803 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12804 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12805 esac \
12806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12807 ;;
12808 :H)
12809 #
12810 # CONFIG_HEADER
12811 #
12812 if test x"$ac_file" != x-; then
12813 {
12814 printf "%s\n" "/* $configure_input */" >&1 \
12815 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12816 } >"$ac_tmp/config.h" \
12817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12818 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12820 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12821 else
12822 rm -f "$ac_file"
12823 mv "$ac_tmp/config.h" "$ac_file" \
12824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12825 fi
12826 else
12827 printf "%s\n" "/* $configure_input */" >&1 \
12828 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12829 || as_fn_error $? "could not create -" "$LINENO" 5
12830 fi
12831 # Compute "$ac_file"'s index in $config_headers.
12832 _am_arg="$ac_file"
12833 _am_stamp_count=1
12834 for _am_header in $config_headers :; do
12835 case $_am_header in
12836 $_am_arg | $_am_arg:* )
12837 break ;;
12838 * )
12839 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12840 esac
12841 done
12842 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12843 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12844 X"$_am_arg" : 'X\(//\)[^/]' \| \
12845 X"$_am_arg" : 'X\(//\)$' \| \
12846 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12847 printf "%s\n" X"$_am_arg" |
12848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12849 s//\1/
12850 q
12851 }
12852 /^X\(\/\/\)[^/].*/{
12853 s//\1/
12854 q
12855 }
12856 /^X\(\/\/\)$/{
12857 s//\1/
12858 q
12859 }
12860 /^X\(\/\).*/{
12861 s//\1/
12862 q
12863 }
12864 s/.*/./; q'`/stamp-h$_am_stamp_count
12865 ;;
12866
12867 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12868 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12869 ;;
12870 esac
12871
12872
12873 case $ac_file$ac_mode in
12874 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12875 # Older Autoconf quotes --file arguments for eval, but not when files
12876 # are listed without --file. Let's play safe and only enable the eval
12877 # if we detect the quoting.
12878 # TODO: see whether this extra hack can be removed once we start
12879 # requiring Autoconf 2.70 or later.
12880 case $CONFIG_FILES in #(
12881 *\'*) :
12882 eval set x "$CONFIG_FILES" ;; #(
12883 *) :
12884 set x $CONFIG_FILES ;; #(
12885 *) :
12886 ;;
12887 esac
12888 shift
12889 # Used to flag and report bootstrapping failures.
12890 am_rc=0
12891 for am_mf
12892 do
12893 # Strip MF so we end up with the name of the file.
12894 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12895 # Check whether this is an Automake generated Makefile which includes
12896 # dependency-tracking related rules and includes.
12897 # Grep'ing the whole file directly is not great: AIX grep has a line
12898 # limit of 2048, but all sed's we know have understand at least 4000.
12899 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12900 || continue
12901 am_dirpart=`$as_dirname -- "$am_mf" ||
12902 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12903 X"$am_mf" : 'X\(//\)[^/]' \| \
12904 X"$am_mf" : 'X\(//\)$' \| \
12905 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12906 printf "%s\n" X"$am_mf" |
12907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12908 s//\1/
12909 q
12910 }
12911 /^X\(\/\/\)[^/].*/{
12912 s//\1/
12913 q
12914 }
12915 /^X\(\/\/\)$/{
12916 s//\1/
12917 q
12918 }
12919 /^X\(\/\).*/{
12920 s//\1/
12921 q
12922 }
12923 s/.*/./; q'`
12924 am_filepart=`$as_basename -- "$am_mf" ||
12925 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12926 X"$am_mf" : 'X\(//\)$' \| \
12927 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12928 printf "%s\n" X/"$am_mf" |
12929 sed '/^.*\/\([^/][^/]*\)\/*$/{
12930 s//\1/
12931 q
12932 }
12933 /^X\/\(\/\/\)$/{
12934 s//\1/
12935 q
12936 }
12937 /^X\/\(\/\).*/{
12938 s//\1/
12939 q
12940 }
12941 s/.*/./; q'`
12942 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12943 && sed -e '/# am--include-marker/d' "$am_filepart" \
12944 | $MAKE -f - am--depfiles" >&5
12945 (cd "$am_dirpart" \
12946 && sed -e '/# am--include-marker/d' "$am_filepart" \
12947 | $MAKE -f - am--depfiles) >&5 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } || am_rc=$?
12951 done
12952 if test $am_rc -ne 0; then
12953 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12954 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12955 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12956 for automatic dependency tracking. If GNU make was not used, consider
12957 re-running the configure script with MAKE=\"gmake\" (or whatever is
12958 necessary). You can also try re-running configure with the
12959 '--disable-dependency-tracking' option to at least be able to build
12960 the package (albeit without support for automatic dependency tracking).
12961 See 'config.log' for more details" "$LINENO" 5; }
12962 fi
12963 { am_dirpart=; unset am_dirpart;}
12964 { am_filepart=; unset am_filepart;}
12965 { am_mf=; unset am_mf;}
12966 { am_rc=; unset am_rc;}
12967 rm -f conftest-deps.mk
12968 }
12969 ;;
12970
12971 esac
12972 done # for ac_tag
12973
12974
12975 as_fn_exit 0
12976 _ACEOF
12977 ac_clean_files=$ac_clean_files_save
12978
12979 test $ac_write_fail = 0 ||
12980 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12981
12982
12983 # configure is writing to config.log, and then calls config.status.
12984 # config.status does its own redirection, appending to config.log.
12985 # Unfortunately, on DOS this fails, as config.log is still kept open
12986 # by configure, so config.status won't be able to write to it; its
12987 # output is simply discarded. So we exec the FD to /dev/null,
12988 # effectively closing config.log, so it can be properly (re)opened and
12989 # appended to by config.status. When coming back to configure, we
12990 # need to make the FD available again.
12991 if test "$no_create" != yes; then
12992 ac_cs_success=:
12993 ac_config_status_args=
12994 test "$silent" = yes &&
12995 ac_config_status_args="$ac_config_status_args --quiet"
12996 exec 5>/dev/null
12997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12998 exec 5>>config.log
12999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13000 # would make configure fail if this is the last instruction.
13001 $ac_cs_success || as_fn_exit 1
13002 fi
13003 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13005 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13006 fi
13007
13008
13009