configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for showfont 1.0.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/showfont/-/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/showfont/-/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='showfont'
607 PACKAGE_TARNAME='showfont'
608 PACKAGE_VERSION='1.0.7'
609 PACKAGE_STRING='showfont 1.0.7'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/showfont/-/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 SHOWFONT_LIBS
651 SHOWFONT_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__xargs_n
700 am__rm_f_notfound
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 CSCOPE
706 ETAGS
707 CTAGS
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 runstatedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL
770 am__quote'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_silent_rules
775 enable_dependency_tracking
776 enable_selective_werror
777 enable_strict_compilation
778 '
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 PKG_CONFIG
788 PKG_CONFIG_PATH
789 PKG_CONFIG_LIBDIR
790 SHOWFONT_CFLAGS
791 SHOWFONT_LIBS'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 runstatedir='${localstatedir}/run'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: '$ac_useropt'"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: '$ac_useropt'"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev=runstatedir ;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir=$ac_optarg ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: '$ac_useropt'"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: '$ac_useropt'"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: '$ac_option'
1186 Try '$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: '$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 printf "%s\n" X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 'configure' configures showfont 1.0.7 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print 'checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for '--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or '..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, 'make install' will install all the files in
1367 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than '$ac_default_prefix' using '--prefix',
1369 for instance '--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/showfont]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of showfont 1.0.7:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-dependency-tracking
1422 do not reject slow dependency extractors
1423 --disable-dependency-tracking
1424 speeds up one-time build
1425 --disable-selective-werror
1426 Turn off selective compiler errors. (default:
1427 enabled)
1428 --enable-strict-compilation
1429 Enable all warnings from compiler and make them
1430 errors (default: disabled)
1431
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1440 PKG_CONFIG path to pkg-config utility
1441 PKG_CONFIG_PATH
1442 directories to add to pkg-config's search path
1443 PKG_CONFIG_LIBDIR
1444 path overriding pkg-config's built-in search path
1445 SHOWFONT_CFLAGS
1446 C compiler flags for SHOWFONT, overriding pkg-config
1447 SHOWFONT_LIBS
1448 linker flags for SHOWFONT, overriding pkg-config
1449
1450 Use these variables to override the choices made by 'configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to <https://gitlab.freedesktop.org/xorg/app/showfont/-/issues>.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for configure.gnu first; this name is used for a wrapper for
1500 # Metaconfig's "Configure" on case-insensitive file systems.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 showfont configure 1.0.7
1518 generated by GNU Autoconf 2.72
1519
1520 Copyright (C) 2023 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext conftest.beam
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 printf "%s\n" "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext
1557 then :
1558 ac_retval=0
1559 else case e in #(
1560 e) printf "%s\n" "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1 ;;
1564 esac
1565 fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569 } # ac_fn_c_try_compile
1570
1571 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1572 # ------------------------------------------------------------------
1573 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1574 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1575 ac_fn_check_decl ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 as_decl_name=`echo $2|sed 's/ *(.*//'`
1579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1580 printf %s "checking whether $as_decl_name is declared... " >&6; }
1581 if eval test \${$3+y}
1582 then :
1583 printf %s "(cached) " >&6
1584 else case e in #(
1585 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1586 eval ac_save_FLAGS=\$$6
1587 as_fn_append $6 " $5"
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1590 $4
1591 int
1592 main (void)
1593 {
1594 #ifndef $as_decl_name
1595 #ifdef __cplusplus
1596 (void) $as_decl_use;
1597 #else
1598 (void) $as_decl_name;
1599 #endif
1600 #endif
1601
1602 ;
1603 return 0;
1604 }
1605 _ACEOF
1606 if ac_fn_c_try_compile "$LINENO"
1607 then :
1608 eval "$3=yes"
1609 else case e in #(
1610 e) eval "$3=no" ;;
1611 esac
1612 fi
1613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1614 eval $6=\$ac_save_FLAGS
1615 ;;
1616 esac
1617 fi
1618 eval ac_res=\$$3
1619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 printf "%s\n" "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623 } # ac_fn_check_decl
1624
1625 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626 # -------------------------------------------------------
1627 # Tests whether HEADER exists and can be compiled using the include files in
1628 # INCLUDES, setting the cache variable VAR accordingly.
1629 ac_fn_c_check_header_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 printf %s "checking for $2... " >&6; }
1634 if eval test \${$3+y}
1635 then :
1636 printf %s "(cached) " >&6
1637 else case e in #(
1638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"
1644 then :
1645 eval "$3=yes"
1646 else case e in #(
1647 e) eval "$3=no" ;;
1648 esac
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1651 esac
1652 fi
1653 eval ac_res=\$$3
1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 printf "%s\n" "$ac_res" >&6; }
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658 } # ac_fn_c_check_header_compile
1659
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }
1689 then :
1690 ac_retval=0
1691 else case e in #(
1692 e) printf "%s\n" "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1 ;;
1696 esac
1697 fi
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_link
1707 ac_configure_args_raw=
1708 for ac_arg
1709 do
1710 case $ac_arg in
1711 *\'*)
1712 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713 esac
1714 as_fn_append ac_configure_args_raw " '$ac_arg'"
1715 done
1716
1717 case $ac_configure_args_raw in
1718 *$as_nl*)
1719 ac_safe_unquote= ;;
1720 *)
1721 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1722 ac_unsafe_a="$ac_unsafe_z#~"
1723 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1724 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1725 esac
1726
1727 cat >config.log <<_ACEOF
1728 This file contains any messages produced by compilers while
1729 running configure, to aid debugging if configure makes a mistake.
1730
1731 It was created by showfont $as_me 1.0.7, which was
1732 generated by GNU Autoconf 2.72. Invocation command line was
1733
1734 $ $0$ac_configure_args_raw
1735
1736 _ACEOF
1737 exec 5>>config.log
1738 {
1739 cat <<_ASUNAME
1740 ## --------- ##
1741 ## Platform. ##
1742 ## --------- ##
1743
1744 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1745 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1746 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1747 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1748 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1749
1750 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1751 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1752
1753 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1754 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1755 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1756 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1757 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1758 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1759 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1760
1761 _ASUNAME
1762
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766 IFS=$as_save_IFS
1767 case $as_dir in #(((
1768 '') as_dir=./ ;;
1769 */) ;;
1770 *) as_dir=$as_dir/ ;;
1771 esac
1772 printf "%s\n" "PATH: $as_dir"
1773 done
1774 IFS=$as_save_IFS
1775
1776 } >&5
1777
1778 cat >&5 <<_ACEOF
1779
1780
1781 ## ----------- ##
1782 ## Core tests. ##
1783 ## ----------- ##
1784
1785 _ACEOF
1786
1787
1788 # Keep a trace of the command line.
1789 # Strip out --no-create and --no-recursion so they do not pile up.
1790 # Strip out --silent because we don't want to record it for future runs.
1791 # Also quote any args containing shell meta-characters.
1792 # Make two passes to allow for proper duplicate-argument suppression.
1793 ac_configure_args=
1794 ac_configure_args0=
1795 ac_configure_args1=
1796 ac_must_keep_next=false
1797 for ac_pass in 1 2
1798 do
1799 for ac_arg
1800 do
1801 case $ac_arg in
1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804 | -silent | --silent | --silen | --sile | --sil)
1805 continue ;;
1806 *\'*)
1807 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 esac
1809 case $ac_pass in
1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811 2)
1812 as_fn_append ac_configure_args1 " '$ac_arg'"
1813 if test $ac_must_keep_next = true; then
1814 ac_must_keep_next=false # Got value, back to normal.
1815 else
1816 case $ac_arg in
1817 *=* | --config-cache | -C | -disable-* | --disable-* \
1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820 | -with-* | --with-* | -without-* | --without-* | --x)
1821 case "$ac_configure_args0 " in
1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823 esac
1824 ;;
1825 -* ) ac_must_keep_next=true ;;
1826 esac
1827 fi
1828 as_fn_append ac_configure_args " '$ac_arg'"
1829 ;;
1830 esac
1831 done
1832 done
1833 { ac_configure_args0=; unset ac_configure_args0;}
1834 { ac_configure_args1=; unset ac_configure_args1;}
1835
1836 # When interrupted or exit'd, cleanup temporary files, and complete
1837 # config.log. We remove comments because anyway the quotes in there
1838 # would cause problems or look ugly.
1839 # WARNING: Use '\'' to represent an apostrophe within the trap.
1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841 trap 'exit_status=$?
1842 # Sanitize IFS.
1843 IFS=" "" $as_nl"
1844 # Save into config.log some information that might help in debugging.
1845 {
1846 echo
1847
1848 printf "%s\n" "## ---------------- ##
1849 ## Cache variables. ##
1850 ## ---------------- ##"
1851 echo
1852 # The following way of writing the cache mishandles newlines in values,
1853 (
1854 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1855 eval ac_val=\$$ac_var
1856 case $ac_val in #(
1857 *${as_nl}*)
1858 case $ac_var in #(
1859 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1860 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1861 esac
1862 case $ac_var in #(
1863 _ | IFS | as_nl) ;; #(
1864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1865 *) { eval $ac_var=; unset $ac_var;} ;;
1866 esac ;;
1867 esac
1868 done
1869 (set) 2>&1 |
1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871 *${as_nl}ac_space=\ *)
1872 sed -n \
1873 "s/'\''/'\''\\\\'\'''\''/g;
1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875 ;; #(
1876 *)
1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1878 ;;
1879 esac |
1880 sort
1881 )
1882 echo
1883
1884 printf "%s\n" "## ----------------- ##
1885 ## Output variables. ##
1886 ## ----------------- ##"
1887 echo
1888 for ac_var in $ac_subst_vars
1889 do
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 printf "%s\n" "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1897
1898 if test -n "$ac_subst_files"; then
1899 printf "%s\n" "## ------------------- ##
1900 ## File substitutions. ##
1901 ## ------------------- ##"
1902 echo
1903 for ac_var in $ac_subst_files
1904 do
1905 eval ac_val=\$$ac_var
1906 case $ac_val in
1907 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908 esac
1909 printf "%s\n" "$ac_var='\''$ac_val'\''"
1910 done | sort
1911 echo
1912 fi
1913
1914 if test -s confdefs.h; then
1915 printf "%s\n" "## ----------- ##
1916 ## confdefs.h. ##
1917 ## ----------- ##"
1918 echo
1919 cat confdefs.h
1920 echo
1921 fi
1922 test "$ac_signal" != 0 &&
1923 printf "%s\n" "$as_me: caught signal $ac_signal"
1924 printf "%s\n" "$as_me: exit $exit_status"
1925 } >&5
1926 rm -f core *.core core.conftest.* &&
1927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928 exit $exit_status
1929 ' 0
1930 for ac_signal in 1 2 13 15; do
1931 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1932 done
1933 ac_signal=0
1934
1935 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1936 rm -f -r conftest* confdefs.h
1937
1938 printf "%s\n" "/* confdefs.h */" > confdefs.h
1939
1940 # Predefined preprocessor variables.
1941
1942 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1943
1944 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1945
1946 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1947
1948 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1949
1950 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1951
1952 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1953
1954
1955 # Let the site file select an alternate cache file if it wants to.
1956 # Prefer an explicitly selected file to automatically selected ones.
1957 if test -n "$CONFIG_SITE"; then
1958 ac_site_files="$CONFIG_SITE"
1959 elif test "x$prefix" != xNONE; then
1960 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1961 else
1962 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1963 fi
1964
1965 for ac_site_file in $ac_site_files
1966 do
1967 case $ac_site_file in #(
1968 */*) :
1969 ;; #(
1970 *) :
1971 ac_site_file=./$ac_site_file ;;
1972 esac
1973 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1975 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1976 sed 's/^/| /' "$ac_site_file" >&5
1977 . "$ac_site_file" \
1978 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1979 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1980 as_fn_error $? "failed to load site script $ac_site_file
1981 See 'config.log' for more details" "$LINENO" 5; }
1982 fi
1983 done
1984
1985 if test -r "$cache_file"; then
1986 # Some versions of bash will fail to source /dev/null (special files
1987 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1988 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1990 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1991 case $cache_file in
1992 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993 *) . "./$cache_file";;
1994 esac
1995 fi
1996 else
1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1998 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1999 >$cache_file
2000 fi
2001
2002 # Test code for whether the C compiler supports C89 (global declarations)
2003 ac_c_conftest_c89_globals='
2004 /* Does the compiler advertise C89 conformance?
2005 Do not test the value of __STDC__, because some compilers set it to 0
2006 while being otherwise adequately conformant. */
2007 #if !defined __STDC__
2008 # error "Compiler does not advertise C89 conformance"
2009 #endif
2010
2011 #include <stddef.h>
2012 #include <stdarg.h>
2013 struct stat;
2014 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2015 struct buf { int x; };
2016 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2017 static char *e (char **p, int i)
2018 {
2019 return p[i];
2020 }
2021 static char *f (char * (*g) (char **, int), char **p, ...)
2022 {
2023 char *s;
2024 va_list v;
2025 va_start (v,p);
2026 s = g (p, va_arg (v,int));
2027 va_end (v);
2028 return s;
2029 }
2030
2031 /* C89 style stringification. */
2032 #define noexpand_stringify(a) #a
2033 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2034
2035 /* C89 style token pasting. Exercises some of the corner cases that
2036 e.g. old MSVC gets wrong, but not very hard. */
2037 #define noexpand_concat(a,b) a##b
2038 #define expand_concat(a,b) noexpand_concat(a,b)
2039 extern int vA;
2040 extern int vbee;
2041 #define aye A
2042 #define bee B
2043 int *pvA = &expand_concat(v,aye);
2044 int *pvbee = &noexpand_concat(v,bee);
2045
2046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2047 function prototypes and stuff, but not \xHH hex character constants.
2048 These do not provoke an error unfortunately, instead are silently treated
2049 as an "x". The following induces an error, until -std is added to get
2050 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2051 array size at least. It is necessary to write \x00 == 0 to get something
2052 that is true only with -std. */
2053 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2054
2055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2056 inside strings and character constants. */
2057 #define FOO(x) '\''x'\''
2058 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2059
2060 int test (int i, double x);
2061 struct s1 {int (*f) (int a);};
2062 struct s2 {int (*f) (double a);};
2063 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2064 int, int);'
2065
2066 # Test code for whether the C compiler supports C89 (body of main).
2067 ac_c_conftest_c89_main='
2068 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2069 '
2070
2071 # Test code for whether the C compiler supports C99 (global declarations)
2072 ac_c_conftest_c99_globals='
2073 /* Does the compiler advertise C99 conformance? */
2074 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2075 # error "Compiler does not advertise C99 conformance"
2076 #endif
2077
2078 // See if C++-style comments work.
2079
2080 #include <stdbool.h>
2081 extern int puts (const char *);
2082 extern int printf (const char *, ...);
2083 extern int dprintf (int, const char *, ...);
2084 extern void *malloc (size_t);
2085 extern void free (void *);
2086
2087 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2088 // dprintf is used instead of fprintf to avoid needing to declare
2089 // FILE and stderr.
2090 #define debug(...) dprintf (2, __VA_ARGS__)
2091 #define showlist(...) puts (#__VA_ARGS__)
2092 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2093 static void
2094 test_varargs_macros (void)
2095 {
2096 int x = 1234;
2097 int y = 5678;
2098 debug ("Flag");
2099 debug ("X = %d\n", x);
2100 showlist (The first, second, and third items.);
2101 report (x>y, "x is %d but y is %d", x, y);
2102 }
2103
2104 // Check long long types.
2105 #define BIG64 18446744073709551615ull
2106 #define BIG32 4294967295ul
2107 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2108 #if !BIG_OK
2109 #error "your preprocessor is broken"
2110 #endif
2111 #if BIG_OK
2112 #else
2113 #error "your preprocessor is broken"
2114 #endif
2115 static long long int bignum = -9223372036854775807LL;
2116 static unsigned long long int ubignum = BIG64;
2117
2118 struct incomplete_array
2119 {
2120 int datasize;
2121 double data[];
2122 };
2123
2124 struct named_init {
2125 int number;
2126 const wchar_t *name;
2127 double average;
2128 };
2129
2130 typedef const char *ccp;
2131
2132 static inline int
2133 test_restrict (ccp restrict text)
2134 {
2135 // Iterate through items via the restricted pointer.
2136 // Also check for declarations in for loops.
2137 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2138 continue;
2139 return 0;
2140 }
2141
2142 // Check varargs and va_copy.
2143 static bool
2144 test_varargs (const char *format, ...)
2145 {
2146 va_list args;
2147 va_start (args, format);
2148 va_list args_copy;
2149 va_copy (args_copy, args);
2150
2151 const char *str = "";
2152 int number = 0;
2153 float fnumber = 0;
2154
2155 while (*format)
2156 {
2157 switch (*format++)
2158 {
2159 case '\''s'\'': // string
2160 str = va_arg (args_copy, const char *);
2161 break;
2162 case '\''d'\'': // int
2163 number = va_arg (args_copy, int);
2164 break;
2165 case '\''f'\'': // float
2166 fnumber = va_arg (args_copy, double);
2167 break;
2168 default:
2169 break;
2170 }
2171 }
2172 va_end (args_copy);
2173 va_end (args);
2174
2175 return *str && number && fnumber;
2176 }
2177 '
2178
2179 # Test code for whether the C compiler supports C99 (body of main).
2180 ac_c_conftest_c99_main='
2181 // Check bool.
2182 _Bool success = false;
2183 success |= (argc != 0);
2184
2185 // Check restrict.
2186 if (test_restrict ("String literal") == 0)
2187 success = true;
2188 char *restrict newvar = "Another string";
2189
2190 // Check varargs.
2191 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2192 test_varargs_macros ();
2193
2194 // Check flexible array members.
2195 struct incomplete_array *ia =
2196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2197 ia->datasize = 10;
2198 for (int i = 0; i < ia->datasize; ++i)
2199 ia->data[i] = i * 1.234;
2200 // Work around memory leak warnings.
2201 free (ia);
2202
2203 // Check named initializers.
2204 struct named_init ni = {
2205 .number = 34,
2206 .name = L"Test wide string",
2207 .average = 543.34343,
2208 };
2209
2210 ni.number = 58;
2211
2212 int dynamic_array[ni.number];
2213 dynamic_array[0] = argv[0][0];
2214 dynamic_array[ni.number - 1] = 543;
2215
2216 // work around unused variable warnings
2217 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2218 || dynamic_array[ni.number - 1] != 543);
2219 '
2220
2221 # Test code for whether the C compiler supports C11 (global declarations)
2222 ac_c_conftest_c11_globals='
2223 /* Does the compiler advertise C11 conformance? */
2224 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2225 # error "Compiler does not advertise C11 conformance"
2226 #endif
2227
2228 // Check _Alignas.
2229 char _Alignas (double) aligned_as_double;
2230 char _Alignas (0) no_special_alignment;
2231 extern char aligned_as_int;
2232 char _Alignas (0) _Alignas (int) aligned_as_int;
2233
2234 // Check _Alignof.
2235 enum
2236 {
2237 int_alignment = _Alignof (int),
2238 int_array_alignment = _Alignof (int[100]),
2239 char_alignment = _Alignof (char)
2240 };
2241 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2242
2243 // Check _Noreturn.
2244 int _Noreturn does_not_return (void) { for (;;) continue; }
2245
2246 // Check _Static_assert.
2247 struct test_static_assert
2248 {
2249 int x;
2250 _Static_assert (sizeof (int) <= sizeof (long int),
2251 "_Static_assert does not work in struct");
2252 long int y;
2253 };
2254
2255 // Check UTF-8 literals.
2256 #define u8 syntax error!
2257 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2258
2259 // Check duplicate typedefs.
2260 typedef long *long_ptr;
2261 typedef long int *long_ptr;
2262 typedef long_ptr long_ptr;
2263
2264 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2265 struct anonymous
2266 {
2267 union {
2268 struct { int i; int j; };
2269 struct { int k; long int l; } w;
2270 };
2271 int m;
2272 } v1;
2273 '
2274
2275 # Test code for whether the C compiler supports C11 (body of main).
2276 ac_c_conftest_c11_main='
2277 _Static_assert ((offsetof (struct anonymous, i)
2278 == offsetof (struct anonymous, w.k)),
2279 "Anonymous union alignment botch");
2280 v1.i = 2;
2281 v1.w.k = 5;
2282 ok |= v1.i != 5;
2283 '
2284
2285 # Test code for whether the C compiler supports C11 (complete).
2286 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2287 ${ac_c_conftest_c99_globals}
2288 ${ac_c_conftest_c11_globals}
2289
2290 int
2291 main (int argc, char **argv)
2292 {
2293 int ok = 0;
2294 ${ac_c_conftest_c89_main}
2295 ${ac_c_conftest_c99_main}
2296 ${ac_c_conftest_c11_main}
2297 return ok;
2298 }
2299 "
2300
2301 # Test code for whether the C compiler supports C99 (complete).
2302 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2303 ${ac_c_conftest_c99_globals}
2304
2305 int
2306 main (int argc, char **argv)
2307 {
2308 int ok = 0;
2309 ${ac_c_conftest_c89_main}
2310 ${ac_c_conftest_c99_main}
2311 return ok;
2312 }
2313 "
2314
2315 # Test code for whether the C compiler supports C89 (complete).
2316 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2317
2318 int
2319 main (int argc, char **argv)
2320 {
2321 int ok = 0;
2322 ${ac_c_conftest_c89_main}
2323 return ok;
2324 }
2325 "
2326
2327 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2328 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2329 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2330 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2331 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2332 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2333 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2334 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2335 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2336
2337 # Auxiliary files required by this configure script.
2338 ac_aux_files="config.guess config.sub compile missing install-sh"
2339
2340 # Locations in which to look for auxiliary files.
2341 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2342
2343 # Search for a directory containing all of the required auxiliary files,
2344 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2345 # If we don't find one directory that contains all the files we need,
2346 # we report the set of missing files from the *first* directory in
2347 # $ac_aux_dir_candidates and give up.
2348 ac_missing_aux_files=""
2349 ac_first_candidate=:
2350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 as_found=false
2353 for as_dir in $ac_aux_dir_candidates
2354 do
2355 IFS=$as_save_IFS
2356 case $as_dir in #(((
2357 '') as_dir=./ ;;
2358 */) ;;
2359 *) as_dir=$as_dir/ ;;
2360 esac
2361 as_found=:
2362
2363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2364 ac_aux_dir_found=yes
2365 ac_install_sh=
2366 for ac_aux in $ac_aux_files
2367 do
2368 # As a special case, if "install-sh" is required, that requirement
2369 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2370 # and $ac_install_sh is set appropriately for whichever one is found.
2371 if test x"$ac_aux" = x"install-sh"
2372 then
2373 if 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}install.sh"; then
2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2378 ac_install_sh="${as_dir}install.sh -c"
2379 elif test -f "${as_dir}shtool"; then
2380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2381 ac_install_sh="${as_dir}shtool install -c"
2382 else
2383 ac_aux_dir_found=no
2384 if $ac_first_candidate; then
2385 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2386 else
2387 break
2388 fi
2389 fi
2390 else
2391 if test -f "${as_dir}${ac_aux}"; then
2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2393 else
2394 ac_aux_dir_found=no
2395 if $ac_first_candidate; then
2396 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2397 else
2398 break
2399 fi
2400 fi
2401 fi
2402 done
2403 if test "$ac_aux_dir_found" = yes; then
2404 ac_aux_dir="$as_dir"
2405 break
2406 fi
2407 ac_first_candidate=false
2408
2409 as_found=false
2410 done
2411 IFS=$as_save_IFS
2412 if $as_found
2413 then :
2414
2415 else case e in #(
2416 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2417 esac
2418 fi
2419
2420
2421 # These three variables are undocumented and unsupported,
2422 # and are intended to be withdrawn in a future Autoconf release.
2423 # They can cause serious problems if a builder's source tree is in a directory
2424 # whose full name contains unusual characters.
2425 if test -f "${ac_aux_dir}config.guess"; then
2426 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2427 fi
2428 if test -f "${ac_aux_dir}config.sub"; then
2429 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2430 fi
2431 if test -f "$ac_aux_dir/configure"; then
2432 ac_configure="$SHELL ${ac_aux_dir}configure"
2433 fi
2434
2435 # Check that the precious variables saved in the cache have kept the same
2436 # value.
2437 ac_cache_corrupted=false
2438 for ac_var in $ac_precious_vars; do
2439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2440 eval ac_new_set=\$ac_env_${ac_var}_set
2441 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2442 eval ac_new_val=\$ac_env_${ac_var}_value
2443 case $ac_old_set,$ac_new_set in
2444 set,)
2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2446 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2447 ac_cache_corrupted=: ;;
2448 ,set)
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2450 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2451 ac_cache_corrupted=: ;;
2452 ,);;
2453 *)
2454 if test "x$ac_old_val" != "x$ac_new_val"; then
2455 # differences in whitespace do not lead to failure.
2456 ac_old_val_w=`echo x $ac_old_val`
2457 ac_new_val_w=`echo x $ac_new_val`
2458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2460 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2461 ac_cache_corrupted=:
2462 else
2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2464 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2465 eval $ac_var=\$ac_old_val
2466 fi
2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2468 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2470 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2471 fi;;
2472 esac
2473 # Pass precious variables to config.status.
2474 if test "$ac_new_set" = set; then
2475 case $ac_new_val in
2476 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2477 *) ac_arg=$ac_var=$ac_new_val ;;
2478 esac
2479 case " $ac_configure_args " in
2480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2481 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2482 esac
2483 fi
2484 done
2485 if $ac_cache_corrupted; then
2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2487 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2489 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2490 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2491 and start over" "$LINENO" 5
2492 fi
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2496
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504
2505 ac_config_headers="$ac_config_headers config.h"
2506
2507
2508 # Initialize Automake
2509 am__api_version='1.17'
2510
2511
2512
2513 # Find a good install program. We prefer a C program (faster),
2514 # so one script is as good as another. But avoid the broken or
2515 # incompatible versions:
2516 # SysV /etc/install, /usr/sbin/install
2517 # SunOS /usr/etc/install
2518 # IRIX /sbin/install
2519 # AIX /bin/install
2520 # AmigaOS /C/install, which installs bootblocks on floppy discs
2521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2524 # OS/2's system install, which has a completely different semantic
2525 # ./install, which can be erroneously created by make from ./install.sh.
2526 # Reject install programs that cannot install multiple files.
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2528 printf %s "checking for a BSD-compatible install... " >&6; }
2529 if test -z "$INSTALL"; then
2530 if test ${ac_cv_path_install+y}
2531 then :
2532 printf %s "(cached) " >&6
2533 else case e in #(
2534 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537 IFS=$as_save_IFS
2538 case $as_dir in #(((
2539 '') as_dir=./ ;;
2540 */) ;;
2541 *) as_dir=$as_dir/ ;;
2542 esac
2543 # Account for fact that we put trailing slashes in our PATH walk.
2544 case $as_dir in #((
2545 ./ | /[cC]/* | \
2546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2547 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2548 /usr/ucb/* ) ;;
2549 *)
2550 # OSF1 and SCO ODT 3.0 have their own names for install.
2551 # Don't use installbsd from OSF since it installs stuff as root
2552 # by default.
2553 for ac_prog in ginstall scoinst install; do
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2556 if test $ac_prog = install &&
2557 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558 # AIX install. It has an incompatible calling convention.
2559 :
2560 elif test $ac_prog = install &&
2561 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562 # program-specific install script used by HP pwplus--don't use.
2563 :
2564 else
2565 rm -rf conftest.one conftest.two conftest.dir
2566 echo one > conftest.one
2567 echo two > conftest.two
2568 mkdir conftest.dir
2569 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2570 test -s conftest.one && test -s conftest.two &&
2571 test -s conftest.dir/conftest.one &&
2572 test -s conftest.dir/conftest.two
2573 then
2574 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2575 break 3
2576 fi
2577 fi
2578 fi
2579 done
2580 done
2581 ;;
2582 esac
2583
2584 done
2585 IFS=$as_save_IFS
2586
2587 rm -rf conftest.one conftest.two conftest.dir
2588 ;;
2589 esac
2590 fi
2591 if test ${ac_cv_path_install+y}; then
2592 INSTALL=$ac_cv_path_install
2593 else
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 INSTALL=$ac_install_sh
2599 fi
2600 fi
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 printf "%s\n" "$INSTALL" >&6; }
2603
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2613 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2614 if test ${am_cv_sleep_fractional_seconds+y}
2615 then :
2616 printf %s "(cached) " >&6
2617 else case e in #(
2618 e) if sleep 0.001 2>/dev/null
2619 then :
2620 am_cv_sleep_fractional_seconds=yes
2621 else case e in #(
2622 e) am_cv_sleep_fractional_seconds=no ;;
2623 esac
2624 fi
2625 ;;
2626 esac
2627 fi
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2629 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2630
2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2632 printf %s "checking filesystem timestamp resolution... " >&6; }
2633 if test ${am_cv_filesystem_timestamp_resolution+y}
2634 then :
2635 printf %s "(cached) " >&6
2636 else case e in #(
2637 e) # Default to the worst case.
2638 am_cv_filesystem_timestamp_resolution=2
2639
2640 # Only try to go finer than 1 sec if sleep can do it.
2641 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2642 # - 1 sec is not much of a win compared to 2 sec, and
2643 # - it takes 2 seconds to perform the test whether 1 sec works.
2644 #
2645 # Instead, just use the default 2s on platforms that have 1s resolution,
2646 # accept the extra 1s delay when using $sleep in the Automake tests, in
2647 # exchange for not incurring the 2s delay for running the test for all
2648 # packages.
2649 #
2650 am_try_resolutions=
2651 if test "$am_cv_sleep_fractional_seconds" = yes; then
2652 # Even a millisecond often causes a bunch of false positives,
2653 # so just try a hundredth of a second. The time saved between .001 and
2654 # .01 is not terribly consequential.
2655 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2656 fi
2657
2658 # In order to catch current-generation FAT out, we must *modify* files
2659 # that already exist; the *creation* timestamp is finer. Use names
2660 # that make ls -t sort them differently when they have equal
2661 # timestamps than when they have distinct timestamps, keeping
2662 # in mind that ls -t prints the *newest* file first.
2663 rm -f conftest.ts?
2664 : > conftest.ts1
2665 : > conftest.ts2
2666 : > conftest.ts3
2667
2668 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2669 # clobber the current shell's arguments. (Outer-level square brackets
2670 # are removed by m4; they're present so that m4 does not expand
2671 # <dollar><star>; be careful, easy to get confused.)
2672 if (
2673 set X `ls -t conftest.ts[12]` &&
2674 {
2675 test "$*" != "X conftest.ts1 conftest.ts2" ||
2676 test "$*" != "X conftest.ts2 conftest.ts1";
2677 }
2678 ); then :; else
2679 # If neither matched, then we have a broken ls. This can happen
2680 # if, for instance, CONFIG_SHELL is bash and it inherits a
2681 # broken ls alias from the environment. This has actually
2682 # happened. Such a system could not be considered "sane".
2683 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2684 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2685 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2686 as_fn_error $? "ls -t produces unexpected output.
2687 Make sure there is not a broken ls alias in your environment.
2688 See 'config.log' for more details" "$LINENO" 5; }
2689 fi
2690
2691 for am_try_res in $am_try_resolutions; do
2692 # Any one fine-grained sleep might happen to cross the boundary
2693 # between two values of a coarser actual resolution, but if we do
2694 # two fine-grained sleeps in a row, at least one of them will fall
2695 # entirely within a coarse interval.
2696 echo alpha > conftest.ts1
2697 sleep $am_try_res
2698 echo beta > conftest.ts2
2699 sleep $am_try_res
2700 echo gamma > conftest.ts3
2701
2702 # We assume that 'ls -t' will make use of high-resolution
2703 # timestamps if the operating system supports them at all.
2704 if (set X `ls -t conftest.ts?` &&
2705 test "$2" = conftest.ts3 &&
2706 test "$3" = conftest.ts2 &&
2707 test "$4" = conftest.ts1); then
2708 #
2709 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2710 # because we don't need to test make.
2711 make_ok=true
2712 if test $am_try_res != 1; then
2713 # But if we've succeeded so far with a subsecond resolution, we
2714 # have one more thing to check: make. It can happen that
2715 # everything else supports the subsecond mtimes, but make doesn't;
2716 # notably on macOS, which ships make 3.81 from 2006 (the last one
2717 # released under GPLv2). https://bugs.gnu.org/68808
2718 #
2719 # We test $MAKE if it is defined in the environment, else "make".
2720 # It might get overridden later, but our hope is that in practice
2721 # it does not matter: it is the system "make" which is (by far)
2722 # the most likely to be broken, whereas if the user overrides it,
2723 # probably they did so with a better, or at least not worse, make.
2724 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2725 #
2726 # Create a Makefile (real tab character here):
2727 rm -f conftest.mk
2728 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2729 echo ' touch conftest.ts2' >>conftest.mk
2730 #
2731 # Now, running
2732 # touch conftest.ts1; touch conftest.ts2; make
2733 # should touch ts1 because ts2 is newer. This could happen by luck,
2734 # but most often, it will fail if make's support is insufficient. So
2735 # test for several consecutive successes.
2736 #
2737 # (We reuse conftest.ts[12] because we still want to modify existing
2738 # files, not create new ones, per above.)
2739 n=0
2740 make=${MAKE-make}
2741 until test $n -eq 3; do
2742 echo one > conftest.ts1
2743 sleep $am_try_res
2744 echo two > conftest.ts2 # ts2 should now be newer than ts1
2745 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2746 make_ok=false
2747 break # out of $n loop
2748 fi
2749 n=`expr $n + 1`
2750 done
2751 fi
2752 #
2753 if $make_ok; then
2754 # Everything we know to check worked out, so call this resolution good.
2755 am_cv_filesystem_timestamp_resolution=$am_try_res
2756 break # out of $am_try_res loop
2757 fi
2758 # Otherwise, we'll go on to check the next resolution.
2759 fi
2760 done
2761 rm -f conftest.ts?
2762 # (end _am_filesystem_timestamp_resolution)
2763 ;;
2764 esac
2765 fi
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2767 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2768
2769 # This check should not be cached, as it may vary across builds of
2770 # different projects.
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2772 printf %s "checking whether build environment is sane... " >&6; }
2773 # Reject unsafe characters in $srcdir or the absolute working directory
2774 # name. Accept space and tab only in the latter.
2775 am_lf='
2776 '
2777 case `pwd` in
2778 *[\\\"\#\$\&\'\`$am_lf]*)
2779 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2780 esac
2781 case $srcdir in
2782 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2783 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2784 esac
2785
2786 # Do 'set' in a subshell so we don't clobber the current shell's
2787 # arguments. Must try -L first in case configure is actually a
2788 # symlink; some systems play weird games with the mod time of symlinks
2789 # (eg FreeBSD returns the mod time of the symlink's containing
2790 # directory).
2791 am_build_env_is_sane=no
2792 am_has_slept=no
2793 rm -f conftest.file
2794 for am_try in 1 2; do
2795 echo "timestamp, slept: $am_has_slept" > conftest.file
2796 if (
2797 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2798 if test "$*" = "X"; then
2799 # -L didn't work.
2800 set X `ls -t "$srcdir/configure" conftest.file`
2801 fi
2802 test "$2" = conftest.file
2803 ); then
2804 am_build_env_is_sane=yes
2805 break
2806 fi
2807 # Just in case.
2808 sleep "$am_cv_filesystem_timestamp_resolution"
2809 am_has_slept=yes
2810 done
2811
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2813 printf "%s\n" "$am_build_env_is_sane" >&6; }
2814 if test "$am_build_env_is_sane" = no; then
2815 as_fn_error $? "newly created file is older than distributed files!
2816 Check your system clock" "$LINENO" 5
2817 fi
2818
2819 # If we didn't sleep, we still need to ensure time stamps of config.status and
2820 # generated files are strictly newer.
2821 am_sleep_pid=
2822 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2823 then :
2824
2825 else case e in #(
2826 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2827 am_sleep_pid=$!
2828 ;;
2829 esac
2830 fi
2831
2832 rm -f conftest.file
2833
2834 test "$program_prefix" != NONE &&
2835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836 # Use a double $ so make ignores it.
2837 test "$program_suffix" != NONE &&
2838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839 # Double any \ or $.
2840 # By default was 's,x,x', remove it if useless.
2841 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2843
2844
2845 # Expand $ac_aux_dir to an absolute path.
2846 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2847
2848
2849 if test x"${MISSING+set}" != xset; then
2850 MISSING="\${SHELL} '$am_aux_dir/missing'"
2851 fi
2852 # Use eval to expand $SHELL
2853 if eval "$MISSING --is-lightweight"; then
2854 am_missing_run="$MISSING "
2855 else
2856 am_missing_run=
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2858 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2859 fi
2860
2861 if test x"${install_sh+set}" != xset; then
2862 case $am_aux_dir in
2863 *\ * | *\ *)
2864 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2865 *)
2866 install_sh="\${SHELL} $am_aux_dir/install-sh"
2867 esac
2868 fi
2869
2870 # Installed binaries are usually stripped using 'strip' when the user
2871 # run "make install-strip". However 'strip' might not be the right
2872 # tool to use in cross-compilation environments, therefore Automake
2873 # will honor the 'STRIP' environment variable to overrule this program.
2874 if test "$cross_compiling" != no; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}strip; ac_word=$2
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 printf %s "checking for $ac_word... " >&6; }
2880 if test ${ac_cv_prog_STRIP+y}
2881 then :
2882 printf %s "(cached) " >&6
2883 else case e in #(
2884 e) if test -n "$STRIP"; then
2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 case $as_dir in #(((
2892 '') as_dir=./ ;;
2893 */) ;;
2894 *) as_dir=$as_dir/ ;;
2895 esac
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi ;;
2907 esac
2908 fi
2909 STRIP=$ac_cv_prog_STRIP
2910 if test -n "$STRIP"; then
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2912 printf "%s\n" "$STRIP" >&6; }
2913 else
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 printf "%s\n" "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$ac_cv_prog_STRIP"; then
2921 ac_ct_STRIP=$STRIP
2922 # Extract the first word of "strip", so it can be a program name with args.
2923 set dummy strip; ac_word=$2
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 printf %s "checking for $ac_word... " >&6; }
2926 if test ${ac_cv_prog_ac_ct_STRIP+y}
2927 then :
2928 printf %s "(cached) " >&6
2929 else case e in #(
2930 e) if test -n "$ac_ct_STRIP"; then
2931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 case $as_dir in #(((
2938 '') as_dir=./ ;;
2939 */) ;;
2940 *) as_dir=$as_dir/ ;;
2941 esac
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_STRIP="strip"
2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi ;;
2953 esac
2954 fi
2955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2956 if test -n "$ac_ct_STRIP"; then
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958 printf "%s\n" "$ac_ct_STRIP" >&6; }
2959 else
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 printf "%s\n" "no" >&6; }
2962 fi
2963
2964 if test "x$ac_ct_STRIP" = x; then
2965 STRIP=":"
2966 else
2967 case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973 STRIP=$ac_ct_STRIP
2974 fi
2975 else
2976 STRIP="$ac_cv_prog_STRIP"
2977 fi
2978
2979 fi
2980 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2981
2982
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2984 printf %s "checking for a race-free mkdir -p... " >&6; }
2985 if test -z "$MKDIR_P"; then
2986 if test ${ac_cv_path_mkdir+y}
2987 then :
2988 printf %s "(cached) " >&6
2989 else case e in #(
2990 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2992 do
2993 IFS=$as_save_IFS
2994 case $as_dir in #(((
2995 '') as_dir=./ ;;
2996 */) ;;
2997 *) as_dir=$as_dir/ ;;
2998 esac
2999 for ac_prog in mkdir gmkdir; do
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3002 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3003 'mkdir ('*'coreutils) '* | \
3004 *'BusyBox '* | \
3005 'mkdir (fileutils) '4.1*)
3006 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3007 break 3;;
3008 esac
3009 done
3010 done
3011 done
3012 IFS=$as_save_IFS
3013 ;;
3014 esac
3015 fi
3016
3017 test -d ./--version && rmdir ./--version
3018 if test ${ac_cv_path_mkdir+y}; then
3019 MKDIR_P="$ac_cv_path_mkdir -p"
3020 else
3021 # As a last resort, use plain mkdir -p,
3022 # in the hope it doesn't have the bugs of ancient mkdir.
3023 MKDIR_P='mkdir -p'
3024 fi
3025 fi
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3027 printf "%s\n" "$MKDIR_P" >&6; }
3028
3029 for ac_prog in gawk mawk nawk awk
3030 do
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy $ac_prog; ac_word=$2
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 printf %s "checking for $ac_word... " >&6; }
3035 if test ${ac_cv_prog_AWK+y}
3036 then :
3037 printf %s "(cached) " >&6
3038 else case e in #(
3039 e) if test -n "$AWK"; then
3040 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 case $as_dir in #(((
3047 '') as_dir=./ ;;
3048 */) ;;
3049 *) as_dir=$as_dir/ ;;
3050 esac
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_AWK="$ac_prog"
3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi ;;
3062 esac
3063 fi
3064 AWK=$ac_cv_prog_AWK
3065 if test -n "$AWK"; then
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3067 printf "%s\n" "$AWK" >&6; }
3068 else
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 printf "%s\n" "no" >&6; }
3071 fi
3072
3073
3074 test -n "$AWK" && break
3075 done
3076
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3078 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3079 set x ${MAKE-make}
3080 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3081 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3082 then :
3083 printf %s "(cached) " >&6
3084 else case e in #(
3085 e) cat >conftest.make <<\_ACEOF
3086 SHELL = /bin/sh
3087 all:
3088 @echo '@@@%%%=$(MAKE)=@@@%%%'
3089 _ACEOF
3090 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3091 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3092 *@@@%%%=?*=@@@%%%*)
3093 eval ac_cv_prog_make_${ac_make}_set=yes;;
3094 *)
3095 eval ac_cv_prog_make_${ac_make}_set=no;;
3096 esac
3097 rm -f conftest.make ;;
3098 esac
3099 fi
3100 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3102 printf "%s\n" "yes" >&6; }
3103 SET_MAKE=
3104 else
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 printf "%s\n" "no" >&6; }
3107 SET_MAKE="MAKE=${MAKE-make}"
3108 fi
3109
3110 rm -rf .tst 2>/dev/null
3111 mkdir .tst 2>/dev/null
3112 if test -d .tst; then
3113 am__leading_dot=.
3114 else
3115 am__leading_dot=_
3116 fi
3117 rmdir .tst 2>/dev/null
3118
3119 AM_DEFAULT_VERBOSITY=1
3120 # Check whether --enable-silent-rules was given.
3121 if test ${enable_silent_rules+y}
3122 then :
3123 enableval=$enable_silent_rules;
3124 fi
3125
3126 am_make=${MAKE-make}
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3128 printf %s "checking whether $am_make supports nested variables... " >&6; }
3129 if test ${am_cv_make_support_nested_variables+y}
3130 then :
3131 printf %s "(cached) " >&6
3132 else case e in #(
3133 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3134 BAR0=false
3135 BAR1=true
3136 V=1
3137 am__doit:
3138 @$(TRUE)
3139 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3140 am_cv_make_support_nested_variables=yes
3141 else
3142 am_cv_make_support_nested_variables=no
3143 fi ;;
3144 esac
3145 fi
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3147 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3148 AM_BACKSLASH='\'
3149
3150 am__rm_f_notfound=
3151 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3152 then :
3153
3154 else case e in #(
3155 e) am__rm_f_notfound='""' ;;
3156 esac
3157 fi
3158
3159
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3161 printf %s "checking xargs -n works... " >&6; }
3162 if test ${am_cv_xargs_n_works+y}
3163 then :
3164 printf %s "(cached) " >&6
3165 else case e in #(
3166 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3167 3"
3168 then :
3169 am_cv_xargs_n_works=yes
3170 else case e in #(
3171 e) am_cv_xargs_n_works=no ;;
3172 esac
3173 fi ;;
3174 esac
3175 fi
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3177 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3178 if test "$am_cv_xargs_n_works" = yes
3179 then :
3180 am__xargs_n='xargs -n'
3181 else case e in #(
3182 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3183 ;;
3184 esac
3185 fi
3186
3187 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189 # is not polluted with repeated "-I."
3190 am__isrc=' -I$(srcdir)'
3191 # test to see if srcdir already configured
3192 if test -f $srcdir/config.status; then
3193 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194 fi
3195 fi
3196
3197 # test whether we have cygpath
3198 if test -z "$CYGPATH_W"; then
3199 if (cygpath --version) >/dev/null 2>/dev/null; then
3200 CYGPATH_W='cygpath -w'
3201 else
3202 CYGPATH_W=echo
3203 fi
3204 fi
3205
3206
3207 # Define the identity of the package.
3208 PACKAGE='showfont'
3209 VERSION='1.0.7'
3210
3211
3212 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3213
3214
3215 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3216
3217 # Some tools Automake needs.
3218
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220
3221
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3223
3224
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226
3227
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3229
3230
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3232
3233 # For better backward compatibility. To be removed once Automake 1.9.x
3234 # dies out for good. For more background, see:
3235 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3236 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3237 mkdir_p='$(MKDIR_P)'
3238
3239 # We need awk for the "check" target (and possibly the TAP driver). The
3240 # system "awk" is bad on some platforms.
3241 # Always define AMTAR for backward compatibility. Yes, it's still used
3242 # in the wild :-( We should find a proper way to deprecate it ...
3243 AMTAR='$${TAR-tar}'
3244
3245
3246 # We'll loop over all known methods to create a tar archive until one works.
3247 _am_tools='gnutar pax cpio none'
3248
3249 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3250
3251
3252
3253
3254
3255 # Variables for tags utilities; see am/tags.am
3256 if test -z "$CTAGS"; then
3257 CTAGS=ctags
3258 fi
3259
3260 if test -z "$ETAGS"; then
3261 ETAGS=etags
3262 fi
3263
3264 if test -z "$CSCOPE"; then
3265 CSCOPE=cscope
3266 fi
3267
3268
3269
3270
3271
3272
3273
3274
3275 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296 DEPDIR="${am__leading_dot}deps"
3297
3298 ac_config_commands="$ac_config_commands depfiles"
3299
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3301 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3302 cat > confinc.mk << 'END'
3303 am__doit:
3304 @echo this is the am__doit target >confinc.out
3305 .PHONY: am__doit
3306 END
3307 am__include="#"
3308 am__quote=
3309 # BSD make does it like this.
3310 echo '.include "confinc.mk" # ignored' > confmf.BSD
3311 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3312 echo 'include confinc.mk # ignored' > confmf.GNU
3313 _am_result=no
3314 for s in GNU BSD; do
3315 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3316 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }
3320 case $?:`cat confinc.out 2>/dev/null` in #(
3321 '0:this is the am__doit target') :
3322 case $s in #(
3323 BSD) :
3324 am__include='.include' am__quote='"' ;; #(
3325 *) :
3326 am__include='include' am__quote='' ;;
3327 esac ;; #(
3328 *) :
3329 ;;
3330 esac
3331 if test "$am__include" != "#"; then
3332 _am_result="yes ($s style)"
3333 break
3334 fi
3335 done
3336 rm -f confinc.* confmf.*
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3338 printf "%s\n" "${_am_result}" >&6; }
3339
3340 # Check whether --enable-dependency-tracking was given.
3341 if test ${enable_dependency_tracking+y}
3342 then :
3343 enableval=$enable_dependency_tracking;
3344 fi
3345
3346 if test "x$enable_dependency_tracking" != xno; then
3347 am_depcomp="$ac_aux_dir/depcomp"
3348 AMDEPBACKSLASH='\'
3349 am__nodep='_no'
3350 fi
3351 if test "x$enable_dependency_tracking" != xno; then
3352 AMDEP_TRUE=
3353 AMDEP_FALSE='#'
3354 else
3355 AMDEP_TRUE='#'
3356 AMDEP_FALSE=
3357 fi
3358
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 if test -n "$ac_tool_prefix"; then
3366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 printf %s "checking for $ac_word... " >&6; }
3370 if test ${ac_cv_prog_CC+y}
3371 then :
3372 printf %s "(cached) " >&6
3373 else case e in #(
3374 e) if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 case $as_dir in #(((
3382 '') as_dir=./ ;;
3383 */) ;;
3384 *) as_dir=$as_dir/ ;;
3385 esac
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 fi ;;
3397 esac
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 printf "%s\n" "$CC" >&6; }
3403 else
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 printf "%s\n" "no" >&6; }
3406 fi
3407
3408
3409 fi
3410 if test -z "$ac_cv_prog_CC"; then
3411 ac_ct_CC=$CC
3412 # Extract the first word of "gcc", so it can be a program name with args.
3413 set dummy gcc; ac_word=$2
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 printf %s "checking for $ac_word... " >&6; }
3416 if test ${ac_cv_prog_ac_ct_CC+y}
3417 then :
3418 printf %s "(cached) " >&6
3419 else case e in #(
3420 e) if test -n "$ac_ct_CC"; then
3421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426 IFS=$as_save_IFS
3427 case $as_dir in #(((
3428 '') as_dir=./ ;;
3429 */) ;;
3430 *) as_dir=$as_dir/ ;;
3431 esac
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="gcc"
3435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi ;;
3443 esac
3444 fi
3445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3446 if test -n "$ac_ct_CC"; then
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3448 printf "%s\n" "$ac_ct_CC" >&6; }
3449 else
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 printf "%s\n" "no" >&6; }
3452 fi
3453
3454 if test "x$ac_ct_CC" = x; then
3455 CC=""
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned=yes ;;
3462 esac
3463 CC=$ac_ct_CC
3464 fi
3465 else
3466 CC="$ac_cv_prog_CC"
3467 fi
3468
3469 if test -z "$CC"; then
3470 if test -n "$ac_tool_prefix"; then
3471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3472 set dummy ${ac_tool_prefix}cc; ac_word=$2
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 printf %s "checking for $ac_word... " >&6; }
3475 if test ${ac_cv_prog_CC+y}
3476 then :
3477 printf %s "(cached) " >&6
3478 else case e in #(
3479 e) if test -n "$CC"; then
3480 ac_cv_prog_CC="$CC" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485 IFS=$as_save_IFS
3486 case $as_dir in #(((
3487 '') as_dir=./ ;;
3488 */) ;;
3489 *) as_dir=$as_dir/ ;;
3490 esac
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_CC="${ac_tool_prefix}cc"
3494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497 done
3498 done
3499 IFS=$as_save_IFS
3500
3501 fi ;;
3502 esac
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 printf "%s\n" "$CC" >&6; }
3508 else
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 printf "%s\n" "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 fi
3516 if test -z "$CC"; then
3517 # Extract the first word of "cc", so it can be a program name with args.
3518 set dummy cc; ac_word=$2
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 printf %s "checking for $ac_word... " >&6; }
3521 if test ${ac_cv_prog_CC+y}
3522 then :
3523 printf %s "(cached) " >&6
3524 else case e in #(
3525 e) if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 ac_prog_rejected=no
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 case $as_dir in #(((
3534 '') as_dir=./ ;;
3535 */) ;;
3536 *) as_dir=$as_dir/ ;;
3537 esac
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3540 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3541 ac_prog_rejected=yes
3542 continue
3543 fi
3544 ac_cv_prog_CC="cc"
3545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 if test $ac_prog_rejected = yes; then
3553 # We found a bogon in the path, so make sure we never use it.
3554 set dummy $ac_cv_prog_CC
3555 shift
3556 if test $# != 0; then
3557 # We chose a different compiler from the bogus one.
3558 # However, it has the same basename, so the bogon will be chosen
3559 # first if we set CC to just the basename; use the full file name.
3560 shift
3561 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3562 fi
3563 fi
3564 fi ;;
3565 esac
3566 fi
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 printf "%s\n" "$CC" >&6; }
3571 else
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 printf "%s\n" "no" >&6; }
3574 fi
3575
3576
3577 fi
3578 if test -z "$CC"; then
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in cl.exe
3581 do
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 printf %s "checking for $ac_word... " >&6; }
3586 if test ${ac_cv_prog_CC+y}
3587 then :
3588 printf %s "(cached) " >&6
3589 else case e in #(
3590 e) if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 case $as_dir in #(((
3598 '') as_dir=./ ;;
3599 */) ;;
3600 *) as_dir=$as_dir/ ;;
3601 esac
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi ;;
3613 esac
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 printf "%s\n" "$CC" >&6; }
3619 else
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 printf "%s\n" "no" >&6; }
3622 fi
3623
3624
3625 test -n "$CC" && break
3626 done
3627 fi
3628 if test -z "$CC"; then
3629 ac_ct_CC=$CC
3630 for ac_prog in cl.exe
3631 do
3632 # Extract the first word of "$ac_prog", so it can be a program name with args.
3633 set dummy $ac_prog; ac_word=$2
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 printf %s "checking for $ac_word... " >&6; }
3636 if test ${ac_cv_prog_ac_ct_CC+y}
3637 then :
3638 printf %s "(cached) " >&6
3639 else case e in #(
3640 e) if test -n "$ac_ct_CC"; then
3641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 case $as_dir in #(((
3648 '') as_dir=./ ;;
3649 */) ;;
3650 *) as_dir=$as_dir/ ;;
3651 esac
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_ac_ct_CC="$ac_prog"
3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658 done
3659 done
3660 IFS=$as_save_IFS
3661
3662 fi ;;
3663 esac
3664 fi
3665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666 if test -n "$ac_ct_CC"; then
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3668 printf "%s\n" "$ac_ct_CC" >&6; }
3669 else
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 printf "%s\n" "no" >&6; }
3672 fi
3673
3674
3675 test -n "$ac_ct_CC" && break
3676 done
3677
3678 if test "x$ac_ct_CC" = x; then
3679 CC=""
3680 else
3681 case $cross_compiling:$ac_tool_warned in
3682 yes:)
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3684 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685 ac_tool_warned=yes ;;
3686 esac
3687 CC=$ac_ct_CC
3688 fi
3689 fi
3690
3691 fi
3692 if test -z "$CC"; then
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}clang; ac_word=$2
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 printf %s "checking for $ac_word... " >&6; }
3698 if test ${ac_cv_prog_CC+y}
3699 then :
3700 printf %s "(cached) " >&6
3701 else case e in #(
3702 e) if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 case $as_dir in #(((
3710 '') as_dir=./ ;;
3711 */) ;;
3712 *) as_dir=$as_dir/ ;;
3713 esac
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_CC="${ac_tool_prefix}clang"
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718 break 2
3719 fi
3720 done
3721 done
3722 IFS=$as_save_IFS
3723
3724 fi ;;
3725 esac
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 printf "%s\n" "$CC" >&6; }
3731 else
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 printf "%s\n" "no" >&6; }
3734 fi
3735
3736
3737 fi
3738 if test -z "$ac_cv_prog_CC"; then
3739 ac_ct_CC=$CC
3740 # Extract the first word of "clang", so it can be a program name with args.
3741 set dummy clang; ac_word=$2
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 printf %s "checking for $ac_word... " >&6; }
3744 if test ${ac_cv_prog_ac_ct_CC+y}
3745 then :
3746 printf %s "(cached) " >&6
3747 else case e in #(
3748 e) if test -n "$ac_ct_CC"; then
3749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754 IFS=$as_save_IFS
3755 case $as_dir in #(((
3756 '') as_dir=./ ;;
3757 */) ;;
3758 *) as_dir=$as_dir/ ;;
3759 esac
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_ac_ct_CC="clang"
3763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3764 break 2
3765 fi
3766 done
3767 done
3768 IFS=$as_save_IFS
3769
3770 fi ;;
3771 esac
3772 fi
3773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 printf "%s\n" "$ac_ct_CC" >&6; }
3777 else
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 printf "%s\n" "no" >&6; }
3780 fi
3781
3782 if test "x$ac_ct_CC" = x; then
3783 CC=""
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791 CC=$ac_ct_CC
3792 fi
3793 else
3794 CC="$ac_cv_prog_CC"
3795 fi
3796
3797 fi
3798
3799
3800 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3801 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3802 as_fn_error $? "no acceptable C compiler found in \$PATH
3803 See 'config.log' for more details" "$LINENO" 5; }
3804
3805 # Provide some information about the compiler.
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion -version; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 printf "%s\n" "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818 ac_status=$?
3819 if test -s conftest.err; then
3820 sed '10a\
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3824 fi
3825 rm -f conftest.er1 conftest.err
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 done
3829
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832
3833 int
3834 main (void)
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 ac_clean_files_save=$ac_clean_files
3842 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3843 # Try to create an executable without -o first, disregard a.out.
3844 # It will help us diagnose broken compilers, and finding out an intuition
3845 # of exeext.
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3847 printf %s "checking whether the C compiler works... " >&6; }
3848 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3849
3850 # The possible output files:
3851 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852
3853 ac_rmfiles=
3854 for ac_file in $ac_files
3855 do
3856 case $ac_file in
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3859 esac
3860 done
3861 rm -f $ac_rmfiles
3862
3863 if { { ac_try="$ac_link_default"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 printf "%s\n" "$ac_try_echo"; } >&5
3870 (eval "$ac_link_default") 2>&5
3871 ac_status=$?
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }
3874 then :
3875 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3876 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3877 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3878 # so that the user can short-circuit this test for compilers unknown to
3879 # Autoconf.
3880 for ac_file in $ac_files ''
3881 do
3882 test -f "$ac_file" || continue
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3885 ;;
3886 [ab].out )
3887 # We found the default executable, but exeext='' is most
3888 # certainly right.
3889 break;;
3890 *.* )
3891 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3892 then :; else
3893 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 fi
3895 # We set ac_cv_exeext here because the later test for it is not
3896 # safe: cross compilers may not add the suffix if given an '-o'
3897 # argument, so we may need to know it at that point already.
3898 # Even if this section looks crufty: it has the advantage of
3899 # actually working.
3900 break;;
3901 * )
3902 break;;
3903 esac
3904 done
3905 test "$ac_cv_exeext" = no && ac_cv_exeext=
3906
3907 else case e in #(
3908 e) ac_file='' ;;
3909 esac
3910 fi
3911 if test -z "$ac_file"
3912 then :
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 printf "%s\n" "no" >&6; }
3915 printf "%s\n" "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3919 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3920 as_fn_error 77 "C compiler cannot create executables
3921 See 'config.log' for more details" "$LINENO" 5; }
3922 else case e in #(
3923 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 printf "%s\n" "yes" >&6; } ;;
3925 esac
3926 fi
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3928 printf %s "checking for C compiler default output file name... " >&6; }
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3930 printf "%s\n" "$ac_file" >&6; }
3931 ac_exeext=$ac_cv_exeext
3932
3933 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3934 ac_clean_files=$ac_clean_files_save
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3936 printf %s "checking for suffix of executables... " >&6; }
3937 if { { ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 printf "%s\n" "$ac_try_echo"; } >&5
3944 (eval "$ac_link") 2>&5
3945 ac_status=$?
3946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }
3948 then :
3949 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3950 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3951 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3952 # 'rm'.
3953 for ac_file in conftest.exe conftest conftest.*; do
3954 test -f "$ac_file" || continue
3955 case $ac_file in
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 break;;
3959 * ) break;;
3960 esac
3961 done
3962 else case e in #(
3963 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3964 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3965 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3966 See 'config.log' for more details" "$LINENO" 5; } ;;
3967 esac
3968 fi
3969 rm -f conftest conftest$ac_cv_exeext
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3971 printf "%s\n" "$ac_cv_exeext" >&6; }
3972
3973 rm -f conftest.$ac_ext
3974 EXEEXT=$ac_cv_exeext
3975 ac_exeext=$EXEEXT
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978 #include <stdio.h>
3979 int
3980 main (void)
3981 {
3982 FILE *f = fopen ("conftest.out", "w");
3983 if (!f)
3984 return 1;
3985 return ferror (f) || fclose (f) != 0;
3986
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 ac_clean_files="$ac_clean_files conftest.out"
3992 # Check that the compiler produces executables we can run. If not, either
3993 # the compiler is broken, or we cross compile.
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3995 printf %s "checking whether we are cross compiling... " >&6; }
3996 if test "$cross_compiling" != yes; then
3997 { { ac_try="$ac_link"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 printf "%s\n" "$ac_try_echo"; } >&5
4004 (eval "$ac_link") 2>&5
4005 ac_status=$?
4006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }
4008 if { ac_try='./conftest$ac_cv_exeext'
4009 { { case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 printf "%s\n" "$ac_try_echo"; } >&5
4015 (eval "$ac_try") 2>&5
4016 ac_status=$?
4017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; }; then
4019 cross_compiling=no
4020 else
4021 if test "$cross_compiling" = maybe; then
4022 cross_compiling=yes
4023 else
4024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4025 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4026 as_fn_error 77 "cannot run C compiled programs.
4027 If you meant to cross compile, use '--host'.
4028 See 'config.log' for more details" "$LINENO" 5; }
4029 fi
4030 fi
4031 fi
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4033 printf "%s\n" "$cross_compiling" >&6; }
4034
4035 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4036 conftest.o conftest.obj conftest.out
4037 ac_clean_files=$ac_clean_files_save
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4039 printf %s "checking for suffix of object files... " >&6; }
4040 if test ${ac_cv_objext+y}
4041 then :
4042 printf %s "(cached) " >&6
4043 else case e in #(
4044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046
4047 int
4048 main (void)
4049 {
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 rm -f conftest.o conftest.obj
4056 if { { ac_try="$ac_compile"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 printf "%s\n" "$ac_try_echo"; } >&5
4063 (eval "$ac_compile") 2>&5
4064 ac_status=$?
4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 then :
4068 for ac_file in conftest.o conftest.obj conftest.*; do
4069 test -f "$ac_file" || continue;
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4073 break;;
4074 esac
4075 done
4076 else case e in #(
4077 e) printf "%s\n" "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4081 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4082 as_fn_error $? "cannot compute suffix of object files: cannot compile
4083 See 'config.log' for more details" "$LINENO" 5; } ;;
4084 esac
4085 fi
4086 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4087 esac
4088 fi
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4090 printf "%s\n" "$ac_cv_objext" >&6; }
4091 OBJEXT=$ac_cv_objext
4092 ac_objext=$OBJEXT
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4094 printf %s "checking whether the compiler supports GNU C... " >&6; }
4095 if test ${ac_cv_c_compiler_gnu+y}
4096 then :
4097 printf %s "(cached) " >&6
4098 else case e in #(
4099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101
4102 int
4103 main (void)
4104 {
4105 #ifndef __GNUC__
4106 choke me
4107 #endif
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"
4114 then :
4115 ac_compiler_gnu=yes
4116 else case e in #(
4117 e) ac_compiler_gnu=no ;;
4118 esac
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4122 ;;
4123 esac
4124 fi
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4126 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
4129 if test $ac_compiler_gnu = yes; then
4130 GCC=yes
4131 else
4132 GCC=
4133 fi
4134 ac_test_CFLAGS=${CFLAGS+y}
4135 ac_save_CFLAGS=$CFLAGS
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4137 printf %s "checking whether $CC accepts -g... " >&6; }
4138 if test ${ac_cv_prog_cc_g+y}
4139 then :
4140 printf %s "(cached) " >&6
4141 else case e in #(
4142 e) ac_save_c_werror_flag=$ac_c_werror_flag
4143 ac_c_werror_flag=yes
4144 ac_cv_prog_cc_g=no
4145 CFLAGS="-g"
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main (void)
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"
4158 then :
4159 ac_cv_prog_cc_g=yes
4160 else case e in #(
4161 e) CFLAGS=""
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165 int
4166 main (void)
4167 {
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"
4174 then :
4175
4176 else case e in #(
4177 e) ac_c_werror_flag=$ac_save_c_werror_flag
4178 CFLAGS="-g"
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181
4182 int
4183 main (void)
4184 {
4185
4186 ;
4187 return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"
4191 then :
4192 ac_cv_prog_cc_g=yes
4193 fi
4194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4195 esac
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4198 esac
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4201 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4202 esac
4203 fi
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4205 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4206 if test $ac_test_CFLAGS; then
4207 CFLAGS=$ac_save_CFLAGS
4208 elif test $ac_cv_prog_cc_g = yes; then
4209 if test "$GCC" = yes; then
4210 CFLAGS="-g -O2"
4211 else
4212 CFLAGS="-g"
4213 fi
4214 else
4215 if test "$GCC" = yes; then
4216 CFLAGS="-O2"
4217 else
4218 CFLAGS=
4219 fi
4220 fi
4221 ac_prog_cc_stdc=no
4222 if test x$ac_prog_cc_stdc = xno
4223 then :
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4225 printf %s "checking for $CC option to enable C11 features... " >&6; }
4226 if test ${ac_cv_prog_cc_c11+y}
4227 then :
4228 printf %s "(cached) " >&6
4229 else case e in #(
4230 e) ac_cv_prog_cc_c11=no
4231 ac_save_CC=$CC
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 $ac_c_conftest_c11_program
4235 _ACEOF
4236 for ac_arg in '' -std=gnu11
4237 do
4238 CC="$ac_save_CC $ac_arg"
4239 if ac_fn_c_try_compile "$LINENO"
4240 then :
4241 ac_cv_prog_cc_c11=$ac_arg
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam
4244 test "x$ac_cv_prog_cc_c11" != "xno" && break
4245 done
4246 rm -f conftest.$ac_ext
4247 CC=$ac_save_CC ;;
4248 esac
4249 fi
4250
4251 if test "x$ac_cv_prog_cc_c11" = xno
4252 then :
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 printf "%s\n" "unsupported" >&6; }
4255 else case e in #(
4256 e) if test "x$ac_cv_prog_cc_c11" = x
4257 then :
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259 printf "%s\n" "none needed" >&6; }
4260 else case e in #(
4261 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4262 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4263 CC="$CC $ac_cv_prog_cc_c11" ;;
4264 esac
4265 fi
4266 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4267 ac_prog_cc_stdc=c11 ;;
4268 esac
4269 fi
4270 fi
4271 if test x$ac_prog_cc_stdc = xno
4272 then :
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4274 printf %s "checking for $CC option to enable C99 features... " >&6; }
4275 if test ${ac_cv_prog_cc_c99+y}
4276 then :
4277 printf %s "(cached) " >&6
4278 else case e in #(
4279 e) ac_cv_prog_cc_c99=no
4280 ac_save_CC=$CC
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 $ac_c_conftest_c99_program
4284 _ACEOF
4285 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4286 do
4287 CC="$ac_save_CC $ac_arg"
4288 if ac_fn_c_try_compile "$LINENO"
4289 then :
4290 ac_cv_prog_cc_c99=$ac_arg
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.beam
4293 test "x$ac_cv_prog_cc_c99" != "xno" && break
4294 done
4295 rm -f conftest.$ac_ext
4296 CC=$ac_save_CC ;;
4297 esac
4298 fi
4299
4300 if test "x$ac_cv_prog_cc_c99" = xno
4301 then :
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 printf "%s\n" "unsupported" >&6; }
4304 else case e in #(
4305 e) if test "x$ac_cv_prog_cc_c99" = x
4306 then :
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308 printf "%s\n" "none needed" >&6; }
4309 else case e in #(
4310 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4311 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4312 CC="$CC $ac_cv_prog_cc_c99" ;;
4313 esac
4314 fi
4315 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4316 ac_prog_cc_stdc=c99 ;;
4317 esac
4318 fi
4319 fi
4320 if test x$ac_prog_cc_stdc = xno
4321 then :
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4323 printf %s "checking for $CC option to enable C89 features... " >&6; }
4324 if test ${ac_cv_prog_cc_c89+y}
4325 then :
4326 printf %s "(cached) " >&6
4327 else case e in #(
4328 e) ac_cv_prog_cc_c89=no
4329 ac_save_CC=$CC
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 $ac_c_conftest_c89_program
4333 _ACEOF
4334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4335 do
4336 CC="$ac_save_CC $ac_arg"
4337 if ac_fn_c_try_compile "$LINENO"
4338 then :
4339 ac_cv_prog_cc_c89=$ac_arg
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext conftest.beam
4342 test "x$ac_cv_prog_cc_c89" != "xno" && break
4343 done
4344 rm -f conftest.$ac_ext
4345 CC=$ac_save_CC ;;
4346 esac
4347 fi
4348
4349 if test "x$ac_cv_prog_cc_c89" = xno
4350 then :
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4352 printf "%s\n" "unsupported" >&6; }
4353 else case e in #(
4354 e) if test "x$ac_cv_prog_cc_c89" = x
4355 then :
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357 printf "%s\n" "none needed" >&6; }
4358 else case e in #(
4359 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4360 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4361 CC="$CC $ac_cv_prog_cc_c89" ;;
4362 esac
4363 fi
4364 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4365 ac_prog_cc_stdc=c89 ;;
4366 esac
4367 fi
4368 fi
4369
4370 ac_ext=c
4371 ac_cpp='$CPP $CPPFLAGS'
4372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375
4376
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4383 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4384 if test ${am_cv_prog_cc_c_o+y}
4385 then :
4386 printf %s "(cached) " >&6
4387 else case e in #(
4388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390
4391 int
4392 main (void)
4393 {
4394
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 # Make sure it works both with $CC and with simple cc.
4400 # Following AC_PROG_CC_C_O, we do the test twice because some
4401 # compilers refuse to overwrite an existing .o file with -o,
4402 # though they will create one.
4403 am_cv_prog_cc_c_o=yes
4404 for am_i in 1 2; do
4405 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4406 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } \
4410 && test -f conftest2.$ac_objext; then
4411 : OK
4412 else
4413 am_cv_prog_cc_c_o=no
4414 break
4415 fi
4416 done
4417 rm -f core conftest*
4418 unset am_i ;;
4419 esac
4420 fi
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4422 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4423 if test "$am_cv_prog_cc_c_o" != yes; then
4424 # Losing compiler, so override with the script.
4425 # FIXME: It is wrong to rewrite CC.
4426 # But if we don't then we get into trouble of one sort or another.
4427 # A longer-term fix would be to have automake use am__CC in this case,
4428 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4429 CC="$am_aux_dir/compile $CC"
4430 fi
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437
4438 depcc="$CC" am_compiler_list=
4439
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4441 printf %s "checking dependency style of $depcc... " >&6; }
4442 if test ${am_cv_CC_dependencies_compiler_type+y}
4443 then :
4444 printf %s "(cached) " >&6
4445 else case e in #(
4446 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4447 # We make a subdir and do the tests there. Otherwise we can end up
4448 # making bogus files that we don't know about and never remove. For
4449 # instance it was reported that on HP-UX the gcc test will end up
4450 # making a dummy file named 'D' -- because '-MD' means "put the output
4451 # in D".
4452 rm -rf conftest.dir
4453 mkdir conftest.dir
4454 # Copy depcomp to subdir because otherwise we won't find it if we're
4455 # using a relative directory.
4456 cp "$am_depcomp" conftest.dir
4457 cd conftest.dir
4458 # We will build objects and dependencies in a subdirectory because
4459 # it helps to detect inapplicable dependency modes. For instance
4460 # both Tru64's cc and ICC support -MD to output dependencies as a
4461 # side effect of compilation, but ICC will put the dependencies in
4462 # the current directory while Tru64 will put them in the object
4463 # directory.
4464 mkdir sub
4465
4466 am_cv_CC_dependencies_compiler_type=none
4467 if test "$am_compiler_list" = ""; then
4468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4469 fi
4470 am__universal=false
4471 case " $depcc " in #(
4472 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4473 esac
4474
4475 for depmode in $am_compiler_list; do
4476 # Setup a source with many dependencies, because some compilers
4477 # like to wrap large dependency lists on column 80 (with \), and
4478 # we should not choose a depcomp mode which is confused by this.
4479 #
4480 # We need to recreate these files for each test, as the compiler may
4481 # overwrite some of them when testing with obscure command lines.
4482 # This happens at least with the AIX C compiler.
4483 : > sub/conftest.c
4484 for i in 1 2 3 4 5 6; do
4485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4486 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4487 # Solaris 10 /bin/sh.
4488 echo '/* dummy */' > sub/conftst$i.h
4489 done
4490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4491
4492 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4493 # mode. It turns out that the SunPro C++ compiler does not properly
4494 # handle '-M -o', and we need to detect this. Also, some Intel
4495 # versions had trouble with output in subdirs.
4496 am__obj=sub/conftest.${OBJEXT-o}
4497 am__minus_obj="-o $am__obj"
4498 case $depmode in
4499 gcc)
4500 # This depmode causes a compiler race in universal mode.
4501 test "$am__universal" = false || continue
4502 ;;
4503 nosideeffect)
4504 # After this tag, mechanisms are not by side-effect, so they'll
4505 # only be used when explicitly requested.
4506 if test "x$enable_dependency_tracking" = xyes; then
4507 continue
4508 else
4509 break
4510 fi
4511 ;;
4512 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4513 # This compiler won't grok '-c -o', but also, the minuso test has
4514 # not run yet. These depmodes are late enough in the game, and
4515 # so weak that their functioning should not be impacted.
4516 am__obj=conftest.${OBJEXT-o}
4517 am__minus_obj=
4518 ;;
4519 none) break ;;
4520 esac
4521 if depmode=$depmode \
4522 source=sub/conftest.c object=$am__obj \
4523 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4524 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4525 >/dev/null 2>conftest.err &&
4526 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4528 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4530 # icc doesn't choke on unknown options, it will just issue warnings
4531 # or remarks (even with -Werror). So we grep stderr for any message
4532 # that says an option was ignored or not supported.
4533 # When given -MP, icc 7.0 and 7.1 complain thus:
4534 # icc: Command line warning: ignoring option '-M'; no argument required
4535 # The diagnosis changed in icc 8.0:
4536 # icc: Command line remark: option '-MP' not supported
4537 if (grep 'ignoring option' conftest.err ||
4538 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4539 am_cv_CC_dependencies_compiler_type=$depmode
4540 break
4541 fi
4542 fi
4543 done
4544
4545 cd ..
4546 rm -rf conftest.dir
4547 else
4548 am_cv_CC_dependencies_compiler_type=none
4549 fi
4550 ;;
4551 esac
4552 fi
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4554 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4555 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4556
4557 if
4558 test "x$enable_dependency_tracking" != xno \
4559 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4560 am__fastdepCC_TRUE=
4561 am__fastdepCC_FALSE='#'
4562 else
4563 am__fastdepCC_TRUE='#'
4564 am__fastdepCC_FALSE=
4565 fi
4566
4567
4568
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4570 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4571 if test ${ac_cv_c_undeclared_builtin_options+y}
4572 then :
4573 printf %s "(cached) " >&6
4574 else case e in #(
4575 e) ac_save_CFLAGS=$CFLAGS
4576 ac_cv_c_undeclared_builtin_options='cannot detect'
4577 for ac_arg in '' -fno-builtin; do
4578 CFLAGS="$ac_save_CFLAGS $ac_arg"
4579 # This test program should *not* compile successfully.
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582
4583 int
4584 main (void)
4585 {
4586 (void) strchr;
4587 ;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_c_try_compile "$LINENO"
4592 then :
4593
4594 else case e in #(
4595 e) # This test program should compile successfully.
4596 # No library function is consistently available on
4597 # freestanding implementations, so test against a dummy
4598 # declaration. Include always-available headers on the
4599 # off chance that they somehow elicit warnings.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <float.h>
4603 #include <limits.h>
4604 #include <stdarg.h>
4605 #include <stddef.h>
4606 extern void ac_decl (int, char *);
4607
4608 int
4609 main (void)
4610 {
4611 (void) ac_decl (0, (char *) 0);
4612 (void) ac_decl;
4613
4614 ;
4615 return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"
4619 then :
4620 if test x"$ac_arg" = x
4621 then :
4622 ac_cv_c_undeclared_builtin_options='none needed'
4623 else case e in #(
4624 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4625 esac
4626 fi
4627 break
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4630 esac
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4633 done
4634 CFLAGS=$ac_save_CFLAGS
4635 ;;
4636 esac
4637 fi
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4639 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4640 case $ac_cv_c_undeclared_builtin_options in #(
4641 'cannot detect') :
4642 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4643 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4644 as_fn_error $? "cannot make $CC report undeclared builtins
4645 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4646 'none needed') :
4647 ac_c_undeclared_builtin_options='' ;; #(
4648 *) :
4649 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4650 esac
4651
4652 ac_header= ac_cache=
4653 for ac_item in $ac_header_c_list
4654 do
4655 if test $ac_cache; then
4656 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4657 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4658 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4659 fi
4660 ac_header= ac_cache=
4661 elif test $ac_header; then
4662 ac_cache=$ac_item
4663 else
4664 ac_header=$ac_item
4665 fi
4666 done
4667
4668
4669
4670
4671
4672
4673
4674
4675 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4676 then :
4677
4678 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4679
4680 fi
4681
4682
4683
4684
4685 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4686 if test "x$ac_cv_have_decl___clang__" = xyes
4687 then :
4688 CLANGCC="yes"
4689 else case e in #(
4690 e) CLANGCC="no" ;;
4691 esac
4692 fi
4693 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4694 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4695 then :
4696 INTELCC="yes"
4697 else case e in #(
4698 e) INTELCC="no" ;;
4699 esac
4700 fi
4701 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4702 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4703 then :
4704 SUNCC="yes"
4705 else case e in #(
4706 e) SUNCC="no" ;;
4707 esac
4708 fi
4709
4710
4711
4712
4713
4714
4715
4716
4717 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4718 if test -n "$ac_tool_prefix"; then
4719 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4720 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 printf %s "checking for $ac_word... " >&6; }
4723 if test ${ac_cv_path_PKG_CONFIG+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else case e in #(
4727 e) case $PKG_CONFIG in
4728 [\\/]* | ?:[\\/]*)
4729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4730 ;;
4731 *)
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735 IFS=$as_save_IFS
4736 case $as_dir in #(((
4737 '') as_dir=./ ;;
4738 */) ;;
4739 *) as_dir=$as_dir/ ;;
4740 esac
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4743 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 ;;
4752 esac ;;
4753 esac
4754 fi
4755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4756 if test -n "$PKG_CONFIG"; then
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4758 printf "%s\n" "$PKG_CONFIG" >&6; }
4759 else
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 printf "%s\n" "no" >&6; }
4762 fi
4763
4764
4765 fi
4766 if test -z "$ac_cv_path_PKG_CONFIG"; then
4767 ac_pt_PKG_CONFIG=$PKG_CONFIG
4768 # Extract the first word of "pkg-config", so it can be a program name with args.
4769 set dummy pkg-config; ac_word=$2
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 printf %s "checking for $ac_word... " >&6; }
4772 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4773 then :
4774 printf %s "(cached) " >&6
4775 else case e in #(
4776 e) case $ac_pt_PKG_CONFIG in
4777 [\\/]* | ?:[\\/]*)
4778 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4779 ;;
4780 *)
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784 IFS=$as_save_IFS
4785 case $as_dir in #(((
4786 '') as_dir=./ ;;
4787 */) ;;
4788 *) as_dir=$as_dir/ ;;
4789 esac
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4792 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 ;;
4801 esac ;;
4802 esac
4803 fi
4804 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4805 if test -n "$ac_pt_PKG_CONFIG"; then
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4807 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4808 else
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 printf "%s\n" "no" >&6; }
4811 fi
4812
4813 if test "x$ac_pt_PKG_CONFIG" = x; then
4814 PKG_CONFIG=""
4815 else
4816 case $cross_compiling:$ac_tool_warned in
4817 yes:)
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820 ac_tool_warned=yes ;;
4821 esac
4822 PKG_CONFIG=$ac_pt_PKG_CONFIG
4823 fi
4824 else
4825 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4826 fi
4827
4828 fi
4829 if test -n "$PKG_CONFIG"; then
4830 _pkg_min_version=0.9.0
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4832 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4833 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4835 printf "%s\n" "yes" >&6; }
4836 else
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 printf "%s\n" "no" >&6; }
4839 PKG_CONFIG=""
4840 fi
4841 fi
4842
4843
4844 # Make sure we can run config.sub.
4845 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4846 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4847
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4849 printf %s "checking build system type... " >&6; }
4850 if test ${ac_cv_build+y}
4851 then :
4852 printf %s "(cached) " >&6
4853 else case e in #(
4854 e) ac_build_alias=$build_alias
4855 test "x$ac_build_alias" = x &&
4856 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4857 test "x$ac_build_alias" = x &&
4858 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4859 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4860 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4861 ;;
4862 esac
4863 fi
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4865 printf "%s\n" "$ac_cv_build" >&6; }
4866 case $ac_cv_build in
4867 *-*-*) ;;
4868 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4869 esac
4870 build=$ac_cv_build
4871 ac_save_IFS=$IFS; IFS='-'
4872 set x $ac_cv_build
4873 shift
4874 build_cpu=$1
4875 build_vendor=$2
4876 shift; shift
4877 # Remember, the first character of IFS is used to create $*,
4878 # except with old shells:
4879 build_os=$*
4880 IFS=$ac_save_IFS
4881 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4882
4883
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4885 printf %s "checking host system type... " >&6; }
4886 if test ${ac_cv_host+y}
4887 then :
4888 printf %s "(cached) " >&6
4889 else case e in #(
4890 e) if test "x$host_alias" = x; then
4891 ac_cv_host=$ac_cv_build
4892 else
4893 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4894 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4895 fi
4896 ;;
4897 esac
4898 fi
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4900 printf "%s\n" "$ac_cv_host" >&6; }
4901 case $ac_cv_host in
4902 *-*-*) ;;
4903 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4904 esac
4905 host=$ac_cv_host
4906 ac_save_IFS=$IFS; IFS='-'
4907 set x $ac_cv_host
4908 shift
4909 host_cpu=$1
4910 host_vendor=$2
4911 shift; shift
4912 # Remember, the first character of IFS is used to create $*,
4913 # except with old shells:
4914 host_os=$*
4915 IFS=$ac_save_IFS
4916 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4917
4918
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4920 printf %s "checking for a sed that does not truncate output... " >&6; }
4921 if test ${ac_cv_path_SED+y}
4922 then :
4923 printf %s "(cached) " >&6
4924 else case e in #(
4925 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4926 for ac_i in 1 2 3 4 5 6 7; do
4927 ac_script="$ac_script$as_nl$ac_script"
4928 done
4929 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4930 { ac_script=; unset ac_script;}
4931 if test -z "$SED"; then
4932 ac_path_SED_found=false
4933 # Loop through the user's path and test for each of PROGNAME-LIST
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937 IFS=$as_save_IFS
4938 case $as_dir in #(((
4939 '') as_dir=./ ;;
4940 */) ;;
4941 *) as_dir=$as_dir/ ;;
4942 esac
4943 for ac_prog in sed gsed
4944 do
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4947 as_fn_executable_p "$ac_path_SED" || continue
4948 # Check for GNU ac_path_SED and select it if it is found.
4949 # Check for GNU $ac_path_SED
4950 case `"$ac_path_SED" --version 2>&1` in #(
4951 *GNU*)
4952 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4953 #(
4954 *)
4955 ac_count=0
4956 printf %s 0123456789 >"conftest.in"
4957 while :
4958 do
4959 cat "conftest.in" "conftest.in" >"conftest.tmp"
4960 mv "conftest.tmp" "conftest.in"
4961 cp "conftest.in" "conftest.nl"
4962 printf "%s\n" '' >> "conftest.nl"
4963 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965 as_fn_arith $ac_count + 1 && ac_count=$as_val
4966 if test $ac_count -gt ${ac_path_SED_max-0}; then
4967 # Best one so far, save it but keep looking for a better one
4968 ac_cv_path_SED="$ac_path_SED"
4969 ac_path_SED_max=$ac_count
4970 fi
4971 # 10*(2^10) chars as input seems more than enough
4972 test $ac_count -gt 10 && break
4973 done
4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975 esac
4976
4977 $ac_path_SED_found && break 3
4978 done
4979 done
4980 done
4981 IFS=$as_save_IFS
4982 if test -z "$ac_cv_path_SED"; then
4983 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4984 fi
4985 else
4986 ac_cv_path_SED=$SED
4987 fi
4988 ;;
4989 esac
4990 fi
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4992 printf "%s\n" "$ac_cv_path_SED" >&6; }
4993 SED="$ac_cv_path_SED"
4994 rm -f conftest.sed
4995
4996
4997
4998
4999
5000
5001 # Check whether --enable-selective-werror was given.
5002 if test ${enable_selective_werror+y}
5003 then :
5004 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5005 else case e in #(
5006 e) SELECTIVE_WERROR=yes ;;
5007 esac
5008 fi
5009
5010
5011
5012
5013
5014 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5015 if test "x$SUNCC" = "xyes"; then
5016 BASE_CFLAGS="-v"
5017 else
5018 BASE_CFLAGS=""
5019 fi
5020
5021 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035 xorg_testset_save_CFLAGS="$CFLAGS"
5036
5037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5040 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5041 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5042 then :
5043 printf %s "(cached) " >&6
5044 else case e in #(
5045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 int i;
5048 _ACEOF
5049 if ac_fn_c_try_compile "$LINENO"
5050 then :
5051 xorg_cv_cc_flag_unknown_warning_option=yes
5052 else case e in #(
5053 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5054 esac
5055 fi
5056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5057 esac
5058 fi
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5060 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5062 CFLAGS="$xorg_testset_save_CFLAGS"
5063 fi
5064
5065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5068 fi
5069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5071 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5072 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5073 then :
5074 printf %s "(cached) " >&6
5075 else case e in #(
5076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 int i;
5079 _ACEOF
5080 if ac_fn_c_try_compile "$LINENO"
5081 then :
5082 xorg_cv_cc_flag_unused_command_line_argument=yes
5083 else case e in #(
5084 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5085 esac
5086 fi
5087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5088 esac
5089 fi
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5093 CFLAGS="$xorg_testset_save_CFLAGS"
5094 fi
5095
5096 found="no"
5097
5098 if test $found = "no" ; then
5099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5101 fi
5102
5103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5105 fi
5106
5107 CFLAGS="$CFLAGS -Wall"
5108
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5110 printf %s "checking if $CC supports -Wall... " >&6; }
5111 cacheid=xorg_cv_cc_flag__Wall
5112 if eval test \${$cacheid+y}
5113 then :
5114 printf %s "(cached) " >&6
5115 else case e in #(
5116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 int i;
5119 int
5120 main (void)
5121 {
5122
5123 ;
5124 return 0;
5125 }
5126 _ACEOF
5127 if ac_fn_c_try_link "$LINENO"
5128 then :
5129 eval $cacheid=yes
5130 else case e in #(
5131 e) eval $cacheid=no ;;
5132 esac
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5135 conftest$ac_exeext conftest.$ac_ext ;;
5136 esac
5137 fi
5138
5139
5140 CFLAGS="$xorg_testset_save_CFLAGS"
5141
5142 eval supported=\$$cacheid
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5144 printf "%s\n" "$supported" >&6; }
5145 if test "$supported" = "yes" ; then
5146 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5147 found="yes"
5148 fi
5149 fi
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165 xorg_testset_save_CFLAGS="$CFLAGS"
5166
5167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5171 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5172 then :
5173 printf %s "(cached) " >&6
5174 else case e in #(
5175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 int i;
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"
5180 then :
5181 xorg_cv_cc_flag_unknown_warning_option=yes
5182 else case e in #(
5183 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5184 esac
5185 fi
5186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5187 esac
5188 fi
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5190 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5192 CFLAGS="$xorg_testset_save_CFLAGS"
5193 fi
5194
5195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198 fi
5199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5201 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5202 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5203 then :
5204 printf %s "(cached) " >&6
5205 else case e in #(
5206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 int i;
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"
5211 then :
5212 xorg_cv_cc_flag_unused_command_line_argument=yes
5213 else case e in #(
5214 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5215 esac
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5218 esac
5219 fi
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5221 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5223 CFLAGS="$xorg_testset_save_CFLAGS"
5224 fi
5225
5226 found="no"
5227
5228 if test $found = "no" ; then
5229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231 fi
5232
5233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5235 fi
5236
5237 CFLAGS="$CFLAGS -Wpointer-arith"
5238
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5240 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5241 cacheid=xorg_cv_cc_flag__Wpointer_arith
5242 if eval test \${$cacheid+y}
5243 then :
5244 printf %s "(cached) " >&6
5245 else case e in #(
5246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 int i;
5249 int
5250 main (void)
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_link "$LINENO"
5258 then :
5259 eval $cacheid=yes
5260 else case e in #(
5261 e) eval $cacheid=no ;;
5262 esac
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5265 conftest$ac_exeext conftest.$ac_ext ;;
5266 esac
5267 fi
5268
5269
5270 CFLAGS="$xorg_testset_save_CFLAGS"
5271
5272 eval supported=\$$cacheid
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5274 printf "%s\n" "$supported" >&6; }
5275 if test "$supported" = "yes" ; then
5276 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5277 found="yes"
5278 fi
5279 fi
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295 xorg_testset_save_CFLAGS="$CFLAGS"
5296
5297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5301 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5302 then :
5303 printf %s "(cached) " >&6
5304 else case e in #(
5305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 int i;
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"
5310 then :
5311 xorg_cv_cc_flag_unknown_warning_option=yes
5312 else case e in #(
5313 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5314 esac
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5317 esac
5318 fi
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5322 CFLAGS="$xorg_testset_save_CFLAGS"
5323 fi
5324
5325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328 fi
5329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5333 then :
5334 printf %s "(cached) " >&6
5335 else case e in #(
5336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 int i;
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"
5341 then :
5342 xorg_cv_cc_flag_unused_command_line_argument=yes
5343 else case e in #(
5344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5345 esac
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5348 esac
5349 fi
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5351 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5353 CFLAGS="$xorg_testset_save_CFLAGS"
5354 fi
5355
5356 found="no"
5357
5358 if test $found = "no" ; then
5359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361 fi
5362
5363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5365 fi
5366
5367 CFLAGS="$CFLAGS -Wmissing-declarations"
5368
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5370 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5371 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5372 if eval test \${$cacheid+y}
5373 then :
5374 printf %s "(cached) " >&6
5375 else case e in #(
5376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 int i;
5379 int
5380 main (void)
5381 {
5382
5383 ;
5384 return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_c_try_link "$LINENO"
5388 then :
5389 eval $cacheid=yes
5390 else case e in #(
5391 e) eval $cacheid=no ;;
5392 esac
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5395 conftest$ac_exeext conftest.$ac_ext ;;
5396 esac
5397 fi
5398
5399
5400 CFLAGS="$xorg_testset_save_CFLAGS"
5401
5402 eval supported=\$$cacheid
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5404 printf "%s\n" "$supported" >&6; }
5405 if test "$supported" = "yes" ; then
5406 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5407 found="yes"
5408 fi
5409 fi
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425 xorg_testset_save_CFLAGS="$CFLAGS"
5426
5427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5430 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5431 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5432 then :
5433 printf %s "(cached) " >&6
5434 else case e in #(
5435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 int i;
5438 _ACEOF
5439 if ac_fn_c_try_compile "$LINENO"
5440 then :
5441 xorg_cv_cc_flag_unknown_warning_option=yes
5442 else case e in #(
5443 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5444 esac
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5447 esac
5448 fi
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5450 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5452 CFLAGS="$xorg_testset_save_CFLAGS"
5453 fi
5454
5455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458 fi
5459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5461 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5462 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5463 then :
5464 printf %s "(cached) " >&6
5465 else case e in #(
5466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 int i;
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"
5471 then :
5472 xorg_cv_cc_flag_unused_command_line_argument=yes
5473 else case e in #(
5474 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5475 esac
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5478 esac
5479 fi
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5483 CFLAGS="$xorg_testset_save_CFLAGS"
5484 fi
5485
5486 found="no"
5487
5488 if test $found = "no" ; then
5489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5491 fi
5492
5493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5495 fi
5496
5497 CFLAGS="$CFLAGS -Wformat=2"
5498
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5500 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5501 cacheid=xorg_cv_cc_flag__Wformat_2
5502 if eval test \${$cacheid+y}
5503 then :
5504 printf %s "(cached) " >&6
5505 else case e in #(
5506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 int i;
5509 int
5510 main (void)
5511 {
5512
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 if ac_fn_c_try_link "$LINENO"
5518 then :
5519 eval $cacheid=yes
5520 else case e in #(
5521 e) eval $cacheid=no ;;
5522 esac
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5525 conftest$ac_exeext conftest.$ac_ext ;;
5526 esac
5527 fi
5528
5529
5530 CFLAGS="$xorg_testset_save_CFLAGS"
5531
5532 eval supported=\$$cacheid
5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5534 printf "%s\n" "$supported" >&6; }
5535 if test "$supported" = "yes" ; then
5536 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5537 found="yes"
5538 fi
5539 fi
5540
5541 if test $found = "no" ; then
5542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544 fi
5545
5546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548 fi
5549
5550 CFLAGS="$CFLAGS -Wformat"
5551
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5553 printf %s "checking if $CC supports -Wformat... " >&6; }
5554 cacheid=xorg_cv_cc_flag__Wformat
5555 if eval test \${$cacheid+y}
5556 then :
5557 printf %s "(cached) " >&6
5558 else case e in #(
5559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 int i;
5562 int
5563 main (void)
5564 {
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_link "$LINENO"
5571 then :
5572 eval $cacheid=yes
5573 else case e in #(
5574 e) eval $cacheid=no ;;
5575 esac
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5578 conftest$ac_exeext conftest.$ac_ext ;;
5579 esac
5580 fi
5581
5582
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5584
5585 eval supported=\$$cacheid
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5587 printf "%s\n" "$supported" >&6; }
5588 if test "$supported" = "yes" ; then
5589 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5590 found="yes"
5591 fi
5592 fi
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610 xorg_testset_save_CFLAGS="$CFLAGS"
5611
5612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5616 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5617 then :
5618 printf %s "(cached) " >&6
5619 else case e in #(
5620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 int i;
5623 _ACEOF
5624 if ac_fn_c_try_compile "$LINENO"
5625 then :
5626 xorg_cv_cc_flag_unknown_warning_option=yes
5627 else case e in #(
5628 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5629 esac
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5632 esac
5633 fi
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637 CFLAGS="$xorg_testset_save_CFLAGS"
5638 fi
5639
5640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643 fi
5644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5648 then :
5649 printf %s "(cached) " >&6
5650 else case e in #(
5651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 int i;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"
5656 then :
5657 xorg_cv_cc_flag_unused_command_line_argument=yes
5658 else case e in #(
5659 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5660 esac
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5663 esac
5664 fi
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5668 CFLAGS="$xorg_testset_save_CFLAGS"
5669 fi
5670
5671 found="no"
5672
5673 if test $found = "no" ; then
5674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676 fi
5677
5678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680 fi
5681
5682 CFLAGS="$CFLAGS -Wstrict-prototypes"
5683
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5685 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5686 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5687 if eval test \${$cacheid+y}
5688 then :
5689 printf %s "(cached) " >&6
5690 else case e in #(
5691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 int i;
5694 int
5695 main (void)
5696 {
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_link "$LINENO"
5703 then :
5704 eval $cacheid=yes
5705 else case e in #(
5706 e) eval $cacheid=no ;;
5707 esac
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5710 conftest$ac_exeext conftest.$ac_ext ;;
5711 esac
5712 fi
5713
5714
5715 CFLAGS="$xorg_testset_save_CFLAGS"
5716
5717 eval supported=\$$cacheid
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5719 printf "%s\n" "$supported" >&6; }
5720 if test "$supported" = "yes" ; then
5721 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5722 found="yes"
5723 fi
5724 fi
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 xorg_testset_save_CFLAGS="$CFLAGS"
5741
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5746 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5747 then :
5748 printf %s "(cached) " >&6
5749 else case e in #(
5750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 int i;
5753 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"
5755 then :
5756 xorg_cv_cc_flag_unknown_warning_option=yes
5757 else case e in #(
5758 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5759 esac
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5762 esac
5763 fi
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5767 CFLAGS="$xorg_testset_save_CFLAGS"
5768 fi
5769
5770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773 fi
5774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5778 then :
5779 printf %s "(cached) " >&6
5780 else case e in #(
5781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 int i;
5784 _ACEOF
5785 if ac_fn_c_try_compile "$LINENO"
5786 then :
5787 xorg_cv_cc_flag_unused_command_line_argument=yes
5788 else case e in #(
5789 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5790 esac
5791 fi
5792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5793 esac
5794 fi
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5796 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5798 CFLAGS="$xorg_testset_save_CFLAGS"
5799 fi
5800
5801 found="no"
5802
5803 if test $found = "no" ; then
5804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5806 fi
5807
5808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5810 fi
5811
5812 CFLAGS="$CFLAGS -Wmissing-prototypes"
5813
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5815 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5816 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5817 if eval test \${$cacheid+y}
5818 then :
5819 printf %s "(cached) " >&6
5820 else case e in #(
5821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823 int i;
5824 int
5825 main (void)
5826 {
5827
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_c_try_link "$LINENO"
5833 then :
5834 eval $cacheid=yes
5835 else case e in #(
5836 e) eval $cacheid=no ;;
5837 esac
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5840 conftest$ac_exeext conftest.$ac_ext ;;
5841 esac
5842 fi
5843
5844
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5846
5847 eval supported=\$$cacheid
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5849 printf "%s\n" "$supported" >&6; }
5850 if test "$supported" = "yes" ; then
5851 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5852 found="yes"
5853 fi
5854 fi
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 xorg_testset_save_CFLAGS="$CFLAGS"
5871
5872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5875 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5876 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else case e in #(
5880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882 int i;
5883 _ACEOF
5884 if ac_fn_c_try_compile "$LINENO"
5885 then :
5886 xorg_cv_cc_flag_unknown_warning_option=yes
5887 else case e in #(
5888 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5889 esac
5890 fi
5891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5892 esac
5893 fi
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5895 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5898 fi
5899
5900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903 fi
5904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5906 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5907 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5908 then :
5909 printf %s "(cached) " >&6
5910 else case e in #(
5911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 int i;
5914 _ACEOF
5915 if ac_fn_c_try_compile "$LINENO"
5916 then :
5917 xorg_cv_cc_flag_unused_command_line_argument=yes
5918 else case e in #(
5919 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5920 esac
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5923 esac
5924 fi
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5926 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5928 CFLAGS="$xorg_testset_save_CFLAGS"
5929 fi
5930
5931 found="no"
5932
5933 if test $found = "no" ; then
5934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5936 fi
5937
5938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5940 fi
5941
5942 CFLAGS="$CFLAGS -Wnested-externs"
5943
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5945 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5946 cacheid=xorg_cv_cc_flag__Wnested_externs
5947 if eval test \${$cacheid+y}
5948 then :
5949 printf %s "(cached) " >&6
5950 else case e in #(
5951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 int i;
5954 int
5955 main (void)
5956 {
5957
5958 ;
5959 return 0;
5960 }
5961 _ACEOF
5962 if ac_fn_c_try_link "$LINENO"
5963 then :
5964 eval $cacheid=yes
5965 else case e in #(
5966 e) eval $cacheid=no ;;
5967 esac
5968 fi
5969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5970 conftest$ac_exeext conftest.$ac_ext ;;
5971 esac
5972 fi
5973
5974
5975 CFLAGS="$xorg_testset_save_CFLAGS"
5976
5977 eval supported=\$$cacheid
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5979 printf "%s\n" "$supported" >&6; }
5980 if test "$supported" = "yes" ; then
5981 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5982 found="yes"
5983 fi
5984 fi
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 xorg_testset_save_CFLAGS="$CFLAGS"
6001
6002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6005 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6006 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6007 then :
6008 printf %s "(cached) " >&6
6009 else case e in #(
6010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 int i;
6013 _ACEOF
6014 if ac_fn_c_try_compile "$LINENO"
6015 then :
6016 xorg_cv_cc_flag_unknown_warning_option=yes
6017 else case e in #(
6018 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6019 esac
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6022 esac
6023 fi
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6025 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6027 CFLAGS="$xorg_testset_save_CFLAGS"
6028 fi
6029
6030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6033 fi
6034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6036 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6037 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6038 then :
6039 printf %s "(cached) " >&6
6040 else case e in #(
6041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 int i;
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"
6046 then :
6047 xorg_cv_cc_flag_unused_command_line_argument=yes
6048 else case e in #(
6049 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6050 esac
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6053 esac
6054 fi
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6056 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6058 CFLAGS="$xorg_testset_save_CFLAGS"
6059 fi
6060
6061 found="no"
6062
6063 if test $found = "no" ; then
6064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6066 fi
6067
6068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6070 fi
6071
6072 CFLAGS="$CFLAGS -Wbad-function-cast"
6073
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6075 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6076 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6077 if eval test \${$cacheid+y}
6078 then :
6079 printf %s "(cached) " >&6
6080 else case e in #(
6081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 int i;
6084 int
6085 main (void)
6086 {
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_link "$LINENO"
6093 then :
6094 eval $cacheid=yes
6095 else case e in #(
6096 e) eval $cacheid=no ;;
6097 esac
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6100 conftest$ac_exeext conftest.$ac_ext ;;
6101 esac
6102 fi
6103
6104
6105 CFLAGS="$xorg_testset_save_CFLAGS"
6106
6107 eval supported=\$$cacheid
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6109 printf "%s\n" "$supported" >&6; }
6110 if test "$supported" = "yes" ; then
6111 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6112 found="yes"
6113 fi
6114 fi
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 xorg_testset_save_CFLAGS="$CFLAGS"
6131
6132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6136 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else case e in #(
6140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 int i;
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"
6145 then :
6146 xorg_cv_cc_flag_unknown_warning_option=yes
6147 else case e in #(
6148 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6149 esac
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6152 esac
6153 fi
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6155 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6157 CFLAGS="$xorg_testset_save_CFLAGS"
6158 fi
6159
6160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6163 fi
6164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6166 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6167 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6168 then :
6169 printf %s "(cached) " >&6
6170 else case e in #(
6171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 int i;
6174 _ACEOF
6175 if ac_fn_c_try_compile "$LINENO"
6176 then :
6177 xorg_cv_cc_flag_unused_command_line_argument=yes
6178 else case e in #(
6179 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6180 esac
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6183 esac
6184 fi
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6188 CFLAGS="$xorg_testset_save_CFLAGS"
6189 fi
6190
6191 found="no"
6192
6193 if test $found = "no" ; then
6194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6196 fi
6197
6198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6200 fi
6201
6202 CFLAGS="$CFLAGS -Wold-style-definition"
6203
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6205 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6206 cacheid=xorg_cv_cc_flag__Wold_style_definition
6207 if eval test \${$cacheid+y}
6208 then :
6209 printf %s "(cached) " >&6
6210 else case e in #(
6211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 int i;
6214 int
6215 main (void)
6216 {
6217
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_link "$LINENO"
6223 then :
6224 eval $cacheid=yes
6225 else case e in #(
6226 e) eval $cacheid=no ;;
6227 esac
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6230 conftest$ac_exeext conftest.$ac_ext ;;
6231 esac
6232 fi
6233
6234
6235 CFLAGS="$xorg_testset_save_CFLAGS"
6236
6237 eval supported=\$$cacheid
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6239 printf "%s\n" "$supported" >&6; }
6240 if test "$supported" = "yes" ; then
6241 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6242 found="yes"
6243 fi
6244 fi
6245
6246 if test $found = "no" ; then
6247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249 fi
6250
6251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6253 fi
6254
6255 CFLAGS="$CFLAGS -fd"
6256
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6258 printf %s "checking if $CC supports -fd... " >&6; }
6259 cacheid=xorg_cv_cc_flag__fd
6260 if eval test \${$cacheid+y}
6261 then :
6262 printf %s "(cached) " >&6
6263 else case e in #(
6264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 int i;
6267 int
6268 main (void)
6269 {
6270
6271 ;
6272 return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_c_try_link "$LINENO"
6276 then :
6277 eval $cacheid=yes
6278 else case e in #(
6279 e) eval $cacheid=no ;;
6280 esac
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6283 conftest$ac_exeext conftest.$ac_ext ;;
6284 esac
6285 fi
6286
6287
6288 CFLAGS="$xorg_testset_save_CFLAGS"
6289
6290 eval supported=\$$cacheid
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6292 printf "%s\n" "$supported" >&6; }
6293 if test "$supported" = "yes" ; then
6294 BASE_CFLAGS="$BASE_CFLAGS -fd"
6295 found="yes"
6296 fi
6297 fi
6298
6299
6300
6301
6302
6303 # This chunk adds additional warnings that could catch undesired effects.
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 xorg_testset_save_CFLAGS="$CFLAGS"
6318
6319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6322 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6323 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6324 then :
6325 printf %s "(cached) " >&6
6326 else case e in #(
6327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 int i;
6330 _ACEOF
6331 if ac_fn_c_try_compile "$LINENO"
6332 then :
6333 xorg_cv_cc_flag_unknown_warning_option=yes
6334 else case e in #(
6335 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6336 esac
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6339 esac
6340 fi
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6342 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6344 CFLAGS="$xorg_testset_save_CFLAGS"
6345 fi
6346
6347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350 fi
6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6353 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6354 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6355 then :
6356 printf %s "(cached) " >&6
6357 else case e in #(
6358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 int i;
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"
6363 then :
6364 xorg_cv_cc_flag_unused_command_line_argument=yes
6365 else case e in #(
6366 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6367 esac
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6370 esac
6371 fi
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6373 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6375 CFLAGS="$xorg_testset_save_CFLAGS"
6376 fi
6377
6378 found="no"
6379
6380 if test $found = "no" ; then
6381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6383 fi
6384
6385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6387 fi
6388
6389 CFLAGS="$CFLAGS -Wunused"
6390
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6392 printf %s "checking if $CC supports -Wunused... " >&6; }
6393 cacheid=xorg_cv_cc_flag__Wunused
6394 if eval test \${$cacheid+y}
6395 then :
6396 printf %s "(cached) " >&6
6397 else case e in #(
6398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 int i;
6401 int
6402 main (void)
6403 {
6404
6405 ;
6406 return 0;
6407 }
6408 _ACEOF
6409 if ac_fn_c_try_link "$LINENO"
6410 then :
6411 eval $cacheid=yes
6412 else case e in #(
6413 e) eval $cacheid=no ;;
6414 esac
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6417 conftest$ac_exeext conftest.$ac_ext ;;
6418 esac
6419 fi
6420
6421
6422 CFLAGS="$xorg_testset_save_CFLAGS"
6423
6424 eval supported=\$$cacheid
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6426 printf "%s\n" "$supported" >&6; }
6427 if test "$supported" = "yes" ; then
6428 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6429 found="yes"
6430 fi
6431 fi
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447 xorg_testset_save_CFLAGS="$CFLAGS"
6448
6449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6452 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6453 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6454 then :
6455 printf %s "(cached) " >&6
6456 else case e in #(
6457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 int i;
6460 _ACEOF
6461 if ac_fn_c_try_compile "$LINENO"
6462 then :
6463 xorg_cv_cc_flag_unknown_warning_option=yes
6464 else case e in #(
6465 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6466 esac
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6469 esac
6470 fi
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6472 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6474 CFLAGS="$xorg_testset_save_CFLAGS"
6475 fi
6476
6477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480 fi
6481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6483 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6484 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6485 then :
6486 printf %s "(cached) " >&6
6487 else case e in #(
6488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490 int i;
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"
6493 then :
6494 xorg_cv_cc_flag_unused_command_line_argument=yes
6495 else case e in #(
6496 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6497 esac
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6500 esac
6501 fi
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6503 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6505 CFLAGS="$xorg_testset_save_CFLAGS"
6506 fi
6507
6508 found="no"
6509
6510 if test $found = "no" ; then
6511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513 fi
6514
6515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6517 fi
6518
6519 CFLAGS="$CFLAGS -Wuninitialized"
6520
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6522 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6523 cacheid=xorg_cv_cc_flag__Wuninitialized
6524 if eval test \${$cacheid+y}
6525 then :
6526 printf %s "(cached) " >&6
6527 else case e in #(
6528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 int i;
6531 int
6532 main (void)
6533 {
6534
6535 ;
6536 return 0;
6537 }
6538 _ACEOF
6539 if ac_fn_c_try_link "$LINENO"
6540 then :
6541 eval $cacheid=yes
6542 else case e in #(
6543 e) eval $cacheid=no ;;
6544 esac
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6547 conftest$ac_exeext conftest.$ac_ext ;;
6548 esac
6549 fi
6550
6551
6552 CFLAGS="$xorg_testset_save_CFLAGS"
6553
6554 eval supported=\$$cacheid
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6556 printf "%s\n" "$supported" >&6; }
6557 if test "$supported" = "yes" ; then
6558 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6559 found="yes"
6560 fi
6561 fi
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577 xorg_testset_save_CFLAGS="$CFLAGS"
6578
6579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6582 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6583 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6584 then :
6585 printf %s "(cached) " >&6
6586 else case e in #(
6587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 int i;
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"
6592 then :
6593 xorg_cv_cc_flag_unknown_warning_option=yes
6594 else case e in #(
6595 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6596 esac
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6599 esac
6600 fi
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6602 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6604 CFLAGS="$xorg_testset_save_CFLAGS"
6605 fi
6606
6607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610 fi
6611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6613 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6614 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6615 then :
6616 printf %s "(cached) " >&6
6617 else case e in #(
6618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 int i;
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"
6623 then :
6624 xorg_cv_cc_flag_unused_command_line_argument=yes
6625 else case e in #(
6626 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6627 esac
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6630 esac
6631 fi
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6633 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6635 CFLAGS="$xorg_testset_save_CFLAGS"
6636 fi
6637
6638 found="no"
6639
6640 if test $found = "no" ; then
6641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6643 fi
6644
6645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6647 fi
6648
6649 CFLAGS="$CFLAGS -Wshadow"
6650
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6652 printf %s "checking if $CC supports -Wshadow... " >&6; }
6653 cacheid=xorg_cv_cc_flag__Wshadow
6654 if eval test \${$cacheid+y}
6655 then :
6656 printf %s "(cached) " >&6
6657 else case e in #(
6658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 int i;
6661 int
6662 main (void)
6663 {
6664
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 if ac_fn_c_try_link "$LINENO"
6670 then :
6671 eval $cacheid=yes
6672 else case e in #(
6673 e) eval $cacheid=no ;;
6674 esac
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6677 conftest$ac_exeext conftest.$ac_ext ;;
6678 esac
6679 fi
6680
6681
6682 CFLAGS="$xorg_testset_save_CFLAGS"
6683
6684 eval supported=\$$cacheid
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6686 printf "%s\n" "$supported" >&6; }
6687 if test "$supported" = "yes" ; then
6688 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6689 found="yes"
6690 fi
6691 fi
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707 xorg_testset_save_CFLAGS="$CFLAGS"
6708
6709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6712 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6713 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6714 then :
6715 printf %s "(cached) " >&6
6716 else case e in #(
6717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 int i;
6720 _ACEOF
6721 if ac_fn_c_try_compile "$LINENO"
6722 then :
6723 xorg_cv_cc_flag_unknown_warning_option=yes
6724 else case e in #(
6725 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6726 esac
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6729 esac
6730 fi
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6734 CFLAGS="$xorg_testset_save_CFLAGS"
6735 fi
6736
6737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740 fi
6741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6745 then :
6746 printf %s "(cached) " >&6
6747 else case e in #(
6748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 int i;
6751 _ACEOF
6752 if ac_fn_c_try_compile "$LINENO"
6753 then :
6754 xorg_cv_cc_flag_unused_command_line_argument=yes
6755 else case e in #(
6756 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6757 esac
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6760 esac
6761 fi
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6763 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6765 CFLAGS="$xorg_testset_save_CFLAGS"
6766 fi
6767
6768 found="no"
6769
6770 if test $found = "no" ; then
6771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773 fi
6774
6775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6777 fi
6778
6779 CFLAGS="$CFLAGS -Wmissing-noreturn"
6780
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6782 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6783 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6784 if eval test \${$cacheid+y}
6785 then :
6786 printf %s "(cached) " >&6
6787 else case e in #(
6788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 int i;
6791 int
6792 main (void)
6793 {
6794
6795 ;
6796 return 0;
6797 }
6798 _ACEOF
6799 if ac_fn_c_try_link "$LINENO"
6800 then :
6801 eval $cacheid=yes
6802 else case e in #(
6803 e) eval $cacheid=no ;;
6804 esac
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6807 conftest$ac_exeext conftest.$ac_ext ;;
6808 esac
6809 fi
6810
6811
6812 CFLAGS="$xorg_testset_save_CFLAGS"
6813
6814 eval supported=\$$cacheid
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6816 printf "%s\n" "$supported" >&6; }
6817 if test "$supported" = "yes" ; then
6818 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6819 found="yes"
6820 fi
6821 fi
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837 xorg_testset_save_CFLAGS="$CFLAGS"
6838
6839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6842 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6843 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6844 then :
6845 printf %s "(cached) " >&6
6846 else case e in #(
6847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 int i;
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"
6852 then :
6853 xorg_cv_cc_flag_unknown_warning_option=yes
6854 else case e in #(
6855 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6856 esac
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6859 esac
6860 fi
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6862 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6864 CFLAGS="$xorg_testset_save_CFLAGS"
6865 fi
6866
6867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870 fi
6871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6873 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6874 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else case e in #(
6878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 int i;
6881 _ACEOF
6882 if ac_fn_c_try_compile "$LINENO"
6883 then :
6884 xorg_cv_cc_flag_unused_command_line_argument=yes
6885 else case e in #(
6886 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6887 esac
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6890 esac
6891 fi
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6893 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6895 CFLAGS="$xorg_testset_save_CFLAGS"
6896 fi
6897
6898 found="no"
6899
6900 if test $found = "no" ; then
6901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6903 fi
6904
6905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6907 fi
6908
6909 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6910
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6912 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6913 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6914 if eval test \${$cacheid+y}
6915 then :
6916 printf %s "(cached) " >&6
6917 else case e in #(
6918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 int i;
6921 int
6922 main (void)
6923 {
6924
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 if ac_fn_c_try_link "$LINENO"
6930 then :
6931 eval $cacheid=yes
6932 else case e in #(
6933 e) eval $cacheid=no ;;
6934 esac
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6937 conftest$ac_exeext conftest.$ac_ext ;;
6938 esac
6939 fi
6940
6941
6942 CFLAGS="$xorg_testset_save_CFLAGS"
6943
6944 eval supported=\$$cacheid
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6946 printf "%s\n" "$supported" >&6; }
6947 if test "$supported" = "yes" ; then
6948 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6949 found="yes"
6950 fi
6951 fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967 xorg_testset_save_CFLAGS="$CFLAGS"
6968
6969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6972 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6973 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6974 then :
6975 printf %s "(cached) " >&6
6976 else case e in #(
6977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979 int i;
6980 _ACEOF
6981 if ac_fn_c_try_compile "$LINENO"
6982 then :
6983 xorg_cv_cc_flag_unknown_warning_option=yes
6984 else case e in #(
6985 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6986 esac
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6989 esac
6990 fi
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6992 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6994 CFLAGS="$xorg_testset_save_CFLAGS"
6995 fi
6996
6997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000 fi
7001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7003 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7004 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7005 then :
7006 printf %s "(cached) " >&6
7007 else case e in #(
7008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 int i;
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"
7013 then :
7014 xorg_cv_cc_flag_unused_command_line_argument=yes
7015 else case e in #(
7016 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7017 esac
7018 fi
7019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7020 esac
7021 fi
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7023 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7025 CFLAGS="$xorg_testset_save_CFLAGS"
7026 fi
7027
7028 found="no"
7029
7030 if test $found = "no" ; then
7031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033 fi
7034
7035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7037 fi
7038
7039 CFLAGS="$CFLAGS -Wredundant-decls"
7040
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7042 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7043 cacheid=xorg_cv_cc_flag__Wredundant_decls
7044 if eval test \${$cacheid+y}
7045 then :
7046 printf %s "(cached) " >&6
7047 else case e in #(
7048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 int i;
7051 int
7052 main (void)
7053 {
7054
7055 ;
7056 return 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_link "$LINENO"
7060 then :
7061 eval $cacheid=yes
7062 else case e in #(
7063 e) eval $cacheid=no ;;
7064 esac
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7067 conftest$ac_exeext conftest.$ac_ext ;;
7068 esac
7069 fi
7070
7071
7072 CFLAGS="$xorg_testset_save_CFLAGS"
7073
7074 eval supported=\$$cacheid
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7076 printf "%s\n" "$supported" >&6; }
7077 if test "$supported" = "yes" ; then
7078 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7079 found="yes"
7080 fi
7081 fi
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097 xorg_testset_save_CFLAGS="$CFLAGS"
7098
7099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7102 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7103 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7104 then :
7105 printf %s "(cached) " >&6
7106 else case e in #(
7107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 int i;
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"
7112 then :
7113 xorg_cv_cc_flag_unknown_warning_option=yes
7114 else case e in #(
7115 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7116 esac
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7119 esac
7120 fi
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7122 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7124 CFLAGS="$xorg_testset_save_CFLAGS"
7125 fi
7126
7127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7130 fi
7131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7133 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7134 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7135 then :
7136 printf %s "(cached) " >&6
7137 else case e in #(
7138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 int i;
7141 _ACEOF
7142 if ac_fn_c_try_compile "$LINENO"
7143 then :
7144 xorg_cv_cc_flag_unused_command_line_argument=yes
7145 else case e in #(
7146 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7147 esac
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7150 esac
7151 fi
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7153 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7155 CFLAGS="$xorg_testset_save_CFLAGS"
7156 fi
7157
7158 found="no"
7159
7160 if test $found = "no" ; then
7161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163 fi
7164
7165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7167 fi
7168
7169 CFLAGS="$CFLAGS -Wlogical-op"
7170
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7172 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7173 cacheid=xorg_cv_cc_flag__Wlogical_op
7174 if eval test \${$cacheid+y}
7175 then :
7176 printf %s "(cached) " >&6
7177 else case e in #(
7178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 int i;
7181 int
7182 main (void)
7183 {
7184
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_link "$LINENO"
7190 then :
7191 eval $cacheid=yes
7192 else case e in #(
7193 e) eval $cacheid=no ;;
7194 esac
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7197 conftest$ac_exeext conftest.$ac_ext ;;
7198 esac
7199 fi
7200
7201
7202 CFLAGS="$xorg_testset_save_CFLAGS"
7203
7204 eval supported=\$$cacheid
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7206 printf "%s\n" "$supported" >&6; }
7207 if test "$supported" = "yes" ; then
7208 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7209 found="yes"
7210 fi
7211 fi
7212
7213
7214
7215 # These are currently disabled because they are noisy. They will be enabled
7216 # in the future once the codebase is sufficiently modernized to silence
7217 # them. For now, I don't want them to drown out the other warnings.
7218 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7219 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7220 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7221
7222 # Turn some warnings into errors, so we don't accidentally get successful builds
7223 # when there are problems that should be fixed.
7224
7225 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239 xorg_testset_save_CFLAGS="$CFLAGS"
7240
7241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7245 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7246 then :
7247 printf %s "(cached) " >&6
7248 else case e in #(
7249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 int i;
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"
7254 then :
7255 xorg_cv_cc_flag_unknown_warning_option=yes
7256 else case e in #(
7257 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7258 esac
7259 fi
7260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7261 esac
7262 fi
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7266 CFLAGS="$xorg_testset_save_CFLAGS"
7267 fi
7268
7269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272 fi
7273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7277 then :
7278 printf %s "(cached) " >&6
7279 else case e in #(
7280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 int i;
7283 _ACEOF
7284 if ac_fn_c_try_compile "$LINENO"
7285 then :
7286 xorg_cv_cc_flag_unused_command_line_argument=yes
7287 else case e in #(
7288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7289 esac
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7292 esac
7293 fi
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7297 CFLAGS="$xorg_testset_save_CFLAGS"
7298 fi
7299
7300 found="no"
7301
7302 if test $found = "no" ; then
7303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7305 fi
7306
7307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7309 fi
7310
7311 CFLAGS="$CFLAGS -Werror=implicit"
7312
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7314 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7315 cacheid=xorg_cv_cc_flag__Werror_implicit
7316 if eval test \${$cacheid+y}
7317 then :
7318 printf %s "(cached) " >&6
7319 else case e in #(
7320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 int i;
7323 int
7324 main (void)
7325 {
7326
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_link "$LINENO"
7332 then :
7333 eval $cacheid=yes
7334 else case e in #(
7335 e) eval $cacheid=no ;;
7336 esac
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7339 conftest$ac_exeext conftest.$ac_ext ;;
7340 esac
7341 fi
7342
7343
7344 CFLAGS="$xorg_testset_save_CFLAGS"
7345
7346 eval supported=\$$cacheid
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7348 printf "%s\n" "$supported" >&6; }
7349 if test "$supported" = "yes" ; then
7350 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7351 found="yes"
7352 fi
7353 fi
7354
7355 if test $found = "no" ; then
7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358 fi
7359
7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362 fi
7363
7364 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7365
7366 { 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
7367 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7368 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7369 if eval test \${$cacheid+y}
7370 then :
7371 printf %s "(cached) " >&6
7372 else case e in #(
7373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375 int i;
7376 int
7377 main (void)
7378 {
7379
7380 ;
7381 return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_link "$LINENO"
7385 then :
7386 eval $cacheid=yes
7387 else case e in #(
7388 e) eval $cacheid=no ;;
7389 esac
7390 fi
7391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7392 conftest$ac_exeext conftest.$ac_ext ;;
7393 esac
7394 fi
7395
7396
7397 CFLAGS="$xorg_testset_save_CFLAGS"
7398
7399 eval supported=\$$cacheid
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7401 printf "%s\n" "$supported" >&6; }
7402 if test "$supported" = "yes" ; then
7403 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7404 found="yes"
7405 fi
7406 fi
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422 xorg_testset_save_CFLAGS="$CFLAGS"
7423
7424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7427 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7428 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7429 then :
7430 printf %s "(cached) " >&6
7431 else case e in #(
7432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 int i;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"
7437 then :
7438 xorg_cv_cc_flag_unknown_warning_option=yes
7439 else case e in #(
7440 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7441 esac
7442 fi
7443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7444 esac
7445 fi
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7447 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7449 CFLAGS="$xorg_testset_save_CFLAGS"
7450 fi
7451
7452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7455 fi
7456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7458 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7459 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7460 then :
7461 printf %s "(cached) " >&6
7462 else case e in #(
7463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 int i;
7466 _ACEOF
7467 if ac_fn_c_try_compile "$LINENO"
7468 then :
7469 xorg_cv_cc_flag_unused_command_line_argument=yes
7470 else case e in #(
7471 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7472 esac
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7475 esac
7476 fi
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7478 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7480 CFLAGS="$xorg_testset_save_CFLAGS"
7481 fi
7482
7483 found="no"
7484
7485 if test $found = "no" ; then
7486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7488 fi
7489
7490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7492 fi
7493
7494 CFLAGS="$CFLAGS -Werror=nonnull"
7495
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7497 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7498 cacheid=xorg_cv_cc_flag__Werror_nonnull
7499 if eval test \${$cacheid+y}
7500 then :
7501 printf %s "(cached) " >&6
7502 else case e in #(
7503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 int i;
7506 int
7507 main (void)
7508 {
7509
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_link "$LINENO"
7515 then :
7516 eval $cacheid=yes
7517 else case e in #(
7518 e) eval $cacheid=no ;;
7519 esac
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7522 conftest$ac_exeext conftest.$ac_ext ;;
7523 esac
7524 fi
7525
7526
7527 CFLAGS="$xorg_testset_save_CFLAGS"
7528
7529 eval supported=\$$cacheid
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7531 printf "%s\n" "$supported" >&6; }
7532 if test "$supported" = "yes" ; then
7533 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7534 found="yes"
7535 fi
7536 fi
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552 xorg_testset_save_CFLAGS="$CFLAGS"
7553
7554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7557 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7558 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7559 then :
7560 printf %s "(cached) " >&6
7561 else case e in #(
7562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 int i;
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"
7567 then :
7568 xorg_cv_cc_flag_unknown_warning_option=yes
7569 else case e in #(
7570 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7571 esac
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7574 esac
7575 fi
7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7580 fi
7581
7582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585 fi
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7590 then :
7591 printf %s "(cached) " >&6
7592 else case e in #(
7593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 int i;
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"
7598 then :
7599 xorg_cv_cc_flag_unused_command_line_argument=yes
7600 else case e in #(
7601 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7602 esac
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7605 esac
7606 fi
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7608 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7610 CFLAGS="$xorg_testset_save_CFLAGS"
7611 fi
7612
7613 found="no"
7614
7615 if test $found = "no" ; then
7616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618 fi
7619
7620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7622 fi
7623
7624 CFLAGS="$CFLAGS -Werror=init-self"
7625
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7627 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7628 cacheid=xorg_cv_cc_flag__Werror_init_self
7629 if eval test \${$cacheid+y}
7630 then :
7631 printf %s "(cached) " >&6
7632 else case e in #(
7633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 int i;
7636 int
7637 main (void)
7638 {
7639
7640 ;
7641 return 0;
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"
7645 then :
7646 eval $cacheid=yes
7647 else case e in #(
7648 e) eval $cacheid=no ;;
7649 esac
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7652 conftest$ac_exeext conftest.$ac_ext ;;
7653 esac
7654 fi
7655
7656
7657 CFLAGS="$xorg_testset_save_CFLAGS"
7658
7659 eval supported=\$$cacheid
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7661 printf "%s\n" "$supported" >&6; }
7662 if test "$supported" = "yes" ; then
7663 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7664 found="yes"
7665 fi
7666 fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682 xorg_testset_save_CFLAGS="$CFLAGS"
7683
7684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7687 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7688 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7689 then :
7690 printf %s "(cached) " >&6
7691 else case e in #(
7692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 int i;
7695 _ACEOF
7696 if ac_fn_c_try_compile "$LINENO"
7697 then :
7698 xorg_cv_cc_flag_unknown_warning_option=yes
7699 else case e in #(
7700 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7701 esac
7702 fi
7703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7704 esac
7705 fi
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7707 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7709 CFLAGS="$xorg_testset_save_CFLAGS"
7710 fi
7711
7712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7715 fi
7716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7718 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7719 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7720 then :
7721 printf %s "(cached) " >&6
7722 else case e in #(
7723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 int i;
7726 _ACEOF
7727 if ac_fn_c_try_compile "$LINENO"
7728 then :
7729 xorg_cv_cc_flag_unused_command_line_argument=yes
7730 else case e in #(
7731 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7732 esac
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7735 esac
7736 fi
7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7738 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7740 CFLAGS="$xorg_testset_save_CFLAGS"
7741 fi
7742
7743 found="no"
7744
7745 if test $found = "no" ; then
7746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748 fi
7749
7750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752 fi
7753
7754 CFLAGS="$CFLAGS -Werror=main"
7755
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7757 printf %s "checking if $CC supports -Werror=main... " >&6; }
7758 cacheid=xorg_cv_cc_flag__Werror_main
7759 if eval test \${$cacheid+y}
7760 then :
7761 printf %s "(cached) " >&6
7762 else case e in #(
7763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765 int i;
7766 int
7767 main (void)
7768 {
7769
7770 ;
7771 return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"
7775 then :
7776 eval $cacheid=yes
7777 else case e in #(
7778 e) eval $cacheid=no ;;
7779 esac
7780 fi
7781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7782 conftest$ac_exeext conftest.$ac_ext ;;
7783 esac
7784 fi
7785
7786
7787 CFLAGS="$xorg_testset_save_CFLAGS"
7788
7789 eval supported=\$$cacheid
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7791 printf "%s\n" "$supported" >&6; }
7792 if test "$supported" = "yes" ; then
7793 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7794 found="yes"
7795 fi
7796 fi
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812 xorg_testset_save_CFLAGS="$CFLAGS"
7813
7814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7819 then :
7820 printf %s "(cached) " >&6
7821 else case e in #(
7822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 int i;
7825 _ACEOF
7826 if ac_fn_c_try_compile "$LINENO"
7827 then :
7828 xorg_cv_cc_flag_unknown_warning_option=yes
7829 else case e in #(
7830 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7831 esac
7832 fi
7833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7834 esac
7835 fi
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7839 CFLAGS="$xorg_testset_save_CFLAGS"
7840 fi
7841
7842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845 fi
7846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7850 then :
7851 printf %s "(cached) " >&6
7852 else case e in #(
7853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 int i;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"
7858 then :
7859 xorg_cv_cc_flag_unused_command_line_argument=yes
7860 else case e in #(
7861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7862 esac
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7865 esac
7866 fi
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7870 CFLAGS="$xorg_testset_save_CFLAGS"
7871 fi
7872
7873 found="no"
7874
7875 if test $found = "no" ; then
7876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7878 fi
7879
7880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7882 fi
7883
7884 CFLAGS="$CFLAGS -Werror=missing-braces"
7885
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7887 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7888 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7889 if eval test \${$cacheid+y}
7890 then :
7891 printf %s "(cached) " >&6
7892 else case e in #(
7893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 int i;
7896 int
7897 main (void)
7898 {
7899
7900 ;
7901 return 0;
7902 }
7903 _ACEOF
7904 if ac_fn_c_try_link "$LINENO"
7905 then :
7906 eval $cacheid=yes
7907 else case e in #(
7908 e) eval $cacheid=no ;;
7909 esac
7910 fi
7911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7912 conftest$ac_exeext conftest.$ac_ext ;;
7913 esac
7914 fi
7915
7916
7917 CFLAGS="$xorg_testset_save_CFLAGS"
7918
7919 eval supported=\$$cacheid
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7921 printf "%s\n" "$supported" >&6; }
7922 if test "$supported" = "yes" ; then
7923 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7924 found="yes"
7925 fi
7926 fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942 xorg_testset_save_CFLAGS="$CFLAGS"
7943
7944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7948 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7949 then :
7950 printf %s "(cached) " >&6
7951 else case e in #(
7952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 int i;
7955 _ACEOF
7956 if ac_fn_c_try_compile "$LINENO"
7957 then :
7958 xorg_cv_cc_flag_unknown_warning_option=yes
7959 else case e in #(
7960 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7961 esac
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7964 esac
7965 fi
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7969 CFLAGS="$xorg_testset_save_CFLAGS"
7970 fi
7971
7972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7975 fi
7976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7980 then :
7981 printf %s "(cached) " >&6
7982 else case e in #(
7983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 int i;
7986 _ACEOF
7987 if ac_fn_c_try_compile "$LINENO"
7988 then :
7989 xorg_cv_cc_flag_unused_command_line_argument=yes
7990 else case e in #(
7991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7992 esac
7993 fi
7994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7995 esac
7996 fi
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7998 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8000 CFLAGS="$xorg_testset_save_CFLAGS"
8001 fi
8002
8003 found="no"
8004
8005 if test $found = "no" ; then
8006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8008 fi
8009
8010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8012 fi
8013
8014 CFLAGS="$CFLAGS -Werror=sequence-point"
8015
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8017 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8018 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8019 if eval test \${$cacheid+y}
8020 then :
8021 printf %s "(cached) " >&6
8022 else case e in #(
8023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8025 int i;
8026 int
8027 main (void)
8028 {
8029
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_link "$LINENO"
8035 then :
8036 eval $cacheid=yes
8037 else case e in #(
8038 e) eval $cacheid=no ;;
8039 esac
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8042 conftest$ac_exeext conftest.$ac_ext ;;
8043 esac
8044 fi
8045
8046
8047 CFLAGS="$xorg_testset_save_CFLAGS"
8048
8049 eval supported=\$$cacheid
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8051 printf "%s\n" "$supported" >&6; }
8052 if test "$supported" = "yes" ; then
8053 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8054 found="yes"
8055 fi
8056 fi
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072 xorg_testset_save_CFLAGS="$CFLAGS"
8073
8074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8078 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8079 then :
8080 printf %s "(cached) " >&6
8081 else case e in #(
8082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084 int i;
8085 _ACEOF
8086 if ac_fn_c_try_compile "$LINENO"
8087 then :
8088 xorg_cv_cc_flag_unknown_warning_option=yes
8089 else case e in #(
8090 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8091 esac
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8094 esac
8095 fi
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8100 fi
8101
8102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105 fi
8106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8110 then :
8111 printf %s "(cached) " >&6
8112 else case e in #(
8113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 int i;
8116 _ACEOF
8117 if ac_fn_c_try_compile "$LINENO"
8118 then :
8119 xorg_cv_cc_flag_unused_command_line_argument=yes
8120 else case e in #(
8121 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8122 esac
8123 fi
8124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8125 esac
8126 fi
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8130 CFLAGS="$xorg_testset_save_CFLAGS"
8131 fi
8132
8133 found="no"
8134
8135 if test $found = "no" ; then
8136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138 fi
8139
8140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142 fi
8143
8144 CFLAGS="$CFLAGS -Werror=return-type"
8145
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8147 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8148 cacheid=xorg_cv_cc_flag__Werror_return_type
8149 if eval test \${$cacheid+y}
8150 then :
8151 printf %s "(cached) " >&6
8152 else case e in #(
8153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8155 int i;
8156 int
8157 main (void)
8158 {
8159
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 if ac_fn_c_try_link "$LINENO"
8165 then :
8166 eval $cacheid=yes
8167 else case e in #(
8168 e) eval $cacheid=no ;;
8169 esac
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8172 conftest$ac_exeext conftest.$ac_ext ;;
8173 esac
8174 fi
8175
8176
8177 CFLAGS="$xorg_testset_save_CFLAGS"
8178
8179 eval supported=\$$cacheid
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8181 printf "%s\n" "$supported" >&6; }
8182 if test "$supported" = "yes" ; then
8183 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8184 found="yes"
8185 fi
8186 fi
8187
8188 if test $found = "no" ; then
8189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191 fi
8192
8193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8195 fi
8196
8197 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8198
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8200 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8201 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8202 if eval test \${$cacheid+y}
8203 then :
8204 printf %s "(cached) " >&6
8205 else case e in #(
8206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 int i;
8209 int
8210 main (void)
8211 {
8212
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"
8218 then :
8219 eval $cacheid=yes
8220 else case e in #(
8221 e) eval $cacheid=no ;;
8222 esac
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8225 conftest$ac_exeext conftest.$ac_ext ;;
8226 esac
8227 fi
8228
8229
8230 CFLAGS="$xorg_testset_save_CFLAGS"
8231
8232 eval supported=\$$cacheid
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8234 printf "%s\n" "$supported" >&6; }
8235 if test "$supported" = "yes" ; then
8236 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8237 found="yes"
8238 fi
8239 fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255 xorg_testset_save_CFLAGS="$CFLAGS"
8256
8257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8260 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8261 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8262 then :
8263 printf %s "(cached) " >&6
8264 else case e in #(
8265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 int i;
8268 _ACEOF
8269 if ac_fn_c_try_compile "$LINENO"
8270 then :
8271 xorg_cv_cc_flag_unknown_warning_option=yes
8272 else case e in #(
8273 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8274 esac
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8277 esac
8278 fi
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8282 CFLAGS="$xorg_testset_save_CFLAGS"
8283 fi
8284
8285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8288 fi
8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8293 then :
8294 printf %s "(cached) " >&6
8295 else case e in #(
8296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 int i;
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"
8301 then :
8302 xorg_cv_cc_flag_unused_command_line_argument=yes
8303 else case e in #(
8304 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8305 esac
8306 fi
8307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8308 esac
8309 fi
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 found="no"
8317
8318 if test $found = "no" ; then
8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321 fi
8322
8323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325 fi
8326
8327 CFLAGS="$CFLAGS -Werror=trigraphs"
8328
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8330 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8331 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8332 if eval test \${$cacheid+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else case e in #(
8336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 int
8340 main (void)
8341 {
8342
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_link "$LINENO"
8348 then :
8349 eval $cacheid=yes
8350 else case e in #(
8351 e) eval $cacheid=no ;;
8352 esac
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8355 conftest$ac_exeext conftest.$ac_ext ;;
8356 esac
8357 fi
8358
8359
8360 CFLAGS="$xorg_testset_save_CFLAGS"
8361
8362 eval supported=\$$cacheid
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8364 printf "%s\n" "$supported" >&6; }
8365 if test "$supported" = "yes" ; then
8366 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8367 found="yes"
8368 fi
8369 fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385 xorg_testset_save_CFLAGS="$CFLAGS"
8386
8387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8391 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8392 then :
8393 printf %s "(cached) " >&6
8394 else case e in #(
8395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 int i;
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"
8400 then :
8401 xorg_cv_cc_flag_unknown_warning_option=yes
8402 else case e in #(
8403 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8404 esac
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8407 esac
8408 fi
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8412 CFLAGS="$xorg_testset_save_CFLAGS"
8413 fi
8414
8415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8418 fi
8419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else case e in #(
8426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 int i;
8429 _ACEOF
8430 if ac_fn_c_try_compile "$LINENO"
8431 then :
8432 xorg_cv_cc_flag_unused_command_line_argument=yes
8433 else case e in #(
8434 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8435 esac
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8438 esac
8439 fi
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8443 CFLAGS="$xorg_testset_save_CFLAGS"
8444 fi
8445
8446 found="no"
8447
8448 if test $found = "no" ; then
8449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451 fi
8452
8453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8455 fi
8456
8457 CFLAGS="$CFLAGS -Werror=array-bounds"
8458
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8460 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8461 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8462 if eval test \${$cacheid+y}
8463 then :
8464 printf %s "(cached) " >&6
8465 else case e in #(
8466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 int i;
8469 int
8470 main (void)
8471 {
8472
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 if ac_fn_c_try_link "$LINENO"
8478 then :
8479 eval $cacheid=yes
8480 else case e in #(
8481 e) eval $cacheid=no ;;
8482 esac
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8485 conftest$ac_exeext conftest.$ac_ext ;;
8486 esac
8487 fi
8488
8489
8490 CFLAGS="$xorg_testset_save_CFLAGS"
8491
8492 eval supported=\$$cacheid
8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8494 printf "%s\n" "$supported" >&6; }
8495 if test "$supported" = "yes" ; then
8496 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8497 found="yes"
8498 fi
8499 fi
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515 xorg_testset_save_CFLAGS="$CFLAGS"
8516
8517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8520 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8521 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8522 then :
8523 printf %s "(cached) " >&6
8524 else case e in #(
8525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 int i;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"
8530 then :
8531 xorg_cv_cc_flag_unknown_warning_option=yes
8532 else case e in #(
8533 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8534 esac
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8537 esac
8538 fi
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8540 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8542 CFLAGS="$xorg_testset_save_CFLAGS"
8543 fi
8544
8545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8548 fi
8549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8551 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8552 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8553 then :
8554 printf %s "(cached) " >&6
8555 else case e in #(
8556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558 int i;
8559 _ACEOF
8560 if ac_fn_c_try_compile "$LINENO"
8561 then :
8562 xorg_cv_cc_flag_unused_command_line_argument=yes
8563 else case e in #(
8564 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8565 esac
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8568 esac
8569 fi
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8571 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8573 CFLAGS="$xorg_testset_save_CFLAGS"
8574 fi
8575
8576 found="no"
8577
8578 if test $found = "no" ; then
8579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8581 fi
8582
8583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8585 fi
8586
8587 CFLAGS="$CFLAGS -Werror=write-strings"
8588
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8590 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8591 cacheid=xorg_cv_cc_flag__Werror_write_strings
8592 if eval test \${$cacheid+y}
8593 then :
8594 printf %s "(cached) " >&6
8595 else case e in #(
8596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 int i;
8599 int
8600 main (void)
8601 {
8602
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"
8608 then :
8609 eval $cacheid=yes
8610 else case e in #(
8611 e) eval $cacheid=no ;;
8612 esac
8613 fi
8614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8615 conftest$ac_exeext conftest.$ac_ext ;;
8616 esac
8617 fi
8618
8619
8620 CFLAGS="$xorg_testset_save_CFLAGS"
8621
8622 eval supported=\$$cacheid
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8624 printf "%s\n" "$supported" >&6; }
8625 if test "$supported" = "yes" ; then
8626 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8627 found="yes"
8628 fi
8629 fi
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 xorg_testset_save_CFLAGS="$CFLAGS"
8646
8647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8652 then :
8653 printf %s "(cached) " >&6
8654 else case e in #(
8655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 int i;
8658 _ACEOF
8659 if ac_fn_c_try_compile "$LINENO"
8660 then :
8661 xorg_cv_cc_flag_unknown_warning_option=yes
8662 else case e in #(
8663 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8664 esac
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8667 esac
8668 fi
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8670 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8672 CFLAGS="$xorg_testset_save_CFLAGS"
8673 fi
8674
8675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678 fi
8679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8681 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8682 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8683 then :
8684 printf %s "(cached) " >&6
8685 else case e in #(
8686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 int i;
8689 _ACEOF
8690 if ac_fn_c_try_compile "$LINENO"
8691 then :
8692 xorg_cv_cc_flag_unused_command_line_argument=yes
8693 else case e in #(
8694 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8695 esac
8696 fi
8697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8698 esac
8699 fi
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8703 CFLAGS="$xorg_testset_save_CFLAGS"
8704 fi
8705
8706 found="no"
8707
8708 if test $found = "no" ; then
8709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711 fi
8712
8713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8715 fi
8716
8717 CFLAGS="$CFLAGS -Werror=address"
8718
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8720 printf %s "checking if $CC supports -Werror=address... " >&6; }
8721 cacheid=xorg_cv_cc_flag__Werror_address
8722 if eval test \${$cacheid+y}
8723 then :
8724 printf %s "(cached) " >&6
8725 else case e in #(
8726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 int i;
8729 int
8730 main (void)
8731 {
8732
8733 ;
8734 return 0;
8735 }
8736 _ACEOF
8737 if ac_fn_c_try_link "$LINENO"
8738 then :
8739 eval $cacheid=yes
8740 else case e in #(
8741 e) eval $cacheid=no ;;
8742 esac
8743 fi
8744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8745 conftest$ac_exeext conftest.$ac_ext ;;
8746 esac
8747 fi
8748
8749
8750 CFLAGS="$xorg_testset_save_CFLAGS"
8751
8752 eval supported=\$$cacheid
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8754 printf "%s\n" "$supported" >&6; }
8755 if test "$supported" = "yes" ; then
8756 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8757 found="yes"
8758 fi
8759 fi
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775 xorg_testset_save_CFLAGS="$CFLAGS"
8776
8777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8780 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8781 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8782 then :
8783 printf %s "(cached) " >&6
8784 else case e in #(
8785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 int i;
8788 _ACEOF
8789 if ac_fn_c_try_compile "$LINENO"
8790 then :
8791 xorg_cv_cc_flag_unknown_warning_option=yes
8792 else case e in #(
8793 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8794 esac
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8797 esac
8798 fi
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8800 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8802 CFLAGS="$xorg_testset_save_CFLAGS"
8803 fi
8804
8805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808 fi
8809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8811 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8812 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8813 then :
8814 printf %s "(cached) " >&6
8815 else case e in #(
8816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 int i;
8819 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"
8821 then :
8822 xorg_cv_cc_flag_unused_command_line_argument=yes
8823 else case e in #(
8824 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8825 esac
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8828 esac
8829 fi
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8831 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8833 CFLAGS="$xorg_testset_save_CFLAGS"
8834 fi
8835
8836 found="no"
8837
8838 if test $found = "no" ; then
8839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8841 fi
8842
8843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845 fi
8846
8847 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8848
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8850 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8851 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8852 if eval test \${$cacheid+y}
8853 then :
8854 printf %s "(cached) " >&6
8855 else case e in #(
8856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 int i;
8859 int
8860 main (void)
8861 {
8862
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_link "$LINENO"
8868 then :
8869 eval $cacheid=yes
8870 else case e in #(
8871 e) eval $cacheid=no ;;
8872 esac
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8875 conftest$ac_exeext conftest.$ac_ext ;;
8876 esac
8877 fi
8878
8879
8880 CFLAGS="$xorg_testset_save_CFLAGS"
8881
8882 eval supported=\$$cacheid
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8884 printf "%s\n" "$supported" >&6; }
8885 if test "$supported" = "yes" ; then
8886 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8887 found="yes"
8888 fi
8889 fi
8890
8891 if test $found = "no" ; then
8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894 fi
8895
8896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898 fi
8899
8900 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8901
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8903 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8904 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8905 if eval test \${$cacheid+y}
8906 then :
8907 printf %s "(cached) " >&6
8908 else case e in #(
8909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 int i;
8912 int
8913 main (void)
8914 {
8915
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 if ac_fn_c_try_link "$LINENO"
8921 then :
8922 eval $cacheid=yes
8923 else case e in #(
8924 e) eval $cacheid=no ;;
8925 esac
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8928 conftest$ac_exeext conftest.$ac_ext ;;
8929 esac
8930 fi
8931
8932
8933 CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935 eval supported=\$$cacheid
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937 printf "%s\n" "$supported" >&6; }
8938 if test "$supported" = "yes" ; then
8939 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8940 found="yes"
8941 fi
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8965 then :
8966 printf %s "(cached) " >&6
8967 else case e in #(
8968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 int i;
8971 _ACEOF
8972 if ac_fn_c_try_compile "$LINENO"
8973 then :
8974 xorg_cv_cc_flag_unknown_warning_option=yes
8975 else case e in #(
8976 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8977 esac
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8980 esac
8981 fi
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8983 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8985 CFLAGS="$xorg_testset_save_CFLAGS"
8986 fi
8987
8988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991 fi
8992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8996 then :
8997 printf %s "(cached) " >&6
8998 else case e in #(
8999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 int i;
9002 _ACEOF
9003 if ac_fn_c_try_compile "$LINENO"
9004 then :
9005 xorg_cv_cc_flag_unused_command_line_argument=yes
9006 else case e in #(
9007 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9008 esac
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9011 esac
9012 fi
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9016 CFLAGS="$xorg_testset_save_CFLAGS"
9017 fi
9018
9019 found="no"
9020
9021 if test $found = "no" ; then
9022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024 fi
9025
9026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028 fi
9029
9030 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9031
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9033 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9034 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9035 if eval test \${$cacheid+y}
9036 then :
9037 printf %s "(cached) " >&6
9038 else case e in #(
9039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 int i;
9042 int
9043 main (void)
9044 {
9045
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 if ac_fn_c_try_link "$LINENO"
9051 then :
9052 eval $cacheid=yes
9053 else case e in #(
9054 e) eval $cacheid=no ;;
9055 esac
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9058 conftest$ac_exeext conftest.$ac_ext ;;
9059 esac
9060 fi
9061
9062
9063 CFLAGS="$xorg_testset_save_CFLAGS"
9064
9065 eval supported=\$$cacheid
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9067 printf "%s\n" "$supported" >&6; }
9068 if test "$supported" = "yes" ; then
9069 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9070 found="yes"
9071 fi
9072 fi
9073
9074 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9075 else
9076 { 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
9077 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;}
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091 xorg_testset_save_CFLAGS="$CFLAGS"
9092
9093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9096 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9097 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9098 then :
9099 printf %s "(cached) " >&6
9100 else case e in #(
9101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103 int i;
9104 _ACEOF
9105 if ac_fn_c_try_compile "$LINENO"
9106 then :
9107 xorg_cv_cc_flag_unknown_warning_option=yes
9108 else case e in #(
9109 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9110 esac
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9113 esac
9114 fi
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9116 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9118 CFLAGS="$xorg_testset_save_CFLAGS"
9119 fi
9120
9121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124 fi
9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9127 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9128 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9129 then :
9130 printf %s "(cached) " >&6
9131 else case e in #(
9132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 int i;
9135 _ACEOF
9136 if ac_fn_c_try_compile "$LINENO"
9137 then :
9138 xorg_cv_cc_flag_unused_command_line_argument=yes
9139 else case e in #(
9140 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9141 esac
9142 fi
9143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9144 esac
9145 fi
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9147 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9149 CFLAGS="$xorg_testset_save_CFLAGS"
9150 fi
9151
9152 found="no"
9153
9154 if test $found = "no" ; then
9155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9157 fi
9158
9159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9161 fi
9162
9163 CFLAGS="$CFLAGS -Wimplicit"
9164
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9166 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9167 cacheid=xorg_cv_cc_flag__Wimplicit
9168 if eval test \${$cacheid+y}
9169 then :
9170 printf %s "(cached) " >&6
9171 else case e in #(
9172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 int i;
9175 int
9176 main (void)
9177 {
9178
9179 ;
9180 return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"
9184 then :
9185 eval $cacheid=yes
9186 else case e in #(
9187 e) eval $cacheid=no ;;
9188 esac
9189 fi
9190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9191 conftest$ac_exeext conftest.$ac_ext ;;
9192 esac
9193 fi
9194
9195
9196 CFLAGS="$xorg_testset_save_CFLAGS"
9197
9198 eval supported=\$$cacheid
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9200 printf "%s\n" "$supported" >&6; }
9201 if test "$supported" = "yes" ; then
9202 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9203 found="yes"
9204 fi
9205 fi
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221 xorg_testset_save_CFLAGS="$CFLAGS"
9222
9223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9226 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9227 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9228 then :
9229 printf %s "(cached) " >&6
9230 else case e in #(
9231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 int i;
9234 _ACEOF
9235 if ac_fn_c_try_compile "$LINENO"
9236 then :
9237 xorg_cv_cc_flag_unknown_warning_option=yes
9238 else case e in #(
9239 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9240 esac
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9243 esac
9244 fi
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9246 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9248 CFLAGS="$xorg_testset_save_CFLAGS"
9249 fi
9250
9251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9254 fi
9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9257 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9258 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9259 then :
9260 printf %s "(cached) " >&6
9261 else case e in #(
9262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 int i;
9265 _ACEOF
9266 if ac_fn_c_try_compile "$LINENO"
9267 then :
9268 xorg_cv_cc_flag_unused_command_line_argument=yes
9269 else case e in #(
9270 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9271 esac
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9274 esac
9275 fi
9276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9277 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9279 CFLAGS="$xorg_testset_save_CFLAGS"
9280 fi
9281
9282 found="no"
9283
9284 if test $found = "no" ; then
9285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9287 fi
9288
9289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9291 fi
9292
9293 CFLAGS="$CFLAGS -Wnonnull"
9294
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9296 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9297 cacheid=xorg_cv_cc_flag__Wnonnull
9298 if eval test \${$cacheid+y}
9299 then :
9300 printf %s "(cached) " >&6
9301 else case e in #(
9302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 int i;
9305 int
9306 main (void)
9307 {
9308
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"
9314 then :
9315 eval $cacheid=yes
9316 else case e in #(
9317 e) eval $cacheid=no ;;
9318 esac
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9321 conftest$ac_exeext conftest.$ac_ext ;;
9322 esac
9323 fi
9324
9325
9326 CFLAGS="$xorg_testset_save_CFLAGS"
9327
9328 eval supported=\$$cacheid
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9330 printf "%s\n" "$supported" >&6; }
9331 if test "$supported" = "yes" ; then
9332 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9333 found="yes"
9334 fi
9335 fi
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351 xorg_testset_save_CFLAGS="$CFLAGS"
9352
9353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9356 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9357 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9358 then :
9359 printf %s "(cached) " >&6
9360 else case e in #(
9361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int i;
9364 _ACEOF
9365 if ac_fn_c_try_compile "$LINENO"
9366 then :
9367 xorg_cv_cc_flag_unknown_warning_option=yes
9368 else case e in #(
9369 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9370 esac
9371 fi
9372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9373 esac
9374 fi
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9376 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9378 CFLAGS="$xorg_testset_save_CFLAGS"
9379 fi
9380
9381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9384 fi
9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9387 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9388 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else case e in #(
9392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 int i;
9395 _ACEOF
9396 if ac_fn_c_try_compile "$LINENO"
9397 then :
9398 xorg_cv_cc_flag_unused_command_line_argument=yes
9399 else case e in #(
9400 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9401 esac
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9404 esac
9405 fi
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9407 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9409 CFLAGS="$xorg_testset_save_CFLAGS"
9410 fi
9411
9412 found="no"
9413
9414 if test $found = "no" ; then
9415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417 fi
9418
9419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9421 fi
9422
9423 CFLAGS="$CFLAGS -Winit-self"
9424
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9426 printf %s "checking if $CC supports -Winit-self... " >&6; }
9427 cacheid=xorg_cv_cc_flag__Winit_self
9428 if eval test \${$cacheid+y}
9429 then :
9430 printf %s "(cached) " >&6
9431 else case e in #(
9432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 int i;
9435 int
9436 main (void)
9437 {
9438
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 if ac_fn_c_try_link "$LINENO"
9444 then :
9445 eval $cacheid=yes
9446 else case e in #(
9447 e) eval $cacheid=no ;;
9448 esac
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9451 conftest$ac_exeext conftest.$ac_ext ;;
9452 esac
9453 fi
9454
9455
9456 CFLAGS="$xorg_testset_save_CFLAGS"
9457
9458 eval supported=\$$cacheid
9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9460 printf "%s\n" "$supported" >&6; }
9461 if test "$supported" = "yes" ; then
9462 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9463 found="yes"
9464 fi
9465 fi
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481 xorg_testset_save_CFLAGS="$CFLAGS"
9482
9483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9487 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9488 then :
9489 printf %s "(cached) " >&6
9490 else case e in #(
9491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 int i;
9494 _ACEOF
9495 if ac_fn_c_try_compile "$LINENO"
9496 then :
9497 xorg_cv_cc_flag_unknown_warning_option=yes
9498 else case e in #(
9499 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9500 esac
9501 fi
9502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9503 esac
9504 fi
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9508 CFLAGS="$xorg_testset_save_CFLAGS"
9509 fi
9510
9511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9514 fi
9515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9519 then :
9520 printf %s "(cached) " >&6
9521 else case e in #(
9522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9524 int i;
9525 _ACEOF
9526 if ac_fn_c_try_compile "$LINENO"
9527 then :
9528 xorg_cv_cc_flag_unused_command_line_argument=yes
9529 else case e in #(
9530 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9531 esac
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9534 esac
9535 fi
9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9537 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9539 CFLAGS="$xorg_testset_save_CFLAGS"
9540 fi
9541
9542 found="no"
9543
9544 if test $found = "no" ; then
9545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547 fi
9548
9549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9551 fi
9552
9553 CFLAGS="$CFLAGS -Wmain"
9554
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9556 printf %s "checking if $CC supports -Wmain... " >&6; }
9557 cacheid=xorg_cv_cc_flag__Wmain
9558 if eval test \${$cacheid+y}
9559 then :
9560 printf %s "(cached) " >&6
9561 else case e in #(
9562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 int i;
9565 int
9566 main (void)
9567 {
9568
9569 ;
9570 return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_link "$LINENO"
9574 then :
9575 eval $cacheid=yes
9576 else case e in #(
9577 e) eval $cacheid=no ;;
9578 esac
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581 conftest$ac_exeext conftest.$ac_ext ;;
9582 esac
9583 fi
9584
9585
9586 CFLAGS="$xorg_testset_save_CFLAGS"
9587
9588 eval supported=\$$cacheid
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9590 printf "%s\n" "$supported" >&6; }
9591 if test "$supported" = "yes" ; then
9592 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9593 found="yes"
9594 fi
9595 fi
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611 xorg_testset_save_CFLAGS="$CFLAGS"
9612
9613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9616 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9617 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9618 then :
9619 printf %s "(cached) " >&6
9620 else case e in #(
9621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 int i;
9624 _ACEOF
9625 if ac_fn_c_try_compile "$LINENO"
9626 then :
9627 xorg_cv_cc_flag_unknown_warning_option=yes
9628 else case e in #(
9629 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9630 esac
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9633 esac
9634 fi
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9638 CFLAGS="$xorg_testset_save_CFLAGS"
9639 fi
9640
9641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644 fi
9645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9649 then :
9650 printf %s "(cached) " >&6
9651 else case e in #(
9652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 int i;
9655 _ACEOF
9656 if ac_fn_c_try_compile "$LINENO"
9657 then :
9658 xorg_cv_cc_flag_unused_command_line_argument=yes
9659 else case e in #(
9660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9661 esac
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9664 esac
9665 fi
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9667 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9669 CFLAGS="$xorg_testset_save_CFLAGS"
9670 fi
9671
9672 found="no"
9673
9674 if test $found = "no" ; then
9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677 fi
9678
9679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9681 fi
9682
9683 CFLAGS="$CFLAGS -Wmissing-braces"
9684
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9686 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9687 cacheid=xorg_cv_cc_flag__Wmissing_braces
9688 if eval test \${$cacheid+y}
9689 then :
9690 printf %s "(cached) " >&6
9691 else case e in #(
9692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 int i;
9695 int
9696 main (void)
9697 {
9698
9699 ;
9700 return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"
9704 then :
9705 eval $cacheid=yes
9706 else case e in #(
9707 e) eval $cacheid=no ;;
9708 esac
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9711 conftest$ac_exeext conftest.$ac_ext ;;
9712 esac
9713 fi
9714
9715
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717
9718 eval supported=\$$cacheid
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9720 printf "%s\n" "$supported" >&6; }
9721 if test "$supported" = "yes" ; then
9722 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9723 found="yes"
9724 fi
9725 fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741 xorg_testset_save_CFLAGS="$CFLAGS"
9742
9743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9746 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9747 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9748 then :
9749 printf %s "(cached) " >&6
9750 else case e in #(
9751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 int i;
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"
9756 then :
9757 xorg_cv_cc_flag_unknown_warning_option=yes
9758 else case e in #(
9759 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9760 esac
9761 fi
9762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9763 esac
9764 fi
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9766 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9768 CFLAGS="$xorg_testset_save_CFLAGS"
9769 fi
9770
9771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774 fi
9775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9777 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9778 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9779 then :
9780 printf %s "(cached) " >&6
9781 else case e in #(
9782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 int i;
9785 _ACEOF
9786 if ac_fn_c_try_compile "$LINENO"
9787 then :
9788 xorg_cv_cc_flag_unused_command_line_argument=yes
9789 else case e in #(
9790 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9791 esac
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9794 esac
9795 fi
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9799 CFLAGS="$xorg_testset_save_CFLAGS"
9800 fi
9801
9802 found="no"
9803
9804 if test $found = "no" ; then
9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9807 fi
9808
9809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811 fi
9812
9813 CFLAGS="$CFLAGS -Wsequence-point"
9814
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9816 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9817 cacheid=xorg_cv_cc_flag__Wsequence_point
9818 if eval test \${$cacheid+y}
9819 then :
9820 printf %s "(cached) " >&6
9821 else case e in #(
9822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 int i;
9825 int
9826 main (void)
9827 {
9828
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 if ac_fn_c_try_link "$LINENO"
9834 then :
9835 eval $cacheid=yes
9836 else case e in #(
9837 e) eval $cacheid=no ;;
9838 esac
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9841 conftest$ac_exeext conftest.$ac_ext ;;
9842 esac
9843 fi
9844
9845
9846 CFLAGS="$xorg_testset_save_CFLAGS"
9847
9848 eval supported=\$$cacheid
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9850 printf "%s\n" "$supported" >&6; }
9851 if test "$supported" = "yes" ; then
9852 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9853 found="yes"
9854 fi
9855 fi
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871 xorg_testset_save_CFLAGS="$CFLAGS"
9872
9873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9877 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9878 then :
9879 printf %s "(cached) " >&6
9880 else case e in #(
9881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883 int i;
9884 _ACEOF
9885 if ac_fn_c_try_compile "$LINENO"
9886 then :
9887 xorg_cv_cc_flag_unknown_warning_option=yes
9888 else case e in #(
9889 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9890 esac
9891 fi
9892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9893 esac
9894 fi
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9898 CFLAGS="$xorg_testset_save_CFLAGS"
9899 fi
9900
9901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904 fi
9905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9909 then :
9910 printf %s "(cached) " >&6
9911 else case e in #(
9912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 int i;
9915 _ACEOF
9916 if ac_fn_c_try_compile "$LINENO"
9917 then :
9918 xorg_cv_cc_flag_unused_command_line_argument=yes
9919 else case e in #(
9920 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9921 esac
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9924 esac
9925 fi
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9929 CFLAGS="$xorg_testset_save_CFLAGS"
9930 fi
9931
9932 found="no"
9933
9934 if test $found = "no" ; then
9935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937 fi
9938
9939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9941 fi
9942
9943 CFLAGS="$CFLAGS -Wreturn-type"
9944
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9946 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9947 cacheid=xorg_cv_cc_flag__Wreturn_type
9948 if eval test \${$cacheid+y}
9949 then :
9950 printf %s "(cached) " >&6
9951 else case e in #(
9952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9954 int i;
9955 int
9956 main (void)
9957 {
9958
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 if ac_fn_c_try_link "$LINENO"
9964 then :
9965 eval $cacheid=yes
9966 else case e in #(
9967 e) eval $cacheid=no ;;
9968 esac
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9971 conftest$ac_exeext conftest.$ac_ext ;;
9972 esac
9973 fi
9974
9975
9976 CFLAGS="$xorg_testset_save_CFLAGS"
9977
9978 eval supported=\$$cacheid
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9980 printf "%s\n" "$supported" >&6; }
9981 if test "$supported" = "yes" ; then
9982 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9983 found="yes"
9984 fi
9985 fi
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001 xorg_testset_save_CFLAGS="$CFLAGS"
10002
10003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10007 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10008 then :
10009 printf %s "(cached) " >&6
10010 else case e in #(
10011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 int i;
10014 _ACEOF
10015 if ac_fn_c_try_compile "$LINENO"
10016 then :
10017 xorg_cv_cc_flag_unknown_warning_option=yes
10018 else case e in #(
10019 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10020 esac
10021 fi
10022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10023 esac
10024 fi
10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10026 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10028 CFLAGS="$xorg_testset_save_CFLAGS"
10029 fi
10030
10031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10034 fi
10035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10037 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10038 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10039 then :
10040 printf %s "(cached) " >&6
10041 else case e in #(
10042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h. */
10044 int i;
10045 _ACEOF
10046 if ac_fn_c_try_compile "$LINENO"
10047 then :
10048 xorg_cv_cc_flag_unused_command_line_argument=yes
10049 else case e in #(
10050 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10051 esac
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10054 esac
10055 fi
10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10059 CFLAGS="$xorg_testset_save_CFLAGS"
10060 fi
10061
10062 found="no"
10063
10064 if test $found = "no" ; then
10065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067 fi
10068
10069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10071 fi
10072
10073 CFLAGS="$CFLAGS -Wtrigraphs"
10074
10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10076 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10077 cacheid=xorg_cv_cc_flag__Wtrigraphs
10078 if eval test \${$cacheid+y}
10079 then :
10080 printf %s "(cached) " >&6
10081 else case e in #(
10082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084 int i;
10085 int
10086 main (void)
10087 {
10088
10089 ;
10090 return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_c_try_link "$LINENO"
10094 then :
10095 eval $cacheid=yes
10096 else case e in #(
10097 e) eval $cacheid=no ;;
10098 esac
10099 fi
10100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10101 conftest$ac_exeext conftest.$ac_ext ;;
10102 esac
10103 fi
10104
10105
10106 CFLAGS="$xorg_testset_save_CFLAGS"
10107
10108 eval supported=\$$cacheid
10109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10110 printf "%s\n" "$supported" >&6; }
10111 if test "$supported" = "yes" ; then
10112 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10113 found="yes"
10114 fi
10115 fi
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131 xorg_testset_save_CFLAGS="$CFLAGS"
10132
10133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10137 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10138 then :
10139 printf %s "(cached) " >&6
10140 else case e in #(
10141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 int i;
10144 _ACEOF
10145 if ac_fn_c_try_compile "$LINENO"
10146 then :
10147 xorg_cv_cc_flag_unknown_warning_option=yes
10148 else case e in #(
10149 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10150 esac
10151 fi
10152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10153 esac
10154 fi
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10158 CFLAGS="$xorg_testset_save_CFLAGS"
10159 fi
10160
10161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10164 fi
10165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10169 then :
10170 printf %s "(cached) " >&6
10171 else case e in #(
10172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174 int i;
10175 _ACEOF
10176 if ac_fn_c_try_compile "$LINENO"
10177 then :
10178 xorg_cv_cc_flag_unused_command_line_argument=yes
10179 else case e in #(
10180 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10181 esac
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10184 esac
10185 fi
10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10189 CFLAGS="$xorg_testset_save_CFLAGS"
10190 fi
10191
10192 found="no"
10193
10194 if test $found = "no" ; then
10195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197 fi
10198
10199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10201 fi
10202
10203 CFLAGS="$CFLAGS -Warray-bounds"
10204
10205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10206 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10207 cacheid=xorg_cv_cc_flag__Warray_bounds
10208 if eval test \${$cacheid+y}
10209 then :
10210 printf %s "(cached) " >&6
10211 else case e in #(
10212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 int i;
10215 int
10216 main (void)
10217 {
10218
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"
10224 then :
10225 eval $cacheid=yes
10226 else case e in #(
10227 e) eval $cacheid=no ;;
10228 esac
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10231 conftest$ac_exeext conftest.$ac_ext ;;
10232 esac
10233 fi
10234
10235
10236 CFLAGS="$xorg_testset_save_CFLAGS"
10237
10238 eval supported=\$$cacheid
10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10240 printf "%s\n" "$supported" >&6; }
10241 if test "$supported" = "yes" ; then
10242 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10243 found="yes"
10244 fi
10245 fi
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261 xorg_testset_save_CFLAGS="$CFLAGS"
10262
10263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10266 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10267 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10268 then :
10269 printf %s "(cached) " >&6
10270 else case e in #(
10271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273 int i;
10274 _ACEOF
10275 if ac_fn_c_try_compile "$LINENO"
10276 then :
10277 xorg_cv_cc_flag_unknown_warning_option=yes
10278 else case e in #(
10279 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10280 esac
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10283 esac
10284 fi
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288 CFLAGS="$xorg_testset_save_CFLAGS"
10289 fi
10290
10291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294 fi
10295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10299 then :
10300 printf %s "(cached) " >&6
10301 else case e in #(
10302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 int i;
10305 _ACEOF
10306 if ac_fn_c_try_compile "$LINENO"
10307 then :
10308 xorg_cv_cc_flag_unused_command_line_argument=yes
10309 else case e in #(
10310 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10311 esac
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10314 esac
10315 fi
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10319 CFLAGS="$xorg_testset_save_CFLAGS"
10320 fi
10321
10322 found="no"
10323
10324 if test $found = "no" ; then
10325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327 fi
10328
10329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331 fi
10332
10333 CFLAGS="$CFLAGS -Wwrite-strings"
10334
10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10336 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10337 cacheid=xorg_cv_cc_flag__Wwrite_strings
10338 if eval test \${$cacheid+y}
10339 then :
10340 printf %s "(cached) " >&6
10341 else case e in #(
10342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 int i;
10345 int
10346 main (void)
10347 {
10348
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"
10354 then :
10355 eval $cacheid=yes
10356 else case e in #(
10357 e) eval $cacheid=no ;;
10358 esac
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10361 conftest$ac_exeext conftest.$ac_ext ;;
10362 esac
10363 fi
10364
10365
10366 CFLAGS="$xorg_testset_save_CFLAGS"
10367
10368 eval supported=\$$cacheid
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10370 printf "%s\n" "$supported" >&6; }
10371 if test "$supported" = "yes" ; then
10372 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10373 found="yes"
10374 fi
10375 fi
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391 xorg_testset_save_CFLAGS="$CFLAGS"
10392
10393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10396 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10397 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10398 then :
10399 printf %s "(cached) " >&6
10400 else case e in #(
10401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 int i;
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"
10406 then :
10407 xorg_cv_cc_flag_unknown_warning_option=yes
10408 else case e in #(
10409 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10410 esac
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10413 esac
10414 fi
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10416 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10418 CFLAGS="$xorg_testset_save_CFLAGS"
10419 fi
10420
10421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10424 fi
10425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10427 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10428 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10429 then :
10430 printf %s "(cached) " >&6
10431 else case e in #(
10432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 int i;
10435 _ACEOF
10436 if ac_fn_c_try_compile "$LINENO"
10437 then :
10438 xorg_cv_cc_flag_unused_command_line_argument=yes
10439 else case e in #(
10440 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10441 esac
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10444 esac
10445 fi
10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10447 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10449 CFLAGS="$xorg_testset_save_CFLAGS"
10450 fi
10451
10452 found="no"
10453
10454 if test $found = "no" ; then
10455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10457 fi
10458
10459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10461 fi
10462
10463 CFLAGS="$CFLAGS -Waddress"
10464
10465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10466 printf %s "checking if $CC supports -Waddress... " >&6; }
10467 cacheid=xorg_cv_cc_flag__Waddress
10468 if eval test \${$cacheid+y}
10469 then :
10470 printf %s "(cached) " >&6
10471 else case e in #(
10472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10474 int i;
10475 int
10476 main (void)
10477 {
10478
10479 ;
10480 return 0;
10481 }
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"
10484 then :
10485 eval $cacheid=yes
10486 else case e in #(
10487 e) eval $cacheid=no ;;
10488 esac
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10491 conftest$ac_exeext conftest.$ac_ext ;;
10492 esac
10493 fi
10494
10495
10496 CFLAGS="$xorg_testset_save_CFLAGS"
10497
10498 eval supported=\$$cacheid
10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10500 printf "%s\n" "$supported" >&6; }
10501 if test "$supported" = "yes" ; then
10502 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10503 found="yes"
10504 fi
10505 fi
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521 xorg_testset_save_CFLAGS="$CFLAGS"
10522
10523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10527 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10528 then :
10529 printf %s "(cached) " >&6
10530 else case e in #(
10531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533 int i;
10534 _ACEOF
10535 if ac_fn_c_try_compile "$LINENO"
10536 then :
10537 xorg_cv_cc_flag_unknown_warning_option=yes
10538 else case e in #(
10539 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10540 esac
10541 fi
10542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10543 esac
10544 fi
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10546 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10548 CFLAGS="$xorg_testset_save_CFLAGS"
10549 fi
10550
10551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10554 fi
10555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10557 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10558 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10559 then :
10560 printf %s "(cached) " >&6
10561 else case e in #(
10562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 int i;
10565 _ACEOF
10566 if ac_fn_c_try_compile "$LINENO"
10567 then :
10568 xorg_cv_cc_flag_unused_command_line_argument=yes
10569 else case e in #(
10570 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10571 esac
10572 fi
10573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10574 esac
10575 fi
10576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10577 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10579 CFLAGS="$xorg_testset_save_CFLAGS"
10580 fi
10581
10582 found="no"
10583
10584 if test $found = "no" ; then
10585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10587 fi
10588
10589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10591 fi
10592
10593 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10594
10595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10596 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10597 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10598 if eval test \${$cacheid+y}
10599 then :
10600 printf %s "(cached) " >&6
10601 else case e in #(
10602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10604 int i;
10605 int
10606 main (void)
10607 {
10608
10609 ;
10610 return 0;
10611 }
10612 _ACEOF
10613 if ac_fn_c_try_link "$LINENO"
10614 then :
10615 eval $cacheid=yes
10616 else case e in #(
10617 e) eval $cacheid=no ;;
10618 esac
10619 fi
10620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10621 conftest$ac_exeext conftest.$ac_ext ;;
10622 esac
10623 fi
10624
10625
10626 CFLAGS="$xorg_testset_save_CFLAGS"
10627
10628 eval supported=\$$cacheid
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10630 printf "%s\n" "$supported" >&6; }
10631 if test "$supported" = "yes" ; then
10632 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10633 found="yes"
10634 fi
10635 fi
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651 xorg_testset_save_CFLAGS="$CFLAGS"
10652
10653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10656 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10657 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10658 then :
10659 printf %s "(cached) " >&6
10660 else case e in #(
10661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 int i;
10664 _ACEOF
10665 if ac_fn_c_try_compile "$LINENO"
10666 then :
10667 xorg_cv_cc_flag_unknown_warning_option=yes
10668 else case e in #(
10669 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10670 esac
10671 fi
10672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10673 esac
10674 fi
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10676 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10678 CFLAGS="$xorg_testset_save_CFLAGS"
10679 fi
10680
10681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10684 fi
10685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10687 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10688 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10689 then :
10690 printf %s "(cached) " >&6
10691 else case e in #(
10692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10694 int i;
10695 _ACEOF
10696 if ac_fn_c_try_compile "$LINENO"
10697 then :
10698 xorg_cv_cc_flag_unused_command_line_argument=yes
10699 else case e in #(
10700 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10701 esac
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10704 esac
10705 fi
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10707 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10709 CFLAGS="$xorg_testset_save_CFLAGS"
10710 fi
10711
10712 found="no"
10713
10714 if test $found = "no" ; then
10715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10717 fi
10718
10719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10721 fi
10722
10723 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10724
10725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10726 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10727 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10728 if eval test \${$cacheid+y}
10729 then :
10730 printf %s "(cached) " >&6
10731 else case e in #(
10732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 int i;
10735 int
10736 main (void)
10737 {
10738
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"
10744 then :
10745 eval $cacheid=yes
10746 else case e in #(
10747 e) eval $cacheid=no ;;
10748 esac
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10751 conftest$ac_exeext conftest.$ac_ext ;;
10752 esac
10753 fi
10754
10755
10756 CFLAGS="$xorg_testset_save_CFLAGS"
10757
10758 eval supported=\$$cacheid
10759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10760 printf "%s\n" "$supported" >&6; }
10761 if test "$supported" = "yes" ; then
10762 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10763 found="yes"
10764 fi
10765 fi
10766
10767
10768 fi
10769
10770
10771
10772
10773
10774
10775
10776 CWARNFLAGS="$BASE_CFLAGS"
10777 if test "x$GCC" = xyes ; then
10778 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10779 fi
10780
10781
10782
10783
10784
10785
10786
10787
10788 # Check whether --enable-strict-compilation was given.
10789 if test ${enable_strict_compilation+y}
10790 then :
10791 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10792 else case e in #(
10793 e) STRICT_COMPILE=no ;;
10794 esac
10795 fi
10796
10797
10798
10799
10800
10801
10802 STRICT_CFLAGS=""
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816 xorg_testset_save_CFLAGS="$CFLAGS"
10817
10818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10822 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10823 then :
10824 printf %s "(cached) " >&6
10825 else case e in #(
10826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828 int i;
10829 _ACEOF
10830 if ac_fn_c_try_compile "$LINENO"
10831 then :
10832 xorg_cv_cc_flag_unknown_warning_option=yes
10833 else case e in #(
10834 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10835 esac
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10838 esac
10839 fi
10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10841 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10843 CFLAGS="$xorg_testset_save_CFLAGS"
10844 fi
10845
10846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10849 fi
10850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10854 then :
10855 printf %s "(cached) " >&6
10856 else case e in #(
10857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 int i;
10860 _ACEOF
10861 if ac_fn_c_try_compile "$LINENO"
10862 then :
10863 xorg_cv_cc_flag_unused_command_line_argument=yes
10864 else case e in #(
10865 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10866 esac
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10869 esac
10870 fi
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10874 CFLAGS="$xorg_testset_save_CFLAGS"
10875 fi
10876
10877 found="no"
10878
10879 if test $found = "no" ; then
10880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10882 fi
10883
10884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10886 fi
10887
10888 CFLAGS="$CFLAGS -pedantic"
10889
10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10891 printf %s "checking if $CC supports -pedantic... " >&6; }
10892 cacheid=xorg_cv_cc_flag__pedantic
10893 if eval test \${$cacheid+y}
10894 then :
10895 printf %s "(cached) " >&6
10896 else case e in #(
10897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10899 int i;
10900 int
10901 main (void)
10902 {
10903
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"
10909 then :
10910 eval $cacheid=yes
10911 else case e in #(
10912 e) eval $cacheid=no ;;
10913 esac
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10916 conftest$ac_exeext conftest.$ac_ext ;;
10917 esac
10918 fi
10919
10920
10921 CFLAGS="$xorg_testset_save_CFLAGS"
10922
10923 eval supported=\$$cacheid
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10925 printf "%s\n" "$supported" >&6; }
10926 if test "$supported" = "yes" ; then
10927 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10928 found="yes"
10929 fi
10930 fi
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946 xorg_testset_save_CFLAGS="$CFLAGS"
10947
10948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10951 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10952 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10953 then :
10954 printf %s "(cached) " >&6
10955 else case e in #(
10956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958 int i;
10959 _ACEOF
10960 if ac_fn_c_try_compile "$LINENO"
10961 then :
10962 xorg_cv_cc_flag_unknown_warning_option=yes
10963 else case e in #(
10964 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10965 esac
10966 fi
10967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10968 esac
10969 fi
10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10973 CFLAGS="$xorg_testset_save_CFLAGS"
10974 fi
10975
10976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10979 fi
10980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10984 then :
10985 printf %s "(cached) " >&6
10986 else case e in #(
10987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989 int i;
10990 _ACEOF
10991 if ac_fn_c_try_compile "$LINENO"
10992 then :
10993 xorg_cv_cc_flag_unused_command_line_argument=yes
10994 else case e in #(
10995 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10996 esac
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10999 esac
11000 fi
11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11002 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11004 CFLAGS="$xorg_testset_save_CFLAGS"
11005 fi
11006
11007 found="no"
11008
11009 if test $found = "no" ; then
11010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11012 fi
11013
11014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11016 fi
11017
11018 CFLAGS="$CFLAGS -Werror"
11019
11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11021 printf %s "checking if $CC supports -Werror... " >&6; }
11022 cacheid=xorg_cv_cc_flag__Werror
11023 if eval test \${$cacheid+y}
11024 then :
11025 printf %s "(cached) " >&6
11026 else case e in #(
11027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11029 int i;
11030 int
11031 main (void)
11032 {
11033
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"
11039 then :
11040 eval $cacheid=yes
11041 else case e in #(
11042 e) eval $cacheid=no ;;
11043 esac
11044 fi
11045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11046 conftest$ac_exeext conftest.$ac_ext ;;
11047 esac
11048 fi
11049
11050
11051 CFLAGS="$xorg_testset_save_CFLAGS"
11052
11053 eval supported=\$$cacheid
11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11055 printf "%s\n" "$supported" >&6; }
11056 if test "$supported" = "yes" ; then
11057 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11058 found="yes"
11059 fi
11060 fi
11061
11062 if test $found = "no" ; then
11063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11065 fi
11066
11067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11069 fi
11070
11071 CFLAGS="$CFLAGS -errwarn"
11072
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11074 printf %s "checking if $CC supports -errwarn... " >&6; }
11075 cacheid=xorg_cv_cc_flag__errwarn
11076 if eval test \${$cacheid+y}
11077 then :
11078 printf %s "(cached) " >&6
11079 else case e in #(
11080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082 int i;
11083 int
11084 main (void)
11085 {
11086
11087 ;
11088 return 0;
11089 }
11090 _ACEOF
11091 if ac_fn_c_try_link "$LINENO"
11092 then :
11093 eval $cacheid=yes
11094 else case e in #(
11095 e) eval $cacheid=no ;;
11096 esac
11097 fi
11098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11099 conftest$ac_exeext conftest.$ac_ext ;;
11100 esac
11101 fi
11102
11103
11104 CFLAGS="$xorg_testset_save_CFLAGS"
11105
11106 eval supported=\$$cacheid
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11108 printf "%s\n" "$supported" >&6; }
11109 if test "$supported" = "yes" ; then
11110 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11111 found="yes"
11112 fi
11113 fi
11114
11115
11116
11117 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11118 # activate it with -Werror, so we add it here explicitly.
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132 xorg_testset_save_CFLAGS="$CFLAGS"
11133
11134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11137 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11138 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11139 then :
11140 printf %s "(cached) " >&6
11141 else case e in #(
11142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144 int i;
11145 _ACEOF
11146 if ac_fn_c_try_compile "$LINENO"
11147 then :
11148 xorg_cv_cc_flag_unknown_warning_option=yes
11149 else case e in #(
11150 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11151 esac
11152 fi
11153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11154 esac
11155 fi
11156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11159 CFLAGS="$xorg_testset_save_CFLAGS"
11160 fi
11161
11162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11165 fi
11166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11170 then :
11171 printf %s "(cached) " >&6
11172 else case e in #(
11173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175 int i;
11176 _ACEOF
11177 if ac_fn_c_try_compile "$LINENO"
11178 then :
11179 xorg_cv_cc_flag_unused_command_line_argument=yes
11180 else case e in #(
11181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11182 esac
11183 fi
11184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11185 esac
11186 fi
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11190 CFLAGS="$xorg_testset_save_CFLAGS"
11191 fi
11192
11193 found="no"
11194
11195 if test $found = "no" ; then
11196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11198 fi
11199
11200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11202 fi
11203
11204 CFLAGS="$CFLAGS -Werror=attributes"
11205
11206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11207 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11208 cacheid=xorg_cv_cc_flag__Werror_attributes
11209 if eval test \${$cacheid+y}
11210 then :
11211 printf %s "(cached) " >&6
11212 else case e in #(
11213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215 int i;
11216 int
11217 main (void)
11218 {
11219
11220 ;
11221 return 0;
11222 }
11223 _ACEOF
11224 if ac_fn_c_try_link "$LINENO"
11225 then :
11226 eval $cacheid=yes
11227 else case e in #(
11228 e) eval $cacheid=no ;;
11229 esac
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11232 conftest$ac_exeext conftest.$ac_ext ;;
11233 esac
11234 fi
11235
11236
11237 CFLAGS="$xorg_testset_save_CFLAGS"
11238
11239 eval supported=\$$cacheid
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11241 printf "%s\n" "$supported" >&6; }
11242 if test "$supported" = "yes" ; then
11243 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11244 found="yes"
11245 fi
11246 fi
11247
11248
11249
11250 if test "x$STRICT_COMPILE" = "xyes"; then
11251 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11252 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11253 fi
11254
11255
11256
11257
11258
11259
11260
11261
11262 cat >>confdefs.h <<_ACEOF
11263 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11264 _ACEOF
11265
11266 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11267 if test "x$PVM" = "x"; then
11268 PVM="0"
11269 fi
11270
11271 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11272
11273 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11274 if test "x$PVP" = "x"; then
11275 PVP="0"
11276 fi
11277
11278 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11279
11280
11281
11282 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11283 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11284 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11285 touch \$(top_srcdir)/ChangeLog; \
11286 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11287
11288
11289
11290
11291 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11292 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11293 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11294 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11295 touch \$(top_srcdir)/INSTALL; \
11296 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11297
11298
11299
11300
11301
11302
11303 case $host_os in
11304 solaris*)
11305 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11306 # check for a man page file found in later versions that use
11307 # traditional section numbers instead
11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11309 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11310 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11311 then :
11312 printf %s "(cached) " >&6
11313 else case e in #(
11314 e) test "$cross_compiling" = yes &&
11315 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11316 if test -r "/usr/share/man/man7/attributes.7"; then
11317 ac_cv_file__usr_share_man_man7_attributes_7=yes
11318 else
11319 ac_cv_file__usr_share_man_man7_attributes_7=no
11320 fi ;;
11321 esac
11322 fi
11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11324 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11325 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11326 then :
11327 SYSV_MAN_SECTIONS=false
11328 else case e in #(
11329 e) SYSV_MAN_SECTIONS=true ;;
11330 esac
11331 fi
11332
11333 ;;
11334 *) SYSV_MAN_SECTIONS=false ;;
11335 esac
11336
11337 if test x$APP_MAN_SUFFIX = x ; then
11338 APP_MAN_SUFFIX=1
11339 fi
11340 if test x$APP_MAN_DIR = x ; then
11341 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11342 fi
11343
11344 if test x$LIB_MAN_SUFFIX = x ; then
11345 LIB_MAN_SUFFIX=3
11346 fi
11347 if test x$LIB_MAN_DIR = x ; then
11348 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11349 fi
11350
11351 if test x$FILE_MAN_SUFFIX = x ; then
11352 case $SYSV_MAN_SECTIONS in
11353 true) FILE_MAN_SUFFIX=4 ;;
11354 *) FILE_MAN_SUFFIX=5 ;;
11355 esac
11356 fi
11357 if test x$FILE_MAN_DIR = x ; then
11358 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11359 fi
11360
11361 if test x$MISC_MAN_SUFFIX = x ; then
11362 case $SYSV_MAN_SECTIONS in
11363 true) MISC_MAN_SUFFIX=5 ;;
11364 *) MISC_MAN_SUFFIX=7 ;;
11365 esac
11366 fi
11367 if test x$MISC_MAN_DIR = x ; then
11368 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11369 fi
11370
11371 if test x$DRIVER_MAN_SUFFIX = x ; then
11372 case $SYSV_MAN_SECTIONS in
11373 true) DRIVER_MAN_SUFFIX=7 ;;
11374 *) DRIVER_MAN_SUFFIX=4 ;;
11375 esac
11376 fi
11377 if test x$DRIVER_MAN_DIR = x ; then
11378 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11379 fi
11380
11381 if test x$ADMIN_MAN_SUFFIX = x ; then
11382 case $SYSV_MAN_SECTIONS in
11383 true) ADMIN_MAN_SUFFIX=1m ;;
11384 *) ADMIN_MAN_SUFFIX=8 ;;
11385 esac
11386 fi
11387 if test x$ADMIN_MAN_DIR = x ; then
11388 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11389 fi
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405 XORG_MAN_PAGE="X Version 11"
11406
11407 MAN_SUBSTS="\
11408 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11409 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11410 -e 's|__xservername__|Xorg|g' \
11411 -e 's|__xconfigfile__|xorg.conf|g' \
11412 -e 's|__projectroot__|\$(prefix)|g' \
11413 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11414 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11415 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11416 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11417 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11418 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11419 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11420
11421
11422
11423
11424 AM_DEFAULT_VERBOSITY=0
11425
11426
11427
11428 # Checks for pkg-config packages
11429
11430 pkg_failed=no
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHOWFONT" >&5
11432 printf %s "checking for SHOWFONT... " >&6; }
11433
11434 if test -n "$SHOWFONT_CFLAGS"; then
11435 pkg_cv_SHOWFONT_CFLAGS="$SHOWFONT_CFLAGS"
11436 elif test -n "$PKG_CONFIG"; then
11437 if test -n "$PKG_CONFIG" && \
11438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfs xproto >= 7.0.17\""; } >&5
11439 ($PKG_CONFIG --exists --print-errors "libfs xproto >= 7.0.17") 2>&5
11440 ac_status=$?
11441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11442 test $ac_status = 0; }; then
11443 pkg_cv_SHOWFONT_CFLAGS=`$PKG_CONFIG --cflags "libfs xproto >= 7.0.17" 2>/dev/null`
11444 test "x$?" != "x0" && pkg_failed=yes
11445 else
11446 pkg_failed=yes
11447 fi
11448 else
11449 pkg_failed=untried
11450 fi
11451 if test -n "$SHOWFONT_LIBS"; then
11452 pkg_cv_SHOWFONT_LIBS="$SHOWFONT_LIBS"
11453 elif test -n "$PKG_CONFIG"; then
11454 if test -n "$PKG_CONFIG" && \
11455 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfs xproto >= 7.0.17\""; } >&5
11456 ($PKG_CONFIG --exists --print-errors "libfs xproto >= 7.0.17") 2>&5
11457 ac_status=$?
11458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459 test $ac_status = 0; }; then
11460 pkg_cv_SHOWFONT_LIBS=`$PKG_CONFIG --libs "libfs xproto >= 7.0.17" 2>/dev/null`
11461 test "x$?" != "x0" && pkg_failed=yes
11462 else
11463 pkg_failed=yes
11464 fi
11465 else
11466 pkg_failed=untried
11467 fi
11468
11469
11470
11471 if test $pkg_failed = yes; then
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 printf "%s\n" "no" >&6; }
11474
11475 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11476 _pkg_short_errors_supported=yes
11477 else
11478 _pkg_short_errors_supported=no
11479 fi
11480 if test $_pkg_short_errors_supported = yes; then
11481 SHOWFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfs xproto >= 7.0.17" 2>&1`
11482 else
11483 SHOWFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfs xproto >= 7.0.17" 2>&1`
11484 fi
11485 # Put the nasty error message in config.log where it belongs
11486 echo "$SHOWFONT_PKG_ERRORS" >&5
11487
11488 as_fn_error $? "Package requirements (libfs xproto >= 7.0.17) were not met:
11489
11490 $SHOWFONT_PKG_ERRORS
11491
11492 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11493 installed software in a non-standard prefix.
11494
11495 Alternatively, you may set the environment variables SHOWFONT_CFLAGS
11496 and SHOWFONT_LIBS to avoid the need to call pkg-config.
11497 See the pkg-config man page for more details." "$LINENO" 5
11498 elif test $pkg_failed = untried; then
11499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 printf "%s\n" "no" >&6; }
11501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11502 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11503 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11504 is in your PATH or set the PKG_CONFIG environment variable to the full
11505 path to pkg-config.
11506
11507 Alternatively, you may set the environment variables SHOWFONT_CFLAGS
11508 and SHOWFONT_LIBS to avoid the need to call pkg-config.
11509 See the pkg-config man page for more details.
11510
11511 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11512 See 'config.log' for more details" "$LINENO" 5; }
11513 else
11514 SHOWFONT_CFLAGS=$pkg_cv_SHOWFONT_CFLAGS
11515 SHOWFONT_LIBS=$pkg_cv_SHOWFONT_LIBS
11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517 printf "%s\n" "yes" >&6; }
11518
11519 fi
11520
11521 ac_config_files="$ac_config_files Makefile man/Makefile"
11522
11523 cat >confcache <<\_ACEOF
11524 # This file is a shell script that caches the results of configure
11525 # tests run on this system so they can be shared between configure
11526 # scripts and configure runs, see configure's option --config-cache.
11527 # It is not useful on other systems. If it contains results you don't
11528 # want to keep, you may remove or edit it.
11529 #
11530 # config.status only pays attention to the cache file if you give it
11531 # the --recheck option to rerun configure.
11532 #
11533 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11534 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11535 # following values.
11536
11537 _ACEOF
11538
11539 # The following way of writing the cache mishandles newlines in values,
11540 # but we know of no workaround that is simple, portable, and efficient.
11541 # So, we kill variables containing newlines.
11542 # Ultrix sh set writes to stderr and can't be redirected directly,
11543 # and sets the high bit in the cache file unless we assign to the vars.
11544 (
11545 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11546 eval ac_val=\$$ac_var
11547 case $ac_val in #(
11548 *${as_nl}*)
11549 case $ac_var in #(
11550 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11551 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11552 esac
11553 case $ac_var in #(
11554 _ | IFS | as_nl) ;; #(
11555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11556 *) { eval $ac_var=; unset $ac_var;} ;;
11557 esac ;;
11558 esac
11559 done
11560
11561 (set) 2>&1 |
11562 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11563 *${as_nl}ac_space=\ *)
11564 # 'set' does not quote correctly, so add quotes: double-quote
11565 # substitution turns \\\\ into \\, and sed turns \\ into \.
11566 sed -n \
11567 "s/'/'\\\\''/g;
11568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11569 ;; #(
11570 *)
11571 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11573 ;;
11574 esac |
11575 sort
11576 ) |
11577 sed '
11578 /^ac_cv_env_/b end
11579 t clear
11580 :clear
11581 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11582 t end
11583 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11584 :end' >>confcache
11585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11586 if test -w "$cache_file"; then
11587 if test "x$cache_file" != "x/dev/null"; then
11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11589 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11590 if test ! -f "$cache_file" || test -h "$cache_file"; then
11591 cat confcache >"$cache_file"
11592 else
11593 case $cache_file in #(
11594 */* | ?:*)
11595 mv -f confcache "$cache_file"$$ &&
11596 mv -f "$cache_file"$$ "$cache_file" ;; #(
11597 *)
11598 mv -f confcache "$cache_file" ;;
11599 esac
11600 fi
11601 fi
11602 else
11603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11604 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11605 fi
11606 fi
11607 rm -f confcache
11608
11609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11610 # Let make expand exec_prefix.
11611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11612
11613 DEFS=-DHAVE_CONFIG_H
11614
11615 ac_libobjs=
11616 ac_ltlibobjs=
11617 U=
11618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11619 # 1. Remove the extension, and $U if already installed.
11620 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11621 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11623 # will be set to the directory where LIBOBJS objects are built.
11624 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11625 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11626 done
11627 LIBOBJS=$ac_libobjs
11628
11629 LTLIBOBJS=$ac_ltlibobjs
11630
11631
11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11633 printf %s "checking that generated files are newer than configure... " >&6; }
11634 if test -n "$am_sleep_pid"; then
11635 # Hide warnings about reused PIDs.
11636 wait $am_sleep_pid 2>/dev/null
11637 fi
11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11639 printf "%s\n" "done" >&6; }
11640 case $enable_silent_rules in # (((
11641 yes) AM_DEFAULT_VERBOSITY=0;;
11642 no) AM_DEFAULT_VERBOSITY=1;;
11643 esac
11644 if test $am_cv_make_support_nested_variables = yes; then
11645 AM_V='$(V)'
11646 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11647 else
11648 AM_V=$AM_DEFAULT_VERBOSITY
11649 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11650 fi
11651
11652 if test -n "$EXEEXT"; then
11653 am__EXEEXT_TRUE=
11654 am__EXEEXT_FALSE='#'
11655 else
11656 am__EXEEXT_TRUE='#'
11657 am__EXEEXT_FALSE=
11658 fi
11659
11660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11661 as_fn_error $? "conditional \"AMDEP\" was never defined.
11662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11663 fi
11664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11665 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11667 fi
11668
11669 : "${CONFIG_STATUS=./config.status}"
11670 ac_write_fail=0
11671 ac_clean_files_save=$ac_clean_files
11672 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11674 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11675 as_write_fail=0
11676 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11677 #! $SHELL
11678 # Generated by $as_me.
11679 # Run this file to recreate the current configuration.
11680 # Compiler output produced by configure, useful for debugging
11681 # configure, is in config.log if it exists.
11682
11683 debug=false
11684 ac_cs_recheck=false
11685 ac_cs_silent=false
11686
11687 SHELL=\${CONFIG_SHELL-$SHELL}
11688 export SHELL
11689 _ASEOF
11690 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11691 ## -------------------- ##
11692 ## M4sh Initialization. ##
11693 ## -------------------- ##
11694
11695 # Be more Bourne compatible
11696 DUALCASE=1; export DUALCASE # for MKS sh
11697 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11698 then :
11699 emulate sh
11700 NULLCMD=:
11701 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11702 # is contrary to our usage. Disable this feature.
11703 alias -g '${1+"$@"}'='"$@"'
11704 setopt NO_GLOB_SUBST
11705 else case e in #(
11706 e) case `(set -o) 2>/dev/null` in #(
11707 *posix*) :
11708 set -o posix ;; #(
11709 *) :
11710 ;;
11711 esac ;;
11712 esac
11713 fi
11714
11715
11716
11717 # Reset variables that may have inherited troublesome values from
11718 # the environment.
11719
11720 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11721 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11722 # side effect of setting IFS to empty, thus disabling word splitting.)
11723 # Quoting is to prevent editors from complaining about space-tab.
11724 as_nl='
11725 '
11726 export as_nl
11727 IFS=" "" $as_nl"
11728
11729 PS1='$ '
11730 PS2='> '
11731 PS4='+ '
11732
11733 # Ensure predictable behavior from utilities with locale-dependent output.
11734 LC_ALL=C
11735 export LC_ALL
11736 LANGUAGE=C
11737 export LANGUAGE
11738
11739 # We cannot yet rely on "unset" to work, but we need these variables
11740 # to be unset--not just set to an empty or harmless value--now, to
11741 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11742 # also avoids known problems related to "unset" and subshell syntax
11743 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11744 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11745 do eval test \${$as_var+y} \
11746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11747 done
11748
11749 # Ensure that fds 0, 1, and 2 are open.
11750 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11751 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11752 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11753
11754 # The user is always right.
11755 if ${PATH_SEPARATOR+false} :; then
11756 PATH_SEPARATOR=:
11757 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11758 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11759 PATH_SEPARATOR=';'
11760 }
11761 fi
11762
11763
11764 # Find who we are. Look in the path if we contain no directory separator.
11765 as_myself=
11766 case $0 in #((
11767 *[\\/]* ) as_myself=$0 ;;
11768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769 for as_dir in $PATH
11770 do
11771 IFS=$as_save_IFS
11772 case $as_dir in #(((
11773 '') as_dir=./ ;;
11774 */) ;;
11775 *) as_dir=$as_dir/ ;;
11776 esac
11777 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11778 done
11779 IFS=$as_save_IFS
11780
11781 ;;
11782 esac
11783 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11784 # in which case we are not to be found in the path.
11785 if test "x$as_myself" = x; then
11786 as_myself=$0
11787 fi
11788 if test ! -f "$as_myself"; then
11789 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11790 exit 1
11791 fi
11792
11793
11794
11795 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11796 # ----------------------------------------
11797 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11798 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11799 # script with STATUS, using 1 if that was 0.
11800 as_fn_error ()
11801 {
11802 as_status=$1; test $as_status -eq 0 && as_status=1
11803 if test "$4"; then
11804 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11806 fi
11807 printf "%s\n" "$as_me: error: $2" >&2
11808 as_fn_exit $as_status
11809 } # as_fn_error
11810
11811
11812 # as_fn_set_status STATUS
11813 # -----------------------
11814 # Set $? to STATUS, without forking.
11815 as_fn_set_status ()
11816 {
11817 return $1
11818 } # as_fn_set_status
11819
11820 # as_fn_exit STATUS
11821 # -----------------
11822 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11823 as_fn_exit ()
11824 {
11825 set +e
11826 as_fn_set_status $1
11827 exit $1
11828 } # as_fn_exit
11829
11830 # as_fn_unset VAR
11831 # ---------------
11832 # Portably unset VAR.
11833 as_fn_unset ()
11834 {
11835 { eval $1=; unset $1;}
11836 }
11837 as_unset=as_fn_unset
11838
11839 # as_fn_append VAR VALUE
11840 # ----------------------
11841 # Append the text in VALUE to the end of the definition contained in VAR. Take
11842 # advantage of any shell optimizations that allow amortized linear growth over
11843 # repeated appends, instead of the typical quadratic growth present in naive
11844 # implementations.
11845 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11846 then :
11847 eval 'as_fn_append ()
11848 {
11849 eval $1+=\$2
11850 }'
11851 else case e in #(
11852 e) as_fn_append ()
11853 {
11854 eval $1=\$$1\$2
11855 } ;;
11856 esac
11857 fi # as_fn_append
11858
11859 # as_fn_arith ARG...
11860 # ------------------
11861 # Perform arithmetic evaluation on the ARGs, and store the result in the
11862 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11863 # must be portable across $(()) and expr.
11864 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11865 then :
11866 eval 'as_fn_arith ()
11867 {
11868 as_val=$(( $* ))
11869 }'
11870 else case e in #(
11871 e) as_fn_arith ()
11872 {
11873 as_val=`expr "$@" || test $? -eq 1`
11874 } ;;
11875 esac
11876 fi # as_fn_arith
11877
11878
11879 if expr a : '\(a\)' >/dev/null 2>&1 &&
11880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11881 as_expr=expr
11882 else
11883 as_expr=false
11884 fi
11885
11886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11887 as_basename=basename
11888 else
11889 as_basename=false
11890 fi
11891
11892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11893 as_dirname=dirname
11894 else
11895 as_dirname=false
11896 fi
11897
11898 as_me=`$as_basename -- "$0" ||
11899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11900 X"$0" : 'X\(//\)$' \| \
11901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11902 printf "%s\n" X/"$0" |
11903 sed '/^.*\/\([^/][^/]*\)\/*$/{
11904 s//\1/
11905 q
11906 }
11907 /^X\/\(\/\/\)$/{
11908 s//\1/
11909 q
11910 }
11911 /^X\/\(\/\).*/{
11912 s//\1/
11913 q
11914 }
11915 s/.*/./; q'`
11916
11917 # Avoid depending upon Character Ranges.
11918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11921 as_cr_digits='0123456789'
11922 as_cr_alnum=$as_cr_Letters$as_cr_digits
11923
11924
11925 # Determine whether it's possible to make 'echo' print without a newline.
11926 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11927 # for compatibility with existing Makefiles.
11928 ECHO_C= ECHO_N= ECHO_T=
11929 case `echo -n x` in #(((((
11930 -n*)
11931 case `echo 'xy\c'` in
11932 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11933 xy) ECHO_C='\c';;
11934 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11935 ECHO_T=' ';;
11936 esac;;
11937 *)
11938 ECHO_N='-n';;
11939 esac
11940
11941 # For backward compatibility with old third-party macros, we provide
11942 # the shell variables $as_echo and $as_echo_n. New code should use
11943 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11944 as_echo='printf %s\n'
11945 as_echo_n='printf %s'
11946
11947 rm -f conf$$ conf$$.exe conf$$.file
11948 if test -d conf$$.dir; then
11949 rm -f conf$$.dir/conf$$.file
11950 else
11951 rm -f conf$$.dir
11952 mkdir conf$$.dir 2>/dev/null
11953 fi
11954 if (echo >conf$$.file) 2>/dev/null; then
11955 if ln -s conf$$.file conf$$ 2>/dev/null; then
11956 as_ln_s='ln -s'
11957 # ... but there are two gotchas:
11958 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11959 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11960 # In both cases, we have to default to 'cp -pR'.
11961 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11962 as_ln_s='cp -pR'
11963 elif ln conf$$.file conf$$ 2>/dev/null; then
11964 as_ln_s=ln
11965 else
11966 as_ln_s='cp -pR'
11967 fi
11968 else
11969 as_ln_s='cp -pR'
11970 fi
11971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11972 rmdir conf$$.dir 2>/dev/null
11973
11974
11975 # as_fn_mkdir_p
11976 # -------------
11977 # Create "$as_dir" as a directory, including parents if necessary.
11978 as_fn_mkdir_p ()
11979 {
11980
11981 case $as_dir in #(
11982 -*) as_dir=./$as_dir;;
11983 esac
11984 test -d "$as_dir" || eval $as_mkdir_p || {
11985 as_dirs=
11986 while :; do
11987 case $as_dir in #(
11988 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11989 *) as_qdir=$as_dir;;
11990 esac
11991 as_dirs="'$as_qdir' $as_dirs"
11992 as_dir=`$as_dirname -- "$as_dir" ||
11993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11994 X"$as_dir" : 'X\(//\)[^/]' \| \
11995 X"$as_dir" : 'X\(//\)$' \| \
11996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11997 printf "%s\n" X"$as_dir" |
11998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11999 s//\1/
12000 q
12001 }
12002 /^X\(\/\/\)[^/].*/{
12003 s//\1/
12004 q
12005 }
12006 /^X\(\/\/\)$/{
12007 s//\1/
12008 q
12009 }
12010 /^X\(\/\).*/{
12011 s//\1/
12012 q
12013 }
12014 s/.*/./; q'`
12015 test -d "$as_dir" && break
12016 done
12017 test -z "$as_dirs" || eval "mkdir $as_dirs"
12018 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12019
12020
12021 } # as_fn_mkdir_p
12022 if mkdir -p . 2>/dev/null; then
12023 as_mkdir_p='mkdir -p "$as_dir"'
12024 else
12025 test -d ./-p && rmdir ./-p
12026 as_mkdir_p=false
12027 fi
12028
12029
12030 # as_fn_executable_p FILE
12031 # -----------------------
12032 # Test if FILE is an executable regular file.
12033 as_fn_executable_p ()
12034 {
12035 test -f "$1" && test -x "$1"
12036 } # as_fn_executable_p
12037 as_test_x='test -x'
12038 as_executable_p=as_fn_executable_p
12039
12040 # Sed expression to map a string onto a valid CPP name.
12041 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12042 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12043
12044 # Sed expression to map a string onto a valid variable name.
12045 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12046 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12047
12048
12049 exec 6>&1
12050 ## ----------------------------------- ##
12051 ## Main body of $CONFIG_STATUS script. ##
12052 ## ----------------------------------- ##
12053 _ASEOF
12054 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12055
12056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12057 # Save the log message, to keep $0 and so on meaningful, and to
12058 # report actual input values of CONFIG_FILES etc. instead of their
12059 # values after options handling.
12060 ac_log="
12061 This file was extended by showfont $as_me 1.0.7, which was
12062 generated by GNU Autoconf 2.72. Invocation command line was
12063
12064 CONFIG_FILES = $CONFIG_FILES
12065 CONFIG_HEADERS = $CONFIG_HEADERS
12066 CONFIG_LINKS = $CONFIG_LINKS
12067 CONFIG_COMMANDS = $CONFIG_COMMANDS
12068 $ $0 $@
12069
12070 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12071 "
12072
12073 _ACEOF
12074
12075 case $ac_config_files in *"
12076 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12077 esac
12078
12079 case $ac_config_headers in *"
12080 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12081 esac
12082
12083
12084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12085 # Files that config.status was made for.
12086 config_files="$ac_config_files"
12087 config_headers="$ac_config_headers"
12088 config_commands="$ac_config_commands"
12089
12090 _ACEOF
12091
12092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12093 ac_cs_usage="\
12094 '$as_me' instantiates files and other configuration actions
12095 from templates according to the current configuration. Unless the files
12096 and actions are specified as TAGs, all are instantiated by default.
12097
12098 Usage: $0 [OPTION]... [TAG]...
12099
12100 -h, --help print this help, then exit
12101 -V, --version print version number and configuration settings, then exit
12102 --config print configuration, then exit
12103 -q, --quiet, --silent
12104 do not print progress messages
12105 -d, --debug don't remove temporary files
12106 --recheck update $as_me by reconfiguring in the same conditions
12107 --file=FILE[:TEMPLATE]
12108 instantiate the configuration file FILE
12109 --header=FILE[:TEMPLATE]
12110 instantiate the configuration header FILE
12111
12112 Configuration files:
12113 $config_files
12114
12115 Configuration headers:
12116 $config_headers
12117
12118 Configuration commands:
12119 $config_commands
12120
12121 Report bugs to <https://gitlab.freedesktop.org/xorg/app/showfont/-/issues>."
12122
12123 _ACEOF
12124 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12125 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12127 ac_cs_config='$ac_cs_config_escaped'
12128 ac_cs_version="\\
12129 showfont config.status 1.0.7
12130 configured by $0, generated by GNU Autoconf 2.72,
12131 with options \\"\$ac_cs_config\\"
12132
12133 Copyright (C) 2023 Free Software Foundation, Inc.
12134 This config.status script is free software; the Free Software Foundation
12135 gives unlimited permission to copy, distribute and modify it."
12136
12137 ac_pwd='$ac_pwd'
12138 srcdir='$srcdir'
12139 INSTALL='$INSTALL'
12140 MKDIR_P='$MKDIR_P'
12141 AWK='$AWK'
12142 test -n "\$AWK" || AWK=awk
12143 _ACEOF
12144
12145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12146 # The default lists apply if the user does not specify any file.
12147 ac_need_defaults=:
12148 while test $# != 0
12149 do
12150 case $1 in
12151 --*=?*)
12152 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12153 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12154 ac_shift=:
12155 ;;
12156 --*=)
12157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12158 ac_optarg=
12159 ac_shift=:
12160 ;;
12161 *)
12162 ac_option=$1
12163 ac_optarg=$2
12164 ac_shift=shift
12165 ;;
12166 esac
12167
12168 case $ac_option in
12169 # Handling of the options.
12170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12171 ac_cs_recheck=: ;;
12172 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12173 printf "%s\n" "$ac_cs_version"; exit ;;
12174 --config | --confi | --conf | --con | --co | --c )
12175 printf "%s\n" "$ac_cs_config"; exit ;;
12176 --debug | --debu | --deb | --de | --d | -d )
12177 debug=: ;;
12178 --file | --fil | --fi | --f )
12179 $ac_shift
12180 case $ac_optarg in
12181 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12182 '') as_fn_error $? "missing file argument" ;;
12183 esac
12184 as_fn_append CONFIG_FILES " '$ac_optarg'"
12185 ac_need_defaults=false;;
12186 --header | --heade | --head | --hea )
12187 $ac_shift
12188 case $ac_optarg in
12189 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12190 esac
12191 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12192 ac_need_defaults=false;;
12193 --he | --h)
12194 # Conflict between --help and --header
12195 as_fn_error $? "ambiguous option: '$1'
12196 Try '$0 --help' for more information.";;
12197 --help | --hel | -h )
12198 printf "%s\n" "$ac_cs_usage"; exit ;;
12199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12200 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12201 ac_cs_silent=: ;;
12202
12203 # This is an error.
12204 -*) as_fn_error $? "unrecognized option: '$1'
12205 Try '$0 --help' for more information." ;;
12206
12207 *) as_fn_append ac_config_targets " $1"
12208 ac_need_defaults=false ;;
12209
12210 esac
12211 shift
12212 done
12213
12214 ac_configure_extra_args=
12215
12216 if $ac_cs_silent; then
12217 exec 6>/dev/null
12218 ac_configure_extra_args="$ac_configure_extra_args --silent"
12219 fi
12220
12221 _ACEOF
12222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12223 if \$ac_cs_recheck; then
12224 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12225 shift
12226 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12227 CONFIG_SHELL='$SHELL'
12228 export CONFIG_SHELL
12229 exec "\$@"
12230 fi
12231
12232 _ACEOF
12233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12234 exec 5>>config.log
12235 {
12236 echo
12237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12238 ## Running $as_me. ##
12239 _ASBOX
12240 printf "%s\n" "$ac_log"
12241 } >&5
12242
12243 _ACEOF
12244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12245 #
12246 # INIT-COMMANDS
12247 #
12248 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12249
12250 _ACEOF
12251
12252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12253
12254 # Handling of arguments.
12255 for ac_config_target in $ac_config_targets
12256 do
12257 case $ac_config_target in
12258 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12259 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12260 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12261 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12262
12263 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12264 esac
12265 done
12266
12267
12268 # If the user did not use the arguments to specify the items to instantiate,
12269 # then the envvar interface is used. Set only those that are not.
12270 # We use the long form for the default assignment because of an extremely
12271 # bizarre bug on SunOS 4.1.3.
12272 if $ac_need_defaults; then
12273 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12274 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12275 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12276 fi
12277
12278 # Have a temporary directory for convenience. Make it in the build tree
12279 # simply because there is no reason against having it here, and in addition,
12280 # creating and moving files from /tmp can sometimes cause problems.
12281 # Hook for its removal unless debugging.
12282 # Note that there is a small window in which the directory will not be cleaned:
12283 # after its creation but before its name has been assigned to '$tmp'.
12284 $debug ||
12285 {
12286 tmp= ac_tmp=
12287 trap 'exit_status=$?
12288 : "${ac_tmp:=$tmp}"
12289 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12290 ' 0
12291 trap 'as_fn_exit 1' 1 2 13 15
12292 }
12293 # Create a (secure) tmp directory for tmp files.
12294
12295 {
12296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12297 test -d "$tmp"
12298 } ||
12299 {
12300 tmp=./conf$$-$RANDOM
12301 (umask 077 && mkdir "$tmp")
12302 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12303 ac_tmp=$tmp
12304
12305 # Set up the scripts for CONFIG_FILES section.
12306 # No need to generate them if there are no CONFIG_FILES.
12307 # This happens for instance with './config.status config.h'.
12308 if test -n "$CONFIG_FILES"; then
12309
12310
12311 ac_cr=`echo X | tr X '\015'`
12312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12313 # But we know of no other shell where ac_cr would be empty at this
12314 # point, so we can use a bashism as a fallback.
12315 if test "x$ac_cr" = x; then
12316 eval ac_cr=\$\'\\r\'
12317 fi
12318 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12320 ac_cs_awk_cr='\\r'
12321 else
12322 ac_cs_awk_cr=$ac_cr
12323 fi
12324
12325 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12326 _ACEOF
12327
12328
12329 {
12330 echo "cat >conf$$subs.awk <<_ACEOF" &&
12331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12332 echo "_ACEOF"
12333 } >conf$$subs.sh ||
12334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12336 ac_delim='%!_!# '
12337 for ac_last_try in false false false false false :; do
12338 . ./conf$$subs.sh ||
12339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12340
12341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12342 if test $ac_delim_n = $ac_delim_num; then
12343 break
12344 elif $ac_last_try; then
12345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12346 else
12347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12348 fi
12349 done
12350 rm -f conf$$subs.sh
12351
12352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12354 _ACEOF
12355 sed -n '
12356 h
12357 s/^/S["/; s/!.*/"]=/
12358 p
12359 g
12360 s/^[^!]*!//
12361 :repl
12362 t repl
12363 s/'"$ac_delim"'$//
12364 t delim
12365 :nl
12366 h
12367 s/\(.\{148\}\)..*/\1/
12368 t more1
12369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12370 p
12371 n
12372 b repl
12373 :more1
12374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12375 p
12376 g
12377 s/.\{148\}//
12378 t nl
12379 :delim
12380 h
12381 s/\(.\{148\}\)..*/\1/
12382 t more2
12383 s/["\\]/\\&/g; s/^/"/; s/$/"/
12384 p
12385 b
12386 :more2
12387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12388 p
12389 g
12390 s/.\{148\}//
12391 t delim
12392 ' <conf$$subs.awk | sed '
12393 /^[^""]/{
12394 N
12395 s/\n//
12396 }
12397 ' >>$CONFIG_STATUS || ac_write_fail=1
12398 rm -f conf$$subs.awk
12399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12400 _ACAWK
12401 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12402 for (key in S) S_is_set[key] = 1
12403 FS = ""
12404
12405 }
12406 {
12407 line = $ 0
12408 nfields = split(line, field, "@")
12409 substed = 0
12410 len = length(field[1])
12411 for (i = 2; i < nfields; i++) {
12412 key = field[i]
12413 keylen = length(key)
12414 if (S_is_set[key]) {
12415 value = S[key]
12416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12417 len += length(value) + length(field[++i])
12418 substed = 1
12419 } else
12420 len += 1 + keylen
12421 }
12422
12423 print line
12424 }
12425
12426 _ACAWK
12427 _ACEOF
12428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12431 else
12432 cat
12433 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12435 _ACEOF
12436
12437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12439 # trailing colons and then remove the whole line if VPATH becomes empty
12440 # (actually we leave an empty line to preserve line numbers).
12441 if test "x$srcdir" = x.; then
12442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12443 h
12444 s///
12445 s/^/:/
12446 s/[ ]*$/:/
12447 s/:\$(srcdir):/:/g
12448 s/:\${srcdir}:/:/g
12449 s/:@srcdir@:/:/g
12450 s/^:*//
12451 s/:*$//
12452 x
12453 s/\(=[ ]*\).*/\1/
12454 G
12455 s/\n//
12456 s/^[^=]*=[ ]*$//
12457 }'
12458 fi
12459
12460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12461 fi # test -n "$CONFIG_FILES"
12462
12463 # Set up the scripts for CONFIG_HEADERS section.
12464 # No need to generate them if there are no CONFIG_HEADERS.
12465 # This happens for instance with './config.status Makefile'.
12466 if test -n "$CONFIG_HEADERS"; then
12467 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12468 BEGIN {
12469 _ACEOF
12470
12471 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12472 # here-document in config.status, that substitutes the proper values into
12473 # config.h.in to produce config.h.
12474
12475 # Create a delimiter string that does not exist in confdefs.h, to ease
12476 # handling of long lines.
12477 ac_delim='%!_!# '
12478 for ac_last_try in false false :; do
12479 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12480 if test -z "$ac_tt"; then
12481 break
12482 elif $ac_last_try; then
12483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12484 else
12485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12486 fi
12487 done
12488
12489 # For the awk script, D is an array of macro values keyed by name,
12490 # likewise P contains macro parameters if any. Preserve backslash
12491 # newline sequences.
12492
12493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12494 sed -n '
12495 s/.\{148\}/&'"$ac_delim"'/g
12496 t rset
12497 :rset
12498 s/^[ ]*#[ ]*define[ ][ ]*/ /
12499 t def
12500 d
12501 :def
12502 s/\\$//
12503 t bsnl
12504 s/["\\]/\\&/g
12505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12506 D["\1"]=" \3"/p
12507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12508 d
12509 :bsnl
12510 s/["\\]/\\&/g
12511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12512 D["\1"]=" \3\\\\\\n"\\/p
12513 t cont
12514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12515 t cont
12516 d
12517 :cont
12518 n
12519 s/.\{148\}/&'"$ac_delim"'/g
12520 t clear
12521 :clear
12522 s/\\$//
12523 t bsnlc
12524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12525 d
12526 :bsnlc
12527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12528 b cont
12529 ' <confdefs.h | sed '
12530 s/'"$ac_delim"'/"\\\
12531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12532
12533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12534 for (key in D) D_is_set[key] = 1
12535 FS = ""
12536 }
12537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12538 line = \$ 0
12539 split(line, arg, " ")
12540 if (arg[1] == "#") {
12541 defundef = arg[2]
12542 mac1 = arg[3]
12543 } else {
12544 defundef = substr(arg[1], 2)
12545 mac1 = arg[2]
12546 }
12547 split(mac1, mac2, "(") #)
12548 macro = mac2[1]
12549 prefix = substr(line, 1, index(line, defundef) - 1)
12550 if (D_is_set[macro]) {
12551 # Preserve the white space surrounding the "#".
12552 print prefix "define", macro P[macro] D[macro]
12553 next
12554 } else {
12555 # Replace #undef with comments. This is necessary, for example,
12556 # in the case of _POSIX_SOURCE, which is predefined and required
12557 # on some systems where configure will not decide to define it.
12558 if (defundef == "undef") {
12559 print "/*", prefix defundef, macro, "*/"
12560 next
12561 }
12562 }
12563 }
12564 { print }
12565 _ACAWK
12566 _ACEOF
12567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12569 fi # test -n "$CONFIG_HEADERS"
12570
12571
12572 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12573 shift
12574 for ac_tag
12575 do
12576 case $ac_tag in
12577 :[FHLC]) ac_mode=$ac_tag; continue;;
12578 esac
12579 case $ac_mode$ac_tag in
12580 :[FHL]*:*);;
12581 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12582 :[FH]-) ac_tag=-:-;;
12583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12584 esac
12585 ac_save_IFS=$IFS
12586 IFS=:
12587 set x $ac_tag
12588 IFS=$ac_save_IFS
12589 shift
12590 ac_file=$1
12591 shift
12592
12593 case $ac_mode in
12594 :L) ac_source=$1;;
12595 :[FH])
12596 ac_file_inputs=
12597 for ac_f
12598 do
12599 case $ac_f in
12600 -) ac_f="$ac_tmp/stdin";;
12601 *) # Look for the file first in the build tree, then in the source tree
12602 # (if the path is not absolute). The absolute path cannot be DOS-style,
12603 # because $ac_f cannot contain ':'.
12604 test -f "$ac_f" ||
12605 case $ac_f in
12606 [\\/$]*) false;;
12607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12608 esac ||
12609 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12610 esac
12611 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12612 as_fn_append ac_file_inputs " '$ac_f'"
12613 done
12614
12615 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12616 # use $as_me), people would be surprised to read:
12617 # /* config.h. Generated by config.status. */
12618 configure_input='Generated from '`
12619 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12620 `' by configure.'
12621 if test x"$ac_file" != x-; then
12622 configure_input="$ac_file. $configure_input"
12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12624 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12625 fi
12626 # Neutralize special characters interpreted by sed in replacement strings.
12627 case $configure_input in #(
12628 *\&* | *\|* | *\\* )
12629 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12631 *) ac_sed_conf_input=$configure_input;;
12632 esac
12633
12634 case $ac_tag in
12635 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12637 esac
12638 ;;
12639 esac
12640
12641 ac_dir=`$as_dirname -- "$ac_file" ||
12642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643 X"$ac_file" : 'X\(//\)[^/]' \| \
12644 X"$ac_file" : 'X\(//\)$' \| \
12645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12646 printf "%s\n" X"$ac_file" |
12647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12648 s//\1/
12649 q
12650 }
12651 /^X\(\/\/\)[^/].*/{
12652 s//\1/
12653 q
12654 }
12655 /^X\(\/\/\)$/{
12656 s//\1/
12657 q
12658 }
12659 /^X\(\/\).*/{
12660 s//\1/
12661 q
12662 }
12663 s/.*/./; q'`
12664 as_dir="$ac_dir"; as_fn_mkdir_p
12665 ac_builddir=.
12666
12667 case "$ac_dir" in
12668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12669 *)
12670 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12671 # A ".." for each directory in $ac_dir_suffix.
12672 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12673 case $ac_top_builddir_sub in
12674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12676 esac ;;
12677 esac
12678 ac_abs_top_builddir=$ac_pwd
12679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12680 # for backward compatibility:
12681 ac_top_builddir=$ac_top_build_prefix
12682
12683 case $srcdir in
12684 .) # We are building in place.
12685 ac_srcdir=.
12686 ac_top_srcdir=$ac_top_builddir_sub
12687 ac_abs_top_srcdir=$ac_pwd ;;
12688 [\\/]* | ?:[\\/]* ) # Absolute name.
12689 ac_srcdir=$srcdir$ac_dir_suffix;
12690 ac_top_srcdir=$srcdir
12691 ac_abs_top_srcdir=$srcdir ;;
12692 *) # Relative name.
12693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12694 ac_top_srcdir=$ac_top_build_prefix$srcdir
12695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12696 esac
12697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12698
12699
12700 case $ac_mode in
12701 :F)
12702 #
12703 # CONFIG_FILE
12704 #
12705
12706 case $INSTALL in
12707 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12708 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12709 esac
12710 ac_MKDIR_P=$MKDIR_P
12711 case $MKDIR_P in
12712 [\\/$]* | ?:[\\/]* ) ;;
12713 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12714 esac
12715 _ACEOF
12716
12717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12718 # If the template does not know about datarootdir, expand it.
12719 # FIXME: This hack should be removed a few years after 2.60.
12720 ac_datarootdir_hack=; ac_datarootdir_seen=
12721 ac_sed_dataroot='
12722 /datarootdir/ {
12723 p
12724 q
12725 }
12726 /@datadir@/p
12727 /@docdir@/p
12728 /@infodir@/p
12729 /@localedir@/p
12730 /@mandir@/p'
12731 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12732 *datarootdir*) ac_datarootdir_seen=yes;;
12733 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12735 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12736 _ACEOF
12737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12738 ac_datarootdir_hack='
12739 s&@datadir@&$datadir&g
12740 s&@docdir@&$docdir&g
12741 s&@infodir@&$infodir&g
12742 s&@localedir@&$localedir&g
12743 s&@mandir@&$mandir&g
12744 s&\\\${datarootdir}&$datarootdir&g' ;;
12745 esac
12746 _ACEOF
12747
12748 # Neutralize VPATH when '$srcdir' = '.'.
12749 # Shell code in configure.ac might set extrasub.
12750 # FIXME: do we really want to maintain this feature?
12751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752 ac_sed_extra="$ac_vpsub
12753 $extrasub
12754 _ACEOF
12755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12756 :t
12757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12758 s|@configure_input@|$ac_sed_conf_input|;t t
12759 s&@top_builddir@&$ac_top_builddir_sub&;t t
12760 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12761 s&@srcdir@&$ac_srcdir&;t t
12762 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12763 s&@top_srcdir@&$ac_top_srcdir&;t t
12764 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12765 s&@builddir@&$ac_builddir&;t t
12766 s&@abs_builddir@&$ac_abs_builddir&;t t
12767 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12768 s&@INSTALL@&$ac_INSTALL&;t t
12769 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12770 $ac_datarootdir_hack
12771 "
12772 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12773 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12774
12775 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12776 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12777 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12778 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12780 which seems to be undefined. Please make sure it is defined" >&5
12781 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12782 which seems to be undefined. Please make sure it is defined" >&2;}
12783
12784 rm -f "$ac_tmp/stdin"
12785 case $ac_file in
12786 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12787 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12788 esac \
12789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12790 ;;
12791 :H)
12792 #
12793 # CONFIG_HEADER
12794 #
12795 if test x"$ac_file" != x-; then
12796 {
12797 printf "%s\n" "/* $configure_input */" >&1 \
12798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12799 } >"$ac_tmp/config.h" \
12800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12801 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12803 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12804 else
12805 rm -f "$ac_file"
12806 mv "$ac_tmp/config.h" "$ac_file" \
12807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12808 fi
12809 else
12810 printf "%s\n" "/* $configure_input */" >&1 \
12811 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12812 || as_fn_error $? "could not create -" "$LINENO" 5
12813 fi
12814 # Compute "$ac_file"'s index in $config_headers.
12815 _am_arg="$ac_file"
12816 _am_stamp_count=1
12817 for _am_header in $config_headers :; do
12818 case $_am_header in
12819 $_am_arg | $_am_arg:* )
12820 break ;;
12821 * )
12822 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12823 esac
12824 done
12825 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12826 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12827 X"$_am_arg" : 'X\(//\)[^/]' \| \
12828 X"$_am_arg" : 'X\(//\)$' \| \
12829 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12830 printf "%s\n" X"$_am_arg" |
12831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12832 s//\1/
12833 q
12834 }
12835 /^X\(\/\/\)[^/].*/{
12836 s//\1/
12837 q
12838 }
12839 /^X\(\/\/\)$/{
12840 s//\1/
12841 q
12842 }
12843 /^X\(\/\).*/{
12844 s//\1/
12845 q
12846 }
12847 s/.*/./; q'`/stamp-h$_am_stamp_count
12848 ;;
12849
12850 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12851 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12852 ;;
12853 esac
12854
12855
12856 case $ac_file$ac_mode in
12857 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12858 # Older Autoconf quotes --file arguments for eval, but not when files
12859 # are listed without --file. Let's play safe and only enable the eval
12860 # if we detect the quoting.
12861 # TODO: see whether this extra hack can be removed once we start
12862 # requiring Autoconf 2.70 or later.
12863 case $CONFIG_FILES in #(
12864 *\'*) :
12865 eval set x "$CONFIG_FILES" ;; #(
12866 *) :
12867 set x $CONFIG_FILES ;; #(
12868 *) :
12869 ;;
12870 esac
12871 shift
12872 # Used to flag and report bootstrapping failures.
12873 am_rc=0
12874 for am_mf
12875 do
12876 # Strip MF so we end up with the name of the file.
12877 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12878 # Check whether this is an Automake generated Makefile which includes
12879 # dependency-tracking related rules and includes.
12880 # Grep'ing the whole file directly is not great: AIX grep has a line
12881 # limit of 2048, but all sed's we know have understand at least 4000.
12882 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12883 || continue
12884 am_dirpart=`$as_dirname -- "$am_mf" ||
12885 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12886 X"$am_mf" : 'X\(//\)[^/]' \| \
12887 X"$am_mf" : 'X\(//\)$' \| \
12888 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12889 printf "%s\n" X"$am_mf" |
12890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12891 s//\1/
12892 q
12893 }
12894 /^X\(\/\/\)[^/].*/{
12895 s//\1/
12896 q
12897 }
12898 /^X\(\/\/\)$/{
12899 s//\1/
12900 q
12901 }
12902 /^X\(\/\).*/{
12903 s//\1/
12904 q
12905 }
12906 s/.*/./; q'`
12907 am_filepart=`$as_basename -- "$am_mf" ||
12908 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12909 X"$am_mf" : 'X\(//\)$' \| \
12910 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12911 printf "%s\n" X/"$am_mf" |
12912 sed '/^.*\/\([^/][^/]*\)\/*$/{
12913 s//\1/
12914 q
12915 }
12916 /^X\/\(\/\/\)$/{
12917 s//\1/
12918 q
12919 }
12920 /^X\/\(\/\).*/{
12921 s//\1/
12922 q
12923 }
12924 s/.*/./; q'`
12925 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12926 && sed -e '/# am--include-marker/d' "$am_filepart" \
12927 | $MAKE -f - am--depfiles" >&5
12928 (cd "$am_dirpart" \
12929 && sed -e '/# am--include-marker/d' "$am_filepart" \
12930 | $MAKE -f - am--depfiles) >&5 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } || am_rc=$?
12934 done
12935 if test $am_rc -ne 0; then
12936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12937 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12938 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12939 for automatic dependency tracking. If GNU make was not used, consider
12940 re-running the configure script with MAKE=\"gmake\" (or whatever is
12941 necessary). You can also try re-running configure with the
12942 '--disable-dependency-tracking' option to at least be able to build
12943 the package (albeit without support for automatic dependency tracking).
12944 See 'config.log' for more details" "$LINENO" 5; }
12945 fi
12946 { am_dirpart=; unset am_dirpart;}
12947 { am_filepart=; unset am_filepart;}
12948 { am_mf=; unset am_mf;}
12949 { am_rc=; unset am_rc;}
12950 rm -f conftest-deps.mk
12951 }
12952 ;;
12953
12954 esac
12955 done # for ac_tag
12956
12957
12958 as_fn_exit 0
12959 _ACEOF
12960 ac_clean_files=$ac_clean_files_save
12961
12962 test $ac_write_fail = 0 ||
12963 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12964
12965
12966 # configure is writing to config.log, and then calls config.status.
12967 # config.status does its own redirection, appending to config.log.
12968 # Unfortunately, on DOS this fails, as config.log is still kept open
12969 # by configure, so config.status won't be able to write to it; its
12970 # output is simply discarded. So we exec the FD to /dev/null,
12971 # effectively closing config.log, so it can be properly (re)opened and
12972 # appended to by config.status. When coming back to configure, we
12973 # need to make the FD available again.
12974 if test "$no_create" != yes; then
12975 ac_cs_success=:
12976 ac_config_status_args=
12977 test "$silent" = yes &&
12978 ac_config_status_args="$ac_config_status_args --quiet"
12979 exec 5>/dev/null
12980 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12981 exec 5>>config.log
12982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12983 # would make configure fail if this is the last instruction.
12984 $ac_cs_success || as_fn_exit 1
12985 fi
12986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12988 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12989 fi
12990
12991
12992