configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for font-util 1.3.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/font/util/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='font-util'
614 PACKAGE_TARNAME='font-util'
615 PACKAGE_VERSION='1.3.3'
616 PACKAGE_STRING='font-util 1.3.3'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/util/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 MAPDIR
658 fontrootdir
659 MAN_SUBSTS
660 XORG_MAN_PAGE
661 ADMIN_MAN_DIR
662 DRIVER_MAN_DIR
663 MISC_MAN_DIR
664 FILE_MAN_DIR
665 LIB_MAN_DIR
666 APP_MAN_DIR
667 ADMIN_MAN_SUFFIX
668 DRIVER_MAN_SUFFIX
669 MISC_MAN_SUFFIX
670 FILE_MAN_SUFFIX
671 LIB_MAN_SUFFIX
672 APP_MAN_SUFFIX
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 INSTALL_CMD
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 CHANGELOG_CMD
687 STRICT_CFLAGS
688 CWARNFLAGS
689 BASE_CFLAGS
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 CSCOPE
711 ETAGS
712 CTAGS
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_dependency_tracking
781 enable_selective_werror
782 enable_strict_compilation
783 with_fontrootdir
784 with_mapdir
785 '
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 PKG_CONFIG
795 PKG_CONFIG_PATH
796 PKG_CONFIG_LIBDIR'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 runstatedir='${localstatedir}/run'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: \`$ac_useropt'"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: \`$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -runstatedir | --runstatedir | --runstatedi | --runstated \
1087 | --runstate | --runstat | --runsta | --runst | --runs \
1088 | --run | --ru | --r)
1089 ac_prev=runstatedir ;;
1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092 | --run=* | --ru=* | --r=*)
1093 runstatedir=$ac_optarg ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: \`$ac_useropt'"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1155
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: \`$ac_useropt'"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1189
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1192 ;;
1193
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1203
1204 *)
1205 # FIXME: should be removed in autoconf 3.0.
1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 ;;
1211
1212 esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir runstatedir
1233 do
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 printf "%s\n" X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures font-util 1.3.3 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/font-util]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of font-util 1.3.3:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --disable-selective-werror
1431 Turn off selective compiler errors. (default:
1432 enabled)
1433 --enable-strict-compilation
1434 Enable all warnings from compiler and make them
1435 errors (default: disabled)
1436
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-fontrootdir=DIR Path to parent of font subdirectories
1441 [DATADIR/fonts/X11]
1442 --with-mapdir=DIR Path to install font maps [FONTROOTDIR/util]
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 PKG_CONFIG path to pkg-config utility
1453 PKG_CONFIG_PATH
1454 directories to add to pkg-config's search path
1455 PKG_CONFIG_LIBDIR
1456 path overriding pkg-config's built-in search path
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/issues>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1473
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *)
1477 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1489
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for configure.gnu first; this name is used for a wrapper for
1508 # Metaconfig's "Configure" on case-insensitive file systems.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1520 fi
1521
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524 cat <<\_ACEOF
1525 font-util configure 1.3.3
1526 generated by GNU Autoconf 2.71
1527
1528 Copyright (C) 2021 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532 exit
1533 fi
1534
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1538
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1543 {
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext conftest.beam
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 printf "%s\n" "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1559 fi
1560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext
1565 then :
1566 ac_retval=0
1567 else $as_nop
1568 printf "%s\n" "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_compile
1577
1578 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1579 # ------------------------------------------------------------------
1580 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1581 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1582 ac_fn_check_decl ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 as_decl_name=`echo $2|sed 's/ *(.*//'`
1586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1587 printf %s "checking whether $as_decl_name is declared... " >&6; }
1588 if eval test \${$3+y}
1589 then :
1590 printf %s "(cached) " >&6
1591 else $as_nop
1592 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1593 eval ac_save_FLAGS=\$$6
1594 as_fn_append $6 " $5"
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1597 $4
1598 int
1599 main (void)
1600 {
1601 #ifndef $as_decl_name
1602 #ifdef __cplusplus
1603 (void) $as_decl_use;
1604 #else
1605 (void) $as_decl_name;
1606 #endif
1607 #endif
1608
1609 ;
1610 return 0;
1611 }
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"
1614 then :
1615 eval "$3=yes"
1616 else $as_nop
1617 eval "$3=no"
1618 fi
1619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1620 eval $6=\$ac_save_FLAGS
1621
1622 fi
1623 eval ac_res=\$$3
1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625 printf "%s\n" "$ac_res" >&6; }
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628 } # ac_fn_check_decl
1629
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 printf %s "checking for $2... " >&6; }
1639 if eval test \${$3+y}
1640 then :
1641 printf %s "(cached) " >&6
1642 else $as_nop
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1645 $4
1646 #include <$2>
1647 _ACEOF
1648 if ac_fn_c_try_compile "$LINENO"
1649 then :
1650 eval "$3=yes"
1651 else $as_nop
1652 eval "$3=no"
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1655 fi
1656 eval ac_res=\$$3
1657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 printf "%s\n" "$ac_res" >&6; }
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661 } # ac_fn_c_check_header_compile
1662
1663 # ac_fn_c_try_link LINENO
1664 # -----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_link ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1670 if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 printf "%s\n" "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest$ac_exeext && {
1689 test "$cross_compiling" = yes ||
1690 test -x conftest$ac_exeext
1691 }
1692 then :
1693 ac_retval=0
1694 else $as_nop
1695 printf "%s\n" "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699 fi
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_link
1709 ac_configure_args_raw=
1710 for ac_arg
1711 do
1712 case $ac_arg in
1713 *\'*)
1714 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 esac
1716 as_fn_append ac_configure_args_raw " '$ac_arg'"
1717 done
1718
1719 case $ac_configure_args_raw in
1720 *$as_nl*)
1721 ac_safe_unquote= ;;
1722 *)
1723 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1724 ac_unsafe_a="$ac_unsafe_z#~"
1725 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1726 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1727 esac
1728
1729 cat >config.log <<_ACEOF
1730 This file contains any messages produced by compilers while
1731 running configure, to aid debugging if configure makes a mistake.
1732
1733 It was created by font-util $as_me 1.3.3, which was
1734 generated by GNU Autoconf 2.71. Invocation command line was
1735
1736 $ $0$ac_configure_args_raw
1737
1738 _ACEOF
1739 exec 5>>config.log
1740 {
1741 cat <<_ASUNAME
1742 ## --------- ##
1743 ## Platform. ##
1744 ## --------- ##
1745
1746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1747 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1748 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1749 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1750 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1751
1752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1753 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1754
1755 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1756 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1758 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1759 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1760 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1761 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1762
1763 _ASUNAME
1764
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1767 do
1768 IFS=$as_save_IFS
1769 case $as_dir in #(((
1770 '') as_dir=./ ;;
1771 */) ;;
1772 *) as_dir=$as_dir/ ;;
1773 esac
1774 printf "%s\n" "PATH: $as_dir"
1775 done
1776 IFS=$as_save_IFS
1777
1778 } >&5
1779
1780 cat >&5 <<_ACEOF
1781
1782
1783 ## ----------- ##
1784 ## Core tests. ##
1785 ## ----------- ##
1786
1787 _ACEOF
1788
1789
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_configure_args=
1796 ac_configure_args0=
1797 ac_configure_args1=
1798 ac_must_keep_next=false
1799 for ac_pass in 1 2
1800 do
1801 for ac_arg
1802 do
1803 case $ac_arg in
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1807 continue ;;
1808 *\'*)
1809 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 case $ac_pass in
1812 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1813 2)
1814 as_fn_append ac_configure_args1 " '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1817 else
1818 case $ac_arg in
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 esac
1826 ;;
1827 -* ) ac_must_keep_next=true ;;
1828 esac
1829 fi
1830 as_fn_append ac_configure_args " '$ac_arg'"
1831 ;;
1832 esac
1833 done
1834 done
1835 { ac_configure_args0=; unset ac_configure_args0;}
1836 { ac_configure_args1=; unset ac_configure_args1;}
1837
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Sanitize IFS.
1845 IFS=" "" $as_nl"
1846 # Save into config.log some information that might help in debugging.
1847 {
1848 echo
1849
1850 printf "%s\n" "## ---------------- ##
1851 ## Cache variables. ##
1852 ## ---------------- ##"
1853 echo
1854 # The following way of writing the cache mishandles newlines in values,
1855 (
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
1861 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1862 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867 *) { eval $ac_var=; unset $ac_var;} ;;
1868 esac ;;
1869 esac
1870 done
1871 (set) 2>&1 |
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1874 sed -n \
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 ;; #(
1878 *)
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 ;;
1881 esac |
1882 sort
1883 )
1884 echo
1885
1886 printf "%s\n" "## ----------------- ##
1887 ## Output variables. ##
1888 ## ----------------- ##"
1889 echo
1890 for ac_var in $ac_subst_vars
1891 do
1892 eval ac_val=\$$ac_var
1893 case $ac_val in
1894 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 esac
1896 printf "%s\n" "$ac_var='\''$ac_val'\''"
1897 done | sort
1898 echo
1899
1900 if test -n "$ac_subst_files"; then
1901 printf "%s\n" "## ------------------- ##
1902 ## File substitutions. ##
1903 ## ------------------- ##"
1904 echo
1905 for ac_var in $ac_subst_files
1906 do
1907 eval ac_val=\$$ac_var
1908 case $ac_val in
1909 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1910 esac
1911 printf "%s\n" "$ac_var='\''$ac_val'\''"
1912 done | sort
1913 echo
1914 fi
1915
1916 if test -s confdefs.h; then
1917 printf "%s\n" "## ----------- ##
1918 ## confdefs.h. ##
1919 ## ----------- ##"
1920 echo
1921 cat confdefs.h
1922 echo
1923 fi
1924 test "$ac_signal" != 0 &&
1925 printf "%s\n" "$as_me: caught signal $ac_signal"
1926 printf "%s\n" "$as_me: exit $exit_status"
1927 } >&5
1928 rm -f core *.core core.conftest.* &&
1929 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1930 exit $exit_status
1931 ' 0
1932 for ac_signal in 1 2 13 15; do
1933 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1934 done
1935 ac_signal=0
1936
1937 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1938 rm -f -r conftest* confdefs.h
1939
1940 printf "%s\n" "/* confdefs.h */" > confdefs.h
1941
1942 # Predefined preprocessor variables.
1943
1944 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1945
1946 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1947
1948 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1949
1950 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1951
1952 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1953
1954 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1955
1956
1957 # Let the site file select an alternate cache file if it wants to.
1958 # Prefer an explicitly selected file to automatically selected ones.
1959 if test -n "$CONFIG_SITE"; then
1960 ac_site_files="$CONFIG_SITE"
1961 elif test "x$prefix" != xNONE; then
1962 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1963 else
1964 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1965 fi
1966
1967 for ac_site_file in $ac_site_files
1968 do
1969 case $ac_site_file in #(
1970 */*) :
1971 ;; #(
1972 *) :
1973 ac_site_file=./$ac_site_file ;;
1974 esac
1975 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1977 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1979 . "$ac_site_file" \
1980 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1981 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1982 as_fn_error $? "failed to load site script $ac_site_file
1983 See \`config.log' for more details" "$LINENO" 5; }
1984 fi
1985 done
1986
1987 if test -r "$cache_file"; then
1988 # Some versions of bash will fail to source /dev/null (special files
1989 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1990 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1992 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1993 case $cache_file in
1994 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1995 *) . "./$cache_file";;
1996 esac
1997 fi
1998 else
1999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2000 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2001 >$cache_file
2002 fi
2003
2004 # Test code for whether the C compiler supports C89 (global declarations)
2005 ac_c_conftest_c89_globals='
2006 /* Does the compiler advertise C89 conformance?
2007 Do not test the value of __STDC__, because some compilers set it to 0
2008 while being otherwise adequately conformant. */
2009 #if !defined __STDC__
2010 # error "Compiler does not advertise C89 conformance"
2011 #endif
2012
2013 #include <stddef.h>
2014 #include <stdarg.h>
2015 struct stat;
2016 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2017 struct buf { int x; };
2018 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2019 static char *e (p, i)
2020 char **p;
2021 int i;
2022 {
2023 return p[i];
2024 }
2025 static char *f (char * (*g) (char **, int), char **p, ...)
2026 {
2027 char *s;
2028 va_list v;
2029 va_start (v,p);
2030 s = g (p, va_arg (v,int));
2031 va_end (v);
2032 return s;
2033 }
2034
2035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2036 function prototypes and stuff, but not \xHH hex character constants.
2037 These do not provoke an error unfortunately, instead are silently treated
2038 as an "x". The following induces an error, until -std is added to get
2039 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2040 array size at least. It is necessary to write \x00 == 0 to get something
2041 that is true only with -std. */
2042 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2043
2044 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2045 inside strings and character constants. */
2046 #define FOO(x) '\''x'\''
2047 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2048
2049 int test (int i, double x);
2050 struct s1 {int (*f) (int a);};
2051 struct s2 {int (*f) (double a);};
2052 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2053 int, int);'
2054
2055 # Test code for whether the C compiler supports C89 (body of main).
2056 ac_c_conftest_c89_main='
2057 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2058 '
2059
2060 # Test code for whether the C compiler supports C99 (global declarations)
2061 ac_c_conftest_c99_globals='
2062 // Does the compiler advertise C99 conformance?
2063 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2064 # error "Compiler does not advertise C99 conformance"
2065 #endif
2066
2067 #include <stdbool.h>
2068 extern int puts (const char *);
2069 extern int printf (const char *, ...);
2070 extern int dprintf (int, const char *, ...);
2071 extern void *malloc (size_t);
2072
2073 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2074 // dprintf is used instead of fprintf to avoid needing to declare
2075 // FILE and stderr.
2076 #define debug(...) dprintf (2, __VA_ARGS__)
2077 #define showlist(...) puts (#__VA_ARGS__)
2078 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2079 static void
2080 test_varargs_macros (void)
2081 {
2082 int x = 1234;
2083 int y = 5678;
2084 debug ("Flag");
2085 debug ("X = %d\n", x);
2086 showlist (The first, second, and third items.);
2087 report (x>y, "x is %d but y is %d", x, y);
2088 }
2089
2090 // Check long long types.
2091 #define BIG64 18446744073709551615ull
2092 #define BIG32 4294967295ul
2093 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2094 #if !BIG_OK
2095 #error "your preprocessor is broken"
2096 #endif
2097 #if BIG_OK
2098 #else
2099 #error "your preprocessor is broken"
2100 #endif
2101 static long long int bignum = -9223372036854775807LL;
2102 static unsigned long long int ubignum = BIG64;
2103
2104 struct incomplete_array
2105 {
2106 int datasize;
2107 double data[];
2108 };
2109
2110 struct named_init {
2111 int number;
2112 const wchar_t *name;
2113 double average;
2114 };
2115
2116 typedef const char *ccp;
2117
2118 static inline int
2119 test_restrict (ccp restrict text)
2120 {
2121 // See if C++-style comments work.
2122 // Iterate through items via the restricted pointer.
2123 // Also check for declarations in for loops.
2124 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2125 continue;
2126 return 0;
2127 }
2128
2129 // Check varargs and va_copy.
2130 static bool
2131 test_varargs (const char *format, ...)
2132 {
2133 va_list args;
2134 va_start (args, format);
2135 va_list args_copy;
2136 va_copy (args_copy, args);
2137
2138 const char *str = "";
2139 int number = 0;
2140 float fnumber = 0;
2141
2142 while (*format)
2143 {
2144 switch (*format++)
2145 {
2146 case '\''s'\'': // string
2147 str = va_arg (args_copy, const char *);
2148 break;
2149 case '\''d'\'': // int
2150 number = va_arg (args_copy, int);
2151 break;
2152 case '\''f'\'': // float
2153 fnumber = va_arg (args_copy, double);
2154 break;
2155 default:
2156 break;
2157 }
2158 }
2159 va_end (args_copy);
2160 va_end (args);
2161
2162 return *str && number && fnumber;
2163 }
2164 '
2165
2166 # Test code for whether the C compiler supports C99 (body of main).
2167 ac_c_conftest_c99_main='
2168 // Check bool.
2169 _Bool success = false;
2170 success |= (argc != 0);
2171
2172 // Check restrict.
2173 if (test_restrict ("String literal") == 0)
2174 success = true;
2175 char *restrict newvar = "Another string";
2176
2177 // Check varargs.
2178 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2179 test_varargs_macros ();
2180
2181 // Check flexible array members.
2182 struct incomplete_array *ia =
2183 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2184 ia->datasize = 10;
2185 for (int i = 0; i < ia->datasize; ++i)
2186 ia->data[i] = i * 1.234;
2187
2188 // Check named initializers.
2189 struct named_init ni = {
2190 .number = 34,
2191 .name = L"Test wide string",
2192 .average = 543.34343,
2193 };
2194
2195 ni.number = 58;
2196
2197 int dynamic_array[ni.number];
2198 dynamic_array[0] = argv[0][0];
2199 dynamic_array[ni.number - 1] = 543;
2200
2201 // work around unused variable warnings
2202 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2203 || dynamic_array[ni.number - 1] != 543);
2204 '
2205
2206 # Test code for whether the C compiler supports C11 (global declarations)
2207 ac_c_conftest_c11_globals='
2208 // Does the compiler advertise C11 conformance?
2209 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2210 # error "Compiler does not advertise C11 conformance"
2211 #endif
2212
2213 // Check _Alignas.
2214 char _Alignas (double) aligned_as_double;
2215 char _Alignas (0) no_special_alignment;
2216 extern char aligned_as_int;
2217 char _Alignas (0) _Alignas (int) aligned_as_int;
2218
2219 // Check _Alignof.
2220 enum
2221 {
2222 int_alignment = _Alignof (int),
2223 int_array_alignment = _Alignof (int[100]),
2224 char_alignment = _Alignof (char)
2225 };
2226 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2227
2228 // Check _Noreturn.
2229 int _Noreturn does_not_return (void) { for (;;) continue; }
2230
2231 // Check _Static_assert.
2232 struct test_static_assert
2233 {
2234 int x;
2235 _Static_assert (sizeof (int) <= sizeof (long int),
2236 "_Static_assert does not work in struct");
2237 long int y;
2238 };
2239
2240 // Check UTF-8 literals.
2241 #define u8 syntax error!
2242 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2243
2244 // Check duplicate typedefs.
2245 typedef long *long_ptr;
2246 typedef long int *long_ptr;
2247 typedef long_ptr long_ptr;
2248
2249 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2250 struct anonymous
2251 {
2252 union {
2253 struct { int i; int j; };
2254 struct { int k; long int l; } w;
2255 };
2256 int m;
2257 } v1;
2258 '
2259
2260 # Test code for whether the C compiler supports C11 (body of main).
2261 ac_c_conftest_c11_main='
2262 _Static_assert ((offsetof (struct anonymous, i)
2263 == offsetof (struct anonymous, w.k)),
2264 "Anonymous union alignment botch");
2265 v1.i = 2;
2266 v1.w.k = 5;
2267 ok |= v1.i != 5;
2268 '
2269
2270 # Test code for whether the C compiler supports C11 (complete).
2271 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2272 ${ac_c_conftest_c99_globals}
2273 ${ac_c_conftest_c11_globals}
2274
2275 int
2276 main (int argc, char **argv)
2277 {
2278 int ok = 0;
2279 ${ac_c_conftest_c89_main}
2280 ${ac_c_conftest_c99_main}
2281 ${ac_c_conftest_c11_main}
2282 return ok;
2283 }
2284 "
2285
2286 # Test code for whether the C compiler supports C99 (complete).
2287 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2288 ${ac_c_conftest_c99_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 return ok;
2297 }
2298 "
2299
2300 # Test code for whether the C compiler supports C89 (complete).
2301 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2302
2303 int
2304 main (int argc, char **argv)
2305 {
2306 int ok = 0;
2307 ${ac_c_conftest_c89_main}
2308 return ok;
2309 }
2310 "
2311
2312 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2313 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2314 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2315 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2316 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2317 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2318 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2319 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2320 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2321
2322 # Auxiliary files required by this configure script.
2323 ac_aux_files="config.guess config.sub compile missing install-sh"
2324
2325 # Locations in which to look for auxiliary files.
2326 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2327
2328 # Search for a directory containing all of the required auxiliary files,
2329 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2330 # If we don't find one directory that contains all the files we need,
2331 # we report the set of missing files from the *first* directory in
2332 # $ac_aux_dir_candidates and give up.
2333 ac_missing_aux_files=""
2334 ac_first_candidate=:
2335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 as_found=false
2338 for as_dir in $ac_aux_dir_candidates
2339 do
2340 IFS=$as_save_IFS
2341 case $as_dir in #(((
2342 '') as_dir=./ ;;
2343 */) ;;
2344 *) as_dir=$as_dir/ ;;
2345 esac
2346 as_found=:
2347
2348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2349 ac_aux_dir_found=yes
2350 ac_install_sh=
2351 for ac_aux in $ac_aux_files
2352 do
2353 # As a special case, if "install-sh" is required, that requirement
2354 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2355 # and $ac_install_sh is set appropriately for whichever one is found.
2356 if test x"$ac_aux" = x"install-sh"
2357 then
2358 if test -f "${as_dir}install-sh"; then
2359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2360 ac_install_sh="${as_dir}install-sh -c"
2361 elif test -f "${as_dir}install.sh"; then
2362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2363 ac_install_sh="${as_dir}install.sh -c"
2364 elif test -f "${as_dir}shtool"; then
2365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2366 ac_install_sh="${as_dir}shtool install -c"
2367 else
2368 ac_aux_dir_found=no
2369 if $ac_first_candidate; then
2370 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2371 else
2372 break
2373 fi
2374 fi
2375 else
2376 if test -f "${as_dir}${ac_aux}"; then
2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2378 else
2379 ac_aux_dir_found=no
2380 if $ac_first_candidate; then
2381 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2382 else
2383 break
2384 fi
2385 fi
2386 fi
2387 done
2388 if test "$ac_aux_dir_found" = yes; then
2389 ac_aux_dir="$as_dir"
2390 break
2391 fi
2392 ac_first_candidate=false
2393
2394 as_found=false
2395 done
2396 IFS=$as_save_IFS
2397 if $as_found
2398 then :
2399
2400 else $as_nop
2401 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2402 fi
2403
2404
2405 # These three variables are undocumented and unsupported,
2406 # and are intended to be withdrawn in a future Autoconf release.
2407 # They can cause serious problems if a builder's source tree is in a directory
2408 # whose full name contains unusual characters.
2409 if test -f "${ac_aux_dir}config.guess"; then
2410 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2411 fi
2412 if test -f "${ac_aux_dir}config.sub"; then
2413 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2414 fi
2415 if test -f "$ac_aux_dir/configure"; then
2416 ac_configure="$SHELL ${ac_aux_dir}configure"
2417 fi
2418
2419 # Check that the precious variables saved in the cache have kept the same
2420 # value.
2421 ac_cache_corrupted=false
2422 for ac_var in $ac_precious_vars; do
2423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424 eval ac_new_set=\$ac_env_${ac_var}_set
2425 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426 eval ac_new_val=\$ac_env_${ac_var}_value
2427 case $ac_old_set,$ac_new_set in
2428 set,)
2429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,set)
2433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2436 ,);;
2437 *)
2438 if test "x$ac_old_val" != "x$ac_new_val"; then
2439 # differences in whitespace do not lead to failure.
2440 ac_old_val_w=`echo x $ac_old_val`
2441 ac_new_val_w=`echo x $ac_new_val`
2442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445 ac_cache_corrupted=:
2446 else
2447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449 eval $ac_var=\$ac_old_val
2450 fi
2451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2452 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2454 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2455 fi;;
2456 esac
2457 # Pass precious variables to config.status.
2458 if test "$ac_new_set" = set; then
2459 case $ac_new_val in
2460 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461 *) ac_arg=$ac_var=$ac_new_val ;;
2462 esac
2463 case " $ac_configure_args " in
2464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2465 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466 esac
2467 fi
2468 done
2469 if $ac_cache_corrupted; then
2470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2474 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2475 and start over" "$LINENO" 5
2476 fi
2477 ## -------------------- ##
2478 ## Main body of script. ##
2479 ## -------------------- ##
2480
2481 ac_ext=c
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487
2488
2489 ac_config_headers="$ac_config_headers config.h"
2490
2491
2492 # Initialize Automake
2493 am__api_version='1.16'
2494
2495
2496
2497 # Find a good install program. We prefer a C program (faster),
2498 # so one script is as good as another. But avoid the broken or
2499 # incompatible versions:
2500 # SysV /etc/install, /usr/sbin/install
2501 # SunOS /usr/etc/install
2502 # IRIX /sbin/install
2503 # AIX /bin/install
2504 # AmigaOS /C/install, which installs bootblocks on floppy discs
2505 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2506 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2507 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2508 # OS/2's system install, which has a completely different semantic
2509 # ./install, which can be erroneously created by make from ./install.sh.
2510 # Reject install programs that cannot install multiple files.
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2512 printf %s "checking for a BSD-compatible install... " >&6; }
2513 if test -z "$INSTALL"; then
2514 if test ${ac_cv_path_install+y}
2515 then :
2516 printf %s "(cached) " >&6
2517 else $as_nop
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 case $as_dir in #(((
2523 '') as_dir=./ ;;
2524 */) ;;
2525 *) as_dir=$as_dir/ ;;
2526 esac
2527 # Account for fact that we put trailing slashes in our PATH walk.
2528 case $as_dir in #((
2529 ./ | /[cC]/* | \
2530 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2531 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2532 /usr/ucb/* ) ;;
2533 *)
2534 # OSF1 and SCO ODT 3.0 have their own names for install.
2535 # Don't use installbsd from OSF since it installs stuff as root
2536 # by default.
2537 for ac_prog in ginstall scoinst install; do
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2540 if test $ac_prog = install &&
2541 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542 # AIX install. It has an incompatible calling convention.
2543 :
2544 elif test $ac_prog = install &&
2545 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2546 # program-specific install script used by HP pwplus--don't use.
2547 :
2548 else
2549 rm -rf conftest.one conftest.two conftest.dir
2550 echo one > conftest.one
2551 echo two > conftest.two
2552 mkdir conftest.dir
2553 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2554 test -s conftest.one && test -s conftest.two &&
2555 test -s conftest.dir/conftest.one &&
2556 test -s conftest.dir/conftest.two
2557 then
2558 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2559 break 3
2560 fi
2561 fi
2562 fi
2563 done
2564 done
2565 ;;
2566 esac
2567
2568 done
2569 IFS=$as_save_IFS
2570
2571 rm -rf conftest.one conftest.two conftest.dir
2572
2573 fi
2574 if test ${ac_cv_path_install+y}; then
2575 INSTALL=$ac_cv_path_install
2576 else
2577 # As a last resort, use the slow shell script. Don't cache a
2578 # value for INSTALL within a source directory, because that will
2579 # break other packages using the cache if that directory is
2580 # removed, or if the value is a relative name.
2581 INSTALL=$ac_install_sh
2582 fi
2583 fi
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2585 printf "%s\n" "$INSTALL" >&6; }
2586
2587 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2588 # It thinks the first close brace ends the variable substitution.
2589 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2590
2591 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2592
2593 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2594
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2596 printf %s "checking whether build environment is sane... " >&6; }
2597 # Reject unsafe characters in $srcdir or the absolute working directory
2598 # name. Accept space and tab only in the latter.
2599 am_lf='
2600 '
2601 case `pwd` in
2602 *[\\\"\#\$\&\'\`$am_lf]*)
2603 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2604 esac
2605 case $srcdir in
2606 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2607 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2608 esac
2609
2610 # Do 'set' in a subshell so we don't clobber the current shell's
2611 # arguments. Must try -L first in case configure is actually a
2612 # symlink; some systems play weird games with the mod time of symlinks
2613 # (eg FreeBSD returns the mod time of the symlink's containing
2614 # directory).
2615 if (
2616 am_has_slept=no
2617 for am_try in 1 2; do
2618 echo "timestamp, slept: $am_has_slept" > conftest.file
2619 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620 if test "$*" = "X"; then
2621 # -L didn't work.
2622 set X `ls -t "$srcdir/configure" conftest.file`
2623 fi
2624 if test "$*" != "X $srcdir/configure conftest.file" \
2625 && test "$*" != "X conftest.file $srcdir/configure"; then
2626
2627 # If neither matched, then we have a broken ls. This can happen
2628 # if, for instance, CONFIG_SHELL is bash and it inherits a
2629 # broken ls alias from the environment. This has actually
2630 # happened. Such a system could not be considered "sane".
2631 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2632 alias in your environment" "$LINENO" 5
2633 fi
2634 if test "$2" = conftest.file || test $am_try -eq 2; then
2635 break
2636 fi
2637 # Just in case.
2638 sleep 1
2639 am_has_slept=yes
2640 done
2641 test "$2" = conftest.file
2642 )
2643 then
2644 # Ok.
2645 :
2646 else
2647 as_fn_error $? "newly created file is older than distributed files!
2648 Check your system clock" "$LINENO" 5
2649 fi
2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651 printf "%s\n" "yes" >&6; }
2652 # If we didn't sleep, we still need to ensure time stamps of config.status and
2653 # generated files are strictly newer.
2654 am_sleep_pid=
2655 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2656 ( sleep 1 ) &
2657 am_sleep_pid=$!
2658 fi
2659
2660 rm -f conftest.file
2661
2662 test "$program_prefix" != NONE &&
2663 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2664 # Use a double $ so make ignores it.
2665 test "$program_suffix" != NONE &&
2666 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2667 # Double any \ or $.
2668 # By default was `s,x,x', remove it if useless.
2669 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2670 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2671
2672
2673 # Expand $ac_aux_dir to an absolute path.
2674 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2675
2676
2677 if test x"${MISSING+set}" != xset; then
2678 MISSING="\${SHELL} '$am_aux_dir/missing'"
2679 fi
2680 # Use eval to expand $SHELL
2681 if eval "$MISSING --is-lightweight"; then
2682 am_missing_run="$MISSING "
2683 else
2684 am_missing_run=
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2686 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2687 fi
2688
2689 if test x"${install_sh+set}" != xset; then
2690 case $am_aux_dir in
2691 *\ * | *\ *)
2692 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2693 *)
2694 install_sh="\${SHELL} $am_aux_dir/install-sh"
2695 esac
2696 fi
2697
2698 # Installed binaries are usually stripped using 'strip' when the user
2699 # run "make install-strip". However 'strip' might not be the right
2700 # tool to use in cross-compilation environments, therefore Automake
2701 # will honor the 'STRIP' environment variable to overrule this program.
2702 if test "$cross_compiling" != no; then
2703 if test -n "$ac_tool_prefix"; then
2704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2705 set dummy ${ac_tool_prefix}strip; ac_word=$2
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 printf %s "checking for $ac_word... " >&6; }
2708 if test ${ac_cv_prog_STRIP+y}
2709 then :
2710 printf %s "(cached) " >&6
2711 else $as_nop
2712 if test -n "$STRIP"; then
2713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 case $as_dir in #(((
2720 '') as_dir=./ ;;
2721 */) ;;
2722 *) as_dir=$as_dir/ ;;
2723 esac
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 STRIP=$ac_cv_prog_STRIP
2737 if test -n "$STRIP"; then
2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2739 printf "%s\n" "$STRIP" >&6; }
2740 else
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 printf "%s\n" "no" >&6; }
2743 fi
2744
2745
2746 fi
2747 if test -z "$ac_cv_prog_STRIP"; then
2748 ac_ct_STRIP=$STRIP
2749 # Extract the first word of "strip", so it can be a program name with args.
2750 set dummy strip; ac_word=$2
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 printf %s "checking for $ac_word... " >&6; }
2753 if test ${ac_cv_prog_ac_ct_STRIP+y}
2754 then :
2755 printf %s "(cached) " >&6
2756 else $as_nop
2757 if test -n "$ac_ct_STRIP"; then
2758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 case $as_dir in #(((
2765 '') as_dir=./ ;;
2766 */) ;;
2767 *) as_dir=$as_dir/ ;;
2768 esac
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_ac_ct_STRIP="strip"
2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2782 if test -n "$ac_ct_STRIP"; then
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2784 printf "%s\n" "$ac_ct_STRIP" >&6; }
2785 else
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 printf "%s\n" "no" >&6; }
2788 fi
2789
2790 if test "x$ac_ct_STRIP" = x; then
2791 STRIP=":"
2792 else
2793 case $cross_compiling:$ac_tool_warned in
2794 yes:)
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2796 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797 ac_tool_warned=yes ;;
2798 esac
2799 STRIP=$ac_ct_STRIP
2800 fi
2801 else
2802 STRIP="$ac_cv_prog_STRIP"
2803 fi
2804
2805 fi
2806 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2807
2808
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2810 printf %s "checking for a race-free mkdir -p... " >&6; }
2811 if test -z "$MKDIR_P"; then
2812 if test ${ac_cv_path_mkdir+y}
2813 then :
2814 printf %s "(cached) " >&6
2815 else $as_nop
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2818 do
2819 IFS=$as_save_IFS
2820 case $as_dir in #(((
2821 '') as_dir=./ ;;
2822 */) ;;
2823 *) as_dir=$as_dir/ ;;
2824 esac
2825 for ac_prog in mkdir gmkdir; do
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2828 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2829 'mkdir ('*'coreutils) '* | \
2830 'BusyBox '* | \
2831 'mkdir (fileutils) '4.1*)
2832 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2833 break 3;;
2834 esac
2835 done
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841
2842 test -d ./--version && rmdir ./--version
2843 if test ${ac_cv_path_mkdir+y}; then
2844 MKDIR_P="$ac_cv_path_mkdir -p"
2845 else
2846 # As a last resort, use the slow shell script. Don't cache a
2847 # value for MKDIR_P within a source directory, because that will
2848 # break other packages using the cache if that directory is
2849 # removed, or if the value is a relative name.
2850 MKDIR_P="$ac_install_sh -d"
2851 fi
2852 fi
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2854 printf "%s\n" "$MKDIR_P" >&6; }
2855
2856 for ac_prog in gawk mawk nawk awk
2857 do
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 printf %s "checking for $ac_word... " >&6; }
2862 if test ${ac_cv_prog_AWK+y}
2863 then :
2864 printf %s "(cached) " >&6
2865 else $as_nop
2866 if test -n "$AWK"; then
2867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 case $as_dir in #(((
2874 '') as_dir=./ ;;
2875 */) ;;
2876 *) as_dir=$as_dir/ ;;
2877 esac
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_AWK="$ac_prog"
2881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 AWK=$ac_cv_prog_AWK
2891 if test -n "$AWK"; then
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2893 printf "%s\n" "$AWK" >&6; }
2894 else
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 printf "%s\n" "no" >&6; }
2897 fi
2898
2899
2900 test -n "$AWK" && break
2901 done
2902
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2905 set x ${MAKE-make}
2906 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2907 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2908 then :
2909 printf %s "(cached) " >&6
2910 else $as_nop
2911 cat >conftest.make <<\_ACEOF
2912 SHELL = /bin/sh
2913 all:
2914 @echo '@@@%%%=$(MAKE)=@@@%%%'
2915 _ACEOF
2916 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2917 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2918 *@@@%%%=?*=@@@%%%*)
2919 eval ac_cv_prog_make_${ac_make}_set=yes;;
2920 *)
2921 eval ac_cv_prog_make_${ac_make}_set=no;;
2922 esac
2923 rm -f conftest.make
2924 fi
2925 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927 printf "%s\n" "yes" >&6; }
2928 SET_MAKE=
2929 else
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 printf "%s\n" "no" >&6; }
2932 SET_MAKE="MAKE=${MAKE-make}"
2933 fi
2934
2935 rm -rf .tst 2>/dev/null
2936 mkdir .tst 2>/dev/null
2937 if test -d .tst; then
2938 am__leading_dot=.
2939 else
2940 am__leading_dot=_
2941 fi
2942 rmdir .tst 2>/dev/null
2943
2944 # Check whether --enable-silent-rules was given.
2945 if test ${enable_silent_rules+y}
2946 then :
2947 enableval=$enable_silent_rules;
2948 fi
2949
2950 case $enable_silent_rules in # (((
2951 yes) AM_DEFAULT_VERBOSITY=0;;
2952 no) AM_DEFAULT_VERBOSITY=1;;
2953 *) AM_DEFAULT_VERBOSITY=1;;
2954 esac
2955 am_make=${MAKE-make}
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2957 printf %s "checking whether $am_make supports nested variables... " >&6; }
2958 if test ${am_cv_make_support_nested_variables+y}
2959 then :
2960 printf %s "(cached) " >&6
2961 else $as_nop
2962 if printf "%s\n" 'TRUE=$(BAR$(V))
2963 BAR0=false
2964 BAR1=true
2965 V=1
2966 am__doit:
2967 @$(TRUE)
2968 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2969 am_cv_make_support_nested_variables=yes
2970 else
2971 am_cv_make_support_nested_variables=no
2972 fi
2973 fi
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2975 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2976 if test $am_cv_make_support_nested_variables = yes; then
2977 AM_V='$(V)'
2978 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2979 else
2980 AM_V=$AM_DEFAULT_VERBOSITY
2981 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2982 fi
2983 AM_BACKSLASH='\'
2984
2985 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2986 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2987 # is not polluted with repeated "-I."
2988 am__isrc=' -I$(srcdir)'
2989 # test to see if srcdir already configured
2990 if test -f $srcdir/config.status; then
2991 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2992 fi
2993 fi
2994
2995 # test whether we have cygpath
2996 if test -z "$CYGPATH_W"; then
2997 if (cygpath --version) >/dev/null 2>/dev/null; then
2998 CYGPATH_W='cygpath -w'
2999 else
3000 CYGPATH_W=echo
3001 fi
3002 fi
3003
3004
3005 # Define the identity of the package.
3006 PACKAGE='font-util'
3007 VERSION='1.3.3'
3008
3009
3010 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3011
3012
3013 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3014
3015 # Some tools Automake needs.
3016
3017 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3018
3019
3020 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3021
3022
3023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3024
3025
3026 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3027
3028
3029 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3030
3031 # For better backward compatibility. To be removed once Automake 1.9.x
3032 # dies out for good. For more background, see:
3033 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3034 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3035 mkdir_p='$(MKDIR_P)'
3036
3037 # We need awk for the "check" target (and possibly the TAP driver). The
3038 # system "awk" is bad on some platforms.
3039 # Always define AMTAR for backward compatibility. Yes, it's still used
3040 # in the wild :-( We should find a proper way to deprecate it ...
3041 AMTAR='$${TAR-tar}'
3042
3043
3044 # We'll loop over all known methods to create a tar archive until one works.
3045 _am_tools='gnutar pax cpio none'
3046
3047 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3048
3049
3050
3051
3052
3053 # Variables for tags utilities; see am/tags.am
3054 if test -z "$CTAGS"; then
3055 CTAGS=ctags
3056 fi
3057
3058 if test -z "$ETAGS"; then
3059 ETAGS=etags
3060 fi
3061
3062 if test -z "$CSCOPE"; then
3063 CSCOPE=cscope
3064 fi
3065
3066
3067
3068 # POSIX will say in a future version that running "rm -f" with no argument
3069 # is OK; and we want to be able to make that assumption in our Makefile
3070 # recipes. So use an aggressive probe to check that the usage we want is
3071 # actually supported "in the wild" to an acceptable degree.
3072 # See automake bug#10828.
3073 # To make any issue more visible, cause the running configure to be aborted
3074 # by default if the 'rm' program in use doesn't match our expectations; the
3075 # user can still override this though.
3076 if rm -f && rm -fr && rm -rf; then : OK; else
3077 cat >&2 <<'END'
3078 Oops!
3079
3080 Your 'rm' program seems unable to run without file operands specified
3081 on the command line, even when the '-f' option is present. This is contrary
3082 to the behaviour of most rm programs out there, and not conforming with
3083 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3084
3085 Please tell bug-automake@gnu.org about your system, including the value
3086 of your $PATH and any error possibly output before this message. This
3087 can help us improve future automake versions.
3088
3089 END
3090 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3091 echo 'Configuration will proceed anyway, since you have set the' >&2
3092 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3093 echo >&2
3094 else
3095 cat >&2 <<'END'
3096 Aborting the configuration process, to ensure you take notice of the issue.
3097
3098 You can download and install GNU coreutils to get an 'rm' implementation
3099 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3100
3101 If you want to complete the configuration process using your problematic
3102 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3103 to "yes", and re-run configure.
3104
3105 END
3106 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3107 fi
3108 fi
3109
3110
3111 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132 DEPDIR="${am__leading_dot}deps"
3133
3134 ac_config_commands="$ac_config_commands depfiles"
3135
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3137 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3138 cat > confinc.mk << 'END'
3139 am__doit:
3140 @echo this is the am__doit target >confinc.out
3141 .PHONY: am__doit
3142 END
3143 am__include="#"
3144 am__quote=
3145 # BSD make does it like this.
3146 echo '.include "confinc.mk" # ignored' > confmf.BSD
3147 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3148 echo 'include confinc.mk # ignored' > confmf.GNU
3149 _am_result=no
3150 for s in GNU BSD; do
3151 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3152 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }
3156 case $?:`cat confinc.out 2>/dev/null` in #(
3157 '0:this is the am__doit target') :
3158 case $s in #(
3159 BSD) :
3160 am__include='.include' am__quote='"' ;; #(
3161 *) :
3162 am__include='include' am__quote='' ;;
3163 esac ;; #(
3164 *) :
3165 ;;
3166 esac
3167 if test "$am__include" != "#"; then
3168 _am_result="yes ($s style)"
3169 break
3170 fi
3171 done
3172 rm -f confinc.* confmf.*
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3174 printf "%s\n" "${_am_result}" >&6; }
3175
3176 # Check whether --enable-dependency-tracking was given.
3177 if test ${enable_dependency_tracking+y}
3178 then :
3179 enableval=$enable_dependency_tracking;
3180 fi
3181
3182 if test "x$enable_dependency_tracking" != xno; then
3183 am_depcomp="$ac_aux_dir/depcomp"
3184 AMDEPBACKSLASH='\'
3185 am__nodep='_no'
3186 fi
3187 if test "x$enable_dependency_tracking" != xno; then
3188 AMDEP_TRUE=
3189 AMDEP_FALSE='#'
3190 else
3191 AMDEP_TRUE='#'
3192 AMDEP_FALSE=
3193 fi
3194
3195
3196 ac_ext=c
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 printf %s "checking for $ac_word... " >&6; }
3206 if test ${ac_cv_prog_CC+y}
3207 then :
3208 printf %s "(cached) " >&6
3209 else $as_nop
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216 IFS=$as_save_IFS
3217 case $as_dir in #(((
3218 '') as_dir=./ ;;
3219 */) ;;
3220 *) as_dir=$as_dir/ ;;
3221 esac
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 CC=$ac_cv_prog_CC
3235 if test -n "$CC"; then
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237 printf "%s\n" "$CC" >&6; }
3238 else
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 printf "%s\n" "no" >&6; }
3241 fi
3242
3243
3244 fi
3245 if test -z "$ac_cv_prog_CC"; then
3246 ac_ct_CC=$CC
3247 # Extract the first word of "gcc", so it can be a program name with args.
3248 set dummy gcc; ac_word=$2
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 printf %s "checking for $ac_word... " >&6; }
3251 if test ${ac_cv_prog_ac_ct_CC+y}
3252 then :
3253 printf %s "(cached) " >&6
3254 else $as_nop
3255 if test -n "$ac_ct_CC"; then
3256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261 IFS=$as_save_IFS
3262 case $as_dir in #(((
3263 '') as_dir=./ ;;
3264 */) ;;
3265 *) as_dir=$as_dir/ ;;
3266 esac
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_ac_ct_CC="gcc"
3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273 done
3274 done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3280 if test -n "$ac_ct_CC"; then
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282 printf "%s\n" "$ac_ct_CC" >&6; }
3283 else
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 printf "%s\n" "no" >&6; }
3286 fi
3287
3288 if test "x$ac_ct_CC" = x; then
3289 CC=""
3290 else
3291 case $cross_compiling:$ac_tool_warned in
3292 yes:)
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3294 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3295 ac_tool_warned=yes ;;
3296 esac
3297 CC=$ac_ct_CC
3298 fi
3299 else
3300 CC="$ac_cv_prog_CC"
3301 fi
3302
3303 if test -z "$CC"; then
3304 if test -n "$ac_tool_prefix"; then
3305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3306 set dummy ${ac_tool_prefix}cc; ac_word=$2
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 printf %s "checking for $ac_word... " >&6; }
3309 if test ${ac_cv_prog_CC+y}
3310 then :
3311 printf %s "(cached) " >&6
3312 else $as_nop
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC="$CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 case $as_dir in #(((
3321 '') as_dir=./ ;;
3322 */) ;;
3323 *) as_dir=$as_dir/ ;;
3324 esac
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_CC="${ac_tool_prefix}cc"
3328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 printf "%s\n" "$CC" >&6; }
3341 else
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 printf "%s\n" "no" >&6; }
3344 fi
3345
3346
3347 fi
3348 fi
3349 if test -z "$CC"; then
3350 # Extract the first word of "cc", so it can be a program name with args.
3351 set dummy cc; ac_word=$2
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 printf %s "checking for $ac_word... " >&6; }
3354 if test ${ac_cv_prog_CC+y}
3355 then :
3356 printf %s "(cached) " >&6
3357 else $as_nop
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 ac_prog_rejected=no
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 case $as_dir in #(((
3367 '') as_dir=./ ;;
3368 */) ;;
3369 *) as_dir=$as_dir/ ;;
3370 esac
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3374 ac_prog_rejected=yes
3375 continue
3376 fi
3377 ac_cv_prog_CC="cc"
3378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 if test $ac_prog_rejected = yes; then
3386 # We found a bogon in the path, so make sure we never use it.
3387 set dummy $ac_cv_prog_CC
3388 shift
3389 if test $# != 0; then
3390 # We chose a different compiler from the bogus one.
3391 # However, it has the same basename, so the bogon will be chosen
3392 # first if we set CC to just the basename; use the full file name.
3393 shift
3394 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3395 fi
3396 fi
3397 fi
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 "$CC"; then
3411 if test -n "$ac_tool_prefix"; then
3412 for ac_prog in cl.exe
3413 do
3414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 printf %s "checking for $ac_word... " >&6; }
3418 if test ${ac_cv_prog_CC+y}
3419 then :
3420 printf %s "(cached) " >&6
3421 else $as_nop
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428 IFS=$as_save_IFS
3429 case $as_dir in #(((
3430 '') as_dir=./ ;;
3431 */) ;;
3432 *) as_dir=$as_dir/ ;;
3433 esac
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440 done
3441 done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 printf "%s\n" "$CC" >&6; }
3450 else
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 printf "%s\n" "no" >&6; }
3453 fi
3454
3455
3456 test -n "$CC" && break
3457 done
3458 fi
3459 if test -z "$CC"; then
3460 ac_ct_CC=$CC
3461 for ac_prog in cl.exe
3462 do
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 printf %s "checking for $ac_word... " >&6; }
3467 if test ${ac_cv_prog_ac_ct_CC+y}
3468 then :
3469 printf %s "(cached) " >&6
3470 else $as_nop
3471 if test -n "$ac_ct_CC"; then
3472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477 IFS=$as_save_IFS
3478 case $as_dir in #(((
3479 '') as_dir=./ ;;
3480 */) ;;
3481 *) as_dir=$as_dir/ ;;
3482 esac
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_ac_ct_CC="$ac_prog"
3486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489 done
3490 done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3496 if test -n "$ac_ct_CC"; then
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3498 printf "%s\n" "$ac_ct_CC" >&6; }
3499 else
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 printf "%s\n" "no" >&6; }
3502 fi
3503
3504
3505 test -n "$ac_ct_CC" && break
3506 done
3507
3508 if test "x$ac_ct_CC" = x; then
3509 CC=""
3510 else
3511 case $cross_compiling:$ac_tool_warned in
3512 yes:)
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515 ac_tool_warned=yes ;;
3516 esac
3517 CC=$ac_ct_CC
3518 fi
3519 fi
3520
3521 fi
3522 if test -z "$CC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3525 set dummy ${ac_tool_prefix}clang; ac_word=$2
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 printf %s "checking for $ac_word... " >&6; }
3528 if test ${ac_cv_prog_CC+y}
3529 then :
3530 printf %s "(cached) " >&6
3531 else $as_nop
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 case $as_dir in #(((
3540 '') as_dir=./ ;;
3541 */) ;;
3542 *) as_dir=$as_dir/ ;;
3543 esac
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_CC="${ac_tool_prefix}clang"
3547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 fi
3555 fi
3556 CC=$ac_cv_prog_CC
3557 if test -n "$CC"; then
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559 printf "%s\n" "$CC" >&6; }
3560 else
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 printf "%s\n" "no" >&6; }
3563 fi
3564
3565
3566 fi
3567 if test -z "$ac_cv_prog_CC"; then
3568 ac_ct_CC=$CC
3569 # Extract the first word of "clang", so it can be a program name with args.
3570 set dummy clang; ac_word=$2
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 printf %s "checking for $ac_word... " >&6; }
3573 if test ${ac_cv_prog_ac_ct_CC+y}
3574 then :
3575 printf %s "(cached) " >&6
3576 else $as_nop
3577 if test -n "$ac_ct_CC"; then
3578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583 IFS=$as_save_IFS
3584 case $as_dir in #(((
3585 '') as_dir=./ ;;
3586 */) ;;
3587 *) as_dir=$as_dir/ ;;
3588 esac
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_ac_ct_CC="clang"
3592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595 done
3596 done
3597 IFS=$as_save_IFS
3598
3599 fi
3600 fi
3601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602 if test -n "$ac_ct_CC"; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3604 printf "%s\n" "$ac_ct_CC" >&6; }
3605 else
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 printf "%s\n" "no" >&6; }
3608 fi
3609
3610 if test "x$ac_ct_CC" = x; then
3611 CC=""
3612 else
3613 case $cross_compiling:$ac_tool_warned in
3614 yes:)
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned=yes ;;
3618 esac
3619 CC=$ac_ct_CC
3620 fi
3621 else
3622 CC="$ac_cv_prog_CC"
3623 fi
3624
3625 fi
3626
3627
3628 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "no acceptable C compiler found in \$PATH
3631 See \`config.log' for more details" "$LINENO" 5; }
3632
3633 # Provide some information about the compiler.
3634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3635 set X $ac_compile
3636 ac_compiler=$2
3637 for ac_option in --version -v -V -qversion -version; do
3638 { { ac_try="$ac_compiler $ac_option >&5"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 printf "%s\n" "$ac_try_echo"; } >&5
3645 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3646 ac_status=$?
3647 if test -s conftest.err; then
3648 sed '10a\
3649 ... rest of stderr output deleted ...
3650 10q' conftest.err >conftest.er1
3651 cat conftest.er1 >&5
3652 fi
3653 rm -f conftest.er1 conftest.err
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }
3656 done
3657
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660
3661 int
3662 main (void)
3663 {
3664
3665 ;
3666 return 0;
3667 }
3668 _ACEOF
3669 ac_clean_files_save=$ac_clean_files
3670 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3671 # Try to create an executable without -o first, disregard a.out.
3672 # It will help us diagnose broken compilers, and finding out an intuition
3673 # of exeext.
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3675 printf %s "checking whether the C compiler works... " >&6; }
3676 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3677
3678 # The possible output files:
3679 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3680
3681 ac_rmfiles=
3682 for ac_file in $ac_files
3683 do
3684 case $ac_file in
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3686 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3687 esac
3688 done
3689 rm -f $ac_rmfiles
3690
3691 if { { ac_try="$ac_link_default"
3692 case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 printf "%s\n" "$ac_try_echo"; } >&5
3698 (eval "$ac_link_default") 2>&5
3699 ac_status=$?
3700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }
3702 then :
3703 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3704 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3705 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3706 # so that the user can short-circuit this test for compilers unknown to
3707 # Autoconf.
3708 for ac_file in $ac_files ''
3709 do
3710 test -f "$ac_file" || continue
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3713 ;;
3714 [ab].out )
3715 # We found the default executable, but exeext='' is most
3716 # certainly right.
3717 break;;
3718 *.* )
3719 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3720 then :; else
3721 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3722 fi
3723 # We set ac_cv_exeext here because the later test for it is not
3724 # safe: cross compilers may not add the suffix if given an `-o'
3725 # argument, so we may need to know it at that point already.
3726 # Even if this section looks crufty: it has the advantage of
3727 # actually working.
3728 break;;
3729 * )
3730 break;;
3731 esac
3732 done
3733 test "$ac_cv_exeext" = no && ac_cv_exeext=
3734
3735 else $as_nop
3736 ac_file=''
3737 fi
3738 if test -z "$ac_file"
3739 then :
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 printf "%s\n" "no" >&6; }
3742 printf "%s\n" "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error 77 "C compiler cannot create executables
3748 See \`config.log' for more details" "$LINENO" 5; }
3749 else $as_nop
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751 printf "%s\n" "yes" >&6; }
3752 fi
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3754 printf %s "checking for C compiler default output file name... " >&6; }
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3756 printf "%s\n" "$ac_file" >&6; }
3757 ac_exeext=$ac_cv_exeext
3758
3759 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3760 ac_clean_files=$ac_clean_files_save
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3762 printf %s "checking for suffix of executables... " >&6; }
3763 if { { ac_try="$ac_link"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 printf "%s\n" "$ac_try_echo"; } >&5
3770 (eval "$ac_link") 2>&5
3771 ac_status=$?
3772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }
3774 then :
3775 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3776 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3777 # work properly (i.e., refer to `conftest.exe'), while it won't with
3778 # `rm'.
3779 for ac_file in conftest.exe conftest conftest.*; do
3780 test -f "$ac_file" || continue
3781 case $ac_file in
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3784 break;;
3785 * ) break;;
3786 esac
3787 done
3788 else $as_nop
3789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3792 See \`config.log' for more details" "$LINENO" 5; }
3793 fi
3794 rm -f conftest conftest$ac_cv_exeext
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3796 printf "%s\n" "$ac_cv_exeext" >&6; }
3797
3798 rm -f conftest.$ac_ext
3799 EXEEXT=$ac_cv_exeext
3800 ac_exeext=$EXEEXT
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803 #include <stdio.h>
3804 int
3805 main (void)
3806 {
3807 FILE *f = fopen ("conftest.out", "w");
3808 return ferror (f) || fclose (f) != 0;
3809
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 ac_clean_files="$ac_clean_files conftest.out"
3815 # Check that the compiler produces executables we can run. If not, either
3816 # the compiler is broken, or we cross compile.
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3818 printf %s "checking whether we are cross compiling... " >&6; }
3819 if test "$cross_compiling" != yes; then
3820 { { ac_try="$ac_link"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 printf "%s\n" "$ac_try_echo"; } >&5
3827 (eval "$ac_link") 2>&5
3828 ac_status=$?
3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }
3831 if { ac_try='./conftest$ac_cv_exeext'
3832 { { case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 printf "%s\n" "$ac_try_echo"; } >&5
3838 (eval "$ac_try") 2>&5
3839 ac_status=$?
3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }; }; then
3842 cross_compiling=no
3843 else
3844 if test "$cross_compiling" = maybe; then
3845 cross_compiling=yes
3846 else
3847 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3849 as_fn_error 77 "cannot run C compiled programs.
3850 If you meant to cross compile, use \`--host'.
3851 See \`config.log' for more details" "$LINENO" 5; }
3852 fi
3853 fi
3854 fi
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3856 printf "%s\n" "$cross_compiling" >&6; }
3857
3858 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3859 ac_clean_files=$ac_clean_files_save
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3861 printf %s "checking for suffix of object files... " >&6; }
3862 if test ${ac_cv_objext+y}
3863 then :
3864 printf %s "(cached) " >&6
3865 else $as_nop
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 int
3870 main (void)
3871 {
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 rm -f conftest.o conftest.obj
3878 if { { ac_try="$ac_compile"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 printf "%s\n" "$ac_try_echo"; } >&5
3885 (eval "$ac_compile") 2>&5
3886 ac_status=$?
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888 test $ac_status = 0; }
3889 then :
3890 for ac_file in conftest.o conftest.obj conftest.*; do
3891 test -f "$ac_file" || continue;
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3894 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3895 break;;
3896 esac
3897 done
3898 else $as_nop
3899 printf "%s\n" "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3904 as_fn_error $? "cannot compute suffix of object files: cannot compile
3905 See \`config.log' for more details" "$LINENO" 5; }
3906 fi
3907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3908 fi
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3910 printf "%s\n" "$ac_cv_objext" >&6; }
3911 OBJEXT=$ac_cv_objext
3912 ac_objext=$OBJEXT
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3914 printf %s "checking whether the compiler supports GNU C... " >&6; }
3915 if test ${ac_cv_c_compiler_gnu+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else $as_nop
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921
3922 int
3923 main (void)
3924 {
3925 #ifndef __GNUC__
3926 choke me
3927 #endif
3928
3929 ;
3930 return 0;
3931 }
3932 _ACEOF
3933 if ac_fn_c_try_compile "$LINENO"
3934 then :
3935 ac_compiler_gnu=yes
3936 else $as_nop
3937 ac_compiler_gnu=no
3938 fi
3939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3940 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3941
3942 fi
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3944 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946
3947 if test $ac_compiler_gnu = yes; then
3948 GCC=yes
3949 else
3950 GCC=
3951 fi
3952 ac_test_CFLAGS=${CFLAGS+y}
3953 ac_save_CFLAGS=$CFLAGS
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3955 printf %s "checking whether $CC accepts -g... " >&6; }
3956 if test ${ac_cv_prog_cc_g+y}
3957 then :
3958 printf %s "(cached) " >&6
3959 else $as_nop
3960 ac_save_c_werror_flag=$ac_c_werror_flag
3961 ac_c_werror_flag=yes
3962 ac_cv_prog_cc_g=no
3963 CFLAGS="-g"
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966
3967 int
3968 main (void)
3969 {
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"
3976 then :
3977 ac_cv_prog_cc_g=yes
3978 else $as_nop
3979 CFLAGS=""
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982
3983 int
3984 main (void)
3985 {
3986
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"
3992 then :
3993
3994 else $as_nop
3995 ac_c_werror_flag=$ac_save_c_werror_flag
3996 CFLAGS="-g"
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999
4000 int
4001 main (void)
4002 {
4003
4004 ;
4005 return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"
4009 then :
4010 ac_cv_prog_cc_g=yes
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4013 fi
4014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4018 fi
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4020 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4021 if test $ac_test_CFLAGS; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4025 CFLAGS="-g -O2"
4026 else
4027 CFLAGS="-g"
4028 fi
4029 else
4030 if test "$GCC" = yes; then
4031 CFLAGS="-O2"
4032 else
4033 CFLAGS=
4034 fi
4035 fi
4036 ac_prog_cc_stdc=no
4037 if test x$ac_prog_cc_stdc = xno
4038 then :
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4040 printf %s "checking for $CC option to enable C11 features... " >&6; }
4041 if test ${ac_cv_prog_cc_c11+y}
4042 then :
4043 printf %s "(cached) " >&6
4044 else $as_nop
4045 ac_cv_prog_cc_c11=no
4046 ac_save_CC=$CC
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 $ac_c_conftest_c11_program
4050 _ACEOF
4051 for ac_arg in '' -std=gnu11
4052 do
4053 CC="$ac_save_CC $ac_arg"
4054 if ac_fn_c_try_compile "$LINENO"
4055 then :
4056 ac_cv_prog_cc_c11=$ac_arg
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.beam
4059 test "x$ac_cv_prog_cc_c11" != "xno" && break
4060 done
4061 rm -f conftest.$ac_ext
4062 CC=$ac_save_CC
4063 fi
4064
4065 if test "x$ac_cv_prog_cc_c11" = xno
4066 then :
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4068 printf "%s\n" "unsupported" >&6; }
4069 else $as_nop
4070 if test "x$ac_cv_prog_cc_c11" = x
4071 then :
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073 printf "%s\n" "none needed" >&6; }
4074 else $as_nop
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4076 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4077 CC="$CC $ac_cv_prog_cc_c11"
4078 fi
4079 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4080 ac_prog_cc_stdc=c11
4081 fi
4082 fi
4083 if test x$ac_prog_cc_stdc = xno
4084 then :
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4086 printf %s "checking for $CC option to enable C99 features... " >&6; }
4087 if test ${ac_cv_prog_cc_c99+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else $as_nop
4091 ac_cv_prog_cc_c99=no
4092 ac_save_CC=$CC
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 $ac_c_conftest_c99_program
4096 _ACEOF
4097 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4098 do
4099 CC="$ac_save_CC $ac_arg"
4100 if ac_fn_c_try_compile "$LINENO"
4101 then :
4102 ac_cv_prog_cc_c99=$ac_arg
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.beam
4105 test "x$ac_cv_prog_cc_c99" != "xno" && break
4106 done
4107 rm -f conftest.$ac_ext
4108 CC=$ac_save_CC
4109 fi
4110
4111 if test "x$ac_cv_prog_cc_c99" = xno
4112 then :
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 printf "%s\n" "unsupported" >&6; }
4115 else $as_nop
4116 if test "x$ac_cv_prog_cc_c99" = x
4117 then :
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119 printf "%s\n" "none needed" >&6; }
4120 else $as_nop
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4122 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4123 CC="$CC $ac_cv_prog_cc_c99"
4124 fi
4125 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4126 ac_prog_cc_stdc=c99
4127 fi
4128 fi
4129 if test x$ac_prog_cc_stdc = xno
4130 then :
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4132 printf %s "checking for $CC option to enable C89 features... " >&6; }
4133 if test ${ac_cv_prog_cc_c89+y}
4134 then :
4135 printf %s "(cached) " >&6
4136 else $as_nop
4137 ac_cv_prog_cc_c89=no
4138 ac_save_CC=$CC
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 $ac_c_conftest_c89_program
4142 _ACEOF
4143 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"
4147 then :
4148 ac_cv_prog_cc_c89=$ac_arg
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext conftest.beam
4151 test "x$ac_cv_prog_cc_c89" != "xno" && break
4152 done
4153 rm -f conftest.$ac_ext
4154 CC=$ac_save_CC
4155 fi
4156
4157 if test "x$ac_cv_prog_cc_c89" = xno
4158 then :
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160 printf "%s\n" "unsupported" >&6; }
4161 else $as_nop
4162 if test "x$ac_cv_prog_cc_c89" = x
4163 then :
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165 printf "%s\n" "none needed" >&6; }
4166 else $as_nop
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4168 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4169 CC="$CC $ac_cv_prog_cc_c89"
4170 fi
4171 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4172 ac_prog_cc_stdc=c89
4173 fi
4174 fi
4175
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4189 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4190 if test ${am_cv_prog_cc_c_o+y}
4191 then :
4192 printf %s "(cached) " >&6
4193 else $as_nop
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196
4197 int
4198 main (void)
4199 {
4200
4201 ;
4202 return 0;
4203 }
4204 _ACEOF
4205 # Make sure it works both with $CC and with simple cc.
4206 # Following AC_PROG_CC_C_O, we do the test twice because some
4207 # compilers refuse to overwrite an existing .o file with -o,
4208 # though they will create one.
4209 am_cv_prog_cc_c_o=yes
4210 for am_i in 1 2; do
4211 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4212 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } \
4216 && test -f conftest2.$ac_objext; then
4217 : OK
4218 else
4219 am_cv_prog_cc_c_o=no
4220 break
4221 fi
4222 done
4223 rm -f core conftest*
4224 unset am_i
4225 fi
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4227 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4228 if test "$am_cv_prog_cc_c_o" != yes; then
4229 # Losing compiler, so override with the script.
4230 # FIXME: It is wrong to rewrite CC.
4231 # But if we don't then we get into trouble of one sort or another.
4232 # A longer-term fix would be to have automake use am__CC in this case,
4233 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4234 CC="$am_aux_dir/compile $CC"
4235 fi
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242
4243 depcc="$CC" am_compiler_list=
4244
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246 printf %s "checking dependency style of $depcc... " >&6; }
4247 if test ${am_cv_CC_dependencies_compiler_type+y}
4248 then :
4249 printf %s "(cached) " >&6
4250 else $as_nop
4251 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4252 # We make a subdir and do the tests there. Otherwise we can end up
4253 # making bogus files that we don't know about and never remove. For
4254 # instance it was reported that on HP-UX the gcc test will end up
4255 # making a dummy file named 'D' -- because '-MD' means "put the output
4256 # in D".
4257 rm -rf conftest.dir
4258 mkdir conftest.dir
4259 # Copy depcomp to subdir because otherwise we won't find it if we're
4260 # using a relative directory.
4261 cp "$am_depcomp" conftest.dir
4262 cd conftest.dir
4263 # We will build objects and dependencies in a subdirectory because
4264 # it helps to detect inapplicable dependency modes. For instance
4265 # both Tru64's cc and ICC support -MD to output dependencies as a
4266 # side effect of compilation, but ICC will put the dependencies in
4267 # the current directory while Tru64 will put them in the object
4268 # directory.
4269 mkdir sub
4270
4271 am_cv_CC_dependencies_compiler_type=none
4272 if test "$am_compiler_list" = ""; then
4273 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4274 fi
4275 am__universal=false
4276 case " $depcc " in #(
4277 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4278 esac
4279
4280 for depmode in $am_compiler_list; do
4281 # Setup a source with many dependencies, because some compilers
4282 # like to wrap large dependency lists on column 80 (with \), and
4283 # we should not choose a depcomp mode which is confused by this.
4284 #
4285 # We need to recreate these files for each test, as the compiler may
4286 # overwrite some of them when testing with obscure command lines.
4287 # This happens at least with the AIX C compiler.
4288 : > sub/conftest.c
4289 for i in 1 2 3 4 5 6; do
4290 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4291 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4292 # Solaris 10 /bin/sh.
4293 echo '/* dummy */' > sub/conftst$i.h
4294 done
4295 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4296
4297 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4298 # mode. It turns out that the SunPro C++ compiler does not properly
4299 # handle '-M -o', and we need to detect this. Also, some Intel
4300 # versions had trouble with output in subdirs.
4301 am__obj=sub/conftest.${OBJEXT-o}
4302 am__minus_obj="-o $am__obj"
4303 case $depmode in
4304 gcc)
4305 # This depmode causes a compiler race in universal mode.
4306 test "$am__universal" = false || continue
4307 ;;
4308 nosideeffect)
4309 # After this tag, mechanisms are not by side-effect, so they'll
4310 # only be used when explicitly requested.
4311 if test "x$enable_dependency_tracking" = xyes; then
4312 continue
4313 else
4314 break
4315 fi
4316 ;;
4317 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4318 # This compiler won't grok '-c -o', but also, the minuso test has
4319 # not run yet. These depmodes are late enough in the game, and
4320 # so weak that their functioning should not be impacted.
4321 am__obj=conftest.${OBJEXT-o}
4322 am__minus_obj=
4323 ;;
4324 none) break ;;
4325 esac
4326 if depmode=$depmode \
4327 source=sub/conftest.c object=$am__obj \
4328 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4329 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4330 >/dev/null 2>conftest.err &&
4331 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4332 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4333 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4334 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4335 # icc doesn't choke on unknown options, it will just issue warnings
4336 # or remarks (even with -Werror). So we grep stderr for any message
4337 # that says an option was ignored or not supported.
4338 # When given -MP, icc 7.0 and 7.1 complain thusly:
4339 # icc: Command line warning: ignoring option '-M'; no argument required
4340 # The diagnosis changed in icc 8.0:
4341 # icc: Command line remark: option '-MP' not supported
4342 if (grep 'ignoring option' conftest.err ||
4343 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4344 am_cv_CC_dependencies_compiler_type=$depmode
4345 break
4346 fi
4347 fi
4348 done
4349
4350 cd ..
4351 rm -rf conftest.dir
4352 else
4353 am_cv_CC_dependencies_compiler_type=none
4354 fi
4355
4356 fi
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4358 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4359 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4360
4361 if
4362 test "x$enable_dependency_tracking" != xno \
4363 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4364 am__fastdepCC_TRUE=
4365 am__fastdepCC_FALSE='#'
4366 else
4367 am__fastdepCC_TRUE='#'
4368 am__fastdepCC_FALSE=
4369 fi
4370
4371
4372
4373
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4375 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4376 if test ${ac_cv_c_undeclared_builtin_options+y}
4377 then :
4378 printf %s "(cached) " >&6
4379 else $as_nop
4380 ac_save_CFLAGS=$CFLAGS
4381 ac_cv_c_undeclared_builtin_options='cannot detect'
4382 for ac_arg in '' -fno-builtin; do
4383 CFLAGS="$ac_save_CFLAGS $ac_arg"
4384 # This test program should *not* compile successfully.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387
4388 int
4389 main (void)
4390 {
4391 (void) strchr;
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"
4397 then :
4398
4399 else $as_nop
4400 # This test program should compile successfully.
4401 # No library function is consistently available on
4402 # freestanding implementations, so test against a dummy
4403 # declaration. Include always-available headers on the
4404 # off chance that they somehow elicit warnings.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <float.h>
4408 #include <limits.h>
4409 #include <stdarg.h>
4410 #include <stddef.h>
4411 extern void ac_decl (int, char *);
4412
4413 int
4414 main (void)
4415 {
4416 (void) ac_decl (0, (char *) 0);
4417 (void) ac_decl;
4418
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 if ac_fn_c_try_compile "$LINENO"
4424 then :
4425 if test x"$ac_arg" = x
4426 then :
4427 ac_cv_c_undeclared_builtin_options='none needed'
4428 else $as_nop
4429 ac_cv_c_undeclared_builtin_options=$ac_arg
4430 fi
4431 break
4432 fi
4433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4436 done
4437 CFLAGS=$ac_save_CFLAGS
4438
4439 fi
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4441 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4442 case $ac_cv_c_undeclared_builtin_options in #(
4443 'cannot detect') :
4444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4446 as_fn_error $? "cannot make $CC report undeclared builtins
4447 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4448 'none needed') :
4449 ac_c_undeclared_builtin_options='' ;; #(
4450 *) :
4451 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4452 esac
4453
4454 ac_header= ac_cache=
4455 for ac_item in $ac_header_c_list
4456 do
4457 if test $ac_cache; then
4458 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4459 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4460 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4461 fi
4462 ac_header= ac_cache=
4463 elif test $ac_header; then
4464 ac_cache=$ac_item
4465 else
4466 ac_header=$ac_item
4467 fi
4468 done
4469
4470
4471
4472
4473
4474
4475
4476
4477 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4478 then :
4479
4480 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4481
4482 fi
4483
4484
4485
4486
4487 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4488 if test "x$ac_cv_have_decl___clang__" = xyes
4489 then :
4490 CLANGCC="yes"
4491 else $as_nop
4492 CLANGCC="no"
4493 fi
4494 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4495 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4496 then :
4497 INTELCC="yes"
4498 else $as_nop
4499 INTELCC="no"
4500 fi
4501 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4502 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4503 then :
4504 SUNCC="yes"
4505 else $as_nop
4506 SUNCC="no"
4507 fi
4508
4509
4510
4511
4512
4513
4514
4515
4516 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4517 if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 printf %s "checking for $ac_word... " >&6; }
4522 if test ${ac_cv_path_PKG_CONFIG+y}
4523 then :
4524 printf %s "(cached) " >&6
4525 else $as_nop
4526 case $PKG_CONFIG in
4527 [\\/]* | ?:[\\/]*)
4528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4529 ;;
4530 *)
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534 IFS=$as_save_IFS
4535 case $as_dir in #(((
4536 '') as_dir=./ ;;
4537 */) ;;
4538 *) as_dir=$as_dir/ ;;
4539 esac
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4542 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 ;;
4551 esac
4552 fi
4553 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4554 if test -n "$PKG_CONFIG"; then
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4556 printf "%s\n" "$PKG_CONFIG" >&6; }
4557 else
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 printf "%s\n" "no" >&6; }
4560 fi
4561
4562
4563 fi
4564 if test -z "$ac_cv_path_PKG_CONFIG"; then
4565 ac_pt_PKG_CONFIG=$PKG_CONFIG
4566 # Extract the first word of "pkg-config", so it can be a program name with args.
4567 set dummy pkg-config; ac_word=$2
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 printf %s "checking for $ac_word... " >&6; }
4570 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4571 then :
4572 printf %s "(cached) " >&6
4573 else $as_nop
4574 case $ac_pt_PKG_CONFIG in
4575 [\\/]* | ?:[\\/]*)
4576 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4577 ;;
4578 *)
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 case $as_dir in #(((
4584 '') as_dir=./ ;;
4585 */) ;;
4586 *) as_dir=$as_dir/ ;;
4587 esac
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4590 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594 done
4595 done
4596 IFS=$as_save_IFS
4597
4598 ;;
4599 esac
4600 fi
4601 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4602 if test -n "$ac_pt_PKG_CONFIG"; then
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4604 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4605 else
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 printf "%s\n" "no" >&6; }
4608 fi
4609
4610 if test "x$ac_pt_PKG_CONFIG" = x; then
4611 PKG_CONFIG=""
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 PKG_CONFIG=$ac_pt_PKG_CONFIG
4620 fi
4621 else
4622 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4623 fi
4624
4625 fi
4626 if test -n "$PKG_CONFIG"; then
4627 _pkg_min_version=0.9.0
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4629 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4630 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4632 printf "%s\n" "yes" >&6; }
4633 else
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 printf "%s\n" "no" >&6; }
4636 PKG_CONFIG=""
4637 fi
4638 fi
4639
4640
4641 # Make sure we can run config.sub.
4642 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4643 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4644
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4646 printf %s "checking build system type... " >&6; }
4647 if test ${ac_cv_build+y}
4648 then :
4649 printf %s "(cached) " >&6
4650 else $as_nop
4651 ac_build_alias=$build_alias
4652 test "x$ac_build_alias" = x &&
4653 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4654 test "x$ac_build_alias" = x &&
4655 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4656 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4657 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4658
4659 fi
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4661 printf "%s\n" "$ac_cv_build" >&6; }
4662 case $ac_cv_build in
4663 *-*-*) ;;
4664 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4665 esac
4666 build=$ac_cv_build
4667 ac_save_IFS=$IFS; IFS='-'
4668 set x $ac_cv_build
4669 shift
4670 build_cpu=$1
4671 build_vendor=$2
4672 shift; shift
4673 # Remember, the first character of IFS is used to create $*,
4674 # except with old shells:
4675 build_os=$*
4676 IFS=$ac_save_IFS
4677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4678
4679
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4681 printf %s "checking host system type... " >&6; }
4682 if test ${ac_cv_host+y}
4683 then :
4684 printf %s "(cached) " >&6
4685 else $as_nop
4686 if test "x$host_alias" = x; then
4687 ac_cv_host=$ac_cv_build
4688 else
4689 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4690 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4691 fi
4692
4693 fi
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4695 printf "%s\n" "$ac_cv_host" >&6; }
4696 case $ac_cv_host in
4697 *-*-*) ;;
4698 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4699 esac
4700 host=$ac_cv_host
4701 ac_save_IFS=$IFS; IFS='-'
4702 set x $ac_cv_host
4703 shift
4704 host_cpu=$1
4705 host_vendor=$2
4706 shift; shift
4707 # Remember, the first character of IFS is used to create $*,
4708 # except with old shells:
4709 host_os=$*
4710 IFS=$ac_save_IFS
4711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4712
4713
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4715 printf %s "checking for a sed that does not truncate output... " >&6; }
4716 if test ${ac_cv_path_SED+y}
4717 then :
4718 printf %s "(cached) " >&6
4719 else $as_nop
4720 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4721 for ac_i in 1 2 3 4 5 6 7; do
4722 ac_script="$ac_script$as_nl$ac_script"
4723 done
4724 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4725 { ac_script=; unset ac_script;}
4726 if test -z "$SED"; then
4727 ac_path_SED_found=false
4728 # Loop through the user's path and test for each of PROGNAME-LIST
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732 IFS=$as_save_IFS
4733 case $as_dir in #(((
4734 '') as_dir=./ ;;
4735 */) ;;
4736 *) as_dir=$as_dir/ ;;
4737 esac
4738 for ac_prog in sed gsed
4739 do
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4742 as_fn_executable_p "$ac_path_SED" || continue
4743 # Check for GNU ac_path_SED and select it if it is found.
4744 # Check for GNU $ac_path_SED
4745 case `"$ac_path_SED" --version 2>&1` in
4746 *GNU*)
4747 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4748 *)
4749 ac_count=0
4750 printf %s 0123456789 >"conftest.in"
4751 while :
4752 do
4753 cat "conftest.in" "conftest.in" >"conftest.tmp"
4754 mv "conftest.tmp" "conftest.in"
4755 cp "conftest.in" "conftest.nl"
4756 printf "%s\n" '' >> "conftest.nl"
4757 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759 as_fn_arith $ac_count + 1 && ac_count=$as_val
4760 if test $ac_count -gt ${ac_path_SED_max-0}; then
4761 # Best one so far, save it but keep looking for a better one
4762 ac_cv_path_SED="$ac_path_SED"
4763 ac_path_SED_max=$ac_count
4764 fi
4765 # 10*(2^10) chars as input seems more than enough
4766 test $ac_count -gt 10 && break
4767 done
4768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769 esac
4770
4771 $ac_path_SED_found && break 3
4772 done
4773 done
4774 done
4775 IFS=$as_save_IFS
4776 if test -z "$ac_cv_path_SED"; then
4777 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4778 fi
4779 else
4780 ac_cv_path_SED=$SED
4781 fi
4782
4783 fi
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4785 printf "%s\n" "$ac_cv_path_SED" >&6; }
4786 SED="$ac_cv_path_SED"
4787 rm -f conftest.sed
4788
4789
4790
4791
4792
4793
4794 # Check whether --enable-selective-werror was given.
4795 if test ${enable_selective_werror+y}
4796 then :
4797 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4798 else $as_nop
4799 SELECTIVE_WERROR=yes
4800 fi
4801
4802
4803
4804
4805
4806 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4807 if test "x$SUNCC" = "xyes"; then
4808 BASE_CFLAGS="-v"
4809 else
4810 BASE_CFLAGS=""
4811 fi
4812
4813 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827 xorg_testset_save_CFLAGS="$CFLAGS"
4828
4829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4833 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4834 then :
4835 printf %s "(cached) " >&6
4836 else $as_nop
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 int i;
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"
4842 then :
4843 xorg_cv_cc_flag_unknown_warning_option=yes
4844 else $as_nop
4845 xorg_cv_cc_flag_unknown_warning_option=no
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4848 fi
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4852 CFLAGS="$xorg_testset_save_CFLAGS"
4853 fi
4854
4855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4858 fi
4859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4863 then :
4864 printf %s "(cached) " >&6
4865 else $as_nop
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 int i;
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"
4871 then :
4872 xorg_cv_cc_flag_unused_command_line_argument=yes
4873 else $as_nop
4874 xorg_cv_cc_flag_unused_command_line_argument=no
4875 fi
4876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4877 fi
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4881 CFLAGS="$xorg_testset_save_CFLAGS"
4882 fi
4883
4884 found="no"
4885
4886 if test $found = "no" ; then
4887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889 fi
4890
4891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4893 fi
4894
4895 CFLAGS="$CFLAGS -Wall"
4896
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4898 printf %s "checking if $CC supports -Wall... " >&6; }
4899 cacheid=xorg_cv_cc_flag__Wall
4900 if eval test \${$cacheid+y}
4901 then :
4902 printf %s "(cached) " >&6
4903 else $as_nop
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906 int i;
4907 int
4908 main (void)
4909 {
4910
4911 ;
4912 return 0;
4913 }
4914 _ACEOF
4915 if ac_fn_c_try_link "$LINENO"
4916 then :
4917 eval $cacheid=yes
4918 else $as_nop
4919 eval $cacheid=no
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4922 conftest$ac_exeext conftest.$ac_ext
4923 fi
4924
4925
4926 CFLAGS="$xorg_testset_save_CFLAGS"
4927
4928 eval supported=\$$cacheid
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4930 printf "%s\n" "$supported" >&6; }
4931 if test "$supported" = "yes" ; then
4932 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4933 found="yes"
4934 fi
4935 fi
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951 xorg_testset_save_CFLAGS="$CFLAGS"
4952
4953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4957 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4958 then :
4959 printf %s "(cached) " >&6
4960 else $as_nop
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 int i;
4964 _ACEOF
4965 if ac_fn_c_try_compile "$LINENO"
4966 then :
4967 xorg_cv_cc_flag_unknown_warning_option=yes
4968 else $as_nop
4969 xorg_cv_cc_flag_unknown_warning_option=no
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4972 fi
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4974 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4976 CFLAGS="$xorg_testset_save_CFLAGS"
4977 fi
4978
4979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4982 fi
4983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4985 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4986 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4987 then :
4988 printf %s "(cached) " >&6
4989 else $as_nop
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 int i;
4993 _ACEOF
4994 if ac_fn_c_try_compile "$LINENO"
4995 then :
4996 xorg_cv_cc_flag_unused_command_line_argument=yes
4997 else $as_nop
4998 xorg_cv_cc_flag_unused_command_line_argument=no
4999 fi
5000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5001 fi
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5005 CFLAGS="$xorg_testset_save_CFLAGS"
5006 fi
5007
5008 found="no"
5009
5010 if test $found = "no" ; then
5011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013 fi
5014
5015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017 fi
5018
5019 CFLAGS="$CFLAGS -Wpointer-arith"
5020
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5022 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5023 cacheid=xorg_cv_cc_flag__Wpointer_arith
5024 if eval test \${$cacheid+y}
5025 then :
5026 printf %s "(cached) " >&6
5027 else $as_nop
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 int i;
5031 int
5032 main (void)
5033 {
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 if ac_fn_c_try_link "$LINENO"
5040 then :
5041 eval $cacheid=yes
5042 else $as_nop
5043 eval $cacheid=no
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5046 conftest$ac_exeext conftest.$ac_ext
5047 fi
5048
5049
5050 CFLAGS="$xorg_testset_save_CFLAGS"
5051
5052 eval supported=\$$cacheid
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5054 printf "%s\n" "$supported" >&6; }
5055 if test "$supported" = "yes" ; then
5056 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5057 found="yes"
5058 fi
5059 fi
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075 xorg_testset_save_CFLAGS="$CFLAGS"
5076
5077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5081 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else $as_nop
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 int i;
5088 _ACEOF
5089 if ac_fn_c_try_compile "$LINENO"
5090 then :
5091 xorg_cv_cc_flag_unknown_warning_option=yes
5092 else $as_nop
5093 xorg_cv_cc_flag_unknown_warning_option=no
5094 fi
5095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5096 fi
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5100 CFLAGS="$xorg_testset_save_CFLAGS"
5101 fi
5102
5103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106 fi
5107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5111 then :
5112 printf %s "(cached) " >&6
5113 else $as_nop
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 int i;
5117 _ACEOF
5118 if ac_fn_c_try_compile "$LINENO"
5119 then :
5120 xorg_cv_cc_flag_unused_command_line_argument=yes
5121 else $as_nop
5122 xorg_cv_cc_flag_unused_command_line_argument=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5125 fi
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5129 CFLAGS="$xorg_testset_save_CFLAGS"
5130 fi
5131
5132 found="no"
5133
5134 if test $found = "no" ; then
5135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137 fi
5138
5139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141 fi
5142
5143 CFLAGS="$CFLAGS -Wmissing-declarations"
5144
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5146 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5147 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5148 if eval test \${$cacheid+y}
5149 then :
5150 printf %s "(cached) " >&6
5151 else $as_nop
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 int i;
5155 int
5156 main (void)
5157 {
5158
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 if ac_fn_c_try_link "$LINENO"
5164 then :
5165 eval $cacheid=yes
5166 else $as_nop
5167 eval $cacheid=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5170 conftest$ac_exeext conftest.$ac_ext
5171 fi
5172
5173
5174 CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176 eval supported=\$$cacheid
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178 printf "%s\n" "$supported" >&6; }
5179 if test "$supported" = "yes" ; then
5180 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5181 found="yes"
5182 fi
5183 fi
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199 xorg_testset_save_CFLAGS="$CFLAGS"
5200
5201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5204 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5205 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5206 then :
5207 printf %s "(cached) " >&6
5208 else $as_nop
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 int i;
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"
5214 then :
5215 xorg_cv_cc_flag_unknown_warning_option=yes
5216 else $as_nop
5217 xorg_cv_cc_flag_unknown_warning_option=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5220 fi
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5222 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225 fi
5226
5227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230 fi
5231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5233 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5234 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5235 then :
5236 printf %s "(cached) " >&6
5237 else $as_nop
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240 int i;
5241 _ACEOF
5242 if ac_fn_c_try_compile "$LINENO"
5243 then :
5244 xorg_cv_cc_flag_unused_command_line_argument=yes
5245 else $as_nop
5246 xorg_cv_cc_flag_unused_command_line_argument=no
5247 fi
5248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5249 fi
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5251 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5253 CFLAGS="$xorg_testset_save_CFLAGS"
5254 fi
5255
5256 found="no"
5257
5258 if test $found = "no" ; then
5259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261 fi
5262
5263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5265 fi
5266
5267 CFLAGS="$CFLAGS -Wformat=2"
5268
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5270 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5271 cacheid=xorg_cv_cc_flag__Wformat_2
5272 if eval test \${$cacheid+y}
5273 then :
5274 printf %s "(cached) " >&6
5275 else $as_nop
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 int i;
5279 int
5280 main (void)
5281 {
5282
5283 ;
5284 return 0;
5285 }
5286 _ACEOF
5287 if ac_fn_c_try_link "$LINENO"
5288 then :
5289 eval $cacheid=yes
5290 else $as_nop
5291 eval $cacheid=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5294 conftest$ac_exeext conftest.$ac_ext
5295 fi
5296
5297
5298 CFLAGS="$xorg_testset_save_CFLAGS"
5299
5300 eval supported=\$$cacheid
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5302 printf "%s\n" "$supported" >&6; }
5303 if test "$supported" = "yes" ; then
5304 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5305 found="yes"
5306 fi
5307 fi
5308
5309 if test $found = "no" ; then
5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312 fi
5313
5314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316 fi
5317
5318 CFLAGS="$CFLAGS -Wformat"
5319
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5321 printf %s "checking if $CC supports -Wformat... " >&6; }
5322 cacheid=xorg_cv_cc_flag__Wformat
5323 if eval test \${$cacheid+y}
5324 then :
5325 printf %s "(cached) " >&6
5326 else $as_nop
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 int i;
5330 int
5331 main (void)
5332 {
5333
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_link "$LINENO"
5339 then :
5340 eval $cacheid=yes
5341 else $as_nop
5342 eval $cacheid=no
5343 fi
5344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5345 conftest$ac_exeext conftest.$ac_ext
5346 fi
5347
5348
5349 CFLAGS="$xorg_testset_save_CFLAGS"
5350
5351 eval supported=\$$cacheid
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5353 printf "%s\n" "$supported" >&6; }
5354 if test "$supported" = "yes" ; then
5355 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5356 found="yes"
5357 fi
5358 fi
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 xorg_testset_save_CFLAGS="$CFLAGS"
5377
5378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5381 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5382 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else $as_nop
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 int i;
5389 _ACEOF
5390 if ac_fn_c_try_compile "$LINENO"
5391 then :
5392 xorg_cv_cc_flag_unknown_warning_option=yes
5393 else $as_nop
5394 xorg_cv_cc_flag_unknown_warning_option=no
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401 CFLAGS="$xorg_testset_save_CFLAGS"
5402 fi
5403
5404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407 fi
5408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5412 then :
5413 printf %s "(cached) " >&6
5414 else $as_nop
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 int i;
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"
5420 then :
5421 xorg_cv_cc_flag_unused_command_line_argument=yes
5422 else $as_nop
5423 xorg_cv_cc_flag_unused_command_line_argument=no
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5426 fi
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5428 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5430 CFLAGS="$xorg_testset_save_CFLAGS"
5431 fi
5432
5433 found="no"
5434
5435 if test $found = "no" ; then
5436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438 fi
5439
5440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5442 fi
5443
5444 CFLAGS="$CFLAGS -Wstrict-prototypes"
5445
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5447 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5448 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5449 if eval test \${$cacheid+y}
5450 then :
5451 printf %s "(cached) " >&6
5452 else $as_nop
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 int i;
5456 int
5457 main (void)
5458 {
5459
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_link "$LINENO"
5465 then :
5466 eval $cacheid=yes
5467 else $as_nop
5468 eval $cacheid=no
5469 fi
5470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5471 conftest$ac_exeext conftest.$ac_ext
5472 fi
5473
5474
5475 CFLAGS="$xorg_testset_save_CFLAGS"
5476
5477 eval supported=\$$cacheid
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5479 printf "%s\n" "$supported" >&6; }
5480 if test "$supported" = "yes" ; then
5481 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5482 found="yes"
5483 fi
5484 fi
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500 xorg_testset_save_CFLAGS="$CFLAGS"
5501
5502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5506 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5507 then :
5508 printf %s "(cached) " >&6
5509 else $as_nop
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 int i;
5513 _ACEOF
5514 if ac_fn_c_try_compile "$LINENO"
5515 then :
5516 xorg_cv_cc_flag_unknown_warning_option=yes
5517 else $as_nop
5518 xorg_cv_cc_flag_unknown_warning_option=no
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5521 fi
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5523 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5525 CFLAGS="$xorg_testset_save_CFLAGS"
5526 fi
5527
5528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531 fi
5532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5536 then :
5537 printf %s "(cached) " >&6
5538 else $as_nop
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 int i;
5542 _ACEOF
5543 if ac_fn_c_try_compile "$LINENO"
5544 then :
5545 xorg_cv_cc_flag_unused_command_line_argument=yes
5546 else $as_nop
5547 xorg_cv_cc_flag_unused_command_line_argument=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5550 fi
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5552 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5554 CFLAGS="$xorg_testset_save_CFLAGS"
5555 fi
5556
5557 found="no"
5558
5559 if test $found = "no" ; then
5560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562 fi
5563
5564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566 fi
5567
5568 CFLAGS="$CFLAGS -Wmissing-prototypes"
5569
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5571 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5572 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5573 if eval test \${$cacheid+y}
5574 then :
5575 printf %s "(cached) " >&6
5576 else $as_nop
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 int i;
5580 int
5581 main (void)
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 if ac_fn_c_try_link "$LINENO"
5589 then :
5590 eval $cacheid=yes
5591 else $as_nop
5592 eval $cacheid=no
5593 fi
5594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5595 conftest$ac_exeext conftest.$ac_ext
5596 fi
5597
5598
5599 CFLAGS="$xorg_testset_save_CFLAGS"
5600
5601 eval supported=\$$cacheid
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5603 printf "%s\n" "$supported" >&6; }
5604 if test "$supported" = "yes" ; then
5605 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5606 found="yes"
5607 fi
5608 fi
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624 xorg_testset_save_CFLAGS="$CFLAGS"
5625
5626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5630 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5631 then :
5632 printf %s "(cached) " >&6
5633 else $as_nop
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 int i;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"
5639 then :
5640 xorg_cv_cc_flag_unknown_warning_option=yes
5641 else $as_nop
5642 xorg_cv_cc_flag_unknown_warning_option=no
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5645 fi
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5649 CFLAGS="$xorg_testset_save_CFLAGS"
5650 fi
5651
5652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655 fi
5656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5660 then :
5661 printf %s "(cached) " >&6
5662 else $as_nop
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 int i;
5666 _ACEOF
5667 if ac_fn_c_try_compile "$LINENO"
5668 then :
5669 xorg_cv_cc_flag_unused_command_line_argument=yes
5670 else $as_nop
5671 xorg_cv_cc_flag_unused_command_line_argument=no
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5674 fi
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5676 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5678 CFLAGS="$xorg_testset_save_CFLAGS"
5679 fi
5680
5681 found="no"
5682
5683 if test $found = "no" ; then
5684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686 fi
5687
5688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5690 fi
5691
5692 CFLAGS="$CFLAGS -Wnested-externs"
5693
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5695 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5696 cacheid=xorg_cv_cc_flag__Wnested_externs
5697 if eval test \${$cacheid+y}
5698 then :
5699 printf %s "(cached) " >&6
5700 else $as_nop
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 int i;
5704 int
5705 main (void)
5706 {
5707
5708 ;
5709 return 0;
5710 }
5711 _ACEOF
5712 if ac_fn_c_try_link "$LINENO"
5713 then :
5714 eval $cacheid=yes
5715 else $as_nop
5716 eval $cacheid=no
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5719 conftest$ac_exeext conftest.$ac_ext
5720 fi
5721
5722
5723 CFLAGS="$xorg_testset_save_CFLAGS"
5724
5725 eval supported=\$$cacheid
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5727 printf "%s\n" "$supported" >&6; }
5728 if test "$supported" = "yes" ; then
5729 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5730 found="yes"
5731 fi
5732 fi
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748 xorg_testset_save_CFLAGS="$CFLAGS"
5749
5750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5755 then :
5756 printf %s "(cached) " >&6
5757 else $as_nop
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 int i;
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"
5763 then :
5764 xorg_cv_cc_flag_unknown_warning_option=yes
5765 else $as_nop
5766 xorg_cv_cc_flag_unknown_warning_option=no
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5769 fi
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773 CFLAGS="$xorg_testset_save_CFLAGS"
5774 fi
5775
5776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779 fi
5780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5784 then :
5785 printf %s "(cached) " >&6
5786 else $as_nop
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 int i;
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"
5792 then :
5793 xorg_cv_cc_flag_unused_command_line_argument=yes
5794 else $as_nop
5795 xorg_cv_cc_flag_unused_command_line_argument=no
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5798 fi
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802 CFLAGS="$xorg_testset_save_CFLAGS"
5803 fi
5804
5805 found="no"
5806
5807 if test $found = "no" ; then
5808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810 fi
5811
5812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814 fi
5815
5816 CFLAGS="$CFLAGS -Wbad-function-cast"
5817
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5819 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5820 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5821 if eval test \${$cacheid+y}
5822 then :
5823 printf %s "(cached) " >&6
5824 else $as_nop
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 int i;
5828 int
5829 main (void)
5830 {
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 if ac_fn_c_try_link "$LINENO"
5837 then :
5838 eval $cacheid=yes
5839 else $as_nop
5840 eval $cacheid=no
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5843 conftest$ac_exeext conftest.$ac_ext
5844 fi
5845
5846
5847 CFLAGS="$xorg_testset_save_CFLAGS"
5848
5849 eval supported=\$$cacheid
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5851 printf "%s\n" "$supported" >&6; }
5852 if test "$supported" = "yes" ; then
5853 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5854 found="yes"
5855 fi
5856 fi
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 xorg_testset_save_CFLAGS="$CFLAGS"
5873
5874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5877 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5878 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5879 then :
5880 printf %s "(cached) " >&6
5881 else $as_nop
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 int i;
5885 _ACEOF
5886 if ac_fn_c_try_compile "$LINENO"
5887 then :
5888 xorg_cv_cc_flag_unknown_warning_option=yes
5889 else $as_nop
5890 xorg_cv_cc_flag_unknown_warning_option=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 $as_nop
5911 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 $as_nop
5919 xorg_cv_cc_flag_unused_command_line_argument=no
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5922 fi
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5924 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5926 CFLAGS="$xorg_testset_save_CFLAGS"
5927 fi
5928
5929 found="no"
5930
5931 if test $found = "no" ; then
5932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934 fi
5935
5936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938 fi
5939
5940 CFLAGS="$CFLAGS -Wold-style-definition"
5941
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5943 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5944 cacheid=xorg_cv_cc_flag__Wold_style_definition
5945 if eval test \${$cacheid+y}
5946 then :
5947 printf %s "(cached) " >&6
5948 else $as_nop
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 int i;
5952 int
5953 main (void)
5954 {
5955
5956 ;
5957 return 0;
5958 }
5959 _ACEOF
5960 if ac_fn_c_try_link "$LINENO"
5961 then :
5962 eval $cacheid=yes
5963 else $as_nop
5964 eval $cacheid=no
5965 fi
5966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5967 conftest$ac_exeext conftest.$ac_ext
5968 fi
5969
5970
5971 CFLAGS="$xorg_testset_save_CFLAGS"
5972
5973 eval supported=\$$cacheid
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5975 printf "%s\n" "$supported" >&6; }
5976 if test "$supported" = "yes" ; then
5977 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5978 found="yes"
5979 fi
5980 fi
5981
5982 if test $found = "no" ; then
5983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985 fi
5986
5987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5989 fi
5990
5991 CFLAGS="$CFLAGS -fd"
5992
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5994 printf %s "checking if $CC supports -fd... " >&6; }
5995 cacheid=xorg_cv_cc_flag__fd
5996 if eval test \${$cacheid+y}
5997 then :
5998 printf %s "(cached) " >&6
5999 else $as_nop
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 int i;
6003 int
6004 main (void)
6005 {
6006
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 if ac_fn_c_try_link "$LINENO"
6012 then :
6013 eval $cacheid=yes
6014 else $as_nop
6015 eval $cacheid=no
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6018 conftest$ac_exeext conftest.$ac_ext
6019 fi
6020
6021
6022 CFLAGS="$xorg_testset_save_CFLAGS"
6023
6024 eval supported=\$$cacheid
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6026 printf "%s\n" "$supported" >&6; }
6027 if test "$supported" = "yes" ; then
6028 BASE_CFLAGS="$BASE_CFLAGS -fd"
6029 found="yes"
6030 fi
6031 fi
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047 xorg_testset_save_CFLAGS="$CFLAGS"
6048
6049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6052 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6053 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6054 then :
6055 printf %s "(cached) " >&6
6056 else $as_nop
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 int i;
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"
6062 then :
6063 xorg_cv_cc_flag_unknown_warning_option=yes
6064 else $as_nop
6065 xorg_cv_cc_flag_unknown_warning_option=no
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6068 fi
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6070 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6072 CFLAGS="$xorg_testset_save_CFLAGS"
6073 fi
6074
6075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6078 fi
6079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6081 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6082 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6083 then :
6084 printf %s "(cached) " >&6
6085 else $as_nop
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 int i;
6089 _ACEOF
6090 if ac_fn_c_try_compile "$LINENO"
6091 then :
6092 xorg_cv_cc_flag_unused_command_line_argument=yes
6093 else $as_nop
6094 xorg_cv_cc_flag_unused_command_line_argument=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6097 fi
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6099 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6101 CFLAGS="$xorg_testset_save_CFLAGS"
6102 fi
6103
6104 found="no"
6105
6106 if test $found = "no" ; then
6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109 fi
6110
6111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113 fi
6114
6115 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6116
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6118 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6119 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6120 if eval test \${$cacheid+y}
6121 then :
6122 printf %s "(cached) " >&6
6123 else $as_nop
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 int i;
6127 int
6128 main (void)
6129 {
6130
6131 ;
6132 return 0;
6133 }
6134 _ACEOF
6135 if ac_fn_c_try_link "$LINENO"
6136 then :
6137 eval $cacheid=yes
6138 else $as_nop
6139 eval $cacheid=no
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6142 conftest$ac_exeext conftest.$ac_ext
6143 fi
6144
6145
6146 CFLAGS="$xorg_testset_save_CFLAGS"
6147
6148 eval supported=\$$cacheid
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6150 printf "%s\n" "$supported" >&6; }
6151 if test "$supported" = "yes" ; then
6152 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6153 found="yes"
6154 fi
6155 fi
6156
6157
6158
6159
6160
6161 # This chunk adds additional warnings that could catch undesired effects.
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 xorg_testset_save_CFLAGS="$CFLAGS"
6176
6177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6180 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6181 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6182 then :
6183 printf %s "(cached) " >&6
6184 else $as_nop
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 int i;
6188 _ACEOF
6189 if ac_fn_c_try_compile "$LINENO"
6190 then :
6191 xorg_cv_cc_flag_unknown_warning_option=yes
6192 else $as_nop
6193 xorg_cv_cc_flag_unknown_warning_option=no
6194 fi
6195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6196 fi
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6198 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6200 CFLAGS="$xorg_testset_save_CFLAGS"
6201 fi
6202
6203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206 fi
6207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6209 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6210 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6211 then :
6212 printf %s "(cached) " >&6
6213 else $as_nop
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 int i;
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"
6219 then :
6220 xorg_cv_cc_flag_unused_command_line_argument=yes
6221 else $as_nop
6222 xorg_cv_cc_flag_unused_command_line_argument=no
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6225 fi
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6227 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6229 CFLAGS="$xorg_testset_save_CFLAGS"
6230 fi
6231
6232 found="no"
6233
6234 if test $found = "no" ; then
6235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237 fi
6238
6239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6241 fi
6242
6243 CFLAGS="$CFLAGS -Wunused"
6244
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6246 printf %s "checking if $CC supports -Wunused... " >&6; }
6247 cacheid=xorg_cv_cc_flag__Wunused
6248 if eval test \${$cacheid+y}
6249 then :
6250 printf %s "(cached) " >&6
6251 else $as_nop
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 int i;
6255 int
6256 main (void)
6257 {
6258
6259 ;
6260 return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_link "$LINENO"
6264 then :
6265 eval $cacheid=yes
6266 else $as_nop
6267 eval $cacheid=no
6268 fi
6269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6270 conftest$ac_exeext conftest.$ac_ext
6271 fi
6272
6273
6274 CFLAGS="$xorg_testset_save_CFLAGS"
6275
6276 eval supported=\$$cacheid
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6278 printf "%s\n" "$supported" >&6; }
6279 if test "$supported" = "yes" ; then
6280 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6281 found="yes"
6282 fi
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 xorg_testset_save_CFLAGS="$CFLAGS"
6300
6301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6304 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6305 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6306 then :
6307 printf %s "(cached) " >&6
6308 else $as_nop
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 int i;
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"
6314 then :
6315 xorg_cv_cc_flag_unknown_warning_option=yes
6316 else $as_nop
6317 xorg_cv_cc_flag_unknown_warning_option=no
6318 fi
6319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6320 fi
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6322 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6324 CFLAGS="$xorg_testset_save_CFLAGS"
6325 fi
6326
6327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330 fi
6331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6333 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6334 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6335 then :
6336 printf %s "(cached) " >&6
6337 else $as_nop
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 int i;
6341 _ACEOF
6342 if ac_fn_c_try_compile "$LINENO"
6343 then :
6344 xorg_cv_cc_flag_unused_command_line_argument=yes
6345 else $as_nop
6346 xorg_cv_cc_flag_unused_command_line_argument=no
6347 fi
6348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6349 fi
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6351 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6353 CFLAGS="$xorg_testset_save_CFLAGS"
6354 fi
6355
6356 found="no"
6357
6358 if test $found = "no" ; then
6359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361 fi
6362
6363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6365 fi
6366
6367 CFLAGS="$CFLAGS -Wuninitialized"
6368
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6370 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6371 cacheid=xorg_cv_cc_flag__Wuninitialized
6372 if eval test \${$cacheid+y}
6373 then :
6374 printf %s "(cached) " >&6
6375 else $as_nop
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378 int i;
6379 int
6380 main (void)
6381 {
6382
6383 ;
6384 return 0;
6385 }
6386 _ACEOF
6387 if ac_fn_c_try_link "$LINENO"
6388 then :
6389 eval $cacheid=yes
6390 else $as_nop
6391 eval $cacheid=no
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6394 conftest$ac_exeext conftest.$ac_ext
6395 fi
6396
6397
6398 CFLAGS="$xorg_testset_save_CFLAGS"
6399
6400 eval supported=\$$cacheid
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6402 printf "%s\n" "$supported" >&6; }
6403 if test "$supported" = "yes" ; then
6404 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6405 found="yes"
6406 fi
6407 fi
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423 xorg_testset_save_CFLAGS="$CFLAGS"
6424
6425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6428 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6429 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6430 then :
6431 printf %s "(cached) " >&6
6432 else $as_nop
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 int i;
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"
6438 then :
6439 xorg_cv_cc_flag_unknown_warning_option=yes
6440 else $as_nop
6441 xorg_cv_cc_flag_unknown_warning_option=no
6442 fi
6443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6444 fi
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6446 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6448 CFLAGS="$xorg_testset_save_CFLAGS"
6449 fi
6450
6451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454 fi
6455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6457 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6458 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6459 then :
6460 printf %s "(cached) " >&6
6461 else $as_nop
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"
6467 then :
6468 xorg_cv_cc_flag_unused_command_line_argument=yes
6469 else $as_nop
6470 xorg_cv_cc_flag_unused_command_line_argument=no
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6473 fi
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6475 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6477 CFLAGS="$xorg_testset_save_CFLAGS"
6478 fi
6479
6480 found="no"
6481
6482 if test $found = "no" ; then
6483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485 fi
6486
6487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489 fi
6490
6491 CFLAGS="$CFLAGS -Wshadow"
6492
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6494 printf %s "checking if $CC supports -Wshadow... " >&6; }
6495 cacheid=xorg_cv_cc_flag__Wshadow
6496 if eval test \${$cacheid+y}
6497 then :
6498 printf %s "(cached) " >&6
6499 else $as_nop
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 int i;
6503 int
6504 main (void)
6505 {
6506
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_link "$LINENO"
6512 then :
6513 eval $cacheid=yes
6514 else $as_nop
6515 eval $cacheid=no
6516 fi
6517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6518 conftest$ac_exeext conftest.$ac_ext
6519 fi
6520
6521
6522 CFLAGS="$xorg_testset_save_CFLAGS"
6523
6524 eval supported=\$$cacheid
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6526 printf "%s\n" "$supported" >&6; }
6527 if test "$supported" = "yes" ; then
6528 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6529 found="yes"
6530 fi
6531 fi
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 xorg_testset_save_CFLAGS="$CFLAGS"
6548
6549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6552 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6553 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6554 then :
6555 printf %s "(cached) " >&6
6556 else $as_nop
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 int i;
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"
6562 then :
6563 xorg_cv_cc_flag_unknown_warning_option=yes
6564 else $as_nop
6565 xorg_cv_cc_flag_unknown_warning_option=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6568 fi
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6570 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6572 CFLAGS="$xorg_testset_save_CFLAGS"
6573 fi
6574
6575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578 fi
6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6581 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6582 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6583 then :
6584 printf %s "(cached) " >&6
6585 else $as_nop
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588 int i;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"
6591 then :
6592 xorg_cv_cc_flag_unused_command_line_argument=yes
6593 else $as_nop
6594 xorg_cv_cc_flag_unused_command_line_argument=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6597 fi
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6599 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6602 fi
6603
6604 found="no"
6605
6606 if test $found = "no" ; then
6607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609 fi
6610
6611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613 fi
6614
6615 CFLAGS="$CFLAGS -Wmissing-noreturn"
6616
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6618 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6619 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6620 if eval test \${$cacheid+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else $as_nop
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 int i;
6627 int
6628 main (void)
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_c_try_link "$LINENO"
6636 then :
6637 eval $cacheid=yes
6638 else $as_nop
6639 eval $cacheid=no
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6642 conftest$ac_exeext conftest.$ac_ext
6643 fi
6644
6645
6646 CFLAGS="$xorg_testset_save_CFLAGS"
6647
6648 eval supported=\$$cacheid
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6650 printf "%s\n" "$supported" >&6; }
6651 if test "$supported" = "yes" ; then
6652 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6653 found="yes"
6654 fi
6655 fi
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 xorg_testset_save_CFLAGS="$CFLAGS"
6672
6673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6676 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6677 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6678 then :
6679 printf %s "(cached) " >&6
6680 else $as_nop
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"
6686 then :
6687 xorg_cv_cc_flag_unknown_warning_option=yes
6688 else $as_nop
6689 xorg_cv_cc_flag_unknown_warning_option=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6692 fi
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6694 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6696 CFLAGS="$xorg_testset_save_CFLAGS"
6697 fi
6698
6699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702 fi
6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6707 then :
6708 printf %s "(cached) " >&6
6709 else $as_nop
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 int i;
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"
6715 then :
6716 xorg_cv_cc_flag_unused_command_line_argument=yes
6717 else $as_nop
6718 xorg_cv_cc_flag_unused_command_line_argument=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6721 fi
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725 CFLAGS="$xorg_testset_save_CFLAGS"
6726 fi
6727
6728 found="no"
6729
6730 if test $found = "no" ; then
6731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 fi
6734
6735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737 fi
6738
6739 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6740
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6742 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6743 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6744 if eval test \${$cacheid+y}
6745 then :
6746 printf %s "(cached) " >&6
6747 else $as_nop
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 int i;
6751 int
6752 main (void)
6753 {
6754
6755 ;
6756 return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_link "$LINENO"
6760 then :
6761 eval $cacheid=yes
6762 else $as_nop
6763 eval $cacheid=no
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6766 conftest$ac_exeext conftest.$ac_ext
6767 fi
6768
6769
6770 CFLAGS="$xorg_testset_save_CFLAGS"
6771
6772 eval supported=\$$cacheid
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6774 printf "%s\n" "$supported" >&6; }
6775 if test "$supported" = "yes" ; then
6776 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6777 found="yes"
6778 fi
6779 fi
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795 xorg_testset_save_CFLAGS="$CFLAGS"
6796
6797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6800 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6801 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else $as_nop
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 int i;
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"
6810 then :
6811 xorg_cv_cc_flag_unknown_warning_option=yes
6812 else $as_nop
6813 xorg_cv_cc_flag_unknown_warning_option=no
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6816 fi
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6820 CFLAGS="$xorg_testset_save_CFLAGS"
6821 fi
6822
6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826 fi
6827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6831 then :
6832 printf %s "(cached) " >&6
6833 else $as_nop
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 int i;
6837 _ACEOF
6838 if ac_fn_c_try_compile "$LINENO"
6839 then :
6840 xorg_cv_cc_flag_unused_command_line_argument=yes
6841 else $as_nop
6842 xorg_cv_cc_flag_unused_command_line_argument=no
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6845 fi
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849 CFLAGS="$xorg_testset_save_CFLAGS"
6850 fi
6851
6852 found="no"
6853
6854 if test $found = "no" ; then
6855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857 fi
6858
6859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861 fi
6862
6863 CFLAGS="$CFLAGS -Wredundant-decls"
6864
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6866 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6867 cacheid=xorg_cv_cc_flag__Wredundant_decls
6868 if eval test \${$cacheid+y}
6869 then :
6870 printf %s "(cached) " >&6
6871 else $as_nop
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 int i;
6875 int
6876 main (void)
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_link "$LINENO"
6884 then :
6885 eval $cacheid=yes
6886 else $as_nop
6887 eval $cacheid=no
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6890 conftest$ac_exeext conftest.$ac_ext
6891 fi
6892
6893
6894 CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896 eval supported=\$$cacheid
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898 printf "%s\n" "$supported" >&6; }
6899 if test "$supported" = "yes" ; then
6900 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6901 found="yes"
6902 fi
6903 fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 xorg_testset_save_CFLAGS="$CFLAGS"
6920
6921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6926 then :
6927 printf %s "(cached) " >&6
6928 else $as_nop
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"
6934 then :
6935 xorg_cv_cc_flag_unknown_warning_option=yes
6936 else $as_nop
6937 xorg_cv_cc_flag_unknown_warning_option=no
6938 fi
6939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6940 fi
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6944 CFLAGS="$xorg_testset_save_CFLAGS"
6945 fi
6946
6947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950 fi
6951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6955 then :
6956 printf %s "(cached) " >&6
6957 else $as_nop
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 int i;
6961 _ACEOF
6962 if ac_fn_c_try_compile "$LINENO"
6963 then :
6964 xorg_cv_cc_flag_unused_command_line_argument=yes
6965 else $as_nop
6966 xorg_cv_cc_flag_unused_command_line_argument=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6969 fi
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6971 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6973 CFLAGS="$xorg_testset_save_CFLAGS"
6974 fi
6975
6976 found="no"
6977
6978 if test $found = "no" ; then
6979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981 fi
6982
6983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985 fi
6986
6987 CFLAGS="$CFLAGS -Wlogical-op"
6988
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6990 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6991 cacheid=xorg_cv_cc_flag__Wlogical_op
6992 if eval test \${$cacheid+y}
6993 then :
6994 printf %s "(cached) " >&6
6995 else $as_nop
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998 int i;
6999 int
7000 main (void)
7001 {
7002
7003 ;
7004 return 0;
7005 }
7006 _ACEOF
7007 if ac_fn_c_try_link "$LINENO"
7008 then :
7009 eval $cacheid=yes
7010 else $as_nop
7011 eval $cacheid=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7014 conftest$ac_exeext conftest.$ac_ext
7015 fi
7016
7017
7018 CFLAGS="$xorg_testset_save_CFLAGS"
7019
7020 eval supported=\$$cacheid
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7022 printf "%s\n" "$supported" >&6; }
7023 if test "$supported" = "yes" ; then
7024 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7025 found="yes"
7026 fi
7027 fi
7028
7029
7030
7031 # These are currently disabled because they are noisy. They will be enabled
7032 # in the future once the codebase is sufficiently modernized to silence
7033 # them. For now, I don't want them to drown out the other warnings.
7034 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7035 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7036 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7037
7038 # Turn some warnings into errors, so we don't accidently get successful builds
7039 # when there are problems that should be fixed.
7040
7041 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 xorg_testset_save_CFLAGS="$CFLAGS"
7056
7057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7060 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7061 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7062 then :
7063 printf %s "(cached) " >&6
7064 else $as_nop
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067 int i;
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"
7070 then :
7071 xorg_cv_cc_flag_unknown_warning_option=yes
7072 else $as_nop
7073 xorg_cv_cc_flag_unknown_warning_option=no
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7076 fi
7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7080 CFLAGS="$xorg_testset_save_CFLAGS"
7081 fi
7082
7083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086 fi
7087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7091 then :
7092 printf %s "(cached) " >&6
7093 else $as_nop
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 int i;
7097 _ACEOF
7098 if ac_fn_c_try_compile "$LINENO"
7099 then :
7100 xorg_cv_cc_flag_unused_command_line_argument=yes
7101 else $as_nop
7102 xorg_cv_cc_flag_unused_command_line_argument=no
7103 fi
7104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7105 fi
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7109 CFLAGS="$xorg_testset_save_CFLAGS"
7110 fi
7111
7112 found="no"
7113
7114 if test $found = "no" ; then
7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 fi
7118
7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121 fi
7122
7123 CFLAGS="$CFLAGS -Werror=implicit"
7124
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7126 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7127 cacheid=xorg_cv_cc_flag__Werror_implicit
7128 if eval test \${$cacheid+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else $as_nop
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 int i;
7135 int
7136 main (void)
7137 {
7138
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 if ac_fn_c_try_link "$LINENO"
7144 then :
7145 eval $cacheid=yes
7146 else $as_nop
7147 eval $cacheid=no
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7150 conftest$ac_exeext conftest.$ac_ext
7151 fi
7152
7153
7154 CFLAGS="$xorg_testset_save_CFLAGS"
7155
7156 eval supported=\$$cacheid
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7158 printf "%s\n" "$supported" >&6; }
7159 if test "$supported" = "yes" ; then
7160 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7161 found="yes"
7162 fi
7163 fi
7164
7165 if test $found = "no" ; then
7166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168 fi
7169
7170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172 fi
7173
7174 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7175
7176 { 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
7177 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7178 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7179 if eval test \${$cacheid+y}
7180 then :
7181 printf %s "(cached) " >&6
7182 else $as_nop
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 int i;
7186 int
7187 main (void)
7188 {
7189
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"
7195 then :
7196 eval $cacheid=yes
7197 else $as_nop
7198 eval $cacheid=no
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7201 conftest$ac_exeext conftest.$ac_ext
7202 fi
7203
7204
7205 CFLAGS="$xorg_testset_save_CFLAGS"
7206
7207 eval supported=\$$cacheid
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7209 printf "%s\n" "$supported" >&6; }
7210 if test "$supported" = "yes" ; then
7211 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7212 found="yes"
7213 fi
7214 fi
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 xorg_testset_save_CFLAGS="$CFLAGS"
7231
7232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7236 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7237 then :
7238 printf %s "(cached) " >&6
7239 else $as_nop
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 int i;
7243 _ACEOF
7244 if ac_fn_c_try_compile "$LINENO"
7245 then :
7246 xorg_cv_cc_flag_unknown_warning_option=yes
7247 else $as_nop
7248 xorg_cv_cc_flag_unknown_warning_option=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7251 fi
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7255 CFLAGS="$xorg_testset_save_CFLAGS"
7256 fi
7257
7258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261 fi
7262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7266 then :
7267 printf %s "(cached) " >&6
7268 else $as_nop
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 int i;
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"
7274 then :
7275 xorg_cv_cc_flag_unused_command_line_argument=yes
7276 else $as_nop
7277 xorg_cv_cc_flag_unused_command_line_argument=no
7278 fi
7279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7280 fi
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7284 CFLAGS="$xorg_testset_save_CFLAGS"
7285 fi
7286
7287 found="no"
7288
7289 if test $found = "no" ; then
7290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292 fi
7293
7294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296 fi
7297
7298 CFLAGS="$CFLAGS -Werror=nonnull"
7299
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7301 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7302 cacheid=xorg_cv_cc_flag__Werror_nonnull
7303 if eval test \${$cacheid+y}
7304 then :
7305 printf %s "(cached) " >&6
7306 else $as_nop
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 int i;
7310 int
7311 main (void)
7312 {
7313
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 if ac_fn_c_try_link "$LINENO"
7319 then :
7320 eval $cacheid=yes
7321 else $as_nop
7322 eval $cacheid=no
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7325 conftest$ac_exeext conftest.$ac_ext
7326 fi
7327
7328
7329 CFLAGS="$xorg_testset_save_CFLAGS"
7330
7331 eval supported=\$$cacheid
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333 printf "%s\n" "$supported" >&6; }
7334 if test "$supported" = "yes" ; then
7335 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7336 found="yes"
7337 fi
7338 fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354 xorg_testset_save_CFLAGS="$CFLAGS"
7355
7356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7361 then :
7362 printf %s "(cached) " >&6
7363 else $as_nop
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 int i;
7367 _ACEOF
7368 if ac_fn_c_try_compile "$LINENO"
7369 then :
7370 xorg_cv_cc_flag_unknown_warning_option=yes
7371 else $as_nop
7372 xorg_cv_cc_flag_unknown_warning_option=no
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7375 fi
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7379 CFLAGS="$xorg_testset_save_CFLAGS"
7380 fi
7381
7382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7385 fi
7386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7390 then :
7391 printf %s "(cached) " >&6
7392 else $as_nop
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 int i;
7396 _ACEOF
7397 if ac_fn_c_try_compile "$LINENO"
7398 then :
7399 xorg_cv_cc_flag_unused_command_line_argument=yes
7400 else $as_nop
7401 xorg_cv_cc_flag_unused_command_line_argument=no
7402 fi
7403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7404 fi
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7408 CFLAGS="$xorg_testset_save_CFLAGS"
7409 fi
7410
7411 found="no"
7412
7413 if test $found = "no" ; then
7414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416 fi
7417
7418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420 fi
7421
7422 CFLAGS="$CFLAGS -Werror=init-self"
7423
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7425 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7426 cacheid=xorg_cv_cc_flag__Werror_init_self
7427 if eval test \${$cacheid+y}
7428 then :
7429 printf %s "(cached) " >&6
7430 else $as_nop
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 int i;
7434 int
7435 main (void)
7436 {
7437
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_link "$LINENO"
7443 then :
7444 eval $cacheid=yes
7445 else $as_nop
7446 eval $cacheid=no
7447 fi
7448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7449 conftest$ac_exeext conftest.$ac_ext
7450 fi
7451
7452
7453 CFLAGS="$xorg_testset_save_CFLAGS"
7454
7455 eval supported=\$$cacheid
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7457 printf "%s\n" "$supported" >&6; }
7458 if test "$supported" = "yes" ; then
7459 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7460 found="yes"
7461 fi
7462 fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 xorg_testset_save_CFLAGS="$CFLAGS"
7479
7480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7485 then :
7486 printf %s "(cached) " >&6
7487 else $as_nop
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 int i;
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"
7493 then :
7494 xorg_cv_cc_flag_unknown_warning_option=yes
7495 else $as_nop
7496 xorg_cv_cc_flag_unknown_warning_option=no
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7499 fi
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7503 CFLAGS="$xorg_testset_save_CFLAGS"
7504 fi
7505
7506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509 fi
7510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7514 then :
7515 printf %s "(cached) " >&6
7516 else $as_nop
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 int i;
7520 _ACEOF
7521 if ac_fn_c_try_compile "$LINENO"
7522 then :
7523 xorg_cv_cc_flag_unused_command_line_argument=yes
7524 else $as_nop
7525 xorg_cv_cc_flag_unused_command_line_argument=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7528 fi
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7532 CFLAGS="$xorg_testset_save_CFLAGS"
7533 fi
7534
7535 found="no"
7536
7537 if test $found = "no" ; then
7538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540 fi
7541
7542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544 fi
7545
7546 CFLAGS="$CFLAGS -Werror=main"
7547
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7549 printf %s "checking if $CC supports -Werror=main... " >&6; }
7550 cacheid=xorg_cv_cc_flag__Werror_main
7551 if eval test \${$cacheid+y}
7552 then :
7553 printf %s "(cached) " >&6
7554 else $as_nop
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557 int i;
7558 int
7559 main (void)
7560 {
7561
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_link "$LINENO"
7567 then :
7568 eval $cacheid=yes
7569 else $as_nop
7570 eval $cacheid=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7573 conftest$ac_exeext conftest.$ac_ext
7574 fi
7575
7576
7577 CFLAGS="$xorg_testset_save_CFLAGS"
7578
7579 eval supported=\$$cacheid
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7581 printf "%s\n" "$supported" >&6; }
7582 if test "$supported" = "yes" ; then
7583 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7584 found="yes"
7585 fi
7586 fi
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602 xorg_testset_save_CFLAGS="$CFLAGS"
7603
7604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7608 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7609 then :
7610 printf %s "(cached) " >&6
7611 else $as_nop
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 int i;
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"
7617 then :
7618 xorg_cv_cc_flag_unknown_warning_option=yes
7619 else $as_nop
7620 xorg_cv_cc_flag_unknown_warning_option=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7623 fi
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7627 CFLAGS="$xorg_testset_save_CFLAGS"
7628 fi
7629
7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633 fi
7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7638 then :
7639 printf %s "(cached) " >&6
7640 else $as_nop
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 int i;
7644 _ACEOF
7645 if ac_fn_c_try_compile "$LINENO"
7646 then :
7647 xorg_cv_cc_flag_unused_command_line_argument=yes
7648 else $as_nop
7649 xorg_cv_cc_flag_unused_command_line_argument=no
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7652 fi
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7654 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7656 CFLAGS="$xorg_testset_save_CFLAGS"
7657 fi
7658
7659 found="no"
7660
7661 if test $found = "no" ; then
7662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 fi
7665
7666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668 fi
7669
7670 CFLAGS="$CFLAGS -Werror=missing-braces"
7671
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7673 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7674 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7675 if eval test \${$cacheid+y}
7676 then :
7677 printf %s "(cached) " >&6
7678 else $as_nop
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 int i;
7682 int
7683 main (void)
7684 {
7685
7686 ;
7687 return 0;
7688 }
7689 _ACEOF
7690 if ac_fn_c_try_link "$LINENO"
7691 then :
7692 eval $cacheid=yes
7693 else $as_nop
7694 eval $cacheid=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7697 conftest$ac_exeext conftest.$ac_ext
7698 fi
7699
7700
7701 CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703 eval supported=\$$cacheid
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705 printf "%s\n" "$supported" >&6; }
7706 if test "$supported" = "yes" ; then
7707 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7708 found="yes"
7709 fi
7710 fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726 xorg_testset_save_CFLAGS="$CFLAGS"
7727
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7733 then :
7734 printf %s "(cached) " >&6
7735 else $as_nop
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 int i;
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"
7741 then :
7742 xorg_cv_cc_flag_unknown_warning_option=yes
7743 else $as_nop
7744 xorg_cv_cc_flag_unknown_warning_option=no
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7747 fi
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7749 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7751 CFLAGS="$xorg_testset_save_CFLAGS"
7752 fi
7753
7754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757 fi
7758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7760 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7761 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7762 then :
7763 printf %s "(cached) " >&6
7764 else $as_nop
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 int i;
7768 _ACEOF
7769 if ac_fn_c_try_compile "$LINENO"
7770 then :
7771 xorg_cv_cc_flag_unused_command_line_argument=yes
7772 else $as_nop
7773 xorg_cv_cc_flag_unused_command_line_argument=no
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7776 fi
7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7778 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7780 CFLAGS="$xorg_testset_save_CFLAGS"
7781 fi
7782
7783 found="no"
7784
7785 if test $found = "no" ; then
7786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788 fi
7789
7790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7792 fi
7793
7794 CFLAGS="$CFLAGS -Werror=sequence-point"
7795
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7797 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7798 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7799 if eval test \${$cacheid+y}
7800 then :
7801 printf %s "(cached) " >&6
7802 else $as_nop
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 int i;
7806 int
7807 main (void)
7808 {
7809
7810 ;
7811 return 0;
7812 }
7813 _ACEOF
7814 if ac_fn_c_try_link "$LINENO"
7815 then :
7816 eval $cacheid=yes
7817 else $as_nop
7818 eval $cacheid=no
7819 fi
7820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7821 conftest$ac_exeext conftest.$ac_ext
7822 fi
7823
7824
7825 CFLAGS="$xorg_testset_save_CFLAGS"
7826
7827 eval supported=\$$cacheid
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7829 printf "%s\n" "$supported" >&6; }
7830 if test "$supported" = "yes" ; then
7831 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7832 found="yes"
7833 fi
7834 fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850 xorg_testset_save_CFLAGS="$CFLAGS"
7851
7852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7856 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7857 then :
7858 printf %s "(cached) " >&6
7859 else $as_nop
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 int i;
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"
7865 then :
7866 xorg_cv_cc_flag_unknown_warning_option=yes
7867 else $as_nop
7868 xorg_cv_cc_flag_unknown_warning_option=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7871 fi
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7873 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7875 CFLAGS="$xorg_testset_save_CFLAGS"
7876 fi
7877
7878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881 fi
7882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7886 then :
7887 printf %s "(cached) " >&6
7888 else $as_nop
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 int i;
7892 _ACEOF
7893 if ac_fn_c_try_compile "$LINENO"
7894 then :
7895 xorg_cv_cc_flag_unused_command_line_argument=yes
7896 else $as_nop
7897 xorg_cv_cc_flag_unused_command_line_argument=no
7898 fi
7899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7900 fi
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7902 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7904 CFLAGS="$xorg_testset_save_CFLAGS"
7905 fi
7906
7907 found="no"
7908
7909 if test $found = "no" ; then
7910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912 fi
7913
7914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916 fi
7917
7918 CFLAGS="$CFLAGS -Werror=return-type"
7919
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7921 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7922 cacheid=xorg_cv_cc_flag__Werror_return_type
7923 if eval test \${$cacheid+y}
7924 then :
7925 printf %s "(cached) " >&6
7926 else $as_nop
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 int i;
7930 int
7931 main (void)
7932 {
7933
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_link "$LINENO"
7939 then :
7940 eval $cacheid=yes
7941 else $as_nop
7942 eval $cacheid=no
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7945 conftest$ac_exeext conftest.$ac_ext
7946 fi
7947
7948
7949 CFLAGS="$xorg_testset_save_CFLAGS"
7950
7951 eval supported=\$$cacheid
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7953 printf "%s\n" "$supported" >&6; }
7954 if test "$supported" = "yes" ; then
7955 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7956 found="yes"
7957 fi
7958 fi
7959
7960 if test $found = "no" ; then
7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963 fi
7964
7965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7967 fi
7968
7969 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7970
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7972 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7973 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7974 if eval test \${$cacheid+y}
7975 then :
7976 printf %s "(cached) " >&6
7977 else $as_nop
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 int i;
7981 int
7982 main (void)
7983 {
7984
7985 ;
7986 return 0;
7987 }
7988 _ACEOF
7989 if ac_fn_c_try_link "$LINENO"
7990 then :
7991 eval $cacheid=yes
7992 else $as_nop
7993 eval $cacheid=no
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7996 conftest$ac_exeext conftest.$ac_ext
7997 fi
7998
7999
8000 CFLAGS="$xorg_testset_save_CFLAGS"
8001
8002 eval supported=\$$cacheid
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8004 printf "%s\n" "$supported" >&6; }
8005 if test "$supported" = "yes" ; then
8006 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8007 found="yes"
8008 fi
8009 fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 xorg_testset_save_CFLAGS="$CFLAGS"
8026
8027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8030 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8031 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8032 then :
8033 printf %s "(cached) " >&6
8034 else $as_nop
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 int i;
8038 _ACEOF
8039 if ac_fn_c_try_compile "$LINENO"
8040 then :
8041 xorg_cv_cc_flag_unknown_warning_option=yes
8042 else $as_nop
8043 xorg_cv_cc_flag_unknown_warning_option=no
8044 fi
8045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8046 fi
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8048 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8050 CFLAGS="$xorg_testset_save_CFLAGS"
8051 fi
8052
8053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056 fi
8057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8059 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8060 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8061 then :
8062 printf %s "(cached) " >&6
8063 else $as_nop
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 int i;
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"
8069 then :
8070 xorg_cv_cc_flag_unused_command_line_argument=yes
8071 else $as_nop
8072 xorg_cv_cc_flag_unused_command_line_argument=no
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8075 fi
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8077 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8079 CFLAGS="$xorg_testset_save_CFLAGS"
8080 fi
8081
8082 found="no"
8083
8084 if test $found = "no" ; then
8085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087 fi
8088
8089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091 fi
8092
8093 CFLAGS="$CFLAGS -Werror=trigraphs"
8094
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8096 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8097 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8098 if eval test \${$cacheid+y}
8099 then :
8100 printf %s "(cached) " >&6
8101 else $as_nop
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 int i;
8105 int
8106 main (void)
8107 {
8108
8109 ;
8110 return 0;
8111 }
8112 _ACEOF
8113 if ac_fn_c_try_link "$LINENO"
8114 then :
8115 eval $cacheid=yes
8116 else $as_nop
8117 eval $cacheid=no
8118 fi
8119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8120 conftest$ac_exeext conftest.$ac_ext
8121 fi
8122
8123
8124 CFLAGS="$xorg_testset_save_CFLAGS"
8125
8126 eval supported=\$$cacheid
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8128 printf "%s\n" "$supported" >&6; }
8129 if test "$supported" = "yes" ; then
8130 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8131 found="yes"
8132 fi
8133 fi
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149 xorg_testset_save_CFLAGS="$CFLAGS"
8150
8151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8154 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8155 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8156 then :
8157 printf %s "(cached) " >&6
8158 else $as_nop
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 int i;
8162 _ACEOF
8163 if ac_fn_c_try_compile "$LINENO"
8164 then :
8165 xorg_cv_cc_flag_unknown_warning_option=yes
8166 else $as_nop
8167 xorg_cv_cc_flag_unknown_warning_option=no
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8170 fi
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8172 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8174 CFLAGS="$xorg_testset_save_CFLAGS"
8175 fi
8176
8177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8180 fi
8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8183 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8184 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8185 then :
8186 printf %s "(cached) " >&6
8187 else $as_nop
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 int i;
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"
8193 then :
8194 xorg_cv_cc_flag_unused_command_line_argument=yes
8195 else $as_nop
8196 xorg_cv_cc_flag_unused_command_line_argument=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8199 fi
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8201 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8203 CFLAGS="$xorg_testset_save_CFLAGS"
8204 fi
8205
8206 found="no"
8207
8208 if test $found = "no" ; then
8209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211 fi
8212
8213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215 fi
8216
8217 CFLAGS="$CFLAGS -Werror=array-bounds"
8218
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8220 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8221 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8222 if eval test \${$cacheid+y}
8223 then :
8224 printf %s "(cached) " >&6
8225 else $as_nop
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8228 int i;
8229 int
8230 main (void)
8231 {
8232
8233 ;
8234 return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"
8238 then :
8239 eval $cacheid=yes
8240 else $as_nop
8241 eval $cacheid=no
8242 fi
8243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8244 conftest$ac_exeext conftest.$ac_ext
8245 fi
8246
8247
8248 CFLAGS="$xorg_testset_save_CFLAGS"
8249
8250 eval supported=\$$cacheid
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8252 printf "%s\n" "$supported" >&6; }
8253 if test "$supported" = "yes" ; then
8254 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8255 found="yes"
8256 fi
8257 fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273 xorg_testset_save_CFLAGS="$CFLAGS"
8274
8275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8278 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8279 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8280 then :
8281 printf %s "(cached) " >&6
8282 else $as_nop
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 int i;
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"
8288 then :
8289 xorg_cv_cc_flag_unknown_warning_option=yes
8290 else $as_nop
8291 xorg_cv_cc_flag_unknown_warning_option=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8294 fi
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298 CFLAGS="$xorg_testset_save_CFLAGS"
8299 fi
8300
8301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304 fi
8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else $as_nop
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 int i;
8315 _ACEOF
8316 if ac_fn_c_try_compile "$LINENO"
8317 then :
8318 xorg_cv_cc_flag_unused_command_line_argument=yes
8319 else $as_nop
8320 xorg_cv_cc_flag_unused_command_line_argument=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8323 fi
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8325 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8327 CFLAGS="$xorg_testset_save_CFLAGS"
8328 fi
8329
8330 found="no"
8331
8332 if test $found = "no" ; then
8333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335 fi
8336
8337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339 fi
8340
8341 CFLAGS="$CFLAGS -Werror=write-strings"
8342
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8344 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8345 cacheid=xorg_cv_cc_flag__Werror_write_strings
8346 if eval test \${$cacheid+y}
8347 then :
8348 printf %s "(cached) " >&6
8349 else $as_nop
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 int i;
8353 int
8354 main (void)
8355 {
8356
8357 ;
8358 return 0;
8359 }
8360 _ACEOF
8361 if ac_fn_c_try_link "$LINENO"
8362 then :
8363 eval $cacheid=yes
8364 else $as_nop
8365 eval $cacheid=no
8366 fi
8367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8368 conftest$ac_exeext conftest.$ac_ext
8369 fi
8370
8371
8372 CFLAGS="$xorg_testset_save_CFLAGS"
8373
8374 eval supported=\$$cacheid
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8376 printf "%s\n" "$supported" >&6; }
8377 if test "$supported" = "yes" ; then
8378 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8379 found="yes"
8380 fi
8381 fi
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 xorg_testset_save_CFLAGS="$CFLAGS"
8398
8399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8403 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8404 then :
8405 printf %s "(cached) " >&6
8406 else $as_nop
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 int i;
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"
8412 then :
8413 xorg_cv_cc_flag_unknown_warning_option=yes
8414 else $as_nop
8415 xorg_cv_cc_flag_unknown_warning_option=no
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8418 fi
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8422 CFLAGS="$xorg_testset_save_CFLAGS"
8423 fi
8424
8425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8428 fi
8429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8433 then :
8434 printf %s "(cached) " >&6
8435 else $as_nop
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 int i;
8439 _ACEOF
8440 if ac_fn_c_try_compile "$LINENO"
8441 then :
8442 xorg_cv_cc_flag_unused_command_line_argument=yes
8443 else $as_nop
8444 xorg_cv_cc_flag_unused_command_line_argument=no
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8447 fi
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8451 CFLAGS="$xorg_testset_save_CFLAGS"
8452 fi
8453
8454 found="no"
8455
8456 if test $found = "no" ; then
8457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459 fi
8460
8461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463 fi
8464
8465 CFLAGS="$CFLAGS -Werror=address"
8466
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8468 printf %s "checking if $CC supports -Werror=address... " >&6; }
8469 cacheid=xorg_cv_cc_flag__Werror_address
8470 if eval test \${$cacheid+y}
8471 then :
8472 printf %s "(cached) " >&6
8473 else $as_nop
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 int i;
8477 int
8478 main (void)
8479 {
8480
8481 ;
8482 return 0;
8483 }
8484 _ACEOF
8485 if ac_fn_c_try_link "$LINENO"
8486 then :
8487 eval $cacheid=yes
8488 else $as_nop
8489 eval $cacheid=no
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8492 conftest$ac_exeext conftest.$ac_ext
8493 fi
8494
8495
8496 CFLAGS="$xorg_testset_save_CFLAGS"
8497
8498 eval supported=\$$cacheid
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8500 printf "%s\n" "$supported" >&6; }
8501 if test "$supported" = "yes" ; then
8502 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8503 found="yes"
8504 fi
8505 fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521 xorg_testset_save_CFLAGS="$CFLAGS"
8522
8523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8527 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else $as_nop
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 int i;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"
8536 then :
8537 xorg_cv_cc_flag_unknown_warning_option=yes
8538 else $as_nop
8539 xorg_cv_cc_flag_unknown_warning_option=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8542 fi
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8546 CFLAGS="$xorg_testset_save_CFLAGS"
8547 fi
8548
8549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552 fi
8553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8557 then :
8558 printf %s "(cached) " >&6
8559 else $as_nop
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562 int i;
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"
8565 then :
8566 xorg_cv_cc_flag_unused_command_line_argument=yes
8567 else $as_nop
8568 xorg_cv_cc_flag_unused_command_line_argument=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8571 fi
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8575 CFLAGS="$xorg_testset_save_CFLAGS"
8576 fi
8577
8578 found="no"
8579
8580 if test $found = "no" ; then
8581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583 fi
8584
8585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8587 fi
8588
8589 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8590
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8592 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8593 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8594 if eval test \${$cacheid+y}
8595 then :
8596 printf %s "(cached) " >&6
8597 else $as_nop
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 int i;
8601 int
8602 main (void)
8603 {
8604
8605 ;
8606 return 0;
8607 }
8608 _ACEOF
8609 if ac_fn_c_try_link "$LINENO"
8610 then :
8611 eval $cacheid=yes
8612 else $as_nop
8613 eval $cacheid=no
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8616 conftest$ac_exeext conftest.$ac_ext
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=int-to-pointer-cast"
8627 found="yes"
8628 fi
8629 fi
8630
8631 if test $found = "no" ; then
8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634 fi
8635
8636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638 fi
8639
8640 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8641
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8643 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8644 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8645 if eval test \${$cacheid+y}
8646 then :
8647 printf %s "(cached) " >&6
8648 else $as_nop
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 int i;
8652 int
8653 main (void)
8654 {
8655
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_link "$LINENO"
8661 then :
8662 eval $cacheid=yes
8663 else $as_nop
8664 eval $cacheid=no
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8667 conftest$ac_exeext conftest.$ac_ext
8668 fi
8669
8670
8671 CFLAGS="$xorg_testset_save_CFLAGS"
8672
8673 eval supported=\$$cacheid
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8675 printf "%s\n" "$supported" >&6; }
8676 if test "$supported" = "yes" ; then
8677 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8678 found="yes"
8679 fi
8680 fi
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696 xorg_testset_save_CFLAGS="$CFLAGS"
8697
8698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8702 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8703 then :
8704 printf %s "(cached) " >&6
8705 else $as_nop
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 int i;
8709 _ACEOF
8710 if ac_fn_c_try_compile "$LINENO"
8711 then :
8712 xorg_cv_cc_flag_unknown_warning_option=yes
8713 else $as_nop
8714 xorg_cv_cc_flag_unknown_warning_option=no
8715 fi
8716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8717 fi
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8721 CFLAGS="$xorg_testset_save_CFLAGS"
8722 fi
8723
8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727 fi
8728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8732 then :
8733 printf %s "(cached) " >&6
8734 else $as_nop
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 int i;
8738 _ACEOF
8739 if ac_fn_c_try_compile "$LINENO"
8740 then :
8741 xorg_cv_cc_flag_unused_command_line_argument=yes
8742 else $as_nop
8743 xorg_cv_cc_flag_unused_command_line_argument=no
8744 fi
8745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8746 fi
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8750 CFLAGS="$xorg_testset_save_CFLAGS"
8751 fi
8752
8753 found="no"
8754
8755 if test $found = "no" ; then
8756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758 fi
8759
8760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8762 fi
8763
8764 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8765
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8767 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8768 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8769 if eval test \${$cacheid+y}
8770 then :
8771 printf %s "(cached) " >&6
8772 else $as_nop
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 int i;
8776 int
8777 main (void)
8778 {
8779
8780 ;
8781 return 0;
8782 }
8783 _ACEOF
8784 if ac_fn_c_try_link "$LINENO"
8785 then :
8786 eval $cacheid=yes
8787 else $as_nop
8788 eval $cacheid=no
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8791 conftest$ac_exeext conftest.$ac_ext
8792 fi
8793
8794
8795 CFLAGS="$xorg_testset_save_CFLAGS"
8796
8797 eval supported=\$$cacheid
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8799 printf "%s\n" "$supported" >&6; }
8800 if test "$supported" = "yes" ; then
8801 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8802 found="yes"
8803 fi
8804 fi
8805
8806 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8807 else
8808 { 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
8809 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;}
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823 xorg_testset_save_CFLAGS="$CFLAGS"
8824
8825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8829 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8830 then :
8831 printf %s "(cached) " >&6
8832 else $as_nop
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 int i;
8836 _ACEOF
8837 if ac_fn_c_try_compile "$LINENO"
8838 then :
8839 xorg_cv_cc_flag_unknown_warning_option=yes
8840 else $as_nop
8841 xorg_cv_cc_flag_unknown_warning_option=no
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8844 fi
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8848 CFLAGS="$xorg_testset_save_CFLAGS"
8849 fi
8850
8851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8854 fi
8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8859 then :
8860 printf %s "(cached) " >&6
8861 else $as_nop
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864 int i;
8865 _ACEOF
8866 if ac_fn_c_try_compile "$LINENO"
8867 then :
8868 xorg_cv_cc_flag_unused_command_line_argument=yes
8869 else $as_nop
8870 xorg_cv_cc_flag_unused_command_line_argument=no
8871 fi
8872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8873 fi
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8875 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8877 CFLAGS="$xorg_testset_save_CFLAGS"
8878 fi
8879
8880 found="no"
8881
8882 if test $found = "no" ; then
8883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885 fi
8886
8887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8889 fi
8890
8891 CFLAGS="$CFLAGS -Wimplicit"
8892
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8894 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8895 cacheid=xorg_cv_cc_flag__Wimplicit
8896 if eval test \${$cacheid+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else $as_nop
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 int i;
8903 int
8904 main (void)
8905 {
8906
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"
8912 then :
8913 eval $cacheid=yes
8914 else $as_nop
8915 eval $cacheid=no
8916 fi
8917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8918 conftest$ac_exeext conftest.$ac_ext
8919 fi
8920
8921
8922 CFLAGS="$xorg_testset_save_CFLAGS"
8923
8924 eval supported=\$$cacheid
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8926 printf "%s\n" "$supported" >&6; }
8927 if test "$supported" = "yes" ; then
8928 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8929 found="yes"
8930 fi
8931 fi
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947 xorg_testset_save_CFLAGS="$CFLAGS"
8948
8949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8953 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8954 then :
8955 printf %s "(cached) " >&6
8956 else $as_nop
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 int i;
8960 _ACEOF
8961 if ac_fn_c_try_compile "$LINENO"
8962 then :
8963 xorg_cv_cc_flag_unknown_warning_option=yes
8964 else $as_nop
8965 xorg_cv_cc_flag_unknown_warning_option=no
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8968 fi
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8972 CFLAGS="$xorg_testset_save_CFLAGS"
8973 fi
8974
8975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 fi
8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8983 then :
8984 printf %s "(cached) " >&6
8985 else $as_nop
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 int i;
8989 _ACEOF
8990 if ac_fn_c_try_compile "$LINENO"
8991 then :
8992 xorg_cv_cc_flag_unused_command_line_argument=yes
8993 else $as_nop
8994 xorg_cv_cc_flag_unused_command_line_argument=no
8995 fi
8996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8997 fi
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9001 CFLAGS="$xorg_testset_save_CFLAGS"
9002 fi
9003
9004 found="no"
9005
9006 if test $found = "no" ; then
9007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009 fi
9010
9011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013 fi
9014
9015 CFLAGS="$CFLAGS -Wnonnull"
9016
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9018 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9019 cacheid=xorg_cv_cc_flag__Wnonnull
9020 if eval test \${$cacheid+y}
9021 then :
9022 printf %s "(cached) " >&6
9023 else $as_nop
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 int i;
9027 int
9028 main (void)
9029 {
9030
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 if ac_fn_c_try_link "$LINENO"
9036 then :
9037 eval $cacheid=yes
9038 else $as_nop
9039 eval $cacheid=no
9040 fi
9041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9042 conftest$ac_exeext conftest.$ac_ext
9043 fi
9044
9045
9046 CFLAGS="$xorg_testset_save_CFLAGS"
9047
9048 eval supported=\$$cacheid
9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9050 printf "%s\n" "$supported" >&6; }
9051 if test "$supported" = "yes" ; then
9052 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9053 found="yes"
9054 fi
9055 fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071 xorg_testset_save_CFLAGS="$CFLAGS"
9072
9073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9078 then :
9079 printf %s "(cached) " >&6
9080 else $as_nop
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 int i;
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"
9086 then :
9087 xorg_cv_cc_flag_unknown_warning_option=yes
9088 else $as_nop
9089 xorg_cv_cc_flag_unknown_warning_option=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9092 fi
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9094 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9096 CFLAGS="$xorg_testset_save_CFLAGS"
9097 fi
9098
9099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102 fi
9103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9105 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9106 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9107 then :
9108 printf %s "(cached) " >&6
9109 else $as_nop
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 int i;
9113 _ACEOF
9114 if ac_fn_c_try_compile "$LINENO"
9115 then :
9116 xorg_cv_cc_flag_unused_command_line_argument=yes
9117 else $as_nop
9118 xorg_cv_cc_flag_unused_command_line_argument=no
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9121 fi
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9123 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9125 CFLAGS="$xorg_testset_save_CFLAGS"
9126 fi
9127
9128 found="no"
9129
9130 if test $found = "no" ; then
9131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133 fi
9134
9135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137 fi
9138
9139 CFLAGS="$CFLAGS -Winit-self"
9140
9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9142 printf %s "checking if $CC supports -Winit-self... " >&6; }
9143 cacheid=xorg_cv_cc_flag__Winit_self
9144 if eval test \${$cacheid+y}
9145 then :
9146 printf %s "(cached) " >&6
9147 else $as_nop
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 int i;
9151 int
9152 main (void)
9153 {
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_link "$LINENO"
9160 then :
9161 eval $cacheid=yes
9162 else $as_nop
9163 eval $cacheid=no
9164 fi
9165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9166 conftest$ac_exeext conftest.$ac_ext
9167 fi
9168
9169
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9171
9172 eval supported=\$$cacheid
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174 printf "%s\n" "$supported" >&6; }
9175 if test "$supported" = "yes" ; then
9176 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9177 found="yes"
9178 fi
9179 fi
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195 xorg_testset_save_CFLAGS="$CFLAGS"
9196
9197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9200 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9201 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9202 then :
9203 printf %s "(cached) " >&6
9204 else $as_nop
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int i;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"
9210 then :
9211 xorg_cv_cc_flag_unknown_warning_option=yes
9212 else $as_nop
9213 xorg_cv_cc_flag_unknown_warning_option=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9216 fi
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220 CFLAGS="$xorg_testset_save_CFLAGS"
9221 fi
9222
9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226 fi
9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9231 then :
9232 printf %s "(cached) " >&6
9233 else $as_nop
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 int i;
9237 _ACEOF
9238 if ac_fn_c_try_compile "$LINENO"
9239 then :
9240 xorg_cv_cc_flag_unused_command_line_argument=yes
9241 else $as_nop
9242 xorg_cv_cc_flag_unused_command_line_argument=no
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9245 fi
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9249 CFLAGS="$xorg_testset_save_CFLAGS"
9250 fi
9251
9252 found="no"
9253
9254 if test $found = "no" ; then
9255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257 fi
9258
9259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261 fi
9262
9263 CFLAGS="$CFLAGS -Wmain"
9264
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9266 printf %s "checking if $CC supports -Wmain... " >&6; }
9267 cacheid=xorg_cv_cc_flag__Wmain
9268 if eval test \${$cacheid+y}
9269 then :
9270 printf %s "(cached) " >&6
9271 else $as_nop
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 int i;
9275 int
9276 main (void)
9277 {
9278
9279 ;
9280 return 0;
9281 }
9282 _ACEOF
9283 if ac_fn_c_try_link "$LINENO"
9284 then :
9285 eval $cacheid=yes
9286 else $as_nop
9287 eval $cacheid=no
9288 fi
9289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9290 conftest$ac_exeext conftest.$ac_ext
9291 fi
9292
9293
9294 CFLAGS="$xorg_testset_save_CFLAGS"
9295
9296 eval supported=\$$cacheid
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9298 printf "%s\n" "$supported" >&6; }
9299 if test "$supported" = "yes" ; then
9300 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9301 found="yes"
9302 fi
9303 fi
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319 xorg_testset_save_CFLAGS="$CFLAGS"
9320
9321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9324 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9325 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9326 then :
9327 printf %s "(cached) " >&6
9328 else $as_nop
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 int i;
9332 _ACEOF
9333 if ac_fn_c_try_compile "$LINENO"
9334 then :
9335 xorg_cv_cc_flag_unknown_warning_option=yes
9336 else $as_nop
9337 xorg_cv_cc_flag_unknown_warning_option=no
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9340 fi
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9342 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9344 CFLAGS="$xorg_testset_save_CFLAGS"
9345 fi
9346
9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350 fi
9351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9353 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9354 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9355 then :
9356 printf %s "(cached) " >&6
9357 else $as_nop
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 int i;
9361 _ACEOF
9362 if ac_fn_c_try_compile "$LINENO"
9363 then :
9364 xorg_cv_cc_flag_unused_command_line_argument=yes
9365 else $as_nop
9366 xorg_cv_cc_flag_unused_command_line_argument=no
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9369 fi
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373 CFLAGS="$xorg_testset_save_CFLAGS"
9374 fi
9375
9376 found="no"
9377
9378 if test $found = "no" ; then
9379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381 fi
9382
9383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385 fi
9386
9387 CFLAGS="$CFLAGS -Wmissing-braces"
9388
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9390 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9391 cacheid=xorg_cv_cc_flag__Wmissing_braces
9392 if eval test \${$cacheid+y}
9393 then :
9394 printf %s "(cached) " >&6
9395 else $as_nop
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9398 int i;
9399 int
9400 main (void)
9401 {
9402
9403 ;
9404 return 0;
9405 }
9406 _ACEOF
9407 if ac_fn_c_try_link "$LINENO"
9408 then :
9409 eval $cacheid=yes
9410 else $as_nop
9411 eval $cacheid=no
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9414 conftest$ac_exeext conftest.$ac_ext
9415 fi
9416
9417
9418 CFLAGS="$xorg_testset_save_CFLAGS"
9419
9420 eval supported=\$$cacheid
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9422 printf "%s\n" "$supported" >&6; }
9423 if test "$supported" = "yes" ; then
9424 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9425 found="yes"
9426 fi
9427 fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443 xorg_testset_save_CFLAGS="$CFLAGS"
9444
9445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9449 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9450 then :
9451 printf %s "(cached) " >&6
9452 else $as_nop
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 int i;
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"
9458 then :
9459 xorg_cv_cc_flag_unknown_warning_option=yes
9460 else $as_nop
9461 xorg_cv_cc_flag_unknown_warning_option=no
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9464 fi
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9466 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9468 CFLAGS="$xorg_testset_save_CFLAGS"
9469 fi
9470
9471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474 fi
9475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9477 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9478 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9479 then :
9480 printf %s "(cached) " >&6
9481 else $as_nop
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 int i;
9485 _ACEOF
9486 if ac_fn_c_try_compile "$LINENO"
9487 then :
9488 xorg_cv_cc_flag_unused_command_line_argument=yes
9489 else $as_nop
9490 xorg_cv_cc_flag_unused_command_line_argument=no
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9493 fi
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9495 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9497 CFLAGS="$xorg_testset_save_CFLAGS"
9498 fi
9499
9500 found="no"
9501
9502 if test $found = "no" ; then
9503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505 fi
9506
9507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509 fi
9510
9511 CFLAGS="$CFLAGS -Wsequence-point"
9512
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9514 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9515 cacheid=xorg_cv_cc_flag__Wsequence_point
9516 if eval test \${$cacheid+y}
9517 then :
9518 printf %s "(cached) " >&6
9519 else $as_nop
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 int i;
9523 int
9524 main (void)
9525 {
9526
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"
9532 then :
9533 eval $cacheid=yes
9534 else $as_nop
9535 eval $cacheid=no
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9538 conftest$ac_exeext conftest.$ac_ext
9539 fi
9540
9541
9542 CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544 eval supported=\$$cacheid
9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546 printf "%s\n" "$supported" >&6; }
9547 if test "$supported" = "yes" ; then
9548 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9549 found="yes"
9550 fi
9551 fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567 xorg_testset_save_CFLAGS="$CFLAGS"
9568
9569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9574 then :
9575 printf %s "(cached) " >&6
9576 else $as_nop
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579 int i;
9580 _ACEOF
9581 if ac_fn_c_try_compile "$LINENO"
9582 then :
9583 xorg_cv_cc_flag_unknown_warning_option=yes
9584 else $as_nop
9585 xorg_cv_cc_flag_unknown_warning_option=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9588 fi
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592 CFLAGS="$xorg_testset_save_CFLAGS"
9593 fi
9594
9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598 fi
9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else $as_nop
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 int i;
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"
9611 then :
9612 xorg_cv_cc_flag_unused_command_line_argument=yes
9613 else $as_nop
9614 xorg_cv_cc_flag_unused_command_line_argument=no
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9617 fi
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9619 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9621 CFLAGS="$xorg_testset_save_CFLAGS"
9622 fi
9623
9624 found="no"
9625
9626 if test $found = "no" ; then
9627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629 fi
9630
9631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633 fi
9634
9635 CFLAGS="$CFLAGS -Wreturn-type"
9636
9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9638 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9639 cacheid=xorg_cv_cc_flag__Wreturn_type
9640 if eval test \${$cacheid+y}
9641 then :
9642 printf %s "(cached) " >&6
9643 else $as_nop
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646 int i;
9647 int
9648 main (void)
9649 {
9650
9651 ;
9652 return 0;
9653 }
9654 _ACEOF
9655 if ac_fn_c_try_link "$LINENO"
9656 then :
9657 eval $cacheid=yes
9658 else $as_nop
9659 eval $cacheid=no
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9662 conftest$ac_exeext conftest.$ac_ext
9663 fi
9664
9665
9666 CFLAGS="$xorg_testset_save_CFLAGS"
9667
9668 eval supported=\$$cacheid
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9670 printf "%s\n" "$supported" >&6; }
9671 if test "$supported" = "yes" ; then
9672 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9673 found="yes"
9674 fi
9675 fi
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691 xorg_testset_save_CFLAGS="$CFLAGS"
9692
9693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9697 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9698 then :
9699 printf %s "(cached) " >&6
9700 else $as_nop
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 int i;
9704 _ACEOF
9705 if ac_fn_c_try_compile "$LINENO"
9706 then :
9707 xorg_cv_cc_flag_unknown_warning_option=yes
9708 else $as_nop
9709 xorg_cv_cc_flag_unknown_warning_option=no
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712 fi
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9714 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717 fi
9718
9719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722 fi
9723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9725 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9726 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9727 then :
9728 printf %s "(cached) " >&6
9729 else $as_nop
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 int i;
9733 _ACEOF
9734 if ac_fn_c_try_compile "$LINENO"
9735 then :
9736 xorg_cv_cc_flag_unused_command_line_argument=yes
9737 else $as_nop
9738 xorg_cv_cc_flag_unused_command_line_argument=no
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9741 fi
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9745 CFLAGS="$xorg_testset_save_CFLAGS"
9746 fi
9747
9748 found="no"
9749
9750 if test $found = "no" ; then
9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753 fi
9754
9755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757 fi
9758
9759 CFLAGS="$CFLAGS -Wtrigraphs"
9760
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9762 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9763 cacheid=xorg_cv_cc_flag__Wtrigraphs
9764 if eval test \${$cacheid+y}
9765 then :
9766 printf %s "(cached) " >&6
9767 else $as_nop
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 int i;
9771 int
9772 main (void)
9773 {
9774
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"
9780 then :
9781 eval $cacheid=yes
9782 else $as_nop
9783 eval $cacheid=no
9784 fi
9785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9786 conftest$ac_exeext conftest.$ac_ext
9787 fi
9788
9789
9790 CFLAGS="$xorg_testset_save_CFLAGS"
9791
9792 eval supported=\$$cacheid
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9794 printf "%s\n" "$supported" >&6; }
9795 if test "$supported" = "yes" ; then
9796 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9797 found="yes"
9798 fi
9799 fi
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815 xorg_testset_save_CFLAGS="$CFLAGS"
9816
9817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9821 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9822 then :
9823 printf %s "(cached) " >&6
9824 else $as_nop
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 int i;
9828 _ACEOF
9829 if ac_fn_c_try_compile "$LINENO"
9830 then :
9831 xorg_cv_cc_flag_unknown_warning_option=yes
9832 else $as_nop
9833 xorg_cv_cc_flag_unknown_warning_option=no
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836 fi
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840 CFLAGS="$xorg_testset_save_CFLAGS"
9841 fi
9842
9843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846 fi
9847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9851 then :
9852 printf %s "(cached) " >&6
9853 else $as_nop
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 int i;
9857 _ACEOF
9858 if ac_fn_c_try_compile "$LINENO"
9859 then :
9860 xorg_cv_cc_flag_unused_command_line_argument=yes
9861 else $as_nop
9862 xorg_cv_cc_flag_unused_command_line_argument=no
9863 fi
9864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9865 fi
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9867 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9869 CFLAGS="$xorg_testset_save_CFLAGS"
9870 fi
9871
9872 found="no"
9873
9874 if test $found = "no" ; then
9875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877 fi
9878
9879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881 fi
9882
9883 CFLAGS="$CFLAGS -Warray-bounds"
9884
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9886 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9887 cacheid=xorg_cv_cc_flag__Warray_bounds
9888 if eval test \${$cacheid+y}
9889 then :
9890 printf %s "(cached) " >&6
9891 else $as_nop
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 int i;
9895 int
9896 main (void)
9897 {
9898
9899 ;
9900 return 0;
9901 }
9902 _ACEOF
9903 if ac_fn_c_try_link "$LINENO"
9904 then :
9905 eval $cacheid=yes
9906 else $as_nop
9907 eval $cacheid=no
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9910 conftest$ac_exeext conftest.$ac_ext
9911 fi
9912
9913
9914 CFLAGS="$xorg_testset_save_CFLAGS"
9915
9916 eval supported=\$$cacheid
9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9918 printf "%s\n" "$supported" >&6; }
9919 if test "$supported" = "yes" ; then
9920 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9921 found="yes"
9922 fi
9923 fi
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939 xorg_testset_save_CFLAGS="$CFLAGS"
9940
9941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9945 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9946 then :
9947 printf %s "(cached) " >&6
9948 else $as_nop
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 int i;
9952 _ACEOF
9953 if ac_fn_c_try_compile "$LINENO"
9954 then :
9955 xorg_cv_cc_flag_unknown_warning_option=yes
9956 else $as_nop
9957 xorg_cv_cc_flag_unknown_warning_option=no
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960 fi
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965 fi
9966
9967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970 fi
9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9975 then :
9976 printf %s "(cached) " >&6
9977 else $as_nop
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980 int i;
9981 _ACEOF
9982 if ac_fn_c_try_compile "$LINENO"
9983 then :
9984 xorg_cv_cc_flag_unused_command_line_argument=yes
9985 else $as_nop
9986 xorg_cv_cc_flag_unused_command_line_argument=no
9987 fi
9988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9989 fi
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9991 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9993 CFLAGS="$xorg_testset_save_CFLAGS"
9994 fi
9995
9996 found="no"
9997
9998 if test $found = "no" ; then
9999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001 fi
10002
10003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005 fi
10006
10007 CFLAGS="$CFLAGS -Wwrite-strings"
10008
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10010 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10011 cacheid=xorg_cv_cc_flag__Wwrite_strings
10012 if eval test \${$cacheid+y}
10013 then :
10014 printf %s "(cached) " >&6
10015 else $as_nop
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 int i;
10019 int
10020 main (void)
10021 {
10022
10023 ;
10024 return 0;
10025 }
10026 _ACEOF
10027 if ac_fn_c_try_link "$LINENO"
10028 then :
10029 eval $cacheid=yes
10030 else $as_nop
10031 eval $cacheid=no
10032 fi
10033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10034 conftest$ac_exeext conftest.$ac_ext
10035 fi
10036
10037
10038 CFLAGS="$xorg_testset_save_CFLAGS"
10039
10040 eval supported=\$$cacheid
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10042 printf "%s\n" "$supported" >&6; }
10043 if test "$supported" = "yes" ; then
10044 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10045 found="yes"
10046 fi
10047 fi
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063 xorg_testset_save_CFLAGS="$CFLAGS"
10064
10065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10068 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10069 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10070 then :
10071 printf %s "(cached) " >&6
10072 else $as_nop
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10075 int i;
10076 _ACEOF
10077 if ac_fn_c_try_compile "$LINENO"
10078 then :
10079 xorg_cv_cc_flag_unknown_warning_option=yes
10080 else $as_nop
10081 xorg_cv_cc_flag_unknown_warning_option=no
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10084 fi
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10086 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10088 CFLAGS="$xorg_testset_save_CFLAGS"
10089 fi
10090
10091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094 fi
10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10097 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10098 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10099 then :
10100 printf %s "(cached) " >&6
10101 else $as_nop
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 int i;
10105 _ACEOF
10106 if ac_fn_c_try_compile "$LINENO"
10107 then :
10108 xorg_cv_cc_flag_unused_command_line_argument=yes
10109 else $as_nop
10110 xorg_cv_cc_flag_unused_command_line_argument=no
10111 fi
10112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10113 fi
10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10115 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10117 CFLAGS="$xorg_testset_save_CFLAGS"
10118 fi
10119
10120 found="no"
10121
10122 if test $found = "no" ; then
10123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125 fi
10126
10127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129 fi
10130
10131 CFLAGS="$CFLAGS -Waddress"
10132
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10134 printf %s "checking if $CC supports -Waddress... " >&6; }
10135 cacheid=xorg_cv_cc_flag__Waddress
10136 if eval test \${$cacheid+y}
10137 then :
10138 printf %s "(cached) " >&6
10139 else $as_nop
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 int i;
10143 int
10144 main (void)
10145 {
10146
10147 ;
10148 return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_c_try_link "$LINENO"
10152 then :
10153 eval $cacheid=yes
10154 else $as_nop
10155 eval $cacheid=no
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10158 conftest$ac_exeext conftest.$ac_ext
10159 fi
10160
10161
10162 CFLAGS="$xorg_testset_save_CFLAGS"
10163
10164 eval supported=\$$cacheid
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10166 printf "%s\n" "$supported" >&6; }
10167 if test "$supported" = "yes" ; then
10168 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10169 found="yes"
10170 fi
10171 fi
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187 xorg_testset_save_CFLAGS="$CFLAGS"
10188
10189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10192 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10193 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10194 then :
10195 printf %s "(cached) " >&6
10196 else $as_nop
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 _ACEOF
10201 if ac_fn_c_try_compile "$LINENO"
10202 then :
10203 xorg_cv_cc_flag_unknown_warning_option=yes
10204 else $as_nop
10205 xorg_cv_cc_flag_unknown_warning_option=no
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208 fi
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10212 CFLAGS="$xorg_testset_save_CFLAGS"
10213 fi
10214
10215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218 fi
10219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10223 then :
10224 printf %s "(cached) " >&6
10225 else $as_nop
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 int i;
10229 _ACEOF
10230 if ac_fn_c_try_compile "$LINENO"
10231 then :
10232 xorg_cv_cc_flag_unused_command_line_argument=yes
10233 else $as_nop
10234 xorg_cv_cc_flag_unused_command_line_argument=no
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10237 fi
10238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10241 CFLAGS="$xorg_testset_save_CFLAGS"
10242 fi
10243
10244 found="no"
10245
10246 if test $found = "no" ; then
10247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249 fi
10250
10251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253 fi
10254
10255 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10256
10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10258 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10259 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10260 if eval test \${$cacheid+y}
10261 then :
10262 printf %s "(cached) " >&6
10263 else $as_nop
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 int i;
10267 int
10268 main (void)
10269 {
10270
10271 ;
10272 return 0;
10273 }
10274 _ACEOF
10275 if ac_fn_c_try_link "$LINENO"
10276 then :
10277 eval $cacheid=yes
10278 else $as_nop
10279 eval $cacheid=no
10280 fi
10281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10282 conftest$ac_exeext conftest.$ac_ext
10283 fi
10284
10285
10286 CFLAGS="$xorg_testset_save_CFLAGS"
10287
10288 eval supported=\$$cacheid
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10290 printf "%s\n" "$supported" >&6; }
10291 if test "$supported" = "yes" ; then
10292 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10293 found="yes"
10294 fi
10295 fi
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311 xorg_testset_save_CFLAGS="$CFLAGS"
10312
10313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10318 then :
10319 printf %s "(cached) " >&6
10320 else $as_nop
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 int i;
10324 _ACEOF
10325 if ac_fn_c_try_compile "$LINENO"
10326 then :
10327 xorg_cv_cc_flag_unknown_warning_option=yes
10328 else $as_nop
10329 xorg_cv_cc_flag_unknown_warning_option=no
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10332 fi
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10336 CFLAGS="$xorg_testset_save_CFLAGS"
10337 fi
10338
10339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10342 fi
10343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10347 then :
10348 printf %s "(cached) " >&6
10349 else $as_nop
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 int i;
10353 _ACEOF
10354 if ac_fn_c_try_compile "$LINENO"
10355 then :
10356 xorg_cv_cc_flag_unused_command_line_argument=yes
10357 else $as_nop
10358 xorg_cv_cc_flag_unused_command_line_argument=no
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10361 fi
10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10365 CFLAGS="$xorg_testset_save_CFLAGS"
10366 fi
10367
10368 found="no"
10369
10370 if test $found = "no" ; then
10371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373 fi
10374
10375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377 fi
10378
10379 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10380
10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10382 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10383 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10384 if eval test \${$cacheid+y}
10385 then :
10386 printf %s "(cached) " >&6
10387 else $as_nop
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 int i;
10391 int
10392 main (void)
10393 {
10394
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_link "$LINENO"
10400 then :
10401 eval $cacheid=yes
10402 else $as_nop
10403 eval $cacheid=no
10404 fi
10405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10406 conftest$ac_exeext conftest.$ac_ext
10407 fi
10408
10409
10410 CFLAGS="$xorg_testset_save_CFLAGS"
10411
10412 eval supported=\$$cacheid
10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10414 printf "%s\n" "$supported" >&6; }
10415 if test "$supported" = "yes" ; then
10416 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10417 found="yes"
10418 fi
10419 fi
10420
10421
10422 fi
10423
10424
10425
10426
10427
10428
10429
10430 CWARNFLAGS="$BASE_CFLAGS"
10431 if test "x$GCC" = xyes ; then
10432 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10433 fi
10434
10435
10436
10437
10438
10439
10440
10441
10442 # Check whether --enable-strict-compilation was given.
10443 if test ${enable_strict_compilation+y}
10444 then :
10445 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10446 else $as_nop
10447 STRICT_COMPILE=no
10448 fi
10449
10450
10451
10452
10453
10454
10455 STRICT_CFLAGS=""
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469 xorg_testset_save_CFLAGS="$CFLAGS"
10470
10471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10474 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10475 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10476 then :
10477 printf %s "(cached) " >&6
10478 else $as_nop
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10481 int i;
10482 _ACEOF
10483 if ac_fn_c_try_compile "$LINENO"
10484 then :
10485 xorg_cv_cc_flag_unknown_warning_option=yes
10486 else $as_nop
10487 xorg_cv_cc_flag_unknown_warning_option=no
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10490 fi
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10492 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10494 CFLAGS="$xorg_testset_save_CFLAGS"
10495 fi
10496
10497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10500 fi
10501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10503 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10504 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10505 then :
10506 printf %s "(cached) " >&6
10507 else $as_nop
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 int i;
10511 _ACEOF
10512 if ac_fn_c_try_compile "$LINENO"
10513 then :
10514 xorg_cv_cc_flag_unused_command_line_argument=yes
10515 else $as_nop
10516 xorg_cv_cc_flag_unused_command_line_argument=no
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10519 fi
10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10523 CFLAGS="$xorg_testset_save_CFLAGS"
10524 fi
10525
10526 found="no"
10527
10528 if test $found = "no" ; then
10529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10531 fi
10532
10533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10535 fi
10536
10537 CFLAGS="$CFLAGS -pedantic"
10538
10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10540 printf %s "checking if $CC supports -pedantic... " >&6; }
10541 cacheid=xorg_cv_cc_flag__pedantic
10542 if eval test \${$cacheid+y}
10543 then :
10544 printf %s "(cached) " >&6
10545 else $as_nop
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548 int i;
10549 int
10550 main (void)
10551 {
10552
10553 ;
10554 return 0;
10555 }
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"
10558 then :
10559 eval $cacheid=yes
10560 else $as_nop
10561 eval $cacheid=no
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10564 conftest$ac_exeext conftest.$ac_ext
10565 fi
10566
10567
10568 CFLAGS="$xorg_testset_save_CFLAGS"
10569
10570 eval supported=\$$cacheid
10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10572 printf "%s\n" "$supported" >&6; }
10573 if test "$supported" = "yes" ; then
10574 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10575 found="yes"
10576 fi
10577 fi
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593 xorg_testset_save_CFLAGS="$CFLAGS"
10594
10595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10598 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10599 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10600 then :
10601 printf %s "(cached) " >&6
10602 else $as_nop
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10605 int i;
10606 _ACEOF
10607 if ac_fn_c_try_compile "$LINENO"
10608 then :
10609 xorg_cv_cc_flag_unknown_warning_option=yes
10610 else $as_nop
10611 xorg_cv_cc_flag_unknown_warning_option=no
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10614 fi
10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10616 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10618 CFLAGS="$xorg_testset_save_CFLAGS"
10619 fi
10620
10621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10624 fi
10625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10627 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10628 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10629 then :
10630 printf %s "(cached) " >&6
10631 else $as_nop
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 int i;
10635 _ACEOF
10636 if ac_fn_c_try_compile "$LINENO"
10637 then :
10638 xorg_cv_cc_flag_unused_command_line_argument=yes
10639 else $as_nop
10640 xorg_cv_cc_flag_unused_command_line_argument=no
10641 fi
10642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10643 fi
10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10645 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10647 CFLAGS="$xorg_testset_save_CFLAGS"
10648 fi
10649
10650 found="no"
10651
10652 if test $found = "no" ; then
10653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655 fi
10656
10657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10659 fi
10660
10661 CFLAGS="$CFLAGS -Werror"
10662
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10664 printf %s "checking if $CC supports -Werror... " >&6; }
10665 cacheid=xorg_cv_cc_flag__Werror
10666 if eval test \${$cacheid+y}
10667 then :
10668 printf %s "(cached) " >&6
10669 else $as_nop
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 int i;
10673 int
10674 main (void)
10675 {
10676
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"
10682 then :
10683 eval $cacheid=yes
10684 else $as_nop
10685 eval $cacheid=no
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10688 conftest$ac_exeext conftest.$ac_ext
10689 fi
10690
10691
10692 CFLAGS="$xorg_testset_save_CFLAGS"
10693
10694 eval supported=\$$cacheid
10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10696 printf "%s\n" "$supported" >&6; }
10697 if test "$supported" = "yes" ; then
10698 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10699 found="yes"
10700 fi
10701 fi
10702
10703 if test $found = "no" ; then
10704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10706 fi
10707
10708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10710 fi
10711
10712 CFLAGS="$CFLAGS -errwarn"
10713
10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10715 printf %s "checking if $CC supports -errwarn... " >&6; }
10716 cacheid=xorg_cv_cc_flag__errwarn
10717 if eval test \${$cacheid+y}
10718 then :
10719 printf %s "(cached) " >&6
10720 else $as_nop
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723 int i;
10724 int
10725 main (void)
10726 {
10727
10728 ;
10729 return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_link "$LINENO"
10733 then :
10734 eval $cacheid=yes
10735 else $as_nop
10736 eval $cacheid=no
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10739 conftest$ac_exeext conftest.$ac_ext
10740 fi
10741
10742
10743 CFLAGS="$xorg_testset_save_CFLAGS"
10744
10745 eval supported=\$$cacheid
10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10747 printf "%s\n" "$supported" >&6; }
10748 if test "$supported" = "yes" ; then
10749 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10750 found="yes"
10751 fi
10752 fi
10753
10754
10755
10756 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10757 # activate it with -Werror, so we add it here explicitly.
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771 xorg_testset_save_CFLAGS="$CFLAGS"
10772
10773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10776 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10777 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10778 then :
10779 printf %s "(cached) " >&6
10780 else $as_nop
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 int i;
10784 _ACEOF
10785 if ac_fn_c_try_compile "$LINENO"
10786 then :
10787 xorg_cv_cc_flag_unknown_warning_option=yes
10788 else $as_nop
10789 xorg_cv_cc_flag_unknown_warning_option=no
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10792 fi
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10794 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10796 CFLAGS="$xorg_testset_save_CFLAGS"
10797 fi
10798
10799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10802 fi
10803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10805 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10806 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10807 then :
10808 printf %s "(cached) " >&6
10809 else $as_nop
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812 int i;
10813 _ACEOF
10814 if ac_fn_c_try_compile "$LINENO"
10815 then :
10816 xorg_cv_cc_flag_unused_command_line_argument=yes
10817 else $as_nop
10818 xorg_cv_cc_flag_unused_command_line_argument=no
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10821 fi
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10823 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10825 CFLAGS="$xorg_testset_save_CFLAGS"
10826 fi
10827
10828 found="no"
10829
10830 if test $found = "no" ; then
10831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10833 fi
10834
10835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10837 fi
10838
10839 CFLAGS="$CFLAGS -Werror=attributes"
10840
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10842 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10843 cacheid=xorg_cv_cc_flag__Werror_attributes
10844 if eval test \${$cacheid+y}
10845 then :
10846 printf %s "(cached) " >&6
10847 else $as_nop
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850 int i;
10851 int
10852 main (void)
10853 {
10854
10855 ;
10856 return 0;
10857 }
10858 _ACEOF
10859 if ac_fn_c_try_link "$LINENO"
10860 then :
10861 eval $cacheid=yes
10862 else $as_nop
10863 eval $cacheid=no
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10866 conftest$ac_exeext conftest.$ac_ext
10867 fi
10868
10869
10870 CFLAGS="$xorg_testset_save_CFLAGS"
10871
10872 eval supported=\$$cacheid
10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10874 printf "%s\n" "$supported" >&6; }
10875 if test "$supported" = "yes" ; then
10876 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10877 found="yes"
10878 fi
10879 fi
10880
10881
10882
10883 if test "x$STRICT_COMPILE" = "xyes"; then
10884 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10885 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10886 fi
10887
10888
10889
10890
10891
10892
10893 cat >>confdefs.h <<_ACEOF
10894 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10895 _ACEOF
10896
10897 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10898 if test "x$PVM" = "x"; then
10899 PVM="0"
10900 fi
10901
10902 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10903
10904 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10905 if test "x$PVP" = "x"; then
10906 PVP="0"
10907 fi
10908
10909 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10910
10911
10912
10913 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10914 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10915 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10916 touch \$(top_srcdir)/ChangeLog; \
10917 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10918
10919
10920
10921
10922 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10923 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10924 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10925 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10926 touch \$(top_srcdir)/INSTALL; \
10927 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10928
10929
10930
10931
10932
10933
10934 case $host_os in
10935 solaris*)
10936 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10937 # check for a man page file found in later versions that use
10938 # traditional section numbers instead
10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10940 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10941 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10942 then :
10943 printf %s "(cached) " >&6
10944 else $as_nop
10945 test "$cross_compiling" = yes &&
10946 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10947 if test -r "/usr/share/man/man7/attributes.7"; then
10948 ac_cv_file__usr_share_man_man7_attributes_7=yes
10949 else
10950 ac_cv_file__usr_share_man_man7_attributes_7=no
10951 fi
10952 fi
10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10954 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10955 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10956 then :
10957 SYSV_MAN_SECTIONS=false
10958 else $as_nop
10959 SYSV_MAN_SECTIONS=true
10960 fi
10961
10962 ;;
10963 *) SYSV_MAN_SECTIONS=false ;;
10964 esac
10965
10966 if test x$APP_MAN_SUFFIX = x ; then
10967 APP_MAN_SUFFIX=1
10968 fi
10969 if test x$APP_MAN_DIR = x ; then
10970 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10971 fi
10972
10973 if test x$LIB_MAN_SUFFIX = x ; then
10974 LIB_MAN_SUFFIX=3
10975 fi
10976 if test x$LIB_MAN_DIR = x ; then
10977 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10978 fi
10979
10980 if test x$FILE_MAN_SUFFIX = x ; then
10981 case $SYSV_MAN_SECTIONS in
10982 true) FILE_MAN_SUFFIX=4 ;;
10983 *) FILE_MAN_SUFFIX=5 ;;
10984 esac
10985 fi
10986 if test x$FILE_MAN_DIR = x ; then
10987 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10988 fi
10989
10990 if test x$MISC_MAN_SUFFIX = x ; then
10991 case $SYSV_MAN_SECTIONS in
10992 true) MISC_MAN_SUFFIX=5 ;;
10993 *) MISC_MAN_SUFFIX=7 ;;
10994 esac
10995 fi
10996 if test x$MISC_MAN_DIR = x ; then
10997 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10998 fi
10999
11000 if test x$DRIVER_MAN_SUFFIX = x ; then
11001 case $SYSV_MAN_SECTIONS in
11002 true) DRIVER_MAN_SUFFIX=7 ;;
11003 *) DRIVER_MAN_SUFFIX=4 ;;
11004 esac
11005 fi
11006 if test x$DRIVER_MAN_DIR = x ; then
11007 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11008 fi
11009
11010 if test x$ADMIN_MAN_SUFFIX = x ; then
11011 case $SYSV_MAN_SECTIONS in
11012 true) ADMIN_MAN_SUFFIX=1m ;;
11013 *) ADMIN_MAN_SUFFIX=8 ;;
11014 esac
11015 fi
11016 if test x$ADMIN_MAN_DIR = x ; then
11017 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11018 fi
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034 XORG_MAN_PAGE="X Version 11"
11035
11036 MAN_SUBSTS="\
11037 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11038 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11039 -e 's|__xservername__|Xorg|g' \
11040 -e 's|__xconfigfile__|xorg.conf|g' \
11041 -e 's|__projectroot__|\$(prefix)|g' \
11042 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11043 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11044 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11045 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11046 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11047 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11048 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11049
11050
11051
11052 # Check whether --enable-silent-rules was given.
11053 if test ${enable_silent_rules+y}
11054 then :
11055 enableval=$enable_silent_rules;
11056 fi
11057
11058 case $enable_silent_rules in # (((
11059 yes) AM_DEFAULT_VERBOSITY=0;;
11060 no) AM_DEFAULT_VERBOSITY=1;;
11061 *) AM_DEFAULT_VERBOSITY=0;;
11062 esac
11063 am_make=${MAKE-make}
11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11065 printf %s "checking whether $am_make supports nested variables... " >&6; }
11066 if test ${am_cv_make_support_nested_variables+y}
11067 then :
11068 printf %s "(cached) " >&6
11069 else $as_nop
11070 if printf "%s\n" 'TRUE=$(BAR$(V))
11071 BAR0=false
11072 BAR1=true
11073 V=1
11074 am__doit:
11075 @$(TRUE)
11076 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11077 am_cv_make_support_nested_variables=yes
11078 else
11079 am_cv_make_support_nested_variables=no
11080 fi
11081 fi
11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11083 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11084 if test $am_cv_make_support_nested_variables = yes; then
11085 AM_V='$(V)'
11086 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11087 else
11088 AM_V=$AM_DEFAULT_VERBOSITY
11089 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11090 fi
11091 AM_BACKSLASH='\'
11092
11093
11094
11095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11096 printf %s "checking for root directory for font files... " >&6; }
11097 fontrootdir='${datadir}/fonts/X11'
11098
11099 # Check whether --with-fontrootdir was given.
11100 if test ${with_fontrootdir+y}
11101 then :
11102 withval=$with_fontrootdir; fontrootdir="${withval}"
11103 fi
11104
11105
11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${fontrootdir}" >&5
11107 printf "%s\n" "${fontrootdir}" >&6; }
11108
11109 mapdir='${fontrootdir}/util'
11110
11111 # Check whether --with-mapdir was given.
11112 if test ${with_mapdir+y}
11113 then :
11114 withval=$with_mapdir; mapdir="${withval}"
11115 fi
11116
11117 MAPDIR="$mapdir"
11118
11119
11120 ac_config_files="$ac_config_files Makefile man/Makefile fontutil.m4 fontutil.pc"
11121
11122
11123 cat >confcache <<\_ACEOF
11124 # This file is a shell script that caches the results of configure
11125 # tests run on this system so they can be shared between configure
11126 # scripts and configure runs, see configure's option --config-cache.
11127 # It is not useful on other systems. If it contains results you don't
11128 # want to keep, you may remove or edit it.
11129 #
11130 # config.status only pays attention to the cache file if you give it
11131 # the --recheck option to rerun configure.
11132 #
11133 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11134 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11135 # following values.
11136
11137 _ACEOF
11138
11139 # The following way of writing the cache mishandles newlines in values,
11140 # but we know of no workaround that is simple, portable, and efficient.
11141 # So, we kill variables containing newlines.
11142 # Ultrix sh set writes to stderr and can't be redirected directly,
11143 # and sets the high bit in the cache file unless we assign to the vars.
11144 (
11145 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11146 eval ac_val=\$$ac_var
11147 case $ac_val in #(
11148 *${as_nl}*)
11149 case $ac_var in #(
11150 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11151 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11152 esac
11153 case $ac_var in #(
11154 _ | IFS | as_nl) ;; #(
11155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11156 *) { eval $ac_var=; unset $ac_var;} ;;
11157 esac ;;
11158 esac
11159 done
11160
11161 (set) 2>&1 |
11162 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11163 *${as_nl}ac_space=\ *)
11164 # `set' does not quote correctly, so add quotes: double-quote
11165 # substitution turns \\\\ into \\, and sed turns \\ into \.
11166 sed -n \
11167 "s/'/'\\\\''/g;
11168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11169 ;; #(
11170 *)
11171 # `set' quotes correctly as required by POSIX, so do not add quotes.
11172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11173 ;;
11174 esac |
11175 sort
11176 ) |
11177 sed '
11178 /^ac_cv_env_/b end
11179 t clear
11180 :clear
11181 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11182 t end
11183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11184 :end' >>confcache
11185 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11186 if test -w "$cache_file"; then
11187 if test "x$cache_file" != "x/dev/null"; then
11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11189 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11190 if test ! -f "$cache_file" || test -h "$cache_file"; then
11191 cat confcache >"$cache_file"
11192 else
11193 case $cache_file in #(
11194 */* | ?:*)
11195 mv -f confcache "$cache_file"$$ &&
11196 mv -f "$cache_file"$$ "$cache_file" ;; #(
11197 *)
11198 mv -f confcache "$cache_file" ;;
11199 esac
11200 fi
11201 fi
11202 else
11203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11204 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11205 fi
11206 fi
11207 rm -f confcache
11208
11209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11210 # Let make expand exec_prefix.
11211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11212
11213 DEFS=-DHAVE_CONFIG_H
11214
11215 ac_libobjs=
11216 ac_ltlibobjs=
11217 U=
11218 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11219 # 1. Remove the extension, and $U if already installed.
11220 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11221 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11222 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11223 # will be set to the directory where LIBOBJS objects are built.
11224 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11225 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11226 done
11227 LIBOBJS=$ac_libobjs
11228
11229 LTLIBOBJS=$ac_ltlibobjs
11230
11231
11232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11233 printf %s "checking that generated files are newer than configure... " >&6; }
11234 if test -n "$am_sleep_pid"; then
11235 # Hide warnings about reused PIDs.
11236 wait $am_sleep_pid 2>/dev/null
11237 fi
11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11239 printf "%s\n" "done" >&6; }
11240 if test -n "$EXEEXT"; then
11241 am__EXEEXT_TRUE=
11242 am__EXEEXT_FALSE='#'
11243 else
11244 am__EXEEXT_TRUE='#'
11245 am__EXEEXT_FALSE=
11246 fi
11247
11248 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11249 as_fn_error $? "conditional \"AMDEP\" was never defined.
11250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11251 fi
11252 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11253 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11255 fi
11256
11257 : "${CONFIG_STATUS=./config.status}"
11258 ac_write_fail=0
11259 ac_clean_files_save=$ac_clean_files
11260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11262 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11263 as_write_fail=0
11264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11265 #! $SHELL
11266 # Generated by $as_me.
11267 # Run this file to recreate the current configuration.
11268 # Compiler output produced by configure, useful for debugging
11269 # configure, is in config.log if it exists.
11270
11271 debug=false
11272 ac_cs_recheck=false
11273 ac_cs_silent=false
11274
11275 SHELL=\${CONFIG_SHELL-$SHELL}
11276 export SHELL
11277 _ASEOF
11278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11279 ## -------------------- ##
11280 ## M4sh Initialization. ##
11281 ## -------------------- ##
11282
11283 # Be more Bourne compatible
11284 DUALCASE=1; export DUALCASE # for MKS sh
11285 as_nop=:
11286 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11287 then :
11288 emulate sh
11289 NULLCMD=:
11290 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11291 # is contrary to our usage. Disable this feature.
11292 alias -g '${1+"$@"}'='"$@"'
11293 setopt NO_GLOB_SUBST
11294 else $as_nop
11295 case `(set -o) 2>/dev/null` in #(
11296 *posix*) :
11297 set -o posix ;; #(
11298 *) :
11299 ;;
11300 esac
11301 fi
11302
11303
11304
11305 # Reset variables that may have inherited troublesome values from
11306 # the environment.
11307
11308 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11309 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11310 # side effect of setting IFS to empty, thus disabling word splitting.)
11311 # Quoting is to prevent editors from complaining about space-tab.
11312 as_nl='
11313 '
11314 export as_nl
11315 IFS=" "" $as_nl"
11316
11317 PS1='$ '
11318 PS2='> '
11319 PS4='+ '
11320
11321 # Ensure predictable behavior from utilities with locale-dependent output.
11322 LC_ALL=C
11323 export LC_ALL
11324 LANGUAGE=C
11325 export LANGUAGE
11326
11327 # We cannot yet rely on "unset" to work, but we need these variables
11328 # to be unset--not just set to an empty or harmless value--now, to
11329 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11330 # also avoids known problems related to "unset" and subshell syntax
11331 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11332 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11333 do eval test \${$as_var+y} \
11334 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11335 done
11336
11337 # Ensure that fds 0, 1, and 2 are open.
11338 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11339 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11340 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11341
11342 # The user is always right.
11343 if ${PATH_SEPARATOR+false} :; then
11344 PATH_SEPARATOR=:
11345 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11346 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11347 PATH_SEPARATOR=';'
11348 }
11349 fi
11350
11351
11352 # Find who we are. Look in the path if we contain no directory separator.
11353 as_myself=
11354 case $0 in #((
11355 *[\\/]* ) as_myself=$0 ;;
11356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359 IFS=$as_save_IFS
11360 case $as_dir in #(((
11361 '') as_dir=./ ;;
11362 */) ;;
11363 *) as_dir=$as_dir/ ;;
11364 esac
11365 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11366 done
11367 IFS=$as_save_IFS
11368
11369 ;;
11370 esac
11371 # We did not find ourselves, most probably we were run as `sh COMMAND'
11372 # in which case we are not to be found in the path.
11373 if test "x$as_myself" = x; then
11374 as_myself=$0
11375 fi
11376 if test ! -f "$as_myself"; then
11377 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11378 exit 1
11379 fi
11380
11381
11382
11383 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11384 # ----------------------------------------
11385 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11386 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11387 # script with STATUS, using 1 if that was 0.
11388 as_fn_error ()
11389 {
11390 as_status=$1; test $as_status -eq 0 && as_status=1
11391 if test "$4"; then
11392 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11394 fi
11395 printf "%s\n" "$as_me: error: $2" >&2
11396 as_fn_exit $as_status
11397 } # as_fn_error
11398
11399
11400
11401 # as_fn_set_status STATUS
11402 # -----------------------
11403 # Set $? to STATUS, without forking.
11404 as_fn_set_status ()
11405 {
11406 return $1
11407 } # as_fn_set_status
11408
11409 # as_fn_exit STATUS
11410 # -----------------
11411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11412 as_fn_exit ()
11413 {
11414 set +e
11415 as_fn_set_status $1
11416 exit $1
11417 } # as_fn_exit
11418
11419 # as_fn_unset VAR
11420 # ---------------
11421 # Portably unset VAR.
11422 as_fn_unset ()
11423 {
11424 { eval $1=; unset $1;}
11425 }
11426 as_unset=as_fn_unset
11427
11428 # as_fn_append VAR VALUE
11429 # ----------------------
11430 # Append the text in VALUE to the end of the definition contained in VAR. Take
11431 # advantage of any shell optimizations that allow amortized linear growth over
11432 # repeated appends, instead of the typical quadratic growth present in naive
11433 # implementations.
11434 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11435 then :
11436 eval 'as_fn_append ()
11437 {
11438 eval $1+=\$2
11439 }'
11440 else $as_nop
11441 as_fn_append ()
11442 {
11443 eval $1=\$$1\$2
11444 }
11445 fi # as_fn_append
11446
11447 # as_fn_arith ARG...
11448 # ------------------
11449 # Perform arithmetic evaluation on the ARGs, and store the result in the
11450 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11451 # must be portable across $(()) and expr.
11452 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11453 then :
11454 eval 'as_fn_arith ()
11455 {
11456 as_val=$(( $* ))
11457 }'
11458 else $as_nop
11459 as_fn_arith ()
11460 {
11461 as_val=`expr "$@" || test $? -eq 1`
11462 }
11463 fi # as_fn_arith
11464
11465
11466 if expr a : '\(a\)' >/dev/null 2>&1 &&
11467 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11468 as_expr=expr
11469 else
11470 as_expr=false
11471 fi
11472
11473 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11474 as_basename=basename
11475 else
11476 as_basename=false
11477 fi
11478
11479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11480 as_dirname=dirname
11481 else
11482 as_dirname=false
11483 fi
11484
11485 as_me=`$as_basename -- "$0" ||
11486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11487 X"$0" : 'X\(//\)$' \| \
11488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11489 printf "%s\n" X/"$0" |
11490 sed '/^.*\/\([^/][^/]*\)\/*$/{
11491 s//\1/
11492 q
11493 }
11494 /^X\/\(\/\/\)$/{
11495 s//\1/
11496 q
11497 }
11498 /^X\/\(\/\).*/{
11499 s//\1/
11500 q
11501 }
11502 s/.*/./; q'`
11503
11504 # Avoid depending upon Character Ranges.
11505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11508 as_cr_digits='0123456789'
11509 as_cr_alnum=$as_cr_Letters$as_cr_digits
11510
11511
11512 # Determine whether it's possible to make 'echo' print without a newline.
11513 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11514 # for compatibility with existing Makefiles.
11515 ECHO_C= ECHO_N= ECHO_T=
11516 case `echo -n x` in #(((((
11517 -n*)
11518 case `echo 'xy\c'` in
11519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11520 xy) ECHO_C='\c';;
11521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11522 ECHO_T=' ';;
11523 esac;;
11524 *)
11525 ECHO_N='-n';;
11526 esac
11527
11528 # For backward compatibility with old third-party macros, we provide
11529 # the shell variables $as_echo and $as_echo_n. New code should use
11530 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11531 as_echo='printf %s\n'
11532 as_echo_n='printf %s'
11533
11534 rm -f conf$$ conf$$.exe conf$$.file
11535 if test -d conf$$.dir; then
11536 rm -f conf$$.dir/conf$$.file
11537 else
11538 rm -f conf$$.dir
11539 mkdir conf$$.dir 2>/dev/null
11540 fi
11541 if (echo >conf$$.file) 2>/dev/null; then
11542 if ln -s conf$$.file conf$$ 2>/dev/null; then
11543 as_ln_s='ln -s'
11544 # ... but there are two gotchas:
11545 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11546 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11547 # In both cases, we have to default to `cp -pR'.
11548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11549 as_ln_s='cp -pR'
11550 elif ln conf$$.file conf$$ 2>/dev/null; then
11551 as_ln_s=ln
11552 else
11553 as_ln_s='cp -pR'
11554 fi
11555 else
11556 as_ln_s='cp -pR'
11557 fi
11558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11559 rmdir conf$$.dir 2>/dev/null
11560
11561
11562 # as_fn_mkdir_p
11563 # -------------
11564 # Create "$as_dir" as a directory, including parents if necessary.
11565 as_fn_mkdir_p ()
11566 {
11567
11568 case $as_dir in #(
11569 -*) as_dir=./$as_dir;;
11570 esac
11571 test -d "$as_dir" || eval $as_mkdir_p || {
11572 as_dirs=
11573 while :; do
11574 case $as_dir in #(
11575 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11576 *) as_qdir=$as_dir;;
11577 esac
11578 as_dirs="'$as_qdir' $as_dirs"
11579 as_dir=`$as_dirname -- "$as_dir" ||
11580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11581 X"$as_dir" : 'X\(//\)[^/]' \| \
11582 X"$as_dir" : 'X\(//\)$' \| \
11583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11584 printf "%s\n" X"$as_dir" |
11585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11586 s//\1/
11587 q
11588 }
11589 /^X\(\/\/\)[^/].*/{
11590 s//\1/
11591 q
11592 }
11593 /^X\(\/\/\)$/{
11594 s//\1/
11595 q
11596 }
11597 /^X\(\/\).*/{
11598 s//\1/
11599 q
11600 }
11601 s/.*/./; q'`
11602 test -d "$as_dir" && break
11603 done
11604 test -z "$as_dirs" || eval "mkdir $as_dirs"
11605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11606
11607
11608 } # as_fn_mkdir_p
11609 if mkdir -p . 2>/dev/null; then
11610 as_mkdir_p='mkdir -p "$as_dir"'
11611 else
11612 test -d ./-p && rmdir ./-p
11613 as_mkdir_p=false
11614 fi
11615
11616
11617 # as_fn_executable_p FILE
11618 # -----------------------
11619 # Test if FILE is an executable regular file.
11620 as_fn_executable_p ()
11621 {
11622 test -f "$1" && test -x "$1"
11623 } # as_fn_executable_p
11624 as_test_x='test -x'
11625 as_executable_p=as_fn_executable_p
11626
11627 # Sed expression to map a string onto a valid CPP name.
11628 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11629
11630 # Sed expression to map a string onto a valid variable name.
11631 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11632
11633
11634 exec 6>&1
11635 ## ----------------------------------- ##
11636 ## Main body of $CONFIG_STATUS script. ##
11637 ## ----------------------------------- ##
11638 _ASEOF
11639 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11640
11641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11642 # Save the log message, to keep $0 and so on meaningful, and to
11643 # report actual input values of CONFIG_FILES etc. instead of their
11644 # values after options handling.
11645 ac_log="
11646 This file was extended by font-util $as_me 1.3.3, which was
11647 generated by GNU Autoconf 2.71. Invocation command line was
11648
11649 CONFIG_FILES = $CONFIG_FILES
11650 CONFIG_HEADERS = $CONFIG_HEADERS
11651 CONFIG_LINKS = $CONFIG_LINKS
11652 CONFIG_COMMANDS = $CONFIG_COMMANDS
11653 $ $0 $@
11654
11655 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11656 "
11657
11658 _ACEOF
11659
11660 case $ac_config_files in *"
11661 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11662 esac
11663
11664 case $ac_config_headers in *"
11665 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11666 esac
11667
11668
11669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11670 # Files that config.status was made for.
11671 config_files="$ac_config_files"
11672 config_headers="$ac_config_headers"
11673 config_commands="$ac_config_commands"
11674
11675 _ACEOF
11676
11677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11678 ac_cs_usage="\
11679 \`$as_me' instantiates files and other configuration actions
11680 from templates according to the current configuration. Unless the files
11681 and actions are specified as TAGs, all are instantiated by default.
11682
11683 Usage: $0 [OPTION]... [TAG]...
11684
11685 -h, --help print this help, then exit
11686 -V, --version print version number and configuration settings, then exit
11687 --config print configuration, then exit
11688 -q, --quiet, --silent
11689 do not print progress messages
11690 -d, --debug don't remove temporary files
11691 --recheck update $as_me by reconfiguring in the same conditions
11692 --file=FILE[:TEMPLATE]
11693 instantiate the configuration file FILE
11694 --header=FILE[:TEMPLATE]
11695 instantiate the configuration header FILE
11696
11697 Configuration files:
11698 $config_files
11699
11700 Configuration headers:
11701 $config_headers
11702
11703 Configuration commands:
11704 $config_commands
11705
11706 Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/issues>."
11707
11708 _ACEOF
11709 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11710 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11712 ac_cs_config='$ac_cs_config_escaped'
11713 ac_cs_version="\\
11714 font-util config.status 1.3.3
11715 configured by $0, generated by GNU Autoconf 2.71,
11716 with options \\"\$ac_cs_config\\"
11717
11718 Copyright (C) 2021 Free Software Foundation, Inc.
11719 This config.status script is free software; the Free Software Foundation
11720 gives unlimited permission to copy, distribute and modify it."
11721
11722 ac_pwd='$ac_pwd'
11723 srcdir='$srcdir'
11724 INSTALL='$INSTALL'
11725 MKDIR_P='$MKDIR_P'
11726 AWK='$AWK'
11727 test -n "\$AWK" || AWK=awk
11728 _ACEOF
11729
11730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11731 # The default lists apply if the user does not specify any file.
11732 ac_need_defaults=:
11733 while test $# != 0
11734 do
11735 case $1 in
11736 --*=?*)
11737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11739 ac_shift=:
11740 ;;
11741 --*=)
11742 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11743 ac_optarg=
11744 ac_shift=:
11745 ;;
11746 *)
11747 ac_option=$1
11748 ac_optarg=$2
11749 ac_shift=shift
11750 ;;
11751 esac
11752
11753 case $ac_option in
11754 # Handling of the options.
11755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11756 ac_cs_recheck=: ;;
11757 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11758 printf "%s\n" "$ac_cs_version"; exit ;;
11759 --config | --confi | --conf | --con | --co | --c )
11760 printf "%s\n" "$ac_cs_config"; exit ;;
11761 --debug | --debu | --deb | --de | --d | -d )
11762 debug=: ;;
11763 --file | --fil | --fi | --f )
11764 $ac_shift
11765 case $ac_optarg in
11766 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11767 '') as_fn_error $? "missing file argument" ;;
11768 esac
11769 as_fn_append CONFIG_FILES " '$ac_optarg'"
11770 ac_need_defaults=false;;
11771 --header | --heade | --head | --hea )
11772 $ac_shift
11773 case $ac_optarg in
11774 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11775 esac
11776 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11777 ac_need_defaults=false;;
11778 --he | --h)
11779 # Conflict between --help and --header
11780 as_fn_error $? "ambiguous option: \`$1'
11781 Try \`$0 --help' for more information.";;
11782 --help | --hel | -h )
11783 printf "%s\n" "$ac_cs_usage"; exit ;;
11784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11786 ac_cs_silent=: ;;
11787
11788 # This is an error.
11789 -*) as_fn_error $? "unrecognized option: \`$1'
11790 Try \`$0 --help' for more information." ;;
11791
11792 *) as_fn_append ac_config_targets " $1"
11793 ac_need_defaults=false ;;
11794
11795 esac
11796 shift
11797 done
11798
11799 ac_configure_extra_args=
11800
11801 if $ac_cs_silent; then
11802 exec 6>/dev/null
11803 ac_configure_extra_args="$ac_configure_extra_args --silent"
11804 fi
11805
11806 _ACEOF
11807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11808 if \$ac_cs_recheck; then
11809 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11810 shift
11811 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11812 CONFIG_SHELL='$SHELL'
11813 export CONFIG_SHELL
11814 exec "\$@"
11815 fi
11816
11817 _ACEOF
11818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819 exec 5>>config.log
11820 {
11821 echo
11822 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11823 ## Running $as_me. ##
11824 _ASBOX
11825 printf "%s\n" "$ac_log"
11826 } >&5
11827
11828 _ACEOF
11829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830 #
11831 # INIT-COMMANDS
11832 #
11833 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11834
11835 _ACEOF
11836
11837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11838
11839 # Handling of arguments.
11840 for ac_config_target in $ac_config_targets
11841 do
11842 case $ac_config_target in
11843 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11844 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11845 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11846 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11847 "fontutil.m4") CONFIG_FILES="$CONFIG_FILES fontutil.m4" ;;
11848 "fontutil.pc") CONFIG_FILES="$CONFIG_FILES fontutil.pc" ;;
11849
11850 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11851 esac
11852 done
11853
11854
11855 # If the user did not use the arguments to specify the items to instantiate,
11856 # then the envvar interface is used. Set only those that are not.
11857 # We use the long form for the default assignment because of an extremely
11858 # bizarre bug on SunOS 4.1.3.
11859 if $ac_need_defaults; then
11860 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11861 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11862 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11863 fi
11864
11865 # Have a temporary directory for convenience. Make it in the build tree
11866 # simply because there is no reason against having it here, and in addition,
11867 # creating and moving files from /tmp can sometimes cause problems.
11868 # Hook for its removal unless debugging.
11869 # Note that there is a small window in which the directory will not be cleaned:
11870 # after its creation but before its name has been assigned to `$tmp'.
11871 $debug ||
11872 {
11873 tmp= ac_tmp=
11874 trap 'exit_status=$?
11875 : "${ac_tmp:=$tmp}"
11876 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11877 ' 0
11878 trap 'as_fn_exit 1' 1 2 13 15
11879 }
11880 # Create a (secure) tmp directory for tmp files.
11881
11882 {
11883 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11884 test -d "$tmp"
11885 } ||
11886 {
11887 tmp=./conf$$-$RANDOM
11888 (umask 077 && mkdir "$tmp")
11889 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11890 ac_tmp=$tmp
11891
11892 # Set up the scripts for CONFIG_FILES section.
11893 # No need to generate them if there are no CONFIG_FILES.
11894 # This happens for instance with `./config.status config.h'.
11895 if test -n "$CONFIG_FILES"; then
11896
11897
11898 ac_cr=`echo X | tr X '\015'`
11899 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11900 # But we know of no other shell where ac_cr would be empty at this
11901 # point, so we can use a bashism as a fallback.
11902 if test "x$ac_cr" = x; then
11903 eval ac_cr=\$\'\\r\'
11904 fi
11905 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11906 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11907 ac_cs_awk_cr='\\r'
11908 else
11909 ac_cs_awk_cr=$ac_cr
11910 fi
11911
11912 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11913 _ACEOF
11914
11915
11916 {
11917 echo "cat >conf$$subs.awk <<_ACEOF" &&
11918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11919 echo "_ACEOF"
11920 } >conf$$subs.sh ||
11921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11922 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11923 ac_delim='%!_!# '
11924 for ac_last_try in false false false false false :; do
11925 . ./conf$$subs.sh ||
11926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11927
11928 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11929 if test $ac_delim_n = $ac_delim_num; then
11930 break
11931 elif $ac_last_try; then
11932 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11933 else
11934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11935 fi
11936 done
11937 rm -f conf$$subs.sh
11938
11939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11940 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11941 _ACEOF
11942 sed -n '
11943 h
11944 s/^/S["/; s/!.*/"]=/
11945 p
11946 g
11947 s/^[^!]*!//
11948 :repl
11949 t repl
11950 s/'"$ac_delim"'$//
11951 t delim
11952 :nl
11953 h
11954 s/\(.\{148\}\)..*/\1/
11955 t more1
11956 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11957 p
11958 n
11959 b repl
11960 :more1
11961 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11962 p
11963 g
11964 s/.\{148\}//
11965 t nl
11966 :delim
11967 h
11968 s/\(.\{148\}\)..*/\1/
11969 t more2
11970 s/["\\]/\\&/g; s/^/"/; s/$/"/
11971 p
11972 b
11973 :more2
11974 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11975 p
11976 g
11977 s/.\{148\}//
11978 t delim
11979 ' <conf$$subs.awk | sed '
11980 /^[^""]/{
11981 N
11982 s/\n//
11983 }
11984 ' >>$CONFIG_STATUS || ac_write_fail=1
11985 rm -f conf$$subs.awk
11986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11987 _ACAWK
11988 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11989 for (key in S) S_is_set[key] = 1
11990 FS = ""
11991
11992 }
11993 {
11994 line = $ 0
11995 nfields = split(line, field, "@")
11996 substed = 0
11997 len = length(field[1])
11998 for (i = 2; i < nfields; i++) {
11999 key = field[i]
12000 keylen = length(key)
12001 if (S_is_set[key]) {
12002 value = S[key]
12003 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12004 len += length(value) + length(field[++i])
12005 substed = 1
12006 } else
12007 len += 1 + keylen
12008 }
12009
12010 print line
12011 }
12012
12013 _ACAWK
12014 _ACEOF
12015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12016 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12017 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12018 else
12019 cat
12020 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12021 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12022 _ACEOF
12023
12024 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12025 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12026 # trailing colons and then remove the whole line if VPATH becomes empty
12027 # (actually we leave an empty line to preserve line numbers).
12028 if test "x$srcdir" = x.; then
12029 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12030 h
12031 s///
12032 s/^/:/
12033 s/[ ]*$/:/
12034 s/:\$(srcdir):/:/g
12035 s/:\${srcdir}:/:/g
12036 s/:@srcdir@:/:/g
12037 s/^:*//
12038 s/:*$//
12039 x
12040 s/\(=[ ]*\).*/\1/
12041 G
12042 s/\n//
12043 s/^[^=]*=[ ]*$//
12044 }'
12045 fi
12046
12047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048 fi # test -n "$CONFIG_FILES"
12049
12050 # Set up the scripts for CONFIG_HEADERS section.
12051 # No need to generate them if there are no CONFIG_HEADERS.
12052 # This happens for instance with `./config.status Makefile'.
12053 if test -n "$CONFIG_HEADERS"; then
12054 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12055 BEGIN {
12056 _ACEOF
12057
12058 # Transform confdefs.h into an awk script `defines.awk', embedded as
12059 # here-document in config.status, that substitutes the proper values into
12060 # config.h.in to produce config.h.
12061
12062 # Create a delimiter string that does not exist in confdefs.h, to ease
12063 # handling of long lines.
12064 ac_delim='%!_!# '
12065 for ac_last_try in false false :; do
12066 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12067 if test -z "$ac_tt"; then
12068 break
12069 elif $ac_last_try; then
12070 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12071 else
12072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12073 fi
12074 done
12075
12076 # For the awk script, D is an array of macro values keyed by name,
12077 # likewise P contains macro parameters if any. Preserve backslash
12078 # newline sequences.
12079
12080 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12081 sed -n '
12082 s/.\{148\}/&'"$ac_delim"'/g
12083 t rset
12084 :rset
12085 s/^[ ]*#[ ]*define[ ][ ]*/ /
12086 t def
12087 d
12088 :def
12089 s/\\$//
12090 t bsnl
12091 s/["\\]/\\&/g
12092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12093 D["\1"]=" \3"/p
12094 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12095 d
12096 :bsnl
12097 s/["\\]/\\&/g
12098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12099 D["\1"]=" \3\\\\\\n"\\/p
12100 t cont
12101 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12102 t cont
12103 d
12104 :cont
12105 n
12106 s/.\{148\}/&'"$ac_delim"'/g
12107 t clear
12108 :clear
12109 s/\\$//
12110 t bsnlc
12111 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12112 d
12113 :bsnlc
12114 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12115 b cont
12116 ' <confdefs.h | sed '
12117 s/'"$ac_delim"'/"\\\
12118 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12119
12120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12121 for (key in D) D_is_set[key] = 1
12122 FS = ""
12123 }
12124 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12125 line = \$ 0
12126 split(line, arg, " ")
12127 if (arg[1] == "#") {
12128 defundef = arg[2]
12129 mac1 = arg[3]
12130 } else {
12131 defundef = substr(arg[1], 2)
12132 mac1 = arg[2]
12133 }
12134 split(mac1, mac2, "(") #)
12135 macro = mac2[1]
12136 prefix = substr(line, 1, index(line, defundef) - 1)
12137 if (D_is_set[macro]) {
12138 # Preserve the white space surrounding the "#".
12139 print prefix "define", macro P[macro] D[macro]
12140 next
12141 } else {
12142 # Replace #undef with comments. This is necessary, for example,
12143 # in the case of _POSIX_SOURCE, which is predefined and required
12144 # on some systems where configure will not decide to define it.
12145 if (defundef == "undef") {
12146 print "/*", prefix defundef, macro, "*/"
12147 next
12148 }
12149 }
12150 }
12151 { print }
12152 _ACAWK
12153 _ACEOF
12154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12155 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12156 fi # test -n "$CONFIG_HEADERS"
12157
12158
12159 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12160 shift
12161 for ac_tag
12162 do
12163 case $ac_tag in
12164 :[FHLC]) ac_mode=$ac_tag; continue;;
12165 esac
12166 case $ac_mode$ac_tag in
12167 :[FHL]*:*);;
12168 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12169 :[FH]-) ac_tag=-:-;;
12170 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12171 esac
12172 ac_save_IFS=$IFS
12173 IFS=:
12174 set x $ac_tag
12175 IFS=$ac_save_IFS
12176 shift
12177 ac_file=$1
12178 shift
12179
12180 case $ac_mode in
12181 :L) ac_source=$1;;
12182 :[FH])
12183 ac_file_inputs=
12184 for ac_f
12185 do
12186 case $ac_f in
12187 -) ac_f="$ac_tmp/stdin";;
12188 *) # Look for the file first in the build tree, then in the source tree
12189 # (if the path is not absolute). The absolute path cannot be DOS-style,
12190 # because $ac_f cannot contain `:'.
12191 test -f "$ac_f" ||
12192 case $ac_f in
12193 [\\/$]*) false;;
12194 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12195 esac ||
12196 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12197 esac
12198 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12199 as_fn_append ac_file_inputs " '$ac_f'"
12200 done
12201
12202 # Let's still pretend it is `configure' which instantiates (i.e., don't
12203 # use $as_me), people would be surprised to read:
12204 # /* config.h. Generated by config.status. */
12205 configure_input='Generated from '`
12206 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12207 `' by configure.'
12208 if test x"$ac_file" != x-; then
12209 configure_input="$ac_file. $configure_input"
12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12211 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12212 fi
12213 # Neutralize special characters interpreted by sed in replacement strings.
12214 case $configure_input in #(
12215 *\&* | *\|* | *\\* )
12216 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12217 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12218 *) ac_sed_conf_input=$configure_input;;
12219 esac
12220
12221 case $ac_tag in
12222 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12224 esac
12225 ;;
12226 esac
12227
12228 ac_dir=`$as_dirname -- "$ac_file" ||
12229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12230 X"$ac_file" : 'X\(//\)[^/]' \| \
12231 X"$ac_file" : 'X\(//\)$' \| \
12232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12233 printf "%s\n" X"$ac_file" |
12234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12235 s//\1/
12236 q
12237 }
12238 /^X\(\/\/\)[^/].*/{
12239 s//\1/
12240 q
12241 }
12242 /^X\(\/\/\)$/{
12243 s//\1/
12244 q
12245 }
12246 /^X\(\/\).*/{
12247 s//\1/
12248 q
12249 }
12250 s/.*/./; q'`
12251 as_dir="$ac_dir"; as_fn_mkdir_p
12252 ac_builddir=.
12253
12254 case "$ac_dir" in
12255 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12256 *)
12257 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12258 # A ".." for each directory in $ac_dir_suffix.
12259 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12260 case $ac_top_builddir_sub in
12261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12263 esac ;;
12264 esac
12265 ac_abs_top_builddir=$ac_pwd
12266 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12267 # for backward compatibility:
12268 ac_top_builddir=$ac_top_build_prefix
12269
12270 case $srcdir in
12271 .) # We are building in place.
12272 ac_srcdir=.
12273 ac_top_srcdir=$ac_top_builddir_sub
12274 ac_abs_top_srcdir=$ac_pwd ;;
12275 [\\/]* | ?:[\\/]* ) # Absolute name.
12276 ac_srcdir=$srcdir$ac_dir_suffix;
12277 ac_top_srcdir=$srcdir
12278 ac_abs_top_srcdir=$srcdir ;;
12279 *) # Relative name.
12280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12281 ac_top_srcdir=$ac_top_build_prefix$srcdir
12282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12283 esac
12284 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12285
12286
12287 case $ac_mode in
12288 :F)
12289 #
12290 # CONFIG_FILE
12291 #
12292
12293 case $INSTALL in
12294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12295 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12296 esac
12297 ac_MKDIR_P=$MKDIR_P
12298 case $MKDIR_P in
12299 [\\/$]* | ?:[\\/]* ) ;;
12300 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12301 esac
12302 _ACEOF
12303
12304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12305 # If the template does not know about datarootdir, expand it.
12306 # FIXME: This hack should be removed a few years after 2.60.
12307 ac_datarootdir_hack=; ac_datarootdir_seen=
12308 ac_sed_dataroot='
12309 /datarootdir/ {
12310 p
12311 q
12312 }
12313 /@datadir@/p
12314 /@docdir@/p
12315 /@infodir@/p
12316 /@localedir@/p
12317 /@mandir@/p'
12318 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12319 *datarootdir*) ac_datarootdir_seen=yes;;
12320 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12322 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12323 _ACEOF
12324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12325 ac_datarootdir_hack='
12326 s&@datadir@&$datadir&g
12327 s&@docdir@&$docdir&g
12328 s&@infodir@&$infodir&g
12329 s&@localedir@&$localedir&g
12330 s&@mandir@&$mandir&g
12331 s&\\\${datarootdir}&$datarootdir&g' ;;
12332 esac
12333 _ACEOF
12334
12335 # Neutralize VPATH when `$srcdir' = `.'.
12336 # Shell code in configure.ac might set extrasub.
12337 # FIXME: do we really want to maintain this feature?
12338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12339 ac_sed_extra="$ac_vpsub
12340 $extrasub
12341 _ACEOF
12342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12343 :t
12344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12345 s|@configure_input@|$ac_sed_conf_input|;t t
12346 s&@top_builddir@&$ac_top_builddir_sub&;t t
12347 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12348 s&@srcdir@&$ac_srcdir&;t t
12349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12350 s&@top_srcdir@&$ac_top_srcdir&;t t
12351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12352 s&@builddir@&$ac_builddir&;t t
12353 s&@abs_builddir@&$ac_abs_builddir&;t t
12354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12355 s&@INSTALL@&$ac_INSTALL&;t t
12356 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12357 $ac_datarootdir_hack
12358 "
12359 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12360 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12361
12362 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12365 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12367 which seems to be undefined. Please make sure it is defined" >&5
12368 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12369 which seems to be undefined. Please make sure it is defined" >&2;}
12370
12371 rm -f "$ac_tmp/stdin"
12372 case $ac_file in
12373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12375 esac \
12376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12377 ;;
12378 :H)
12379 #
12380 # CONFIG_HEADER
12381 #
12382 if test x"$ac_file" != x-; then
12383 {
12384 printf "%s\n" "/* $configure_input */" >&1 \
12385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12386 } >"$ac_tmp/config.h" \
12387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12388 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12390 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12391 else
12392 rm -f "$ac_file"
12393 mv "$ac_tmp/config.h" "$ac_file" \
12394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12395 fi
12396 else
12397 printf "%s\n" "/* $configure_input */" >&1 \
12398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12399 || as_fn_error $? "could not create -" "$LINENO" 5
12400 fi
12401 # Compute "$ac_file"'s index in $config_headers.
12402 _am_arg="$ac_file"
12403 _am_stamp_count=1
12404 for _am_header in $config_headers :; do
12405 case $_am_header in
12406 $_am_arg | $_am_arg:* )
12407 break ;;
12408 * )
12409 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12410 esac
12411 done
12412 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12413 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12414 X"$_am_arg" : 'X\(//\)[^/]' \| \
12415 X"$_am_arg" : 'X\(//\)$' \| \
12416 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12417 printf "%s\n" X"$_am_arg" |
12418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12419 s//\1/
12420 q
12421 }
12422 /^X\(\/\/\)[^/].*/{
12423 s//\1/
12424 q
12425 }
12426 /^X\(\/\/\)$/{
12427 s//\1/
12428 q
12429 }
12430 /^X\(\/\).*/{
12431 s//\1/
12432 q
12433 }
12434 s/.*/./; q'`/stamp-h$_am_stamp_count
12435 ;;
12436
12437 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12438 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12439 ;;
12440 esac
12441
12442
12443 case $ac_file$ac_mode in
12444 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12445 # Older Autoconf quotes --file arguments for eval, but not when files
12446 # are listed without --file. Let's play safe and only enable the eval
12447 # if we detect the quoting.
12448 # TODO: see whether this extra hack can be removed once we start
12449 # requiring Autoconf 2.70 or later.
12450 case $CONFIG_FILES in #(
12451 *\'*) :
12452 eval set x "$CONFIG_FILES" ;; #(
12453 *) :
12454 set x $CONFIG_FILES ;; #(
12455 *) :
12456 ;;
12457 esac
12458 shift
12459 # Used to flag and report bootstrapping failures.
12460 am_rc=0
12461 for am_mf
12462 do
12463 # Strip MF so we end up with the name of the file.
12464 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12465 # Check whether this is an Automake generated Makefile which includes
12466 # dependency-tracking related rules and includes.
12467 # Grep'ing the whole file directly is not great: AIX grep has a line
12468 # limit of 2048, but all sed's we know have understand at least 4000.
12469 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12470 || continue
12471 am_dirpart=`$as_dirname -- "$am_mf" ||
12472 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12473 X"$am_mf" : 'X\(//\)[^/]' \| \
12474 X"$am_mf" : 'X\(//\)$' \| \
12475 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12476 printf "%s\n" X"$am_mf" |
12477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12478 s//\1/
12479 q
12480 }
12481 /^X\(\/\/\)[^/].*/{
12482 s//\1/
12483 q
12484 }
12485 /^X\(\/\/\)$/{
12486 s//\1/
12487 q
12488 }
12489 /^X\(\/\).*/{
12490 s//\1/
12491 q
12492 }
12493 s/.*/./; q'`
12494 am_filepart=`$as_basename -- "$am_mf" ||
12495 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12496 X"$am_mf" : 'X\(//\)$' \| \
12497 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12498 printf "%s\n" X/"$am_mf" |
12499 sed '/^.*\/\([^/][^/]*\)\/*$/{
12500 s//\1/
12501 q
12502 }
12503 /^X\/\(\/\/\)$/{
12504 s//\1/
12505 q
12506 }
12507 /^X\/\(\/\).*/{
12508 s//\1/
12509 q
12510 }
12511 s/.*/./; q'`
12512 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12513 && sed -e '/# am--include-marker/d' "$am_filepart" \
12514 | $MAKE -f - am--depfiles" >&5
12515 (cd "$am_dirpart" \
12516 && sed -e '/# am--include-marker/d' "$am_filepart" \
12517 | $MAKE -f - am--depfiles) >&5 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } || am_rc=$?
12521 done
12522 if test $am_rc -ne 0; then
12523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12524 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12525 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12526 for automatic dependency tracking. If GNU make was not used, consider
12527 re-running the configure script with MAKE=\"gmake\" (or whatever is
12528 necessary). You can also try re-running configure with the
12529 '--disable-dependency-tracking' option to at least be able to build
12530 the package (albeit without support for automatic dependency tracking).
12531 See \`config.log' for more details" "$LINENO" 5; }
12532 fi
12533 { am_dirpart=; unset am_dirpart;}
12534 { am_filepart=; unset am_filepart;}
12535 { am_mf=; unset am_mf;}
12536 { am_rc=; unset am_rc;}
12537 rm -f conftest-deps.mk
12538 }
12539 ;;
12540
12541 esac
12542 done # for ac_tag
12543
12544
12545 as_fn_exit 0
12546 _ACEOF
12547 ac_clean_files=$ac_clean_files_save
12548
12549 test $ac_write_fail = 0 ||
12550 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12551
12552
12553 # configure is writing to config.log, and then calls config.status.
12554 # config.status does its own redirection, appending to config.log.
12555 # Unfortunately, on DOS this fails, as config.log is still kept open
12556 # by configure, so config.status won't be able to write to it; its
12557 # output is simply discarded. So we exec the FD to /dev/null,
12558 # effectively closing config.log, so it can be properly (re)opened and
12559 # appended to by config.status. When coming back to configure, we
12560 # need to make the FD available again.
12561 if test "$no_create" != yes; then
12562 ac_cs_success=:
12563 ac_config_status_args=
12564 test "$silent" = yes &&
12565 ac_config_status_args="$ac_config_status_args --quiet"
12566 exec 5>/dev/null
12567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12568 exec 5>>config.log
12569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12570 # would make configure fail if this is the last instruction.
12571 $ac_cs_success || as_fn_exit 1
12572 fi
12573 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12575 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12576 fi
12577
12578
12579