configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for font-util 1.3.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/font/util/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='font-util'
583 PACKAGE_TARNAME='font-util'
584 PACKAGE_VERSION='1.3.2'
585 PACKAGE_STRING='font-util 1.3.2'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/util/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 MAPDIR
631 fontrootdir
632 MAN_SUBSTS
633 XORG_MAN_PAGE
634 ADMIN_MAN_DIR
635 DRIVER_MAN_DIR
636 MISC_MAN_DIR
637 FILE_MAN_DIR
638 LIB_MAN_DIR
639 APP_MAN_DIR
640 ADMIN_MAN_SUFFIX
641 DRIVER_MAN_SUFFIX
642 MISC_MAN_SUFFIX
643 FILE_MAN_SUFFIX
644 LIB_MAN_SUFFIX
645 APP_MAN_SUFFIX
646 SED
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 INSTALL_CMD
656 PKG_CONFIG_LIBDIR
657 PKG_CONFIG_PATH
658 PKG_CONFIG
659 CHANGELOG_CMD
660 STRICT_CFLAGS
661 CWARNFLAGS
662 BASE_CFLAGS
663 EGREP
664 GREP
665 CPP
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_silent_rules
752 enable_dependency_tracking
753 enable_selective_werror
754 enable_strict_compilation
755 with_fontrootdir
756 with_mapdir
757 '
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
761 CC
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP
767 PKG_CONFIG
768 PKG_CONFIG_PATH
769 PKG_CONFIG_LIBDIR'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
829 fi
830
831 case $ac_option in
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *=) ac_optarg= ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=`$as_echo "$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--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175 ;;
1176
1177 esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198 do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1227 fi
1228 fi
1229
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233 test "$silent" = yes && exec 6>/dev/null
1234
1235
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error $? "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\).*/{
1267 s//\1/
1268 q
1269 }
1270 s/.*/./; q'`
1271 srcdir=$ac_confdir
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 srcdir=..
1274 fi
1275 else
1276 ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 fi
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285 pwd)`
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 srcdir=.
1289 fi
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1293 case $srcdir in
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 esac
1296 for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 done
1302
1303 #
1304 # Report the --help message.
1305 #
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1309 cat <<_ACEOF
1310 \`configure' configures font-util 1.3.2 to adapt to many kinds of systems.
1311
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1316
1317 Defaults for the options are specified in brackets.
1318
1319 Configuration:
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking ...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 [PREFIX]
1335
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1340
1341 For better control, use the options below.
1342
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/font-util]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1364
1365 cat <<\_ACEOF
1366
1367 Program names:
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1371
1372 System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of font-util 1.3.2:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384 Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-silent-rules less verbose build output (undo: "make V=1")
1389 --disable-silent-rules verbose build output (undo: "make V=0")
1390 --enable-dependency-tracking
1391 do not reject slow dependency extractors
1392 --disable-dependency-tracking
1393 speeds up one-time build
1394 --disable-selective-werror
1395 Turn off selective compiler errors. (default:
1396 enabled)
1397 --enable-strict-compilation
1398 Enable all warnings from compiler and make them
1399 errors (default: disabled)
1400
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-fontrootdir=DIR Path to parent of font subdirectories
1405 [DATADIR/fonts/X11]
1406 --with-mapdir=DIR Path to install font maps [FONTROOTDIR/util]
1407
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CPP C preprocessor
1417 PKG_CONFIG path to pkg-config utility
1418 PKG_CONFIG_PATH
1419 directories to add to pkg-config's search path
1420 PKG_CONFIG_LIBDIR
1421 path overriding pkg-config's built-in search path
1422
1423 Use these variables to override the choices made by `configure' or to help
1424 it to find libraries and programs with nonstandard names/locations.
1425
1426 Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/issues>.
1427 _ACEOF
1428 ac_status=$?
1429 fi
1430
1431 if test "$ac_init_help" = "recursive"; then
1432 # If there are subdirs, report their specific --help.
1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434 test -d "$ac_dir" ||
1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436 continue
1437 ac_builddir=.
1438
1439 case "$ac_dir" in
1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *)
1442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 esac ;;
1449 esac
1450 ac_abs_top_builddir=$ac_pwd
1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452 # for backward compatibility:
1453 ac_top_builddir=$ac_top_build_prefix
1454
1455 case $srcdir in
1456 .) # We are building in place.
1457 ac_srcdir=.
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
1461 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1464 *) # Relative name.
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 esac
1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
1473 if test -f "$ac_srcdir/configure.gnu"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476 elif test -f "$ac_srcdir/configure"; then
1477 echo &&
1478 $SHELL "$ac_srcdir/configure" --help=recursive
1479 else
1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 fi || ac_status=$?
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1483 done
1484 fi
1485
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1488 cat <<\_ACEOF
1489 font-util configure 1.3.2
1490 generated by GNU Autoconf 2.69
1491
1492 Copyright (C) 2012 Free Software Foundation, Inc.
1493 This configure script is free software; the Free Software Foundation
1494 gives unlimited permission to copy, distribute and modify it.
1495 _ACEOF
1496 exit
1497 fi
1498
1499 ## ------------------------ ##
1500 ## Autoconf initialization. ##
1501 ## ------------------------ ##
1502
1503 # ac_fn_c_try_compile LINENO
1504 # --------------------------
1505 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_compile ()
1507 {
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext
1510 if { { ac_try="$ac_compile"
1511 case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514 esac
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_compile") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1523 fi
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest.$ac_objext; then :
1529 ac_retval=0
1530 else
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1533
1534 ac_retval=1
1535 fi
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status $ac_retval
1538
1539 } # ac_fn_c_try_compile
1540
1541 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1542 # ---------------------------------------------
1543 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1544 # accordingly.
1545 ac_fn_c_check_decl ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 as_decl_name=`echo $2|sed 's/ *(.*//'`
1549 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1551 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1552 if eval \${$3+:} false; then :
1553 $as_echo_n "(cached) " >&6
1554 else
1555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1556 /* end confdefs.h. */
1557 $4
1558 int
1559 main ()
1560 {
1561 #ifndef $as_decl_name
1562 #ifdef __cplusplus
1563 (void) $as_decl_use;
1564 #else
1565 (void) $as_decl_name;
1566 #endif
1567 #endif
1568
1569 ;
1570 return 0;
1571 }
1572 _ACEOF
1573 if ac_fn_c_try_compile "$LINENO"; then :
1574 eval "$3=yes"
1575 else
1576 eval "$3=no"
1577 fi
1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1579 fi
1580 eval ac_res=\$$3
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584
1585 } # ac_fn_c_check_decl
1586
1587 # ac_fn_c_try_cpp LINENO
1588 # ----------------------
1589 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_cpp ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 if { { ac_try="$ac_cpp conftest.$ac_ext"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } > conftest.i && {
1609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 }; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_cpp
1623
1624 # ac_fn_c_try_run LINENO
1625 # ----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627 # that executables *can* be run.
1628 ac_fn_c_try_run ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>&5
1639 ac_status=$?
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642 { { case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_try") 2>&5
1649 ac_status=$?
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; }; }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: program exited with status $ac_status" >&5
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=$ac_status
1659 fi
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_run
1665
1666 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667 # -------------------------------------------------------
1668 # Tests whether HEADER exists and can be compiled using the include files in
1669 # INCLUDES, setting the cache variable VAR accordingly.
1670 ac_fn_c_check_header_compile ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1677 else
1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h. */
1680 $4
1681 #include <$2>
1682 _ACEOF
1683 if ac_fn_c_try_compile "$LINENO"; then :
1684 eval "$3=yes"
1685 else
1686 eval "$3=no"
1687 fi
1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 fi
1690 eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694
1695 } # ac_fn_c_check_header_compile
1696
1697 # ac_fn_c_try_link LINENO
1698 # -----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_link ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext conftest$ac_exeext
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest$ac_exeext && {
1723 test "$cross_compiling" = yes ||
1724 test -x conftest$ac_exeext
1725 }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732 fi
1733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1735 # interfere with the next link command; also delete a directory that is
1736 # left behind by Apple's compiler. We do this before executing the actions.
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_link
1742 cat >config.log <<_ACEOF
1743 This file contains any messages produced by compilers while
1744 running configure, to aid debugging if configure makes a mistake.
1745
1746 It was created by font-util $as_me 1.3.2, which was
1747 generated by GNU Autoconf 2.69. Invocation command line was
1748
1749 $ $0 $@
1750
1751 _ACEOF
1752 exec 5>>config.log
1753 {
1754 cat <<_ASUNAME
1755 ## --------- ##
1756 ## Platform. ##
1757 ## --------- ##
1758
1759 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1760 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1761 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1762 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1763 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1764
1765 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1766 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1767
1768 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1769 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1770 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1771 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1772 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1773 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1774 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1775
1776 _ASUNAME
1777
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 $as_echo "PATH: $as_dir"
1784 done
1785 IFS=$as_save_IFS
1786
1787 } >&5
1788
1789 cat >&5 <<_ACEOF
1790
1791
1792 ## ----------- ##
1793 ## Core tests. ##
1794 ## ----------- ##
1795
1796 _ACEOF
1797
1798
1799 # Keep a trace of the command line.
1800 # Strip out --no-create and --no-recursion so they do not pile up.
1801 # Strip out --silent because we don't want to record it for future runs.
1802 # Also quote any args containing shell meta-characters.
1803 # Make two passes to allow for proper duplicate-argument suppression.
1804 ac_configure_args=
1805 ac_configure_args0=
1806 ac_configure_args1=
1807 ac_must_keep_next=false
1808 for ac_pass in 1 2
1809 do
1810 for ac_arg
1811 do
1812 case $ac_arg in
1813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1815 | -silent | --silent | --silen | --sile | --sil)
1816 continue ;;
1817 *\'*)
1818 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1819 esac
1820 case $ac_pass in
1821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1822 2)
1823 as_fn_append ac_configure_args1 " '$ac_arg'"
1824 if test $ac_must_keep_next = true; then
1825 ac_must_keep_next=false # Got value, back to normal.
1826 else
1827 case $ac_arg in
1828 *=* | --config-cache | -C | -disable-* | --disable-* \
1829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1831 | -with-* | --with-* | -without-* | --without-* | --x)
1832 case "$ac_configure_args0 " in
1833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1834 esac
1835 ;;
1836 -* ) ac_must_keep_next=true ;;
1837 esac
1838 fi
1839 as_fn_append ac_configure_args " '$ac_arg'"
1840 ;;
1841 esac
1842 done
1843 done
1844 { ac_configure_args0=; unset ac_configure_args0;}
1845 { ac_configure_args1=; unset ac_configure_args1;}
1846
1847 # When interrupted or exit'd, cleanup temporary files, and complete
1848 # config.log. We remove comments because anyway the quotes in there
1849 # would cause problems or look ugly.
1850 # WARNING: Use '\'' to represent an apostrophe within the trap.
1851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1852 trap 'exit_status=$?
1853 # Save into config.log some information that might help in debugging.
1854 {
1855 echo
1856
1857 $as_echo "## ---------------- ##
1858 ## Cache variables. ##
1859 ## ---------------- ##"
1860 echo
1861 # The following way of writing the cache mishandles newlines in values,
1862 (
1863 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in #(
1866 *${as_nl}*)
1867 case $ac_var in #(
1868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1870 esac
1871 case $ac_var in #(
1872 _ | IFS | as_nl) ;; #(
1873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1874 *) { eval $ac_var=; unset $ac_var;} ;;
1875 esac ;;
1876 esac
1877 done
1878 (set) 2>&1 |
1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1880 *${as_nl}ac_space=\ *)
1881 sed -n \
1882 "s/'\''/'\''\\\\'\'''\''/g;
1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884 ;; #(
1885 *)
1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887 ;;
1888 esac |
1889 sort
1890 )
1891 echo
1892
1893 $as_echo "## ----------------- ##
1894 ## Output variables. ##
1895 ## ----------------- ##"
1896 echo
1897 for ac_var in $ac_subst_vars
1898 do
1899 eval ac_val=\$$ac_var
1900 case $ac_val in
1901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 esac
1903 $as_echo "$ac_var='\''$ac_val'\''"
1904 done | sort
1905 echo
1906
1907 if test -n "$ac_subst_files"; then
1908 $as_echo "## ------------------- ##
1909 ## File substitutions. ##
1910 ## ------------------- ##"
1911 echo
1912 for ac_var in $ac_subst_files
1913 do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in
1916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917 esac
1918 $as_echo "$ac_var='\''$ac_val'\''"
1919 done | sort
1920 echo
1921 fi
1922
1923 if test -s confdefs.h; then
1924 $as_echo "## ----------- ##
1925 ## confdefs.h. ##
1926 ## ----------- ##"
1927 echo
1928 cat confdefs.h
1929 echo
1930 fi
1931 test "$ac_signal" != 0 &&
1932 $as_echo "$as_me: caught signal $ac_signal"
1933 $as_echo "$as_me: exit $exit_status"
1934 } >&5
1935 rm -f core *.core core.conftest.* &&
1936 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1937 exit $exit_status
1938 ' 0
1939 for ac_signal in 1 2 13 15; do
1940 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1941 done
1942 ac_signal=0
1943
1944 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1945 rm -f -r conftest* confdefs.h
1946
1947 $as_echo "/* confdefs.h */" > confdefs.h
1948
1949 # Predefined preprocessor variables.
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_NAME "$PACKAGE_NAME"
1953 _ACEOF
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1957 _ACEOF
1958
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1961 _ACEOF
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1965 _ACEOF
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1969 _ACEOF
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_URL "$PACKAGE_URL"
1973 _ACEOF
1974
1975
1976 # Let the site file select an alternate cache file if it wants to.
1977 # Prefer an explicitly selected file to automatically selected ones.
1978 ac_site_file1=NONE
1979 ac_site_file2=NONE
1980 if test -n "$CONFIG_SITE"; then
1981 # We do not want a PATH search for config.site.
1982 case $CONFIG_SITE in #((
1983 -*) ac_site_file1=./$CONFIG_SITE;;
1984 */*) ac_site_file1=$CONFIG_SITE;;
1985 *) ac_site_file1=./$CONFIG_SITE;;
1986 esac
1987 elif test "x$prefix" != xNONE; then
1988 ac_site_file1=$prefix/share/config.site
1989 ac_site_file2=$prefix/etc/config.site
1990 else
1991 ac_site_file1=$ac_default_prefix/share/config.site
1992 ac_site_file2=$ac_default_prefix/etc/config.site
1993 fi
1994 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1995 do
1996 test "x$ac_site_file" = xNONE && continue
1997 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1999 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2000 sed 's/^/| /' "$ac_site_file" >&5
2001 . "$ac_site_file" \
2002 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2004 as_fn_error $? "failed to load site script $ac_site_file
2005 See \`config.log' for more details" "$LINENO" 5; }
2006 fi
2007 done
2008
2009 if test -r "$cache_file"; then
2010 # Some versions of bash will fail to source /dev/null (special files
2011 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2012 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2014 $as_echo "$as_me: loading cache $cache_file" >&6;}
2015 case $cache_file in
2016 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2017 *) . "./$cache_file";;
2018 esac
2019 fi
2020 else
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2022 $as_echo "$as_me: creating cache $cache_file" >&6;}
2023 >$cache_file
2024 fi
2025
2026 # Check that the precious variables saved in the cache have kept the same
2027 # value.
2028 ac_cache_corrupted=false
2029 for ac_var in $ac_precious_vars; do
2030 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2031 eval ac_new_set=\$ac_env_${ac_var}_set
2032 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2033 eval ac_new_val=\$ac_env_${ac_var}_value
2034 case $ac_old_set,$ac_new_set in
2035 set,)
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2038 ac_cache_corrupted=: ;;
2039 ,set)
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2041 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2042 ac_cache_corrupted=: ;;
2043 ,);;
2044 *)
2045 if test "x$ac_old_val" != "x$ac_new_val"; then
2046 # differences in whitespace do not lead to failure.
2047 ac_old_val_w=`echo x $ac_old_val`
2048 ac_new_val_w=`echo x $ac_new_val`
2049 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2051 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2052 ac_cache_corrupted=:
2053 else
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2055 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2056 eval $ac_var=\$ac_old_val
2057 fi
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2059 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2061 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2062 fi;;
2063 esac
2064 # Pass precious variables to config.status.
2065 if test "$ac_new_set" = set; then
2066 case $ac_new_val in
2067 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 *) ac_arg=$ac_var=$ac_new_val ;;
2069 esac
2070 case " $ac_configure_args " in
2071 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2072 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2073 esac
2074 fi
2075 done
2076 if $ac_cache_corrupted; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2080 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2081 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2082 fi
2083 ## -------------------- ##
2084 ## Main body of script. ##
2085 ## -------------------- ##
2086
2087 ac_ext=c
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092
2093
2094
2095 ac_config_headers="$ac_config_headers config.h"
2096
2097
2098 # Initialize Automake
2099 am__api_version='1.15'
2100
2101 ac_aux_dir=
2102 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103 if test -f "$ac_dir/install-sh"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/install-sh -c"
2106 break
2107 elif test -f "$ac_dir/install.sh"; then
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/install.sh -c"
2110 break
2111 elif test -f "$ac_dir/shtool"; then
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/shtool install -c"
2114 break
2115 fi
2116 done
2117 if test -z "$ac_aux_dir"; then
2118 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2119 fi
2120
2121 # These three variables are undocumented and unsupported,
2122 # and are intended to be withdrawn in a future Autoconf release.
2123 # They can cause serious problems if a builder's source tree is in a directory
2124 # whose full name contains unusual characters.
2125 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2126 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2127 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2128
2129
2130 # Find a good install program. We prefer a C program (faster),
2131 # so one script is as good as another. But avoid the broken or
2132 # incompatible versions:
2133 # SysV /etc/install, /usr/sbin/install
2134 # SunOS /usr/etc/install
2135 # IRIX /sbin/install
2136 # AIX /bin/install
2137 # AmigaOS /C/install, which installs bootblocks on floppy discs
2138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2141 # OS/2's system install, which has a completely different semantic
2142 # ./install, which can be erroneously created by make from ./install.sh.
2143 # Reject install programs that cannot install multiple files.
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2145 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2146 if test -z "$INSTALL"; then
2147 if ${ac_cv_path_install+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 # Account for people who put trailing slashes in PATH elements.
2156 case $as_dir/ in #((
2157 ./ | .// | /[cC]/* | \
2158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2159 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2160 /usr/ucb/* ) ;;
2161 *)
2162 # OSF1 and SCO ODT 3.0 have their own names for install.
2163 # Don't use installbsd from OSF since it installs stuff as root
2164 # by default.
2165 for ac_prog in ginstall scoinst install; do
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2168 if test $ac_prog = install &&
2169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170 # AIX install. It has an incompatible calling convention.
2171 :
2172 elif test $ac_prog = install &&
2173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174 # program-specific install script used by HP pwplus--don't use.
2175 :
2176 else
2177 rm -rf conftest.one conftest.two conftest.dir
2178 echo one > conftest.one
2179 echo two > conftest.two
2180 mkdir conftest.dir
2181 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2182 test -s conftest.one && test -s conftest.two &&
2183 test -s conftest.dir/conftest.one &&
2184 test -s conftest.dir/conftest.two
2185 then
2186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2187 break 3
2188 fi
2189 fi
2190 fi
2191 done
2192 done
2193 ;;
2194 esac
2195
2196 done
2197 IFS=$as_save_IFS
2198
2199 rm -rf conftest.one conftest.two conftest.dir
2200
2201 fi
2202 if test "${ac_cv_path_install+set}" = set; then
2203 INSTALL=$ac_cv_path_install
2204 else
2205 # As a last resort, use the slow shell script. Don't cache a
2206 # value for INSTALL within a source directory, because that will
2207 # break other packages using the cache if that directory is
2208 # removed, or if the value is a relative name.
2209 INSTALL=$ac_install_sh
2210 fi
2211 fi
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2213 $as_echo "$INSTALL" >&6; }
2214
2215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2216 # It thinks the first close brace ends the variable substitution.
2217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2218
2219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2220
2221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2222
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2224 $as_echo_n "checking whether build environment is sane... " >&6; }
2225 # Reject unsafe characters in $srcdir or the absolute working directory
2226 # name. Accept space and tab only in the latter.
2227 am_lf='
2228 '
2229 case `pwd` in
2230 *[\\\"\#\$\&\'\`$am_lf]*)
2231 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2232 esac
2233 case $srcdir in
2234 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2235 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2236 esac
2237
2238 # Do 'set' in a subshell so we don't clobber the current shell's
2239 # arguments. Must try -L first in case configure is actually a
2240 # symlink; some systems play weird games with the mod time of symlinks
2241 # (eg FreeBSD returns the mod time of the symlink's containing
2242 # directory).
2243 if (
2244 am_has_slept=no
2245 for am_try in 1 2; do
2246 echo "timestamp, slept: $am_has_slept" > conftest.file
2247 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2248 if test "$*" = "X"; then
2249 # -L didn't work.
2250 set X `ls -t "$srcdir/configure" conftest.file`
2251 fi
2252 if test "$*" != "X $srcdir/configure conftest.file" \
2253 && test "$*" != "X conftest.file $srcdir/configure"; then
2254
2255 # If neither matched, then we have a broken ls. This can happen
2256 # if, for instance, CONFIG_SHELL is bash and it inherits a
2257 # broken ls alias from the environment. This has actually
2258 # happened. Such a system could not be considered "sane".
2259 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2260 alias in your environment" "$LINENO" 5
2261 fi
2262 if test "$2" = conftest.file || test $am_try -eq 2; then
2263 break
2264 fi
2265 # Just in case.
2266 sleep 1
2267 am_has_slept=yes
2268 done
2269 test "$2" = conftest.file
2270 )
2271 then
2272 # Ok.
2273 :
2274 else
2275 as_fn_error $? "newly created file is older than distributed files!
2276 Check your system clock" "$LINENO" 5
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2279 $as_echo "yes" >&6; }
2280 # If we didn't sleep, we still need to ensure time stamps of config.status and
2281 # generated files are strictly newer.
2282 am_sleep_pid=
2283 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2284 ( sleep 1 ) &
2285 am_sleep_pid=$!
2286 fi
2287
2288 rm -f conftest.file
2289
2290 test "$program_prefix" != NONE &&
2291 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2292 # Use a double $ so make ignores it.
2293 test "$program_suffix" != NONE &&
2294 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2295 # Double any \ or $.
2296 # By default was `s,x,x', remove it if useless.
2297 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2298 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2299
2300 # Expand $ac_aux_dir to an absolute path.
2301 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2302
2303 if test x"${MISSING+set}" != xset; then
2304 case $am_aux_dir in
2305 *\ * | *\ *)
2306 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2307 *)
2308 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2309 esac
2310 fi
2311 # Use eval to expand $SHELL
2312 if eval "$MISSING --is-lightweight"; then
2313 am_missing_run="$MISSING "
2314 else
2315 am_missing_run=
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2317 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2318 fi
2319
2320 if test x"${install_sh+set}" != xset; then
2321 case $am_aux_dir in
2322 *\ * | *\ *)
2323 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2324 *)
2325 install_sh="\${SHELL} $am_aux_dir/install-sh"
2326 esac
2327 fi
2328
2329 # Installed binaries are usually stripped using 'strip' when the user
2330 # run "make install-strip". However 'strip' might not be the right
2331 # tool to use in cross-compilation environments, therefore Automake
2332 # will honor the 'STRIP' environment variable to overrule this program.
2333 if test "$cross_compiling" != no; then
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}strip; ac_word=$2
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338 $as_echo_n "checking for $ac_word... " >&6; }
2339 if ${ac_cv_prog_STRIP+:} false; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 STRIP=$ac_cv_prog_STRIP
2363 if test -n "$STRIP"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2365 $as_echo "$STRIP" >&6; }
2366 else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368 $as_echo "no" >&6; }
2369 fi
2370
2371
2372 fi
2373 if test -z "$ac_cv_prog_STRIP"; then
2374 ac_ct_STRIP=$STRIP
2375 # Extract the first word of "strip", so it can be a program name with args.
2376 set dummy strip; ac_word=$2
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378 $as_echo_n "checking for $ac_word... " >&6; }
2379 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test -n "$ac_ct_STRIP"; then
2383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392 ac_cv_prog_ac_ct_STRIP="strip"
2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403 if test -n "$ac_ct_STRIP"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2405 $as_echo "$ac_ct_STRIP" >&6; }
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408 $as_echo "no" >&6; }
2409 fi
2410
2411 if test "x$ac_ct_STRIP" = x; then
2412 STRIP=":"
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415 yes:)
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2418 ac_tool_warned=yes ;;
2419 esac
2420 STRIP=$ac_ct_STRIP
2421 fi
2422 else
2423 STRIP="$ac_cv_prog_STRIP"
2424 fi
2425
2426 fi
2427 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2428
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2430 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2431 if test -z "$MKDIR_P"; then
2432 if ${ac_cv_path_mkdir+:} false; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_prog in mkdir gmkdir; do
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2443 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2444 'mkdir (GNU coreutils) '* | \
2445 'mkdir (coreutils) '* | \
2446 'mkdir (fileutils) '4.1*)
2447 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2448 break 3;;
2449 esac
2450 done
2451 done
2452 done
2453 IFS=$as_save_IFS
2454
2455 fi
2456
2457 test -d ./--version && rmdir ./--version
2458 if test "${ac_cv_path_mkdir+set}" = set; then
2459 MKDIR_P="$ac_cv_path_mkdir -p"
2460 else
2461 # As a last resort, use the slow shell script. Don't cache a
2462 # value for MKDIR_P within a source directory, because that will
2463 # break other packages using the cache if that directory is
2464 # removed, or if the value is a relative name.
2465 MKDIR_P="$ac_install_sh -d"
2466 fi
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2469 $as_echo "$MKDIR_P" >&6; }
2470
2471 for ac_prog in gawk mawk nawk awk
2472 do
2473 # Extract the first word of "$ac_prog", so it can be a program name with args.
2474 set dummy $ac_prog; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if ${ac_cv_prog_AWK+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$AWK"; then
2481 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_AWK="$ac_prog"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 AWK=$ac_cv_prog_AWK
2501 if test -n "$AWK"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2503 $as_echo "$AWK" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509
2510 test -n "$AWK" && break
2511 done
2512
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2514 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2515 set x ${MAKE-make}
2516 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2517 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 cat >conftest.make <<\_ACEOF
2521 SHELL = /bin/sh
2522 all:
2523 @echo '@@@%%%=$(MAKE)=@@@%%%'
2524 _ACEOF
2525 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2526 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2527 *@@@%%%=?*=@@@%%%*)
2528 eval ac_cv_prog_make_${ac_make}_set=yes;;
2529 *)
2530 eval ac_cv_prog_make_${ac_make}_set=no;;
2531 esac
2532 rm -f conftest.make
2533 fi
2534 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2536 $as_echo "yes" >&6; }
2537 SET_MAKE=
2538 else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540 $as_echo "no" >&6; }
2541 SET_MAKE="MAKE=${MAKE-make}"
2542 fi
2543
2544 rm -rf .tst 2>/dev/null
2545 mkdir .tst 2>/dev/null
2546 if test -d .tst; then
2547 am__leading_dot=.
2548 else
2549 am__leading_dot=_
2550 fi
2551 rmdir .tst 2>/dev/null
2552
2553 # Check whether --enable-silent-rules was given.
2554 if test "${enable_silent_rules+set}" = set; then :
2555 enableval=$enable_silent_rules;
2556 fi
2557
2558 case $enable_silent_rules in # (((
2559 yes) AM_DEFAULT_VERBOSITY=0;;
2560 no) AM_DEFAULT_VERBOSITY=1;;
2561 *) AM_DEFAULT_VERBOSITY=1;;
2562 esac
2563 am_make=${MAKE-make}
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2565 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2566 if ${am_cv_make_support_nested_variables+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if $as_echo 'TRUE=$(BAR$(V))
2570 BAR0=false
2571 BAR1=true
2572 V=1
2573 am__doit:
2574 @$(TRUE)
2575 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2576 am_cv_make_support_nested_variables=yes
2577 else
2578 am_cv_make_support_nested_variables=no
2579 fi
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2582 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2583 if test $am_cv_make_support_nested_variables = yes; then
2584 AM_V='$(V)'
2585 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2586 else
2587 AM_V=$AM_DEFAULT_VERBOSITY
2588 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2589 fi
2590 AM_BACKSLASH='\'
2591
2592 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2593 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2594 # is not polluted with repeated "-I."
2595 am__isrc=' -I$(srcdir)'
2596 # test to see if srcdir already configured
2597 if test -f $srcdir/config.status; then
2598 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2599 fi
2600 fi
2601
2602 # test whether we have cygpath
2603 if test -z "$CYGPATH_W"; then
2604 if (cygpath --version) >/dev/null 2>/dev/null; then
2605 CYGPATH_W='cygpath -w'
2606 else
2607 CYGPATH_W=echo
2608 fi
2609 fi
2610
2611
2612 # Define the identity of the package.
2613 PACKAGE='font-util'
2614 VERSION='1.3.2'
2615
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE "$PACKAGE"
2619 _ACEOF
2620
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define VERSION "$VERSION"
2624 _ACEOF
2625
2626 # Some tools Automake needs.
2627
2628 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2629
2630
2631 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2632
2633
2634 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2635
2636
2637 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2638
2639
2640 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2641
2642 # For better backward compatibility. To be removed once Automake 1.9.x
2643 # dies out for good. For more background, see:
2644 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2645 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2646 mkdir_p='$(MKDIR_P)'
2647
2648 # We need awk for the "check" target (and possibly the TAP driver). The
2649 # system "awk" is bad on some platforms.
2650 # Always define AMTAR for backward compatibility. Yes, it's still used
2651 # in the wild :-( We should find a proper way to deprecate it ...
2652 AMTAR='$${TAR-tar}'
2653
2654
2655 # We'll loop over all known methods to create a tar archive until one works.
2656 _am_tools='gnutar pax cpio none'
2657
2658 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2659
2660
2661
2662
2663
2664
2665 # POSIX will say in a future version that running "rm -f" with no argument
2666 # is OK; and we want to be able to make that assumption in our Makefile
2667 # recipes. So use an aggressive probe to check that the usage we want is
2668 # actually supported "in the wild" to an acceptable degree.
2669 # See automake bug#10828.
2670 # To make any issue more visible, cause the running configure to be aborted
2671 # by default if the 'rm' program in use doesn't match our expectations; the
2672 # user can still override this though.
2673 if rm -f && rm -fr && rm -rf; then : OK; else
2674 cat >&2 <<'END'
2675 Oops!
2676
2677 Your 'rm' program seems unable to run without file operands specified
2678 on the command line, even when the '-f' option is present. This is contrary
2679 to the behaviour of most rm programs out there, and not conforming with
2680 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2681
2682 Please tell bug-automake@gnu.org about your system, including the value
2683 of your $PATH and any error possibly output before this message. This
2684 can help us improve future automake versions.
2685
2686 END
2687 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2688 echo 'Configuration will proceed anyway, since you have set the' >&2
2689 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2690 echo >&2
2691 else
2692 cat >&2 <<'END'
2693 Aborting the configuration process, to ensure you take notice of the issue.
2694
2695 You can download and install GNU coreutils to get an 'rm' implementation
2696 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2697
2698 If you want to complete the configuration process using your problematic
2699 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2700 to "yes", and re-run configure.
2701
2702 END
2703 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2704 fi
2705 fi
2706
2707
2708 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720 DEPDIR="${am__leading_dot}deps"
2721
2722 ac_config_commands="$ac_config_commands depfiles"
2723
2724
2725 am_make=${MAKE-make}
2726 cat > confinc << 'END'
2727 am__doit:
2728 @echo this is the am__doit target
2729 .PHONY: am__doit
2730 END
2731 # If we don't find an include directive, just comment out the code.
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2733 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2734 am__include="#"
2735 am__quote=
2736 _am_result=none
2737 # First try GNU make style include.
2738 echo "include confinc" > confmf
2739 # Ignore all kinds of additional output from 'make'.
2740 case `$am_make -s -f confmf 2> /dev/null` in #(
2741 *the\ am__doit\ target*)
2742 am__include=include
2743 am__quote=
2744 _am_result=GNU
2745 ;;
2746 esac
2747 # Now try BSD make style include.
2748 if test "$am__include" = "#"; then
2749 echo '.include "confinc"' > confmf
2750 case `$am_make -s -f confmf 2> /dev/null` in #(
2751 *the\ am__doit\ target*)
2752 am__include=.include
2753 am__quote="\""
2754 _am_result=BSD
2755 ;;
2756 esac
2757 fi
2758
2759
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2761 $as_echo "$_am_result" >&6; }
2762 rm -f confinc confmf
2763
2764 # Check whether --enable-dependency-tracking was given.
2765 if test "${enable_dependency_tracking+set}" = set; then :
2766 enableval=$enable_dependency_tracking;
2767 fi
2768
2769 if test "x$enable_dependency_tracking" != xno; then
2770 am_depcomp="$ac_aux_dir/depcomp"
2771 AMDEPBACKSLASH='\'
2772 am__nodep='_no'
2773 fi
2774 if test "x$enable_dependency_tracking" != xno; then
2775 AMDEP_TRUE=
2776 AMDEP_FALSE='#'
2777 else
2778 AMDEP_TRUE='#'
2779 AMDEP_FALSE=
2780 fi
2781
2782
2783 ac_ext=c
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$ac_cv_prog_CC"; then
2828 ac_ct_CC=$CC
2829 # Extract the first word of "gcc", so it can be a program name with args.
2830 set dummy gcc; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_ac_ct_CC="gcc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857 if test -n "$ac_ct_CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2859 $as_echo "$ac_ct_CC" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865 if test "x$ac_ct_CC" = x; then
2866 CC=""
2867 else
2868 case $cross_compiling:$ac_tool_warned in
2869 yes:)
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872 ac_tool_warned=yes ;;
2873 esac
2874 CC=$ac_ct_CC
2875 fi
2876 else
2877 CC="$ac_cv_prog_CC"
2878 fi
2879
2880 if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}cc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_CC="${ac_tool_prefix}cc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 fi
2921 if test -z "$CC"; then
2922 # Extract the first word of "cc", so it can be a program name with args.
2923 set dummy cc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 ac_prog_rejected=no
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2941 ac_prog_rejected=yes
2942 continue
2943 fi
2944 ac_cv_prog_CC="cc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 if test $ac_prog_rejected = yes; then
2953 # We found a bogon in the path, so make sure we never use it.
2954 set dummy $ac_cv_prog_CC
2955 shift
2956 if test $# != 0; then
2957 # We chose a different compiler from the bogus one.
2958 # However, it has the same basename, so the bogon will be chosen
2959 # first if we set CC to just the basename; use the full file name.
2960 shift
2961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 fi
2963 fi
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 for ac_prog in cl.exe
2980 do
2981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018 test -n "$CC" && break
3019 done
3020 fi
3021 if test -z "$CC"; then
3022 ac_ct_CC=$CC
3023 for ac_prog in cl.exe
3024 do
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_CC="$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 $as_echo "$ac_ct_CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 test -n "$ac_ct_CC" && break
3063 done
3064
3065 if test "x$ac_ct_CC" = x; then
3066 CC=""
3067 else
3068 case $cross_compiling:$ac_tool_warned in
3069 yes:)
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072 ac_tool_warned=yes ;;
3073 esac
3074 CC=$ac_ct_CC
3075 fi
3076 fi
3077
3078 fi
3079
3080
3081 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "no acceptable C compiler found in \$PATH
3084 See \`config.log' for more details" "$LINENO" 5; }
3085
3086 # Provide some information about the compiler.
3087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3088 set X $ac_compile
3089 ac_compiler=$2
3090 for ac_option in --version -v -V -qversion; do
3091 { { ac_try="$ac_compiler $ac_option >&5"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3099 ac_status=$?
3100 if test -s conftest.err; then
3101 sed '10a\
3102 ... rest of stderr output deleted ...
3103 10q' conftest.err >conftest.er1
3104 cat conftest.er1 >&5
3105 fi
3106 rm -f conftest.er1 conftest.err
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }
3109 done
3110
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3113
3114 int
3115 main ()
3116 {
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 ac_clean_files_save=$ac_clean_files
3123 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3124 # Try to create an executable without -o first, disregard a.out.
3125 # It will help us diagnose broken compilers, and finding out an intuition
3126 # of exeext.
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3128 $as_echo_n "checking whether the C compiler works... " >&6; }
3129 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3130
3131 # The possible output files:
3132 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3133
3134 ac_rmfiles=
3135 for ac_file in $ac_files
3136 do
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3139 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3140 esac
3141 done
3142 rm -f $ac_rmfiles
3143
3144 if { { ac_try="$ac_link_default"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_link_default") 2>&5
3152 ac_status=$?
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }; then :
3155 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3156 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3157 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3158 # so that the user can short-circuit this test for compilers unknown to
3159 # Autoconf.
3160 for ac_file in $ac_files ''
3161 do
3162 test -f "$ac_file" || continue
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3165 ;;
3166 [ab].out )
3167 # We found the default executable, but exeext='' is most
3168 # certainly right.
3169 break;;
3170 *.* )
3171 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3172 then :; else
3173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 fi
3175 # We set ac_cv_exeext here because the later test for it is not
3176 # safe: cross compilers may not add the suffix if given an `-o'
3177 # argument, so we may need to know it at that point already.
3178 # Even if this section looks crufty: it has the advantage of
3179 # actually working.
3180 break;;
3181 * )
3182 break;;
3183 esac
3184 done
3185 test "$ac_cv_exeext" = no && ac_cv_exeext=
3186
3187 else
3188 ac_file=''
3189 fi
3190 if test -z "$ac_file"; then :
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error 77 "C compiler cannot create executables
3199 See \`config.log' for more details" "$LINENO" 5; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202 $as_echo "yes" >&6; }
3203 fi
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3205 $as_echo_n "checking for C compiler default output file name... " >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 ac_exeext=$ac_cv_exeext
3209
3210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3211 ac_clean_files=$ac_clean_files_save
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3213 $as_echo_n "checking for suffix of executables... " >&6; }
3214 if { { ac_try="$ac_link"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_link") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; then :
3225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3227 # work properly (i.e., refer to `conftest.exe'), while it won't with
3228 # `rm'.
3229 for ac_file in conftest.exe conftest conftest.*; do
3230 test -f "$ac_file" || continue
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 break;;
3235 * ) break;;
3236 esac
3237 done
3238 else
3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3242 See \`config.log' for more details" "$LINENO" 5; }
3243 fi
3244 rm -f conftest conftest$ac_cv_exeext
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3246 $as_echo "$ac_cv_exeext" >&6; }
3247
3248 rm -f conftest.$ac_ext
3249 EXEEXT=$ac_cv_exeext
3250 ac_exeext=$EXEEXT
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253 #include <stdio.h>
3254 int
3255 main ()
3256 {
3257 FILE *f = fopen ("conftest.out", "w");
3258 return ferror (f) || fclose (f) != 0;
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 ac_clean_files="$ac_clean_files conftest.out"
3265 # Check that the compiler produces executables we can run. If not, either
3266 # the compiler is broken, or we cross compile.
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3268 $as_echo_n "checking whether we are cross compiling... " >&6; }
3269 if test "$cross_compiling" != yes; then
3270 { { ac_try="$ac_link"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_link") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }
3281 if { ac_try='./conftest$ac_cv_exeext'
3282 { { case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_try") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; }; then
3292 cross_compiling=no
3293 else
3294 if test "$cross_compiling" = maybe; then
3295 cross_compiling=yes
3296 else
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "cannot run C compiled programs.
3300 If you meant to cross compile, use \`--host'.
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 fi
3303 fi
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3306 $as_echo "$cross_compiling" >&6; }
3307
3308 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3309 ac_clean_files=$ac_clean_files_save
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3311 $as_echo_n "checking for suffix of object files... " >&6; }
3312 if ${ac_cv_objext+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main ()
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 rm -f conftest.o conftest.obj
3327 if { { ac_try="$ac_compile"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_compile") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 for ac_file in conftest.o conftest.obj conftest.*; do
3339 test -f "$ac_file" || continue;
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3343 break;;
3344 esac
3345 done
3346 else
3347 $as_echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error $? "cannot compute suffix of object files: cannot compile
3353 See \`config.log' for more details" "$LINENO" 5; }
3354 fi
3355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3358 $as_echo "$ac_cv_objext" >&6; }
3359 OBJEXT=$ac_cv_objext
3360 ac_objext=$OBJEXT
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3362 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3363 if ${ac_cv_c_compiler_gnu+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372 #ifndef __GNUC__
3373 choke me
3374 #endif
3375
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_compiler_gnu=yes
3382 else
3383 ac_compiler_gnu=no
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3387
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3390 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3391 if test $ac_compiler_gnu = yes; then
3392 GCC=yes
3393 else
3394 GCC=
3395 fi
3396 ac_test_CFLAGS=${CFLAGS+set}
3397 ac_save_CFLAGS=$CFLAGS
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3399 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3400 if ${ac_cv_prog_cc_g+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 ac_save_c_werror_flag=$ac_c_werror_flag
3404 ac_c_werror_flag=yes
3405 ac_cv_prog_cc_g=no
3406 CFLAGS="-g"
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419 ac_cv_prog_cc_g=yes
3420 else
3421 CFLAGS=""
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434
3435 else
3436 ac_c_werror_flag=$ac_save_c_werror_flag
3437 CFLAGS="-g"
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 if ac_fn_c_try_compile "$LINENO"; then :
3450 ac_cv_prog_cc_g=yes
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3460 $as_echo "$ac_cv_prog_cc_g" >&6; }
3461 if test "$ac_test_CFLAGS" = set; then
3462 CFLAGS=$ac_save_CFLAGS
3463 elif test $ac_cv_prog_cc_g = yes; then
3464 if test "$GCC" = yes; then
3465 CFLAGS="-g -O2"
3466 else
3467 CFLAGS="-g"
3468 fi
3469 else
3470 if test "$GCC" = yes; then
3471 CFLAGS="-O2"
3472 else
3473 CFLAGS=
3474 fi
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3477 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3478 if ${ac_cv_prog_cc_c89+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 ac_cv_prog_cc_c89=no
3482 ac_save_CC=$CC
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485 #include <stdarg.h>
3486 #include <stdio.h>
3487 struct stat;
3488 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3489 struct buf { int x; };
3490 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3491 static char *e (p, i)
3492 char **p;
3493 int i;
3494 {
3495 return p[i];
3496 }
3497 static char *f (char * (*g) (char **, int), char **p, ...)
3498 {
3499 char *s;
3500 va_list v;
3501 va_start (v,p);
3502 s = g (p, va_arg (v,int));
3503 va_end (v);
3504 return s;
3505 }
3506
3507 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3508 function prototypes and stuff, but not '\xHH' hex character constants.
3509 These don't provoke an error unfortunately, instead are silently treated
3510 as 'x'. The following induces an error, until -std is added to get
3511 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3512 array size at least. It's necessary to write '\x00'==0 to get something
3513 that's true only with -std. */
3514 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515
3516 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3517 inside strings and character constants. */
3518 #define FOO(x) 'x'
3519 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520
3521 int test (int i, double x);
3522 struct s1 {int (*f) (int a);};
3523 struct s2 {int (*f) (double a);};
3524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3525 int argc;
3526 char **argv;
3527 int
3528 main ()
3529 {
3530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3536 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 do
3538 CC="$ac_save_CC $ac_arg"
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_cv_prog_cc_c89=$ac_arg
3541 fi
3542 rm -f core conftest.err conftest.$ac_objext
3543 test "x$ac_cv_prog_cc_c89" != "xno" && break
3544 done
3545 rm -f conftest.$ac_ext
3546 CC=$ac_save_CC
3547
3548 fi
3549 # AC_CACHE_VAL
3550 case "x$ac_cv_prog_cc_c89" in
3551 x)
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3553 $as_echo "none needed" >&6; } ;;
3554 xno)
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3556 $as_echo "unsupported" >&6; } ;;
3557 *)
3558 CC="$CC $ac_cv_prog_cc_c89"
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3560 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3561 esac
3562 if test "x$ac_cv_prog_cc_c89" != xno; then :
3563
3564 fi
3565
3566 ac_ext=c
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3578 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3579 if ${am_cv_prog_cc_c_o+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 # Make sure it works both with $CC and with simple cc.
3594 # Following AC_PROG_CC_C_O, we do the test twice because some
3595 # compilers refuse to overwrite an existing .o file with -o,
3596 # though they will create one.
3597 am_cv_prog_cc_c_o=yes
3598 for am_i in 1 2; do
3599 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3600 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } \
3604 && test -f conftest2.$ac_objext; then
3605 : OK
3606 else
3607 am_cv_prog_cc_c_o=no
3608 break
3609 fi
3610 done
3611 rm -f core conftest*
3612 unset am_i
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3615 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3616 if test "$am_cv_prog_cc_c_o" != yes; then
3617 # Losing compiler, so override with the script.
3618 # FIXME: It is wrong to rewrite CC.
3619 # But if we don't then we get into trouble of one sort or another.
3620 # A longer-term fix would be to have automake use am__CC in this case,
3621 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3622 CC="$am_aux_dir/compile $CC"
3623 fi
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630
3631 depcc="$CC" am_compiler_list=
3632
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3634 $as_echo_n "checking dependency style of $depcc... " >&6; }
3635 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3639 # We make a subdir and do the tests there. Otherwise we can end up
3640 # making bogus files that we don't know about and never remove. For
3641 # instance it was reported that on HP-UX the gcc test will end up
3642 # making a dummy file named 'D' -- because '-MD' means "put the output
3643 # in D".
3644 rm -rf conftest.dir
3645 mkdir conftest.dir
3646 # Copy depcomp to subdir because otherwise we won't find it if we're
3647 # using a relative directory.
3648 cp "$am_depcomp" conftest.dir
3649 cd conftest.dir
3650 # We will build objects and dependencies in a subdirectory because
3651 # it helps to detect inapplicable dependency modes. For instance
3652 # both Tru64's cc and ICC support -MD to output dependencies as a
3653 # side effect of compilation, but ICC will put the dependencies in
3654 # the current directory while Tru64 will put them in the object
3655 # directory.
3656 mkdir sub
3657
3658 am_cv_CC_dependencies_compiler_type=none
3659 if test "$am_compiler_list" = ""; then
3660 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3661 fi
3662 am__universal=false
3663 case " $depcc " in #(
3664 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3665 esac
3666
3667 for depmode in $am_compiler_list; do
3668 # Setup a source with many dependencies, because some compilers
3669 # like to wrap large dependency lists on column 80 (with \), and
3670 # we should not choose a depcomp mode which is confused by this.
3671 #
3672 # We need to recreate these files for each test, as the compiler may
3673 # overwrite some of them when testing with obscure command lines.
3674 # This happens at least with the AIX C compiler.
3675 : > sub/conftest.c
3676 for i in 1 2 3 4 5 6; do
3677 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3678 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3679 # Solaris 10 /bin/sh.
3680 echo '/* dummy */' > sub/conftst$i.h
3681 done
3682 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3683
3684 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3685 # mode. It turns out that the SunPro C++ compiler does not properly
3686 # handle '-M -o', and we need to detect this. Also, some Intel
3687 # versions had trouble with output in subdirs.
3688 am__obj=sub/conftest.${OBJEXT-o}
3689 am__minus_obj="-o $am__obj"
3690 case $depmode in
3691 gcc)
3692 # This depmode causes a compiler race in universal mode.
3693 test "$am__universal" = false || continue
3694 ;;
3695 nosideeffect)
3696 # After this tag, mechanisms are not by side-effect, so they'll
3697 # only be used when explicitly requested.
3698 if test "x$enable_dependency_tracking" = xyes; then
3699 continue
3700 else
3701 break
3702 fi
3703 ;;
3704 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3705 # This compiler won't grok '-c -o', but also, the minuso test has
3706 # not run yet. These depmodes are late enough in the game, and
3707 # so weak that their functioning should not be impacted.
3708 am__obj=conftest.${OBJEXT-o}
3709 am__minus_obj=
3710 ;;
3711 none) break ;;
3712 esac
3713 if depmode=$depmode \
3714 source=sub/conftest.c object=$am__obj \
3715 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3716 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3717 >/dev/null 2>conftest.err &&
3718 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3719 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3720 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3721 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3722 # icc doesn't choke on unknown options, it will just issue warnings
3723 # or remarks (even with -Werror). So we grep stderr for any message
3724 # that says an option was ignored or not supported.
3725 # When given -MP, icc 7.0 and 7.1 complain thusly:
3726 # icc: Command line warning: ignoring option '-M'; no argument required
3727 # The diagnosis changed in icc 8.0:
3728 # icc: Command line remark: option '-MP' not supported
3729 if (grep 'ignoring option' conftest.err ||
3730 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3731 am_cv_CC_dependencies_compiler_type=$depmode
3732 break
3733 fi
3734 fi
3735 done
3736
3737 cd ..
3738 rm -rf conftest.dir
3739 else
3740 am_cv_CC_dependencies_compiler_type=none
3741 fi
3742
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3745 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3746 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3747
3748 if
3749 test "x$enable_dependency_tracking" != xno \
3750 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3751 am__fastdepCC_TRUE=
3752 am__fastdepCC_FALSE='#'
3753 else
3754 am__fastdepCC_TRUE='#'
3755 am__fastdepCC_FALSE=
3756 fi
3757
3758
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3760 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3761 if ${ac_cv_prog_cc_c99+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 ac_cv_prog_cc_c99=no
3765 ac_save_CC=$CC
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <stdarg.h>
3769 #include <stdbool.h>
3770 #include <stdlib.h>
3771 #include <wchar.h>
3772 #include <stdio.h>
3773
3774 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3775 #define debug(...) fprintf (stderr, __VA_ARGS__)
3776 #define showlist(...) puts (#__VA_ARGS__)
3777 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3778 static void
3779 test_varargs_macros (void)
3780 {
3781 int x = 1234;
3782 int y = 5678;
3783 debug ("Flag");
3784 debug ("X = %d\n", x);
3785 showlist (The first, second, and third items.);
3786 report (x>y, "x is %d but y is %d", x, y);
3787 }
3788
3789 // Check long long types.
3790 #define BIG64 18446744073709551615ull
3791 #define BIG32 4294967295ul
3792 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3793 #if !BIG_OK
3794 your preprocessor is broken;
3795 #endif
3796 #if BIG_OK
3797 #else
3798 your preprocessor is broken;
3799 #endif
3800 static long long int bignum = -9223372036854775807LL;
3801 static unsigned long long int ubignum = BIG64;
3802
3803 struct incomplete_array
3804 {
3805 int datasize;
3806 double data[];
3807 };
3808
3809 struct named_init {
3810 int number;
3811 const wchar_t *name;
3812 double average;
3813 };
3814
3815 typedef const char *ccp;
3816
3817 static inline int
3818 test_restrict (ccp restrict text)
3819 {
3820 // See if C++-style comments work.
3821 // Iterate through items via the restricted pointer.
3822 // Also check for declarations in for loops.
3823 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3824 continue;
3825 return 0;
3826 }
3827
3828 // Check varargs and va_copy.
3829 static void
3830 test_varargs (const char *format, ...)
3831 {
3832 va_list args;
3833 va_start (args, format);
3834 va_list args_copy;
3835 va_copy (args_copy, args);
3836
3837 const char *str;
3838 int number;
3839 float fnumber;
3840
3841 while (*format)
3842 {
3843 switch (*format++)
3844 {
3845 case 's': // string
3846 str = va_arg (args_copy, const char *);
3847 break;
3848 case 'd': // int
3849 number = va_arg (args_copy, int);
3850 break;
3851 case 'f': // float
3852 fnumber = va_arg (args_copy, double);
3853 break;
3854 default:
3855 break;
3856 }
3857 }
3858 va_end (args_copy);
3859 va_end (args);
3860 }
3861
3862 int
3863 main ()
3864 {
3865
3866 // Check bool.
3867 _Bool success = false;
3868
3869 // Check restrict.
3870 if (test_restrict ("String literal") == 0)
3871 success = true;
3872 char *restrict newvar = "Another string";
3873
3874 // Check varargs.
3875 test_varargs ("s, d' f .", "string", 65, 34.234);
3876 test_varargs_macros ();
3877
3878 // Check flexible array members.
3879 struct incomplete_array *ia =
3880 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3881 ia->datasize = 10;
3882 for (int i = 0; i < ia->datasize; ++i)
3883 ia->data[i] = i * 1.234;
3884
3885 // Check named initializers.
3886 struct named_init ni = {
3887 .number = 34,
3888 .name = L"Test wide string",
3889 .average = 543.34343,
3890 };
3891
3892 ni.number = 58;
3893
3894 int dynamic_array[ni.number];
3895 dynamic_array[ni.number - 1] = 543;
3896
3897 // work around unused variable warnings
3898 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3899 || dynamic_array[ni.number - 1] != 543);
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3906 do
3907 CC="$ac_save_CC $ac_arg"
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_prog_cc_c99=$ac_arg
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext
3912 test "x$ac_cv_prog_cc_c99" != "xno" && break
3913 done
3914 rm -f conftest.$ac_ext
3915 CC=$ac_save_CC
3916
3917 fi
3918 # AC_CACHE_VAL
3919 case "x$ac_cv_prog_cc_c99" in
3920 x)
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3923 xno)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3926 *)
3927 CC="$CC $ac_cv_prog_cc_c99"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3929 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3930 esac
3931 if test "x$ac_cv_prog_cc_c99" != xno; then :
3932
3933 fi
3934
3935
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3943 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3944 # On Suns, sometimes $CPP names a directory.
3945 if test -n "$CPP" && test -d "$CPP"; then
3946 CPP=
3947 fi
3948 if test -z "$CPP"; then
3949 if ${ac_cv_prog_CPP+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 # Double quotes because CPP needs to be expanded
3953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3954 do
3955 ac_preproc_ok=false
3956 for ac_c_preproc_warn_flag in '' yes
3957 do
3958 # Use a header file that comes with gcc, so configuring glibc
3959 # with a fresh cross-compiler works.
3960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3961 # <limits.h> exists even on freestanding compilers.
3962 # On the NeXT, cc -E runs the code through the compiler's parser,
3963 # not just through cpp. "Syntax error" is here to catch this case.
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #ifdef __STDC__
3967 # include <limits.h>
3968 #else
3969 # include <assert.h>
3970 #endif
3971 Syntax error
3972 _ACEOF
3973 if ac_fn_c_try_cpp "$LINENO"; then :
3974
3975 else
3976 # Broken: fails on valid input.
3977 continue
3978 fi
3979 rm -f conftest.err conftest.i conftest.$ac_ext
3980
3981 # OK, works on sane cases. Now check whether nonexistent headers
3982 # can be detected and how.
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985 #include <ac_nonexistent.h>
3986 _ACEOF
3987 if ac_fn_c_try_cpp "$LINENO"; then :
3988 # Broken: success on invalid input.
3989 continue
3990 else
3991 # Passes both tests.
3992 ac_preproc_ok=:
3993 break
3994 fi
3995 rm -f conftest.err conftest.i conftest.$ac_ext
3996
3997 done
3998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3999 rm -f conftest.i conftest.err conftest.$ac_ext
4000 if $ac_preproc_ok; then :
4001 break
4002 fi
4003
4004 done
4005 ac_cv_prog_CPP=$CPP
4006
4007 fi
4008 CPP=$ac_cv_prog_CPP
4009 else
4010 ac_cv_prog_CPP=$CPP
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4013 $as_echo "$CPP" >&6; }
4014 ac_preproc_ok=false
4015 for ac_c_preproc_warn_flag in '' yes
4016 do
4017 # Use a header file that comes with gcc, so configuring glibc
4018 # with a fresh cross-compiler works.
4019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4020 # <limits.h> exists even on freestanding compilers.
4021 # On the NeXT, cc -E runs the code through the compiler's parser,
4022 # not just through cpp. "Syntax error" is here to catch this case.
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #ifdef __STDC__
4026 # include <limits.h>
4027 #else
4028 # include <assert.h>
4029 #endif
4030 Syntax error
4031 _ACEOF
4032 if ac_fn_c_try_cpp "$LINENO"; then :
4033
4034 else
4035 # Broken: fails on valid input.
4036 continue
4037 fi
4038 rm -f conftest.err conftest.i conftest.$ac_ext
4039
4040 # OK, works on sane cases. Now check whether nonexistent headers
4041 # can be detected and how.
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 #include <ac_nonexistent.h>
4045 _ACEOF
4046 if ac_fn_c_try_cpp "$LINENO"; then :
4047 # Broken: success on invalid input.
4048 continue
4049 else
4050 # Passes both tests.
4051 ac_preproc_ok=:
4052 break
4053 fi
4054 rm -f conftest.err conftest.i conftest.$ac_ext
4055
4056 done
4057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058 rm -f conftest.i conftest.err conftest.$ac_ext
4059 if $ac_preproc_ok; then :
4060
4061 else
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4065 See \`config.log' for more details" "$LINENO" 5; }
4066 fi
4067
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4076 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4077 if ${ac_cv_path_GREP+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -z "$GREP"; then
4081 ac_path_GREP_found=false
4082 # Loop through the user's path and test for each of PROGNAME-LIST
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4085 do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_prog in grep ggrep; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4091 as_fn_executable_p "$ac_path_GREP" || continue
4092 # Check for GNU ac_path_GREP and select it if it is found.
4093 # Check for GNU $ac_path_GREP
4094 case `"$ac_path_GREP" --version 2>&1` in
4095 *GNU*)
4096 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4097 *)
4098 ac_count=0
4099 $as_echo_n 0123456789 >"conftest.in"
4100 while :
4101 do
4102 cat "conftest.in" "conftest.in" >"conftest.tmp"
4103 mv "conftest.tmp" "conftest.in"
4104 cp "conftest.in" "conftest.nl"
4105 $as_echo 'GREP' >> "conftest.nl"
4106 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108 as_fn_arith $ac_count + 1 && ac_count=$as_val
4109 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4110 # Best one so far, save it but keep looking for a better one
4111 ac_cv_path_GREP="$ac_path_GREP"
4112 ac_path_GREP_max=$ac_count
4113 fi
4114 # 10*(2^10) chars as input seems more than enough
4115 test $ac_count -gt 10 && break
4116 done
4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4118 esac
4119
4120 $ac_path_GREP_found && break 3
4121 done
4122 done
4123 done
4124 IFS=$as_save_IFS
4125 if test -z "$ac_cv_path_GREP"; then
4126 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4127 fi
4128 else
4129 ac_cv_path_GREP=$GREP
4130 fi
4131
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4134 $as_echo "$ac_cv_path_GREP" >&6; }
4135 GREP="$ac_cv_path_GREP"
4136
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4139 $as_echo_n "checking for egrep... " >&6; }
4140 if ${ac_cv_path_EGREP+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144 then ac_cv_path_EGREP="$GREP -E"
4145 else
4146 if test -z "$EGREP"; then
4147 ac_path_EGREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in egrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4157 as_fn_executable_p "$ac_path_EGREP" || continue
4158 # Check for GNU ac_path_EGREP and select it if it is found.
4159 # Check for GNU $ac_path_EGREP
4160 case `"$ac_path_EGREP" --version 2>&1` in
4161 *GNU*)
4162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4163 *)
4164 ac_count=0
4165 $as_echo_n 0123456789 >"conftest.in"
4166 while :
4167 do
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 $as_echo 'EGREP' >> "conftest.nl"
4172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 as_fn_arith $ac_count + 1 && ac_count=$as_val
4175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_EGREP="$ac_path_EGREP"
4178 ac_path_EGREP_max=$ac_count
4179 fi
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4182 done
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 esac
4185
4186 $ac_path_EGREP_found && break 3
4187 done
4188 done
4189 done
4190 IFS=$as_save_IFS
4191 if test -z "$ac_cv_path_EGREP"; then
4192 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 fi
4194 else
4195 ac_cv_path_EGREP=$EGREP
4196 fi
4197
4198 fi
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4201 $as_echo "$ac_cv_path_EGREP" >&6; }
4202 EGREP="$ac_cv_path_EGREP"
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4206 $as_echo_n "checking for ANSI C header files... " >&6; }
4207 if ${ac_cv_header_stdc+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212 #include <stdlib.h>
4213 #include <stdarg.h>
4214 #include <string.h>
4215 #include <float.h>
4216
4217 int
4218 main ()
4219 {
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_header_stdc=yes
4227 else
4228 ac_cv_header_stdc=no
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231
4232 if test $ac_cv_header_stdc = yes; then
4233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <string.h>
4237
4238 _ACEOF
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "memchr" >/dev/null 2>&1; then :
4241
4242 else
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -f conftest*
4246
4247 fi
4248
4249 if test $ac_cv_header_stdc = yes; then
4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <stdlib.h>
4254
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "free" >/dev/null 2>&1; then :
4258
4259 else
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest*
4263
4264 fi
4265
4266 if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then :
4269 :
4270 else
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <ctype.h>
4274 #include <stdlib.h>
4275 #if ((' ' & 0x0FF) == 0x020)
4276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4278 #else
4279 # define ISLOWER(c) \
4280 (('a' <= (c) && (c) <= 'i') \
4281 || ('j' <= (c) && (c) <= 'r') \
4282 || ('s' <= (c) && (c) <= 'z'))
4283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4284 #endif
4285
4286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4287 int
4288 main ()
4289 {
4290 int i;
4291 for (i = 0; i < 256; i++)
4292 if (XOR (islower (i), ISLOWER (i))
4293 || toupper (i) != TOUPPER (i))
4294 return 2;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_run "$LINENO"; then :
4299
4300 else
4301 ac_cv_header_stdc=no
4302 fi
4303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4304 conftest.$ac_objext conftest.beam conftest.$ac_ext
4305 fi
4306
4307 fi
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4310 $as_echo "$ac_cv_header_stdc" >&6; }
4311 if test $ac_cv_header_stdc = yes; then
4312
4313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4314
4315 fi
4316
4317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319 inttypes.h stdint.h unistd.h
4320 do :
4321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4323 "
4324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4325 cat >>confdefs.h <<_ACEOF
4326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4327 _ACEOF
4328
4329 fi
4330
4331 done
4332
4333
4334
4335
4336
4337
4338 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4339 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4340 CLANGCC="yes"
4341 else
4342 CLANGCC="no"
4343 fi
4344
4345 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4346 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4347 INTELCC="yes"
4348 else
4349 INTELCC="no"
4350 fi
4351
4352 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4353 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4354 SUNCC="yes"
4355 else
4356 SUNCC="no"
4357 fi
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4368 if test -n "$ac_tool_prefix"; then
4369 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4370 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 case $PKG_CONFIG in
4377 [\\/]* | ?:[\\/]*)
4378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4379 ;;
4380 *)
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4383 do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4391 fi
4392 done
4393 done
4394 IFS=$as_save_IFS
4395
4396 ;;
4397 esac
4398 fi
4399 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4400 if test -n "$PKG_CONFIG"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4402 $as_echo "$PKG_CONFIG" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 fi
4407
4408
4409 fi
4410 if test -z "$ac_cv_path_PKG_CONFIG"; then
4411 ac_pt_PKG_CONFIG=$PKG_CONFIG
4412 # Extract the first word of "pkg-config", so it can be a program name with args.
4413 set dummy pkg-config; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 case $ac_pt_PKG_CONFIG in
4420 [\\/]* | ?:[\\/]*)
4421 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4422 ;;
4423 *)
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439 ;;
4440 esac
4441 fi
4442 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4443 if test -n "$ac_pt_PKG_CONFIG"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4445 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4446 else
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4449 fi
4450
4451 if test "x$ac_pt_PKG_CONFIG" = x; then
4452 PKG_CONFIG=""
4453 else
4454 case $cross_compiling:$ac_tool_warned in
4455 yes:)
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4458 ac_tool_warned=yes ;;
4459 esac
4460 PKG_CONFIG=$ac_pt_PKG_CONFIG
4461 fi
4462 else
4463 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4464 fi
4465
4466 fi
4467 if test -n "$PKG_CONFIG"; then
4468 _pkg_min_version=0.9.0
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4470 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4471 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4473 $as_echo "yes" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 PKG_CONFIG=""
4478 fi
4479 fi
4480 # Make sure we can run config.sub.
4481 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4482 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4483
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4485 $as_echo_n "checking build system type... " >&6; }
4486 if ${ac_cv_build+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 ac_build_alias=$build_alias
4490 test "x$ac_build_alias" = x &&
4491 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4492 test "x$ac_build_alias" = x &&
4493 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4494 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4496
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4499 $as_echo "$ac_cv_build" >&6; }
4500 case $ac_cv_build in
4501 *-*-*) ;;
4502 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4503 esac
4504 build=$ac_cv_build
4505 ac_save_IFS=$IFS; IFS='-'
4506 set x $ac_cv_build
4507 shift
4508 build_cpu=$1
4509 build_vendor=$2
4510 shift; shift
4511 # Remember, the first character of IFS is used to create $*,
4512 # except with old shells:
4513 build_os=$*
4514 IFS=$ac_save_IFS
4515 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4516
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4519 $as_echo_n "checking host system type... " >&6; }
4520 if ${ac_cv_host+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test "x$host_alias" = x; then
4524 ac_cv_host=$ac_cv_build
4525 else
4526 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4528 fi
4529
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4532 $as_echo "$ac_cv_host" >&6; }
4533 case $ac_cv_host in
4534 *-*-*) ;;
4535 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4536 esac
4537 host=$ac_cv_host
4538 ac_save_IFS=$IFS; IFS='-'
4539 set x $ac_cv_host
4540 shift
4541 host_cpu=$1
4542 host_vendor=$2
4543 shift; shift
4544 # Remember, the first character of IFS is used to create $*,
4545 # except with old shells:
4546 host_os=$*
4547 IFS=$ac_save_IFS
4548 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4549
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4552 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4553 if ${ac_cv_path_SED+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4557 for ac_i in 1 2 3 4 5 6 7; do
4558 ac_script="$ac_script$as_nl$ac_script"
4559 done
4560 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4561 { ac_script=; unset ac_script;}
4562 if test -z "$SED"; then
4563 ac_path_SED_found=false
4564 # Loop through the user's path and test for each of PROGNAME-LIST
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_prog in sed gsed; do
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4573 as_fn_executable_p "$ac_path_SED" || continue
4574 # Check for GNU ac_path_SED and select it if it is found.
4575 # Check for GNU $ac_path_SED
4576 case `"$ac_path_SED" --version 2>&1` in
4577 *GNU*)
4578 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4579 *)
4580 ac_count=0
4581 $as_echo_n 0123456789 >"conftest.in"
4582 while :
4583 do
4584 cat "conftest.in" "conftest.in" >"conftest.tmp"
4585 mv "conftest.tmp" "conftest.in"
4586 cp "conftest.in" "conftest.nl"
4587 $as_echo '' >> "conftest.nl"
4588 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4590 as_fn_arith $ac_count + 1 && ac_count=$as_val
4591 if test $ac_count -gt ${ac_path_SED_max-0}; then
4592 # Best one so far, save it but keep looking for a better one
4593 ac_cv_path_SED="$ac_path_SED"
4594 ac_path_SED_max=$ac_count
4595 fi
4596 # 10*(2^10) chars as input seems more than enough
4597 test $ac_count -gt 10 && break
4598 done
4599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4600 esac
4601
4602 $ac_path_SED_found && break 3
4603 done
4604 done
4605 done
4606 IFS=$as_save_IFS
4607 if test -z "$ac_cv_path_SED"; then
4608 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4609 fi
4610 else
4611 ac_cv_path_SED=$SED
4612 fi
4613
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4616 $as_echo "$ac_cv_path_SED" >&6; }
4617 SED="$ac_cv_path_SED"
4618 rm -f conftest.sed
4619
4620
4621
4622
4623
4624
4625 # Check whether --enable-selective-werror was given.
4626 if test "${enable_selective_werror+set}" = set; then :
4627 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4628 else
4629 SELECTIVE_WERROR=yes
4630 fi
4631
4632
4633
4634
4635
4636 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4637 if test "x$SUNCC" = "xyes"; then
4638 BASE_CFLAGS="-v"
4639 else
4640 BASE_CFLAGS=""
4641 fi
4642
4643 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657 xorg_testset_save_CFLAGS="$CFLAGS"
4658
4659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4663 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 int i;
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671 xorg_cv_cc_flag_unknown_warning_option=yes
4672 else
4673 xorg_cv_cc_flag_unknown_warning_option=no
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4678 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4680 CFLAGS="$xorg_testset_save_CFLAGS"
4681 fi
4682
4683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4686 fi
4687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4689 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4690 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 int i;
4696 _ACEOF
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698 xorg_cv_cc_flag_unused_command_line_argument=yes
4699 else
4700 xorg_cv_cc_flag_unused_command_line_argument=no
4701 fi
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4705 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4707 CFLAGS="$xorg_testset_save_CFLAGS"
4708 fi
4709
4710 found="no"
4711
4712 if test $found = "no" ; then
4713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4715 fi
4716
4717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4719 fi
4720
4721 CFLAGS="$CFLAGS -Wall"
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4724 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4725 cacheid=xorg_cv_cc_flag__Wall
4726 if eval \${$cacheid+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 int i;
4732 int
4733 main ()
4734 {
4735
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 if ac_fn_c_try_link "$LINENO"; then :
4741 eval $cacheid=yes
4742 else
4743 eval $cacheid=no
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext \
4746 conftest$ac_exeext conftest.$ac_ext
4747 fi
4748
4749
4750 CFLAGS="$xorg_testset_save_CFLAGS"
4751
4752 eval supported=\$$cacheid
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4754 $as_echo "$supported" >&6; }
4755 if test "$supported" = "yes" ; then
4756 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4757 found="yes"
4758 fi
4759 fi
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 xorg_testset_save_CFLAGS="$CFLAGS"
4776
4777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 int i;
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 xorg_cv_cc_flag_unknown_warning_option=yes
4790 else
4791 xorg_cv_cc_flag_unknown_warning_option=no
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4798 CFLAGS="$xorg_testset_save_CFLAGS"
4799 fi
4800
4801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4804 fi
4805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 int i;
4814 _ACEOF
4815 if ac_fn_c_try_compile "$LINENO"; then :
4816 xorg_cv_cc_flag_unused_command_line_argument=yes
4817 else
4818 xorg_cv_cc_flag_unused_command_line_argument=no
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4825 CFLAGS="$xorg_testset_save_CFLAGS"
4826 fi
4827
4828 found="no"
4829
4830 if test $found = "no" ; then
4831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4833 fi
4834
4835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4837 fi
4838
4839 CFLAGS="$CFLAGS -Wpointer-arith"
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4842 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4843 cacheid=xorg_cv_cc_flag__Wpointer_arith
4844 if eval \${$cacheid+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 int i;
4850 int
4851 main ()
4852 {
4853
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 if ac_fn_c_try_link "$LINENO"; then :
4859 eval $cacheid=yes
4860 else
4861 eval $cacheid=no
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext \
4864 conftest$ac_exeext conftest.$ac_ext
4865 fi
4866
4867
4868 CFLAGS="$xorg_testset_save_CFLAGS"
4869
4870 eval supported=\$$cacheid
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4872 $as_echo "$supported" >&6; }
4873 if test "$supported" = "yes" ; then
4874 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4875 found="yes"
4876 fi
4877 fi
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893 xorg_testset_save_CFLAGS="$CFLAGS"
4894
4895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 int i;
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907 xorg_cv_cc_flag_unknown_warning_option=yes
4908 else
4909 xorg_cv_cc_flag_unknown_warning_option=no
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4916 CFLAGS="$xorg_testset_save_CFLAGS"
4917 fi
4918
4919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922 fi
4923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 int i;
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 xorg_cv_cc_flag_unused_command_line_argument=yes
4935 else
4936 xorg_cv_cc_flag_unused_command_line_argument=no
4937 fi
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4943 CFLAGS="$xorg_testset_save_CFLAGS"
4944 fi
4945
4946 found="no"
4947
4948 if test $found = "no" ; then
4949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951 fi
4952
4953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4955 fi
4956
4957 CFLAGS="$CFLAGS -Wmissing-declarations"
4958
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4960 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4961 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4962 if eval \${$cacheid+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 int i;
4968 int
4969 main ()
4970 {
4971
4972 ;
4973 return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_c_try_link "$LINENO"; then :
4977 eval $cacheid=yes
4978 else
4979 eval $cacheid=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext \
4982 conftest$ac_exeext conftest.$ac_ext
4983 fi
4984
4985
4986 CFLAGS="$xorg_testset_save_CFLAGS"
4987
4988 eval supported=\$$cacheid
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4990 $as_echo "$supported" >&6; }
4991 if test "$supported" = "yes" ; then
4992 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4993 found="yes"
4994 fi
4995 fi
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 xorg_testset_save_CFLAGS="$CFLAGS"
5012
5013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5016 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5017 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 int i;
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025 xorg_cv_cc_flag_unknown_warning_option=yes
5026 else
5027 xorg_cv_cc_flag_unknown_warning_option=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5032 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5034 CFLAGS="$xorg_testset_save_CFLAGS"
5035 fi
5036
5037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040 fi
5041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5043 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5044 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 int i;
5050 _ACEOF
5051 if ac_fn_c_try_compile "$LINENO"; then :
5052 xorg_cv_cc_flag_unused_command_line_argument=yes
5053 else
5054 xorg_cv_cc_flag_unused_command_line_argument=no
5055 fi
5056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5059 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5061 CFLAGS="$xorg_testset_save_CFLAGS"
5062 fi
5063
5064 found="no"
5065
5066 if test $found = "no" ; then
5067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069 fi
5070
5071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5073 fi
5074
5075 CFLAGS="$CFLAGS -Wformat=2"
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5078 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5079 cacheid=xorg_cv_cc_flag__Wformat_2
5080 if eval \${$cacheid+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 int i;
5086 int
5087 main ()
5088 {
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 if ac_fn_c_try_link "$LINENO"; then :
5095 eval $cacheid=yes
5096 else
5097 eval $cacheid=no
5098 fi
5099 rm -f core conftest.err conftest.$ac_objext \
5100 conftest$ac_exeext conftest.$ac_ext
5101 fi
5102
5103
5104 CFLAGS="$xorg_testset_save_CFLAGS"
5105
5106 eval supported=\$$cacheid
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5108 $as_echo "$supported" >&6; }
5109 if test "$supported" = "yes" ; then
5110 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5111 found="yes"
5112 fi
5113 fi
5114
5115 if test $found = "no" ; then
5116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5118 fi
5119
5120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5122 fi
5123
5124 CFLAGS="$CFLAGS -Wformat"
5125
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5127 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5128 cacheid=xorg_cv_cc_flag__Wformat
5129 if eval \${$cacheid+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 int i;
5135 int
5136 main ()
5137 {
5138
5139 ;
5140 return 0;
5141 }
5142 _ACEOF
5143 if ac_fn_c_try_link "$LINENO"; then :
5144 eval $cacheid=yes
5145 else
5146 eval $cacheid=no
5147 fi
5148 rm -f core conftest.err conftest.$ac_objext \
5149 conftest$ac_exeext conftest.$ac_ext
5150 fi
5151
5152
5153 CFLAGS="$xorg_testset_save_CFLAGS"
5154
5155 eval supported=\$$cacheid
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5157 $as_echo "$supported" >&6; }
5158 if test "$supported" = "yes" ; then
5159 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5160 found="yes"
5161 fi
5162 fi
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180 xorg_testset_save_CFLAGS="$CFLAGS"
5181
5182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 int i;
5192 _ACEOF
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194 xorg_cv_cc_flag_unknown_warning_option=yes
5195 else
5196 xorg_cv_cc_flag_unknown_warning_option=no
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5203 CFLAGS="$xorg_testset_save_CFLAGS"
5204 fi
5205
5206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209 fi
5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 int i;
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 xorg_cv_cc_flag_unused_command_line_argument=yes
5222 else
5223 xorg_cv_cc_flag_unused_command_line_argument=no
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5230 CFLAGS="$xorg_testset_save_CFLAGS"
5231 fi
5232
5233 found="no"
5234
5235 if test $found = "no" ; then
5236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238 fi
5239
5240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5242 fi
5243
5244 CFLAGS="$CFLAGS -Wstrict-prototypes"
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5247 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5248 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5249 if eval \${$cacheid+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 int i;
5255 int
5256 main ()
5257 {
5258
5259 ;
5260 return 0;
5261 }
5262 _ACEOF
5263 if ac_fn_c_try_link "$LINENO"; then :
5264 eval $cacheid=yes
5265 else
5266 eval $cacheid=no
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext \
5269 conftest$ac_exeext conftest.$ac_ext
5270 fi
5271
5272
5273 CFLAGS="$xorg_testset_save_CFLAGS"
5274
5275 eval supported=\$$cacheid
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5277 $as_echo "$supported" >&6; }
5278 if test "$supported" = "yes" ; then
5279 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5280 found="yes"
5281 fi
5282 fi
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298 xorg_testset_save_CFLAGS="$CFLAGS"
5299
5300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 int i;
5310 _ACEOF
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 xorg_cv_cc_flag_unknown_warning_option=yes
5313 else
5314 xorg_cv_cc_flag_unknown_warning_option=no
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 fi
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5321 CFLAGS="$xorg_testset_save_CFLAGS"
5322 fi
5323
5324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327 fi
5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 int i;
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 xorg_cv_cc_flag_unused_command_line_argument=yes
5340 else
5341 xorg_cv_cc_flag_unused_command_line_argument=no
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5348 CFLAGS="$xorg_testset_save_CFLAGS"
5349 fi
5350
5351 found="no"
5352
5353 if test $found = "no" ; then
5354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356 fi
5357
5358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5360 fi
5361
5362 CFLAGS="$CFLAGS -Wmissing-prototypes"
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5365 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5366 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5367 if eval \${$cacheid+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 int i;
5373 int
5374 main ()
5375 {
5376
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 if ac_fn_c_try_link "$LINENO"; then :
5382 eval $cacheid=yes
5383 else
5384 eval $cacheid=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5388 fi
5389
5390
5391 CFLAGS="$xorg_testset_save_CFLAGS"
5392
5393 eval supported=\$$cacheid
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5395 $as_echo "$supported" >&6; }
5396 if test "$supported" = "yes" ; then
5397 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5398 found="yes"
5399 fi
5400 fi
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416 xorg_testset_save_CFLAGS="$CFLAGS"
5417
5418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 int i;
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 xorg_cv_cc_flag_unknown_warning_option=yes
5431 else
5432 xorg_cv_cc_flag_unknown_warning_option=no
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5439 CFLAGS="$xorg_testset_save_CFLAGS"
5440 fi
5441
5442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445 fi
5446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 int i;
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 xorg_cv_cc_flag_unused_command_line_argument=yes
5458 else
5459 xorg_cv_cc_flag_unused_command_line_argument=no
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5466 CFLAGS="$xorg_testset_save_CFLAGS"
5467 fi
5468
5469 found="no"
5470
5471 if test $found = "no" ; then
5472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474 fi
5475
5476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5478 fi
5479
5480 CFLAGS="$CFLAGS -Wnested-externs"
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5483 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5484 cacheid=xorg_cv_cc_flag__Wnested_externs
5485 if eval \${$cacheid+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 int i;
5491 int
5492 main ()
5493 {
5494
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 if ac_fn_c_try_link "$LINENO"; then :
5500 eval $cacheid=yes
5501 else
5502 eval $cacheid=no
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext \
5505 conftest$ac_exeext conftest.$ac_ext
5506 fi
5507
5508
5509 CFLAGS="$xorg_testset_save_CFLAGS"
5510
5511 eval supported=\$$cacheid
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5513 $as_echo "$supported" >&6; }
5514 if test "$supported" = "yes" ; then
5515 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5516 found="yes"
5517 fi
5518 fi
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534 xorg_testset_save_CFLAGS="$CFLAGS"
5535
5536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 int i;
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"; then :
5548 xorg_cv_cc_flag_unknown_warning_option=yes
5549 else
5550 xorg_cv_cc_flag_unknown_warning_option=no
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5557 CFLAGS="$xorg_testset_save_CFLAGS"
5558 fi
5559
5560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 fi
5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 int i;
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 xorg_cv_cc_flag_unused_command_line_argument=yes
5576 else
5577 xorg_cv_cc_flag_unused_command_line_argument=no
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5584 CFLAGS="$xorg_testset_save_CFLAGS"
5585 fi
5586
5587 found="no"
5588
5589 if test $found = "no" ; then
5590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592 fi
5593
5594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5596 fi
5597
5598 CFLAGS="$CFLAGS -Wbad-function-cast"
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5601 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5602 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5603 if eval \${$cacheid+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 int i;
5609 int
5610 main ()
5611 {
5612
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 if ac_fn_c_try_link "$LINENO"; then :
5618 eval $cacheid=yes
5619 else
5620 eval $cacheid=no
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext \
5623 conftest$ac_exeext conftest.$ac_ext
5624 fi
5625
5626
5627 CFLAGS="$xorg_testset_save_CFLAGS"
5628
5629 eval supported=\$$cacheid
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5631 $as_echo "$supported" >&6; }
5632 if test "$supported" = "yes" ; then
5633 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5634 found="yes"
5635 fi
5636 fi
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652 xorg_testset_save_CFLAGS="$CFLAGS"
5653
5654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5657 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5658 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 int i;
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 xorg_cv_cc_flag_unknown_warning_option=yes
5667 else
5668 xorg_cv_cc_flag_unknown_warning_option=no
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5673 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5675 CFLAGS="$xorg_testset_save_CFLAGS"
5676 fi
5677
5678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681 fi
5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5684 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5685 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 int i;
5691 _ACEOF
5692 if ac_fn_c_try_compile "$LINENO"; then :
5693 xorg_cv_cc_flag_unused_command_line_argument=yes
5694 else
5695 xorg_cv_cc_flag_unused_command_line_argument=no
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 fi
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5700 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5702 CFLAGS="$xorg_testset_save_CFLAGS"
5703 fi
5704
5705 found="no"
5706
5707 if test $found = "no" ; then
5708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710 fi
5711
5712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5714 fi
5715
5716 CFLAGS="$CFLAGS -Wold-style-definition"
5717
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5719 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5720 cacheid=xorg_cv_cc_flag__Wold_style_definition
5721 if eval \${$cacheid+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 int i;
5727 int
5728 main ()
5729 {
5730
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 if ac_fn_c_try_link "$LINENO"; then :
5736 eval $cacheid=yes
5737 else
5738 eval $cacheid=no
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext \
5741 conftest$ac_exeext conftest.$ac_ext
5742 fi
5743
5744
5745 CFLAGS="$xorg_testset_save_CFLAGS"
5746
5747 eval supported=\$$cacheid
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5749 $as_echo "$supported" >&6; }
5750 if test "$supported" = "yes" ; then
5751 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5752 found="yes"
5753 fi
5754 fi
5755
5756 if test $found = "no" ; then
5757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5759 fi
5760
5761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5763 fi
5764
5765 CFLAGS="$CFLAGS -fd"
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5768 $as_echo_n "checking if $CC supports -fd... " >&6; }
5769 cacheid=xorg_cv_cc_flag__fd
5770 if eval \${$cacheid+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 int i;
5776 int
5777 main ()
5778 {
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_link "$LINENO"; then :
5785 eval $cacheid=yes
5786 else
5787 eval $cacheid=no
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791 fi
5792
5793
5794 CFLAGS="$xorg_testset_save_CFLAGS"
5795
5796 eval supported=\$$cacheid
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5798 $as_echo "$supported" >&6; }
5799 if test "$supported" = "yes" ; then
5800 BASE_CFLAGS="$BASE_CFLAGS -fd"
5801 found="yes"
5802 fi
5803 fi
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819 xorg_testset_save_CFLAGS="$CFLAGS"
5820
5821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 int i;
5831 _ACEOF
5832 if ac_fn_c_try_compile "$LINENO"; then :
5833 xorg_cv_cc_flag_unknown_warning_option=yes
5834 else
5835 xorg_cv_cc_flag_unknown_warning_option=no
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 fi
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5842 CFLAGS="$xorg_testset_save_CFLAGS"
5843 fi
5844
5845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5848 fi
5849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 int i;
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860 xorg_cv_cc_flag_unused_command_line_argument=yes
5861 else
5862 xorg_cv_cc_flag_unused_command_line_argument=no
5863 fi
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5869 CFLAGS="$xorg_testset_save_CFLAGS"
5870 fi
5871
5872 found="no"
5873
5874 if test $found = "no" ; then
5875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5877 fi
5878
5879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5881 fi
5882
5883 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5884
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5886 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5887 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5888 if eval \${$cacheid+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 int i;
5894 int
5895 main ()
5896 {
5897
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_c_try_link "$LINENO"; then :
5903 eval $cacheid=yes
5904 else
5905 eval $cacheid=no
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext
5909 fi
5910
5911
5912 CFLAGS="$xorg_testset_save_CFLAGS"
5913
5914 eval supported=\$$cacheid
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5916 $as_echo "$supported" >&6; }
5917 if test "$supported" = "yes" ; then
5918 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5919 found="yes"
5920 fi
5921 fi
5922
5923
5924
5925
5926
5927 # This chunk adds additional warnings that could catch undesired effects.
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941 xorg_testset_save_CFLAGS="$CFLAGS"
5942
5943 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5946 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5947 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 int i;
5953 _ACEOF
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955 xorg_cv_cc_flag_unknown_warning_option=yes
5956 else
5957 xorg_cv_cc_flag_unknown_warning_option=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5962 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5964 CFLAGS="$xorg_testset_save_CFLAGS"
5965 fi
5966
5967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5970 fi
5971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5973 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5974 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 int i;
5980 _ACEOF
5981 if ac_fn_c_try_compile "$LINENO"; then :
5982 xorg_cv_cc_flag_unused_command_line_argument=yes
5983 else
5984 xorg_cv_cc_flag_unused_command_line_argument=no
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5989 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5991 CFLAGS="$xorg_testset_save_CFLAGS"
5992 fi
5993
5994 found="no"
5995
5996 if test $found = "no" ; then
5997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5999 fi
6000
6001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6003 fi
6004
6005 CFLAGS="$CFLAGS -Wunused"
6006
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6008 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6009 cacheid=xorg_cv_cc_flag__Wunused
6010 if eval \${$cacheid+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 int i;
6016 int
6017 main ()
6018 {
6019
6020 ;
6021 return 0;
6022 }
6023 _ACEOF
6024 if ac_fn_c_try_link "$LINENO"; then :
6025 eval $cacheid=yes
6026 else
6027 eval $cacheid=no
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6031 fi
6032
6033
6034 CFLAGS="$xorg_testset_save_CFLAGS"
6035
6036 eval supported=\$$cacheid
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6038 $as_echo "$supported" >&6; }
6039 if test "$supported" = "yes" ; then
6040 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6041 found="yes"
6042 fi
6043 fi
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 xorg_testset_save_CFLAGS="$CFLAGS"
6060
6061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6064 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6065 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 int i;
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"; then :
6073 xorg_cv_cc_flag_unknown_warning_option=yes
6074 else
6075 xorg_cv_cc_flag_unknown_warning_option=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 fi
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6080 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6082 CFLAGS="$xorg_testset_save_CFLAGS"
6083 fi
6084
6085 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6088 fi
6089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6091 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6092 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 int i;
6098 _ACEOF
6099 if ac_fn_c_try_compile "$LINENO"; then :
6100 xorg_cv_cc_flag_unused_command_line_argument=yes
6101 else
6102 xorg_cv_cc_flag_unused_command_line_argument=no
6103 fi
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6107 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6109 CFLAGS="$xorg_testset_save_CFLAGS"
6110 fi
6111
6112 found="no"
6113
6114 if test $found = "no" ; then
6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 fi
6118
6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6121 fi
6122
6123 CFLAGS="$CFLAGS -Wuninitialized"
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6126 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6127 cacheid=xorg_cv_cc_flag__Wuninitialized
6128 if eval \${$cacheid+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 int i;
6134 int
6135 main ()
6136 {
6137
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_link "$LINENO"; then :
6143 eval $cacheid=yes
6144 else
6145 eval $cacheid=no
6146 fi
6147 rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6149 fi
6150
6151
6152 CFLAGS="$xorg_testset_save_CFLAGS"
6153
6154 eval supported=\$$cacheid
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6156 $as_echo "$supported" >&6; }
6157 if test "$supported" = "yes" ; then
6158 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6159 found="yes"
6160 fi
6161 fi
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 xorg_testset_save_CFLAGS="$CFLAGS"
6178
6179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6182 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6183 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 int i;
6189 _ACEOF
6190 if ac_fn_c_try_compile "$LINENO"; then :
6191 xorg_cv_cc_flag_unknown_warning_option=yes
6192 else
6193 xorg_cv_cc_flag_unknown_warning_option=no
6194 fi
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6198 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6209 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6210 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 int i;
6216 _ACEOF
6217 if ac_fn_c_try_compile "$LINENO"; then :
6218 xorg_cv_cc_flag_unused_command_line_argument=yes
6219 else
6220 xorg_cv_cc_flag_unused_command_line_argument=no
6221 fi
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6225 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6227 CFLAGS="$xorg_testset_save_CFLAGS"
6228 fi
6229
6230 found="no"
6231
6232 if test $found = "no" ; then
6233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235 fi
6236
6237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6239 fi
6240
6241 CFLAGS="$CFLAGS -Wshadow"
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6244 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6245 cacheid=xorg_cv_cc_flag__Wshadow
6246 if eval \${$cacheid+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 int i;
6252 int
6253 main ()
6254 {
6255
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_c_try_link "$LINENO"; then :
6261 eval $cacheid=yes
6262 else
6263 eval $cacheid=no
6264 fi
6265 rm -f core conftest.err conftest.$ac_objext \
6266 conftest$ac_exeext conftest.$ac_ext
6267 fi
6268
6269
6270 CFLAGS="$xorg_testset_save_CFLAGS"
6271
6272 eval supported=\$$cacheid
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6274 $as_echo "$supported" >&6; }
6275 if test "$supported" = "yes" ; then
6276 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6277 found="yes"
6278 fi
6279 fi
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 xorg_testset_save_CFLAGS="$CFLAGS"
6296
6297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6300 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6301 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 int i;
6307 _ACEOF
6308 if ac_fn_c_try_compile "$LINENO"; then :
6309 xorg_cv_cc_flag_unknown_warning_option=yes
6310 else
6311 xorg_cv_cc_flag_unknown_warning_option=no
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6316 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6318 CFLAGS="$xorg_testset_save_CFLAGS"
6319 fi
6320
6321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324 fi
6325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6327 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6328 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333 int i;
6334 _ACEOF
6335 if ac_fn_c_try_compile "$LINENO"; then :
6336 xorg_cv_cc_flag_unused_command_line_argument=yes
6337 else
6338 xorg_cv_cc_flag_unused_command_line_argument=no
6339 fi
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341 fi
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6343 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6345 CFLAGS="$xorg_testset_save_CFLAGS"
6346 fi
6347
6348 found="no"
6349
6350 if test $found = "no" ; then
6351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353 fi
6354
6355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6357 fi
6358
6359 CFLAGS="$CFLAGS -Wmissing-noreturn"
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6362 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6363 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6364 if eval \${$cacheid+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 int i;
6370 int
6371 main ()
6372 {
6373
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_link "$LINENO"; then :
6379 eval $cacheid=yes
6380 else
6381 eval $cacheid=no
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6385 fi
6386
6387
6388 CFLAGS="$xorg_testset_save_CFLAGS"
6389
6390 eval supported=\$$cacheid
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6392 $as_echo "$supported" >&6; }
6393 if test "$supported" = "yes" ; then
6394 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6395 found="yes"
6396 fi
6397 fi
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 xorg_testset_save_CFLAGS="$CFLAGS"
6414
6415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6418 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6419 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 int i;
6425 _ACEOF
6426 if ac_fn_c_try_compile "$LINENO"; then :
6427 xorg_cv_cc_flag_unknown_warning_option=yes
6428 else
6429 xorg_cv_cc_flag_unknown_warning_option=no
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 fi
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6434 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6436 CFLAGS="$xorg_testset_save_CFLAGS"
6437 fi
6438
6439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442 fi
6443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6445 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6446 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 int i;
6452 _ACEOF
6453 if ac_fn_c_try_compile "$LINENO"; then :
6454 xorg_cv_cc_flag_unused_command_line_argument=yes
6455 else
6456 xorg_cv_cc_flag_unused_command_line_argument=no
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 fi
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6461 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6463 CFLAGS="$xorg_testset_save_CFLAGS"
6464 fi
6465
6466 found="no"
6467
6468 if test $found = "no" ; then
6469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471 fi
6472
6473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6475 fi
6476
6477 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6478
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6480 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6481 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6482 if eval \${$cacheid+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6487 int i;
6488 int
6489 main ()
6490 {
6491
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 if ac_fn_c_try_link "$LINENO"; then :
6497 eval $cacheid=yes
6498 else
6499 eval $cacheid=no
6500 fi
6501 rm -f core conftest.err conftest.$ac_objext \
6502 conftest$ac_exeext conftest.$ac_ext
6503 fi
6504
6505
6506 CFLAGS="$xorg_testset_save_CFLAGS"
6507
6508 eval supported=\$$cacheid
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6510 $as_echo "$supported" >&6; }
6511 if test "$supported" = "yes" ; then
6512 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6513 found="yes"
6514 fi
6515 fi
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 xorg_testset_save_CFLAGS="$CFLAGS"
6532
6533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6536 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6537 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6542 int i;
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 xorg_cv_cc_flag_unknown_warning_option=yes
6546 else
6547 xorg_cv_cc_flag_unknown_warning_option=no
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 fi
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6552 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6554 CFLAGS="$xorg_testset_save_CFLAGS"
6555 fi
6556
6557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560 fi
6561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6563 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6564 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 int i;
6570 _ACEOF
6571 if ac_fn_c_try_compile "$LINENO"; then :
6572 xorg_cv_cc_flag_unused_command_line_argument=yes
6573 else
6574 xorg_cv_cc_flag_unused_command_line_argument=no
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6579 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6581 CFLAGS="$xorg_testset_save_CFLAGS"
6582 fi
6583
6584 found="no"
6585
6586 if test $found = "no" ; then
6587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589 fi
6590
6591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6593 fi
6594
6595 CFLAGS="$CFLAGS -Wredundant-decls"
6596
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6598 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6599 cacheid=xorg_cv_cc_flag__Wredundant_decls
6600 if eval \${$cacheid+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 int i;
6606 int
6607 main ()
6608 {
6609
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 if ac_fn_c_try_link "$LINENO"; then :
6615 eval $cacheid=yes
6616 else
6617 eval $cacheid=no
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
6621 fi
6622
6623
6624 CFLAGS="$xorg_testset_save_CFLAGS"
6625
6626 eval supported=\$$cacheid
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6628 $as_echo "$supported" >&6; }
6629 if test "$supported" = "yes" ; then
6630 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6631 found="yes"
6632 fi
6633 fi
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649 xorg_testset_save_CFLAGS="$CFLAGS"
6650
6651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6654 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6655 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 int i;
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663 xorg_cv_cc_flag_unknown_warning_option=yes
6664 else
6665 xorg_cv_cc_flag_unknown_warning_option=no
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 fi
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6670 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6672 CFLAGS="$xorg_testset_save_CFLAGS"
6673 fi
6674
6675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678 fi
6679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6681 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6682 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687 int i;
6688 _ACEOF
6689 if ac_fn_c_try_compile "$LINENO"; then :
6690 xorg_cv_cc_flag_unused_command_line_argument=yes
6691 else
6692 xorg_cv_cc_flag_unused_command_line_argument=no
6693 fi
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6697 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6699 CFLAGS="$xorg_testset_save_CFLAGS"
6700 fi
6701
6702 found="no"
6703
6704 if test $found = "no" ; then
6705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707 fi
6708
6709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6711 fi
6712
6713 CFLAGS="$CFLAGS -Wlogical-op"
6714
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6716 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6717 cacheid=xorg_cv_cc_flag__Wlogical_op
6718 if eval \${$cacheid+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 int i;
6724 int
6725 main ()
6726 {
6727
6728 ;
6729 return 0;
6730 }
6731 _ACEOF
6732 if ac_fn_c_try_link "$LINENO"; then :
6733 eval $cacheid=yes
6734 else
6735 eval $cacheid=no
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6739 fi
6740
6741
6742 CFLAGS="$xorg_testset_save_CFLAGS"
6743
6744 eval supported=\$$cacheid
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6746 $as_echo "$supported" >&6; }
6747 if test "$supported" = "yes" ; then
6748 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6749 found="yes"
6750 fi
6751 fi
6752
6753
6754
6755 # These are currently disabled because they are noisy. They will be enabled
6756 # in the future once the codebase is sufficiently modernized to silence
6757 # them. For now, I don't want them to drown out the other warnings.
6758 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6759 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6760 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6761
6762 # Turn some warnings into errors, so we don't accidently get successful builds
6763 # when there are problems that should be fixed.
6764
6765 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779 xorg_testset_save_CFLAGS="$CFLAGS"
6780
6781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6784 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6785 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 int i;
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793 xorg_cv_cc_flag_unknown_warning_option=yes
6794 else
6795 xorg_cv_cc_flag_unknown_warning_option=no
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 fi
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6800 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6802 CFLAGS="$xorg_testset_save_CFLAGS"
6803 fi
6804
6805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808 fi
6809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6811 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6812 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 int i;
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 xorg_cv_cc_flag_unused_command_line_argument=yes
6821 else
6822 xorg_cv_cc_flag_unused_command_line_argument=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6827 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6829 CFLAGS="$xorg_testset_save_CFLAGS"
6830 fi
6831
6832 found="no"
6833
6834 if test $found = "no" ; then
6835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6837 fi
6838
6839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6841 fi
6842
6843 CFLAGS="$CFLAGS -Werror=implicit"
6844
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6846 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6847 cacheid=xorg_cv_cc_flag__Werror_implicit
6848 if eval \${$cacheid+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 int i;
6854 int
6855 main ()
6856 {
6857
6858 ;
6859 return 0;
6860 }
6861 _ACEOF
6862 if ac_fn_c_try_link "$LINENO"; then :
6863 eval $cacheid=yes
6864 else
6865 eval $cacheid=no
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext \
6868 conftest$ac_exeext conftest.$ac_ext
6869 fi
6870
6871
6872 CFLAGS="$xorg_testset_save_CFLAGS"
6873
6874 eval supported=\$$cacheid
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6876 $as_echo "$supported" >&6; }
6877 if test "$supported" = "yes" ; then
6878 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6879 found="yes"
6880 fi
6881 fi
6882
6883 if test $found = "no" ; then
6884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886 fi
6887
6888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890 fi
6891
6892 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6893
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6895 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6896 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6897 if eval \${$cacheid+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 int i;
6903 int
6904 main ()
6905 {
6906
6907 ;
6908 return 0;
6909 }
6910 _ACEOF
6911 if ac_fn_c_try_link "$LINENO"; then :
6912 eval $cacheid=yes
6913 else
6914 eval $cacheid=no
6915 fi
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 fi
6919
6920
6921 CFLAGS="$xorg_testset_save_CFLAGS"
6922
6923 eval supported=\$$cacheid
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6925 $as_echo "$supported" >&6; }
6926 if test "$supported" = "yes" ; then
6927 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6928 found="yes"
6929 fi
6930 fi
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 xorg_testset_save_CFLAGS="$CFLAGS"
6947
6948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6951 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6952 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 int i;
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 xorg_cv_cc_flag_unknown_warning_option=yes
6961 else
6962 xorg_cv_cc_flag_unknown_warning_option=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6967 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6969 CFLAGS="$xorg_testset_save_CFLAGS"
6970 fi
6971
6972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6975 fi
6976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6978 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6979 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6984 int i;
6985 _ACEOF
6986 if ac_fn_c_try_compile "$LINENO"; then :
6987 xorg_cv_cc_flag_unused_command_line_argument=yes
6988 else
6989 xorg_cv_cc_flag_unused_command_line_argument=no
6990 fi
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6994 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6996 CFLAGS="$xorg_testset_save_CFLAGS"
6997 fi
6998
6999 found="no"
7000
7001 if test $found = "no" ; then
7002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004 fi
7005
7006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7008 fi
7009
7010 CFLAGS="$CFLAGS -Werror=nonnull"
7011
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7013 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7014 cacheid=xorg_cv_cc_flag__Werror_nonnull
7015 if eval \${$cacheid+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 int i;
7021 int
7022 main ()
7023 {
7024
7025 ;
7026 return 0;
7027 }
7028 _ACEOF
7029 if ac_fn_c_try_link "$LINENO"; then :
7030 eval $cacheid=yes
7031 else
7032 eval $cacheid=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 fi
7037
7038
7039 CFLAGS="$xorg_testset_save_CFLAGS"
7040
7041 eval supported=\$$cacheid
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7043 $as_echo "$supported" >&6; }
7044 if test "$supported" = "yes" ; then
7045 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7046 found="yes"
7047 fi
7048 fi
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064 xorg_testset_save_CFLAGS="$CFLAGS"
7065
7066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075 int i;
7076 _ACEOF
7077 if ac_fn_c_try_compile "$LINENO"; then :
7078 xorg_cv_cc_flag_unknown_warning_option=yes
7079 else
7080 xorg_cv_cc_flag_unknown_warning_option=no
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7087 CFLAGS="$xorg_testset_save_CFLAGS"
7088 fi
7089
7090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7093 fi
7094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 int i;
7103 _ACEOF
7104 if ac_fn_c_try_compile "$LINENO"; then :
7105 xorg_cv_cc_flag_unused_command_line_argument=yes
7106 else
7107 xorg_cv_cc_flag_unused_command_line_argument=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7114 CFLAGS="$xorg_testset_save_CFLAGS"
7115 fi
7116
7117 found="no"
7118
7119 if test $found = "no" ; then
7120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122 fi
7123
7124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7126 fi
7127
7128 CFLAGS="$CFLAGS -Werror=init-self"
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7131 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7132 cacheid=xorg_cv_cc_flag__Werror_init_self
7133 if eval \${$cacheid+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 int i;
7139 int
7140 main ()
7141 {
7142
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_link "$LINENO"; then :
7148 eval $cacheid=yes
7149 else
7150 eval $cacheid=no
7151 fi
7152 rm -f core conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
7154 fi
7155
7156
7157 CFLAGS="$xorg_testset_save_CFLAGS"
7158
7159 eval supported=\$$cacheid
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7161 $as_echo "$supported" >&6; }
7162 if test "$supported" = "yes" ; then
7163 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7164 found="yes"
7165 fi
7166 fi
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182 xorg_testset_save_CFLAGS="$CFLAGS"
7183
7184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 int i;
7194 _ACEOF
7195 if ac_fn_c_try_compile "$LINENO"; then :
7196 xorg_cv_cc_flag_unknown_warning_option=yes
7197 else
7198 xorg_cv_cc_flag_unknown_warning_option=no
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 fi
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7205 CFLAGS="$xorg_testset_save_CFLAGS"
7206 fi
7207
7208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7211 fi
7212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 int i;
7221 _ACEOF
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 xorg_cv_cc_flag_unused_command_line_argument=yes
7224 else
7225 xorg_cv_cc_flag_unused_command_line_argument=no
7226 fi
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7232 CFLAGS="$xorg_testset_save_CFLAGS"
7233 fi
7234
7235 found="no"
7236
7237 if test $found = "no" ; then
7238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240 fi
7241
7242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7244 fi
7245
7246 CFLAGS="$CFLAGS -Werror=main"
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7249 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7250 cacheid=xorg_cv_cc_flag__Werror_main
7251 if eval \${$cacheid+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 int i;
7257 int
7258 main ()
7259 {
7260
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 if ac_fn_c_try_link "$LINENO"; then :
7266 eval $cacheid=yes
7267 else
7268 eval $cacheid=no
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext \
7271 conftest$ac_exeext conftest.$ac_ext
7272 fi
7273
7274
7275 CFLAGS="$xorg_testset_save_CFLAGS"
7276
7277 eval supported=\$$cacheid
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7279 $as_echo "$supported" >&6; }
7280 if test "$supported" = "yes" ; then
7281 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7282 found="yes"
7283 fi
7284 fi
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300 xorg_testset_save_CFLAGS="$CFLAGS"
7301
7302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311 int i;
7312 _ACEOF
7313 if ac_fn_c_try_compile "$LINENO"; then :
7314 xorg_cv_cc_flag_unknown_warning_option=yes
7315 else
7316 xorg_cv_cc_flag_unknown_warning_option=no
7317 fi
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 fi
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7323 CFLAGS="$xorg_testset_save_CFLAGS"
7324 fi
7325
7326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7329 fi
7330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7338 int i;
7339 _ACEOF
7340 if ac_fn_c_try_compile "$LINENO"; then :
7341 xorg_cv_cc_flag_unused_command_line_argument=yes
7342 else
7343 xorg_cv_cc_flag_unused_command_line_argument=no
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 fi
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7350 CFLAGS="$xorg_testset_save_CFLAGS"
7351 fi
7352
7353 found="no"
7354
7355 if test $found = "no" ; then
7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358 fi
7359
7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362 fi
7363
7364 CFLAGS="$CFLAGS -Werror=missing-braces"
7365
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7367 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7368 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7369 if eval \${$cacheid+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 int i;
7375 int
7376 main ()
7377 {
7378
7379 ;
7380 return 0;
7381 }
7382 _ACEOF
7383 if ac_fn_c_try_link "$LINENO"; then :
7384 eval $cacheid=yes
7385 else
7386 eval $cacheid=no
7387 fi
7388 rm -f core conftest.err conftest.$ac_objext \
7389 conftest$ac_exeext conftest.$ac_ext
7390 fi
7391
7392
7393 CFLAGS="$xorg_testset_save_CFLAGS"
7394
7395 eval supported=\$$cacheid
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7397 $as_echo "$supported" >&6; }
7398 if test "$supported" = "yes" ; then
7399 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7400 found="yes"
7401 fi
7402 fi
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418 xorg_testset_save_CFLAGS="$CFLAGS"
7419
7420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7429 int i;
7430 _ACEOF
7431 if ac_fn_c_try_compile "$LINENO"; then :
7432 xorg_cv_cc_flag_unknown_warning_option=yes
7433 else
7434 xorg_cv_cc_flag_unknown_warning_option=no
7435 fi
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 fi
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7441 CFLAGS="$xorg_testset_save_CFLAGS"
7442 fi
7443
7444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7447 fi
7448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456 int i;
7457 _ACEOF
7458 if ac_fn_c_try_compile "$LINENO"; then :
7459 xorg_cv_cc_flag_unused_command_line_argument=yes
7460 else
7461 xorg_cv_cc_flag_unused_command_line_argument=no
7462 fi
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 fi
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7468 CFLAGS="$xorg_testset_save_CFLAGS"
7469 fi
7470
7471 found="no"
7472
7473 if test $found = "no" ; then
7474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476 fi
7477
7478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7480 fi
7481
7482 CFLAGS="$CFLAGS -Werror=sequence-point"
7483
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7485 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7486 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7487 if eval \${$cacheid+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7492 int i;
7493 int
7494 main ()
7495 {
7496
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"; then :
7502 eval $cacheid=yes
7503 else
7504 eval $cacheid=no
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7508 fi
7509
7510
7511 CFLAGS="$xorg_testset_save_CFLAGS"
7512
7513 eval supported=\$$cacheid
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7515 $as_echo "$supported" >&6; }
7516 if test "$supported" = "yes" ; then
7517 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7518 found="yes"
7519 fi
7520 fi
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 xorg_testset_save_CFLAGS="$CFLAGS"
7537
7538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 int i;
7548 _ACEOF
7549 if ac_fn_c_try_compile "$LINENO"; then :
7550 xorg_cv_cc_flag_unknown_warning_option=yes
7551 else
7552 xorg_cv_cc_flag_unknown_warning_option=no
7553 fi
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7559 CFLAGS="$xorg_testset_save_CFLAGS"
7560 fi
7561
7562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565 fi
7566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7574 int i;
7575 _ACEOF
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 xorg_cv_cc_flag_unused_command_line_argument=yes
7578 else
7579 xorg_cv_cc_flag_unused_command_line_argument=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 fi
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7586 CFLAGS="$xorg_testset_save_CFLAGS"
7587 fi
7588
7589 found="no"
7590
7591 if test $found = "no" ; then
7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594 fi
7595
7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7598 fi
7599
7600 CFLAGS="$CFLAGS -Werror=return-type"
7601
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7603 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7604 cacheid=xorg_cv_cc_flag__Werror_return_type
7605 if eval \${$cacheid+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 int i;
7611 int
7612 main ()
7613 {
7614
7615 ;
7616 return 0;
7617 }
7618 _ACEOF
7619 if ac_fn_c_try_link "$LINENO"; then :
7620 eval $cacheid=yes
7621 else
7622 eval $cacheid=no
7623 fi
7624 rm -f core conftest.err conftest.$ac_objext \
7625 conftest$ac_exeext conftest.$ac_ext
7626 fi
7627
7628
7629 CFLAGS="$xorg_testset_save_CFLAGS"
7630
7631 eval supported=\$$cacheid
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7633 $as_echo "$supported" >&6; }
7634 if test "$supported" = "yes" ; then
7635 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7636 found="yes"
7637 fi
7638 fi
7639
7640 if test $found = "no" ; then
7641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7643 fi
7644
7645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647 fi
7648
7649 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7652 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7653 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7654 if eval \${$cacheid+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7659 int i;
7660 int
7661 main ()
7662 {
7663
7664 ;
7665 return 0;
7666 }
7667 _ACEOF
7668 if ac_fn_c_try_link "$LINENO"; then :
7669 eval $cacheid=yes
7670 else
7671 eval $cacheid=no
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext \
7674 conftest$ac_exeext conftest.$ac_ext
7675 fi
7676
7677
7678 CFLAGS="$xorg_testset_save_CFLAGS"
7679
7680 eval supported=\$$cacheid
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7682 $as_echo "$supported" >&6; }
7683 if test "$supported" = "yes" ; then
7684 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7685 found="yes"
7686 fi
7687 fi
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703 xorg_testset_save_CFLAGS="$CFLAGS"
7704
7705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7708 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7709 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714 int i;
7715 _ACEOF
7716 if ac_fn_c_try_compile "$LINENO"; then :
7717 xorg_cv_cc_flag_unknown_warning_option=yes
7718 else
7719 xorg_cv_cc_flag_unknown_warning_option=no
7720 fi
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 fi
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7724 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7726 CFLAGS="$xorg_testset_save_CFLAGS"
7727 fi
7728
7729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7732 fi
7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7735 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7736 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741 int i;
7742 _ACEOF
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744 xorg_cv_cc_flag_unused_command_line_argument=yes
7745 else
7746 xorg_cv_cc_flag_unused_command_line_argument=no
7747 fi
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7751 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7753 CFLAGS="$xorg_testset_save_CFLAGS"
7754 fi
7755
7756 found="no"
7757
7758 if test $found = "no" ; then
7759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7761 fi
7762
7763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7765 fi
7766
7767 CFLAGS="$CFLAGS -Werror=trigraphs"
7768
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7770 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7771 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7772 if eval \${$cacheid+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 int i;
7778 int
7779 main ()
7780 {
7781
7782 ;
7783 return 0;
7784 }
7785 _ACEOF
7786 if ac_fn_c_try_link "$LINENO"; then :
7787 eval $cacheid=yes
7788 else
7789 eval $cacheid=no
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext \
7792 conftest$ac_exeext conftest.$ac_ext
7793 fi
7794
7795
7796 CFLAGS="$xorg_testset_save_CFLAGS"
7797
7798 eval supported=\$$cacheid
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7800 $as_echo "$supported" >&6; }
7801 if test "$supported" = "yes" ; then
7802 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7803 found="yes"
7804 fi
7805 fi
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821 xorg_testset_save_CFLAGS="$CFLAGS"
7822
7823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7826 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7827 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7832 int i;
7833 _ACEOF
7834 if ac_fn_c_try_compile "$LINENO"; then :
7835 xorg_cv_cc_flag_unknown_warning_option=yes
7836 else
7837 xorg_cv_cc_flag_unknown_warning_option=no
7838 fi
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 fi
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7842 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7844 CFLAGS="$xorg_testset_save_CFLAGS"
7845 fi
7846
7847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850 fi
7851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7853 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7854 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7859 int i;
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862 xorg_cv_cc_flag_unused_command_line_argument=yes
7863 else
7864 xorg_cv_cc_flag_unused_command_line_argument=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7869 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7871 CFLAGS="$xorg_testset_save_CFLAGS"
7872 fi
7873
7874 found="no"
7875
7876 if test $found = "no" ; then
7877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879 fi
7880
7881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883 fi
7884
7885 CFLAGS="$CFLAGS -Werror=array-bounds"
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7888 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7889 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7890 if eval \${$cacheid+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 int i;
7896 int
7897 main ()
7898 {
7899
7900 ;
7901 return 0;
7902 }
7903 _ACEOF
7904 if ac_fn_c_try_link "$LINENO"; then :
7905 eval $cacheid=yes
7906 else
7907 eval $cacheid=no
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 fi
7912
7913
7914 CFLAGS="$xorg_testset_save_CFLAGS"
7915
7916 eval supported=\$$cacheid
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7918 $as_echo "$supported" >&6; }
7919 if test "$supported" = "yes" ; then
7920 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7921 found="yes"
7922 fi
7923 fi
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939 xorg_testset_save_CFLAGS="$CFLAGS"
7940
7941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7944 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7945 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 int i;
7951 _ACEOF
7952 if ac_fn_c_try_compile "$LINENO"; then :
7953 xorg_cv_cc_flag_unknown_warning_option=yes
7954 else
7955 xorg_cv_cc_flag_unknown_warning_option=no
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 fi
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7960 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7962 CFLAGS="$xorg_testset_save_CFLAGS"
7963 fi
7964
7965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7968 fi
7969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7971 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7972 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 int i;
7978 _ACEOF
7979 if ac_fn_c_try_compile "$LINENO"; then :
7980 xorg_cv_cc_flag_unused_command_line_argument=yes
7981 else
7982 xorg_cv_cc_flag_unused_command_line_argument=no
7983 fi
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7987 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7989 CFLAGS="$xorg_testset_save_CFLAGS"
7990 fi
7991
7992 found="no"
7993
7994 if test $found = "no" ; then
7995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997 fi
7998
7999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8001 fi
8002
8003 CFLAGS="$CFLAGS -Werror=write-strings"
8004
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8006 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8007 cacheid=xorg_cv_cc_flag__Werror_write_strings
8008 if eval \${$cacheid+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 int i;
8014 int
8015 main ()
8016 {
8017
8018 ;
8019 return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_link "$LINENO"; then :
8023 eval $cacheid=yes
8024 else
8025 eval $cacheid=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029 fi
8030
8031
8032 CFLAGS="$xorg_testset_save_CFLAGS"
8033
8034 eval supported=\$$cacheid
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8036 $as_echo "$supported" >&6; }
8037 if test "$supported" = "yes" ; then
8038 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8039 found="yes"
8040 fi
8041 fi
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057 xorg_testset_save_CFLAGS="$CFLAGS"
8058
8059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 int i;
8069 _ACEOF
8070 if ac_fn_c_try_compile "$LINENO"; then :
8071 xorg_cv_cc_flag_unknown_warning_option=yes
8072 else
8073 xorg_cv_cc_flag_unknown_warning_option=no
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8080 CFLAGS="$xorg_testset_save_CFLAGS"
8081 fi
8082
8083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8086 fi
8087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 int i;
8096 _ACEOF
8097 if ac_fn_c_try_compile "$LINENO"; then :
8098 xorg_cv_cc_flag_unused_command_line_argument=yes
8099 else
8100 xorg_cv_cc_flag_unused_command_line_argument=no
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8107 CFLAGS="$xorg_testset_save_CFLAGS"
8108 fi
8109
8110 found="no"
8111
8112 if test $found = "no" ; then
8113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8115 fi
8116
8117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8119 fi
8120
8121 CFLAGS="$CFLAGS -Werror=address"
8122
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8124 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8125 cacheid=xorg_cv_cc_flag__Werror_address
8126 if eval \${$cacheid+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 int i;
8132 int
8133 main ()
8134 {
8135
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_c_try_link "$LINENO"; then :
8141 eval $cacheid=yes
8142 else
8143 eval $cacheid=no
8144 fi
8145 rm -f core conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8147 fi
8148
8149
8150 CFLAGS="$xorg_testset_save_CFLAGS"
8151
8152 eval supported=\$$cacheid
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8154 $as_echo "$supported" >&6; }
8155 if test "$supported" = "yes" ; then
8156 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8157 found="yes"
8158 fi
8159 fi
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175 xorg_testset_save_CFLAGS="$CFLAGS"
8176
8177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 int i;
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189 xorg_cv_cc_flag_unknown_warning_option=yes
8190 else
8191 xorg_cv_cc_flag_unknown_warning_option=no
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 fi
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8198 CFLAGS="$xorg_testset_save_CFLAGS"
8199 fi
8200
8201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204 fi
8205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213 int i;
8214 _ACEOF
8215 if ac_fn_c_try_compile "$LINENO"; then :
8216 xorg_cv_cc_flag_unused_command_line_argument=yes
8217 else
8218 xorg_cv_cc_flag_unused_command_line_argument=no
8219 fi
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8225 CFLAGS="$xorg_testset_save_CFLAGS"
8226 fi
8227
8228 found="no"
8229
8230 if test $found = "no" ; then
8231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233 fi
8234
8235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8237 fi
8238
8239 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8240
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8242 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8243 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8244 if eval \${$cacheid+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 int i;
8250 int
8251 main ()
8252 {
8253
8254 ;
8255 return 0;
8256 }
8257 _ACEOF
8258 if ac_fn_c_try_link "$LINENO"; then :
8259 eval $cacheid=yes
8260 else
8261 eval $cacheid=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 fi
8266
8267
8268 CFLAGS="$xorg_testset_save_CFLAGS"
8269
8270 eval supported=\$$cacheid
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8272 $as_echo "$supported" >&6; }
8273 if test "$supported" = "yes" ; then
8274 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8275 found="yes"
8276 fi
8277 fi
8278
8279 if test $found = "no" ; then
8280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8282 fi
8283
8284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8286 fi
8287
8288 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8291 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8292 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8293 if eval \${$cacheid+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 int i;
8299 int
8300 main ()
8301 {
8302
8303 ;
8304 return 0;
8305 }
8306 _ACEOF
8307 if ac_fn_c_try_link "$LINENO"; then :
8308 eval $cacheid=yes
8309 else
8310 eval $cacheid=no
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314 fi
8315
8316
8317 CFLAGS="$xorg_testset_save_CFLAGS"
8318
8319 eval supported=\$$cacheid
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8321 $as_echo "$supported" >&6; }
8322 if test "$supported" = "yes" ; then
8323 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8324 found="yes"
8325 fi
8326 fi
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342 xorg_testset_save_CFLAGS="$CFLAGS"
8343
8344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8347 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8348 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 int i;
8354 _ACEOF
8355 if ac_fn_c_try_compile "$LINENO"; then :
8356 xorg_cv_cc_flag_unknown_warning_option=yes
8357 else
8358 xorg_cv_cc_flag_unknown_warning_option=no
8359 fi
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 fi
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8363 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8365 CFLAGS="$xorg_testset_save_CFLAGS"
8366 fi
8367
8368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8371 fi
8372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8374 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8375 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380 int i;
8381 _ACEOF
8382 if ac_fn_c_try_compile "$LINENO"; then :
8383 xorg_cv_cc_flag_unused_command_line_argument=yes
8384 else
8385 xorg_cv_cc_flag_unused_command_line_argument=no
8386 fi
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 fi
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8390 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8392 CFLAGS="$xorg_testset_save_CFLAGS"
8393 fi
8394
8395 found="no"
8396
8397 if test $found = "no" ; then
8398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400 fi
8401
8402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8404 fi
8405
8406 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8407
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8409 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8410 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8411 if eval \${$cacheid+:} false; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 int i;
8417 int
8418 main ()
8419 {
8420
8421 ;
8422 return 0;
8423 }
8424 _ACEOF
8425 if ac_fn_c_try_link "$LINENO"; then :
8426 eval $cacheid=yes
8427 else
8428 eval $cacheid=no
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 fi
8433
8434
8435 CFLAGS="$xorg_testset_save_CFLAGS"
8436
8437 eval supported=\$$cacheid
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8439 $as_echo "$supported" >&6; }
8440 if test "$supported" = "yes" ; then
8441 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8442 found="yes"
8443 fi
8444 fi
8445
8446 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8447 else
8448 { $as_echo "$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
8449 $as_echo "$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;}
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463 xorg_testset_save_CFLAGS="$CFLAGS"
8464
8465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8468 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8469 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 int i;
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477 xorg_cv_cc_flag_unknown_warning_option=yes
8478 else
8479 xorg_cv_cc_flag_unknown_warning_option=no
8480 fi
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 fi
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8484 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8486 CFLAGS="$xorg_testset_save_CFLAGS"
8487 fi
8488
8489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492 fi
8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8495 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8496 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 int i;
8502 _ACEOF
8503 if ac_fn_c_try_compile "$LINENO"; then :
8504 xorg_cv_cc_flag_unused_command_line_argument=yes
8505 else
8506 xorg_cv_cc_flag_unused_command_line_argument=no
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8511 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8513 CFLAGS="$xorg_testset_save_CFLAGS"
8514 fi
8515
8516 found="no"
8517
8518 if test $found = "no" ; then
8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521 fi
8522
8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525 fi
8526
8527 CFLAGS="$CFLAGS -Wimplicit"
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8530 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8531 cacheid=xorg_cv_cc_flag__Wimplicit
8532 if eval \${$cacheid+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 int i;
8538 int
8539 main ()
8540 {
8541
8542 ;
8543 return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_link "$LINENO"; then :
8547 eval $cacheid=yes
8548 else
8549 eval $cacheid=no
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8553 fi
8554
8555
8556 CFLAGS="$xorg_testset_save_CFLAGS"
8557
8558 eval supported=\$$cacheid
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8560 $as_echo "$supported" >&6; }
8561 if test "$supported" = "yes" ; then
8562 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8563 found="yes"
8564 fi
8565 fi
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581 xorg_testset_save_CFLAGS="$CFLAGS"
8582
8583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 int i;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 xorg_cv_cc_flag_unknown_warning_option=yes
8596 else
8597 xorg_cv_cc_flag_unknown_warning_option=no
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8604 CFLAGS="$xorg_testset_save_CFLAGS"
8605 fi
8606
8607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610 fi
8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 int i;
8620 _ACEOF
8621 if ac_fn_c_try_compile "$LINENO"; then :
8622 xorg_cv_cc_flag_unused_command_line_argument=yes
8623 else
8624 xorg_cv_cc_flag_unused_command_line_argument=no
8625 fi
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 fi
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8631 CFLAGS="$xorg_testset_save_CFLAGS"
8632 fi
8633
8634 found="no"
8635
8636 if test $found = "no" ; then
8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639 fi
8640
8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643 fi
8644
8645 CFLAGS="$CFLAGS -Wnonnull"
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8648 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8649 cacheid=xorg_cv_cc_flag__Wnonnull
8650 if eval \${$cacheid+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 int i;
8656 int
8657 main ()
8658 {
8659
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_link "$LINENO"; then :
8665 eval $cacheid=yes
8666 else
8667 eval $cacheid=no
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8671 fi
8672
8673
8674 CFLAGS="$xorg_testset_save_CFLAGS"
8675
8676 eval supported=\$$cacheid
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8678 $as_echo "$supported" >&6; }
8679 if test "$supported" = "yes" ; then
8680 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8681 found="yes"
8682 fi
8683 fi
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 xorg_testset_save_CFLAGS="$CFLAGS"
8700
8701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 int i;
8711 _ACEOF
8712 if ac_fn_c_try_compile "$LINENO"; then :
8713 xorg_cv_cc_flag_unknown_warning_option=yes
8714 else
8715 xorg_cv_cc_flag_unknown_warning_option=no
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 fi
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8722 CFLAGS="$xorg_testset_save_CFLAGS"
8723 fi
8724
8725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728 fi
8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8733 $as_echo_n "(cached) " >&6
8734 else
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"; then :
8740 xorg_cv_cc_flag_unused_command_line_argument=yes
8741 else
8742 xorg_cv_cc_flag_unused_command_line_argument=no
8743 fi
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8749 CFLAGS="$xorg_testset_save_CFLAGS"
8750 fi
8751
8752 found="no"
8753
8754 if test $found = "no" ; then
8755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757 fi
8758
8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8761 fi
8762
8763 CFLAGS="$CFLAGS -Winit-self"
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8766 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8767 cacheid=xorg_cv_cc_flag__Winit_self
8768 if eval \${$cacheid+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 int i;
8774 int
8775 main ()
8776 {
8777
8778 ;
8779 return 0;
8780 }
8781 _ACEOF
8782 if ac_fn_c_try_link "$LINENO"; then :
8783 eval $cacheid=yes
8784 else
8785 eval $cacheid=no
8786 fi
8787 rm -f core conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789 fi
8790
8791
8792 CFLAGS="$xorg_testset_save_CFLAGS"
8793
8794 eval supported=\$$cacheid
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8796 $as_echo "$supported" >&6; }
8797 if test "$supported" = "yes" ; then
8798 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8799 found="yes"
8800 fi
8801 fi
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817 xorg_testset_save_CFLAGS="$CFLAGS"
8818
8819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8828 int i;
8829 _ACEOF
8830 if ac_fn_c_try_compile "$LINENO"; then :
8831 xorg_cv_cc_flag_unknown_warning_option=yes
8832 else
8833 xorg_cv_cc_flag_unknown_warning_option=no
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8840 CFLAGS="$xorg_testset_save_CFLAGS"
8841 fi
8842
8843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846 fi
8847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8855 int i;
8856 _ACEOF
8857 if ac_fn_c_try_compile "$LINENO"; then :
8858 xorg_cv_cc_flag_unused_command_line_argument=yes
8859 else
8860 xorg_cv_cc_flag_unused_command_line_argument=no
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 fi
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8867 CFLAGS="$xorg_testset_save_CFLAGS"
8868 fi
8869
8870 found="no"
8871
8872 if test $found = "no" ; then
8873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875 fi
8876
8877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8879 fi
8880
8881 CFLAGS="$CFLAGS -Wmain"
8882
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8884 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8885 cacheid=xorg_cv_cc_flag__Wmain
8886 if eval \${$cacheid+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 int i;
8892 int
8893 main ()
8894 {
8895
8896 ;
8897 return 0;
8898 }
8899 _ACEOF
8900 if ac_fn_c_try_link "$LINENO"; then :
8901 eval $cacheid=yes
8902 else
8903 eval $cacheid=no
8904 fi
8905 rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 fi
8908
8909
8910 CFLAGS="$xorg_testset_save_CFLAGS"
8911
8912 eval supported=\$$cacheid
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8914 $as_echo "$supported" >&6; }
8915 if test "$supported" = "yes" ; then
8916 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8917 found="yes"
8918 fi
8919 fi
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935 xorg_testset_save_CFLAGS="$CFLAGS"
8936
8937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 int i;
8947 _ACEOF
8948 if ac_fn_c_try_compile "$LINENO"; then :
8949 xorg_cv_cc_flag_unknown_warning_option=yes
8950 else
8951 xorg_cv_cc_flag_unknown_warning_option=no
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8958 CFLAGS="$xorg_testset_save_CFLAGS"
8959 fi
8960
8961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8964 fi
8965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973 int i;
8974 _ACEOF
8975 if ac_fn_c_try_compile "$LINENO"; then :
8976 xorg_cv_cc_flag_unused_command_line_argument=yes
8977 else
8978 xorg_cv_cc_flag_unused_command_line_argument=no
8979 fi
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8985 CFLAGS="$xorg_testset_save_CFLAGS"
8986 fi
8987
8988 found="no"
8989
8990 if test $found = "no" ; then
8991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993 fi
8994
8995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8997 fi
8998
8999 CFLAGS="$CFLAGS -Wmissing-braces"
9000
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9002 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9003 cacheid=xorg_cv_cc_flag__Wmissing_braces
9004 if eval \${$cacheid+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 int i;
9010 int
9011 main ()
9012 {
9013
9014 ;
9015 return 0;
9016 }
9017 _ACEOF
9018 if ac_fn_c_try_link "$LINENO"; then :
9019 eval $cacheid=yes
9020 else
9021 eval $cacheid=no
9022 fi
9023 rm -f core conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
9025 fi
9026
9027
9028 CFLAGS="$xorg_testset_save_CFLAGS"
9029
9030 eval supported=\$$cacheid
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9032 $as_echo "$supported" >&6; }
9033 if test "$supported" = "yes" ; then
9034 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9035 found="yes"
9036 fi
9037 fi
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053 xorg_testset_save_CFLAGS="$CFLAGS"
9054
9055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 int i;
9065 _ACEOF
9066 if ac_fn_c_try_compile "$LINENO"; then :
9067 xorg_cv_cc_flag_unknown_warning_option=yes
9068 else
9069 xorg_cv_cc_flag_unknown_warning_option=no
9070 fi
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9076 CFLAGS="$xorg_testset_save_CFLAGS"
9077 fi
9078
9079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9082 fi
9083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 int i;
9092 _ACEOF
9093 if ac_fn_c_try_compile "$LINENO"; then :
9094 xorg_cv_cc_flag_unused_command_line_argument=yes
9095 else
9096 xorg_cv_cc_flag_unused_command_line_argument=no
9097 fi
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9103 CFLAGS="$xorg_testset_save_CFLAGS"
9104 fi
9105
9106 found="no"
9107
9108 if test $found = "no" ; then
9109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9111 fi
9112
9113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9115 fi
9116
9117 CFLAGS="$CFLAGS -Wsequence-point"
9118
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9120 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9121 cacheid=xorg_cv_cc_flag__Wsequence_point
9122 if eval \${$cacheid+:} false; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 int i;
9128 int
9129 main ()
9130 {
9131
9132 ;
9133 return 0;
9134 }
9135 _ACEOF
9136 if ac_fn_c_try_link "$LINENO"; then :
9137 eval $cacheid=yes
9138 else
9139 eval $cacheid=no
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143 fi
9144
9145
9146 CFLAGS="$xorg_testset_save_CFLAGS"
9147
9148 eval supported=\$$cacheid
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9150 $as_echo "$supported" >&6; }
9151 if test "$supported" = "yes" ; then
9152 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9153 found="yes"
9154 fi
9155 fi
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171 xorg_testset_save_CFLAGS="$CFLAGS"
9172
9173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182 int i;
9183 _ACEOF
9184 if ac_fn_c_try_compile "$LINENO"; then :
9185 xorg_cv_cc_flag_unknown_warning_option=yes
9186 else
9187 xorg_cv_cc_flag_unknown_warning_option=no
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9194 CFLAGS="$xorg_testset_save_CFLAGS"
9195 fi
9196
9197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9200 fi
9201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 int i;
9210 _ACEOF
9211 if ac_fn_c_try_compile "$LINENO"; then :
9212 xorg_cv_cc_flag_unused_command_line_argument=yes
9213 else
9214 xorg_cv_cc_flag_unused_command_line_argument=no
9215 fi
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9221 CFLAGS="$xorg_testset_save_CFLAGS"
9222 fi
9223
9224 found="no"
9225
9226 if test $found = "no" ; then
9227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229 fi
9230
9231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9233 fi
9234
9235 CFLAGS="$CFLAGS -Wreturn-type"
9236
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9238 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9239 cacheid=xorg_cv_cc_flag__Wreturn_type
9240 if eval \${$cacheid+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 int i;
9246 int
9247 main ()
9248 {
9249
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 if ac_fn_c_try_link "$LINENO"; then :
9255 eval $cacheid=yes
9256 else
9257 eval $cacheid=no
9258 fi
9259 rm -f core conftest.err conftest.$ac_objext \
9260 conftest$ac_exeext conftest.$ac_ext
9261 fi
9262
9263
9264 CFLAGS="$xorg_testset_save_CFLAGS"
9265
9266 eval supported=\$$cacheid
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9268 $as_echo "$supported" >&6; }
9269 if test "$supported" = "yes" ; then
9270 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9271 found="yes"
9272 fi
9273 fi
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289 xorg_testset_save_CFLAGS="$CFLAGS"
9290
9291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9294 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9295 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 int i;
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303 xorg_cv_cc_flag_unknown_warning_option=yes
9304 else
9305 xorg_cv_cc_flag_unknown_warning_option=no
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 fi
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9310 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9312 CFLAGS="$xorg_testset_save_CFLAGS"
9313 fi
9314
9315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318 fi
9319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9321 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9322 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 int i;
9328 _ACEOF
9329 if ac_fn_c_try_compile "$LINENO"; then :
9330 xorg_cv_cc_flag_unused_command_line_argument=yes
9331 else
9332 xorg_cv_cc_flag_unused_command_line_argument=no
9333 fi
9334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9335 fi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9337 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9339 CFLAGS="$xorg_testset_save_CFLAGS"
9340 fi
9341
9342 found="no"
9343
9344 if test $found = "no" ; then
9345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347 fi
9348
9349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9351 fi
9352
9353 CFLAGS="$CFLAGS -Wtrigraphs"
9354
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9356 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9357 cacheid=xorg_cv_cc_flag__Wtrigraphs
9358 if eval \${$cacheid+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int i;
9364 int
9365 main ()
9366 {
9367
9368 ;
9369 return 0;
9370 }
9371 _ACEOF
9372 if ac_fn_c_try_link "$LINENO"; then :
9373 eval $cacheid=yes
9374 else
9375 eval $cacheid=no
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 fi
9380
9381
9382 CFLAGS="$xorg_testset_save_CFLAGS"
9383
9384 eval supported=\$$cacheid
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9386 $as_echo "$supported" >&6; }
9387 if test "$supported" = "yes" ; then
9388 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9389 found="yes"
9390 fi
9391 fi
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407 xorg_testset_save_CFLAGS="$CFLAGS"
9408
9409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9412 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9413 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418 int i;
9419 _ACEOF
9420 if ac_fn_c_try_compile "$LINENO"; then :
9421 xorg_cv_cc_flag_unknown_warning_option=yes
9422 else
9423 xorg_cv_cc_flag_unknown_warning_option=no
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 fi
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9428 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9430 CFLAGS="$xorg_testset_save_CFLAGS"
9431 fi
9432
9433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9436 fi
9437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9439 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9440 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445 int i;
9446 _ACEOF
9447 if ac_fn_c_try_compile "$LINENO"; then :
9448 xorg_cv_cc_flag_unused_command_line_argument=yes
9449 else
9450 xorg_cv_cc_flag_unused_command_line_argument=no
9451 fi
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9455 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9457 CFLAGS="$xorg_testset_save_CFLAGS"
9458 fi
9459
9460 found="no"
9461
9462 if test $found = "no" ; then
9463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465 fi
9466
9467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9469 fi
9470
9471 CFLAGS="$CFLAGS -Warray-bounds"
9472
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9474 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9475 cacheid=xorg_cv_cc_flag__Warray_bounds
9476 if eval \${$cacheid+:} false; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 int i;
9482 int
9483 main ()
9484 {
9485
9486 ;
9487 return 0;
9488 }
9489 _ACEOF
9490 if ac_fn_c_try_link "$LINENO"; then :
9491 eval $cacheid=yes
9492 else
9493 eval $cacheid=no
9494 fi
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 fi
9498
9499
9500 CFLAGS="$xorg_testset_save_CFLAGS"
9501
9502 eval supported=\$$cacheid
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9504 $as_echo "$supported" >&6; }
9505 if test "$supported" = "yes" ; then
9506 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9507 found="yes"
9508 fi
9509 fi
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525 xorg_testset_save_CFLAGS="$CFLAGS"
9526
9527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9530 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9531 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 int i;
9537 _ACEOF
9538 if ac_fn_c_try_compile "$LINENO"; then :
9539 xorg_cv_cc_flag_unknown_warning_option=yes
9540 else
9541 xorg_cv_cc_flag_unknown_warning_option=no
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9546 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9548 CFLAGS="$xorg_testset_save_CFLAGS"
9549 fi
9550
9551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554 fi
9555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9557 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9558 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563 int i;
9564 _ACEOF
9565 if ac_fn_c_try_compile "$LINENO"; then :
9566 xorg_cv_cc_flag_unused_command_line_argument=yes
9567 else
9568 xorg_cv_cc_flag_unused_command_line_argument=no
9569 fi
9570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571 fi
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9573 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9575 CFLAGS="$xorg_testset_save_CFLAGS"
9576 fi
9577
9578 found="no"
9579
9580 if test $found = "no" ; then
9581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583 fi
9584
9585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587 fi
9588
9589 CFLAGS="$CFLAGS -Wwrite-strings"
9590
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9592 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9593 cacheid=xorg_cv_cc_flag__Wwrite_strings
9594 if eval \${$cacheid+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 int i;
9600 int
9601 main ()
9602 {
9603
9604 ;
9605 return 0;
9606 }
9607 _ACEOF
9608 if ac_fn_c_try_link "$LINENO"; then :
9609 eval $cacheid=yes
9610 else
9611 eval $cacheid=no
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 fi
9616
9617
9618 CFLAGS="$xorg_testset_save_CFLAGS"
9619
9620 eval supported=\$$cacheid
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9622 $as_echo "$supported" >&6; }
9623 if test "$supported" = "yes" ; then
9624 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9625 found="yes"
9626 fi
9627 fi
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643 xorg_testset_save_CFLAGS="$CFLAGS"
9644
9645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9648 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9649 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 int i;
9655 _ACEOF
9656 if ac_fn_c_try_compile "$LINENO"; then :
9657 xorg_cv_cc_flag_unknown_warning_option=yes
9658 else
9659 xorg_cv_cc_flag_unknown_warning_option=no
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 fi
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9664 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9666 CFLAGS="$xorg_testset_save_CFLAGS"
9667 fi
9668
9669 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672 fi
9673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9675 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9676 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681 int i;
9682 _ACEOF
9683 if ac_fn_c_try_compile "$LINENO"; then :
9684 xorg_cv_cc_flag_unused_command_line_argument=yes
9685 else
9686 xorg_cv_cc_flag_unused_command_line_argument=no
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 fi
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9691 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9693 CFLAGS="$xorg_testset_save_CFLAGS"
9694 fi
9695
9696 found="no"
9697
9698 if test $found = "no" ; then
9699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701 fi
9702
9703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9705 fi
9706
9707 CFLAGS="$CFLAGS -Waddress"
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9710 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9711 cacheid=xorg_cv_cc_flag__Waddress
9712 if eval \${$cacheid+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 int i;
9718 int
9719 main ()
9720 {
9721
9722 ;
9723 return 0;
9724 }
9725 _ACEOF
9726 if ac_fn_c_try_link "$LINENO"; then :
9727 eval $cacheid=yes
9728 else
9729 eval $cacheid=no
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9733 fi
9734
9735
9736 CFLAGS="$xorg_testset_save_CFLAGS"
9737
9738 eval supported=\$$cacheid
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9740 $as_echo "$supported" >&6; }
9741 if test "$supported" = "yes" ; then
9742 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9743 found="yes"
9744 fi
9745 fi
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761 xorg_testset_save_CFLAGS="$CFLAGS"
9762
9763 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9766 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9767 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9772 int i;
9773 _ACEOF
9774 if ac_fn_c_try_compile "$LINENO"; then :
9775 xorg_cv_cc_flag_unknown_warning_option=yes
9776 else
9777 xorg_cv_cc_flag_unknown_warning_option=no
9778 fi
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 fi
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9782 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9784 CFLAGS="$xorg_testset_save_CFLAGS"
9785 fi
9786
9787 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790 fi
9791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9793 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9794 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 int i;
9800 _ACEOF
9801 if ac_fn_c_try_compile "$LINENO"; then :
9802 xorg_cv_cc_flag_unused_command_line_argument=yes
9803 else
9804 xorg_cv_cc_flag_unused_command_line_argument=no
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 fi
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9809 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9811 CFLAGS="$xorg_testset_save_CFLAGS"
9812 fi
9813
9814 found="no"
9815
9816 if test $found = "no" ; then
9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819 fi
9820
9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9823 fi
9824
9825 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9826
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9828 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9829 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9830 if eval \${$cacheid+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 int i;
9836 int
9837 main ()
9838 {
9839
9840 ;
9841 return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"; then :
9845 eval $cacheid=yes
9846 else
9847 eval $cacheid=no
9848 fi
9849 rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 fi
9852
9853
9854 CFLAGS="$xorg_testset_save_CFLAGS"
9855
9856 eval supported=\$$cacheid
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9858 $as_echo "$supported" >&6; }
9859 if test "$supported" = "yes" ; then
9860 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9861 found="yes"
9862 fi
9863 fi
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879 xorg_testset_save_CFLAGS="$CFLAGS"
9880
9881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9884 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9885 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 int i;
9891 _ACEOF
9892 if ac_fn_c_try_compile "$LINENO"; then :
9893 xorg_cv_cc_flag_unknown_warning_option=yes
9894 else
9895 xorg_cv_cc_flag_unknown_warning_option=no
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898 fi
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9900 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9902 CFLAGS="$xorg_testset_save_CFLAGS"
9903 fi
9904
9905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908 fi
9909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9911 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9912 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 int i;
9918 _ACEOF
9919 if ac_fn_c_try_compile "$LINENO"; then :
9920 xorg_cv_cc_flag_unused_command_line_argument=yes
9921 else
9922 xorg_cv_cc_flag_unused_command_line_argument=no
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9927 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9929 CFLAGS="$xorg_testset_save_CFLAGS"
9930 fi
9931
9932 found="no"
9933
9934 if test $found = "no" ; then
9935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937 fi
9938
9939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9941 fi
9942
9943 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9944
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9946 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9947 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9948 if eval \${$cacheid+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953 int i;
9954 int
9955 main ()
9956 {
9957
9958 ;
9959 return 0;
9960 }
9961 _ACEOF
9962 if ac_fn_c_try_link "$LINENO"; then :
9963 eval $cacheid=yes
9964 else
9965 eval $cacheid=no
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969 fi
9970
9971
9972 CFLAGS="$xorg_testset_save_CFLAGS"
9973
9974 eval supported=\$$cacheid
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9976 $as_echo "$supported" >&6; }
9977 if test "$supported" = "yes" ; then
9978 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9979 found="yes"
9980 fi
9981 fi
9982
9983
9984 fi
9985
9986
9987
9988
9989
9990
9991
9992 CWARNFLAGS="$BASE_CFLAGS"
9993 if test "x$GCC" = xyes ; then
9994 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9995 fi
9996
9997
9998
9999
10000
10001
10002
10003
10004 # Check whether --enable-strict-compilation was given.
10005 if test "${enable_strict_compilation+set}" = set; then :
10006 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10007 else
10008 STRICT_COMPILE=no
10009 fi
10010
10011
10012
10013
10014
10015
10016 STRICT_CFLAGS=""
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030 xorg_testset_save_CFLAGS="$CFLAGS"
10031
10032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10035 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10036 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 int i;
10042 _ACEOF
10043 if ac_fn_c_try_compile "$LINENO"; then :
10044 xorg_cv_cc_flag_unknown_warning_option=yes
10045 else
10046 xorg_cv_cc_flag_unknown_warning_option=no
10047 fi
10048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10051 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10053 CFLAGS="$xorg_testset_save_CFLAGS"
10054 fi
10055
10056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10059 fi
10060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10062 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10063 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 int i;
10069 _ACEOF
10070 if ac_fn_c_try_compile "$LINENO"; then :
10071 xorg_cv_cc_flag_unused_command_line_argument=yes
10072 else
10073 xorg_cv_cc_flag_unused_command_line_argument=no
10074 fi
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 fi
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10078 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10080 CFLAGS="$xorg_testset_save_CFLAGS"
10081 fi
10082
10083 found="no"
10084
10085 if test $found = "no" ; then
10086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10088 fi
10089
10090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10092 fi
10093
10094 CFLAGS="$CFLAGS -pedantic"
10095
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10097 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10098 cacheid=xorg_cv_cc_flag__pedantic
10099 if eval \${$cacheid+:} false; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 int i;
10105 int
10106 main ()
10107 {
10108
10109 ;
10110 return 0;
10111 }
10112 _ACEOF
10113 if ac_fn_c_try_link "$LINENO"; then :
10114 eval $cacheid=yes
10115 else
10116 eval $cacheid=no
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 fi
10121
10122
10123 CFLAGS="$xorg_testset_save_CFLAGS"
10124
10125 eval supported=\$$cacheid
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10127 $as_echo "$supported" >&6; }
10128 if test "$supported" = "yes" ; then
10129 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10130 found="yes"
10131 fi
10132 fi
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148 xorg_testset_save_CFLAGS="$CFLAGS"
10149
10150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 int i;
10160 _ACEOF
10161 if ac_fn_c_try_compile "$LINENO"; then :
10162 xorg_cv_cc_flag_unknown_warning_option=yes
10163 else
10164 xorg_cv_cc_flag_unknown_warning_option=no
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10171 CFLAGS="$xorg_testset_save_CFLAGS"
10172 fi
10173
10174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10177 fi
10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186 int i;
10187 _ACEOF
10188 if ac_fn_c_try_compile "$LINENO"; then :
10189 xorg_cv_cc_flag_unused_command_line_argument=yes
10190 else
10191 xorg_cv_cc_flag_unused_command_line_argument=no
10192 fi
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10198 CFLAGS="$xorg_testset_save_CFLAGS"
10199 fi
10200
10201 found="no"
10202
10203 if test $found = "no" ; then
10204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206 fi
10207
10208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10210 fi
10211
10212 CFLAGS="$CFLAGS -Werror"
10213
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10215 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10216 cacheid=xorg_cv_cc_flag__Werror
10217 if eval \${$cacheid+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 int i;
10223 int
10224 main ()
10225 {
10226
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 if ac_fn_c_try_link "$LINENO"; then :
10232 eval $cacheid=yes
10233 else
10234 eval $cacheid=no
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 fi
10239
10240
10241 CFLAGS="$xorg_testset_save_CFLAGS"
10242
10243 eval supported=\$$cacheid
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10245 $as_echo "$supported" >&6; }
10246 if test "$supported" = "yes" ; then
10247 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10248 found="yes"
10249 fi
10250 fi
10251
10252 if test $found = "no" ; then
10253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255 fi
10256
10257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259 fi
10260
10261 CFLAGS="$CFLAGS -errwarn"
10262
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10264 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10265 cacheid=xorg_cv_cc_flag__errwarn
10266 if eval \${$cacheid+:} false; then :
10267 $as_echo_n "(cached) " >&6
10268 else
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 int i;
10272 int
10273 main ()
10274 {
10275
10276 ;
10277 return 0;
10278 }
10279 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"; then :
10281 eval $cacheid=yes
10282 else
10283 eval $cacheid=no
10284 fi
10285 rm -f core conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10287 fi
10288
10289
10290 CFLAGS="$xorg_testset_save_CFLAGS"
10291
10292 eval supported=\$$cacheid
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10294 $as_echo "$supported" >&6; }
10295 if test "$supported" = "yes" ; then
10296 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10297 found="yes"
10298 fi
10299 fi
10300
10301
10302
10303 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10304 # activate it with -Werror, so we add it here explicitly.
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318 xorg_testset_save_CFLAGS="$CFLAGS"
10319
10320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 int i;
10330 _ACEOF
10331 if ac_fn_c_try_compile "$LINENO"; then :
10332 xorg_cv_cc_flag_unknown_warning_option=yes
10333 else
10334 xorg_cv_cc_flag_unknown_warning_option=no
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10341 CFLAGS="$xorg_testset_save_CFLAGS"
10342 fi
10343
10344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10347 fi
10348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 int i;
10357 _ACEOF
10358 if ac_fn_c_try_compile "$LINENO"; then :
10359 xorg_cv_cc_flag_unused_command_line_argument=yes
10360 else
10361 xorg_cv_cc_flag_unused_command_line_argument=no
10362 fi
10363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 fi
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10368 CFLAGS="$xorg_testset_save_CFLAGS"
10369 fi
10370
10371 found="no"
10372
10373 if test $found = "no" ; then
10374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10376 fi
10377
10378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10380 fi
10381
10382 CFLAGS="$CFLAGS -Werror=attributes"
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10385 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10386 cacheid=xorg_cv_cc_flag__Werror_attributes
10387 if eval \${$cacheid+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10392 int i;
10393 int
10394 main ()
10395 {
10396
10397 ;
10398 return 0;
10399 }
10400 _ACEOF
10401 if ac_fn_c_try_link "$LINENO"; then :
10402 eval $cacheid=yes
10403 else
10404 eval $cacheid=no
10405 fi
10406 rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10408 fi
10409
10410
10411 CFLAGS="$xorg_testset_save_CFLAGS"
10412
10413 eval supported=\$$cacheid
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10415 $as_echo "$supported" >&6; }
10416 if test "$supported" = "yes" ; then
10417 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10418 found="yes"
10419 fi
10420 fi
10421
10422
10423
10424 if test "x$STRICT_COMPILE" = "xyes"; then
10425 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10426 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10427 fi
10428
10429
10430
10431
10432
10433
10434 cat >>confdefs.h <<_ACEOF
10435 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10436 _ACEOF
10437
10438 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10439 if test "x$PVM" = "x"; then
10440 PVM="0"
10441 fi
10442
10443 cat >>confdefs.h <<_ACEOF
10444 #define PACKAGE_VERSION_MINOR $PVM
10445 _ACEOF
10446
10447 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10448 if test "x$PVP" = "x"; then
10449 PVP="0"
10450 fi
10451
10452 cat >>confdefs.h <<_ACEOF
10453 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10454 _ACEOF
10455
10456
10457
10458 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10459 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10460 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10461 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10462
10463
10464
10465
10466 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10467 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10468 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10469 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10470 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10471
10472
10473
10474
10475
10476
10477 if test x$APP_MAN_SUFFIX = x ; then
10478 APP_MAN_SUFFIX=1
10479 fi
10480 if test x$APP_MAN_DIR = x ; then
10481 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10482 fi
10483
10484 if test x$LIB_MAN_SUFFIX = x ; then
10485 LIB_MAN_SUFFIX=3
10486 fi
10487 if test x$LIB_MAN_DIR = x ; then
10488 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10489 fi
10490
10491 if test x$FILE_MAN_SUFFIX = x ; then
10492 case $host_os in
10493 # Solaris 2.0 - 11 use SysV man page sections
10494 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10495 *) FILE_MAN_SUFFIX=5 ;;
10496 esac
10497 fi
10498 if test x$FILE_MAN_DIR = x ; then
10499 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10500 fi
10501
10502 if test x$MISC_MAN_SUFFIX = x ; then
10503 case $host_os in
10504 # Solaris 2.0 - 11 use SysV man page sections
10505 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10506 *) MISC_MAN_SUFFIX=7 ;;
10507 esac
10508 fi
10509 if test x$MISC_MAN_DIR = x ; then
10510 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10511 fi
10512
10513 if test x$DRIVER_MAN_SUFFIX = x ; then
10514 case $host_os in
10515 # Solaris 2.0 - 11 use SysV man page sections
10516 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10517 *) DRIVER_MAN_SUFFIX=4 ;;
10518 esac
10519 fi
10520 if test x$DRIVER_MAN_DIR = x ; then
10521 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10522 fi
10523
10524 if test x$ADMIN_MAN_SUFFIX = x ; then
10525 case $host_os in
10526 # Solaris 2.0 - 11 use SysV man page sections
10527 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10528 *) ADMIN_MAN_SUFFIX=8 ;;
10529 esac
10530 fi
10531 if test x$ADMIN_MAN_DIR = x ; then
10532 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10533 fi
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549 XORG_MAN_PAGE="X Version 11"
10550
10551 MAN_SUBSTS="\
10552 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10553 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10554 -e 's|__xservername__|Xorg|g' \
10555 -e 's|__xconfigfile__|xorg.conf|g' \
10556 -e 's|__projectroot__|\$(prefix)|g' \
10557 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10558 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10559 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10560 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10561 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10562 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10563 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10564
10565
10566
10567 # Check whether --enable-silent-rules was given.
10568 if test "${enable_silent_rules+set}" = set; then :
10569 enableval=$enable_silent_rules;
10570 fi
10571
10572 case $enable_silent_rules in # (((
10573 yes) AM_DEFAULT_VERBOSITY=0;;
10574 no) AM_DEFAULT_VERBOSITY=1;;
10575 *) AM_DEFAULT_VERBOSITY=0;;
10576 esac
10577 am_make=${MAKE-make}
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10579 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10580 if ${am_cv_make_support_nested_variables+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 if $as_echo 'TRUE=$(BAR$(V))
10584 BAR0=false
10585 BAR1=true
10586 V=1
10587 am__doit:
10588 @$(TRUE)
10589 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10590 am_cv_make_support_nested_variables=yes
10591 else
10592 am_cv_make_support_nested_variables=no
10593 fi
10594 fi
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10596 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10597 if test $am_cv_make_support_nested_variables = yes; then
10598 AM_V='$(V)'
10599 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10600 else
10601 AM_V=$AM_DEFAULT_VERBOSITY
10602 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10603 fi
10604 AM_BACKSLASH='\'
10605
10606
10607
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
10609 $as_echo_n "checking for root directory for font files... " >&6; }
10610 fontrootdir='${datadir}/fonts/X11'
10611
10612 # Check whether --with-fontrootdir was given.
10613 if test "${with_fontrootdir+set}" = set; then :
10614 withval=$with_fontrootdir; fontrootdir="${withval}"
10615 fi
10616
10617
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fontrootdir}" >&5
10619 $as_echo "${fontrootdir}" >&6; }
10620
10621 mapdir='${fontrootdir}/util'
10622
10623 # Check whether --with-mapdir was given.
10624 if test "${with_mapdir+set}" = set; then :
10625 withval=$with_mapdir; mapdir="${withval}"
10626 fi
10627
10628 MAPDIR="$mapdir"
10629
10630
10631 ac_config_files="$ac_config_files Makefile man/Makefile fontutil.m4 fontutil.pc"
10632
10633
10634 cat >confcache <<\_ACEOF
10635 # This file is a shell script that caches the results of configure
10636 # tests run on this system so they can be shared between configure
10637 # scripts and configure runs, see configure's option --config-cache.
10638 # It is not useful on other systems. If it contains results you don't
10639 # want to keep, you may remove or edit it.
10640 #
10641 # config.status only pays attention to the cache file if you give it
10642 # the --recheck option to rerun configure.
10643 #
10644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10646 # following values.
10647
10648 _ACEOF
10649
10650 # The following way of writing the cache mishandles newlines in values,
10651 # but we know of no workaround that is simple, portable, and efficient.
10652 # So, we kill variables containing newlines.
10653 # Ultrix sh set writes to stderr and can't be redirected directly,
10654 # and sets the high bit in the cache file unless we assign to the vars.
10655 (
10656 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10657 eval ac_val=\$$ac_var
10658 case $ac_val in #(
10659 *${as_nl}*)
10660 case $ac_var in #(
10661 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10662 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10663 esac
10664 case $ac_var in #(
10665 _ | IFS | as_nl) ;; #(
10666 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10667 *) { eval $ac_var=; unset $ac_var;} ;;
10668 esac ;;
10669 esac
10670 done
10671
10672 (set) 2>&1 |
10673 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10674 *${as_nl}ac_space=\ *)
10675 # `set' does not quote correctly, so add quotes: double-quote
10676 # substitution turns \\\\ into \\, and sed turns \\ into \.
10677 sed -n \
10678 "s/'/'\\\\''/g;
10679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10680 ;; #(
10681 *)
10682 # `set' quotes correctly as required by POSIX, so do not add quotes.
10683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10684 ;;
10685 esac |
10686 sort
10687 ) |
10688 sed '
10689 /^ac_cv_env_/b end
10690 t clear
10691 :clear
10692 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10693 t end
10694 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10695 :end' >>confcache
10696 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10697 if test -w "$cache_file"; then
10698 if test "x$cache_file" != "x/dev/null"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10700 $as_echo "$as_me: updating cache $cache_file" >&6;}
10701 if test ! -f "$cache_file" || test -h "$cache_file"; then
10702 cat confcache >"$cache_file"
10703 else
10704 case $cache_file in #(
10705 */* | ?:*)
10706 mv -f confcache "$cache_file"$$ &&
10707 mv -f "$cache_file"$$ "$cache_file" ;; #(
10708 *)
10709 mv -f confcache "$cache_file" ;;
10710 esac
10711 fi
10712 fi
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10715 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10716 fi
10717 fi
10718 rm -f confcache
10719
10720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10721 # Let make expand exec_prefix.
10722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10723
10724 DEFS=-DHAVE_CONFIG_H
10725
10726 ac_libobjs=
10727 ac_ltlibobjs=
10728 U=
10729 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10730 # 1. Remove the extension, and $U if already installed.
10731 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10732 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10733 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10734 # will be set to the directory where LIBOBJS objects are built.
10735 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10736 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10737 done
10738 LIBOBJS=$ac_libobjs
10739
10740 LTLIBOBJS=$ac_ltlibobjs
10741
10742
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10744 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10745 if test -n "$am_sleep_pid"; then
10746 # Hide warnings about reused PIDs.
10747 wait $am_sleep_pid 2>/dev/null
10748 fi
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10750 $as_echo "done" >&6; }
10751 if test -n "$EXEEXT"; then
10752 am__EXEEXT_TRUE=
10753 am__EXEEXT_FALSE='#'
10754 else
10755 am__EXEEXT_TRUE='#'
10756 am__EXEEXT_FALSE=
10757 fi
10758
10759 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10760 as_fn_error $? "conditional \"AMDEP\" was never defined.
10761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10762 fi
10763 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10764 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10766 fi
10767
10768 : "${CONFIG_STATUS=./config.status}"
10769 ac_write_fail=0
10770 ac_clean_files_save=$ac_clean_files
10771 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10773 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10774 as_write_fail=0
10775 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10776 #! $SHELL
10777 # Generated by $as_me.
10778 # Run this file to recreate the current configuration.
10779 # Compiler output produced by configure, useful for debugging
10780 # configure, is in config.log if it exists.
10781
10782 debug=false
10783 ac_cs_recheck=false
10784 ac_cs_silent=false
10785
10786 SHELL=\${CONFIG_SHELL-$SHELL}
10787 export SHELL
10788 _ASEOF
10789 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10790 ## -------------------- ##
10791 ## M4sh Initialization. ##
10792 ## -------------------- ##
10793
10794 # Be more Bourne compatible
10795 DUALCASE=1; export DUALCASE # for MKS sh
10796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10797 emulate sh
10798 NULLCMD=:
10799 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10800 # is contrary to our usage. Disable this feature.
10801 alias -g '${1+"$@"}'='"$@"'
10802 setopt NO_GLOB_SUBST
10803 else
10804 case `(set -o) 2>/dev/null` in #(
10805 *posix*) :
10806 set -o posix ;; #(
10807 *) :
10808 ;;
10809 esac
10810 fi
10811
10812
10813 as_nl='
10814 '
10815 export as_nl
10816 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10817 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10820 # Prefer a ksh shell builtin over an external printf program on Solaris,
10821 # but without wasting forks for bash or zsh.
10822 if test -z "$BASH_VERSION$ZSH_VERSION" \
10823 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10824 as_echo='print -r --'
10825 as_echo_n='print -rn --'
10826 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10827 as_echo='printf %s\n'
10828 as_echo_n='printf %s'
10829 else
10830 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10831 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10832 as_echo_n='/usr/ucb/echo -n'
10833 else
10834 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10835 as_echo_n_body='eval
10836 arg=$1;
10837 case $arg in #(
10838 *"$as_nl"*)
10839 expr "X$arg" : "X\\(.*\\)$as_nl";
10840 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10841 esac;
10842 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10843 '
10844 export as_echo_n_body
10845 as_echo_n='sh -c $as_echo_n_body as_echo'
10846 fi
10847 export as_echo_body
10848 as_echo='sh -c $as_echo_body as_echo'
10849 fi
10850
10851 # The user is always right.
10852 if test "${PATH_SEPARATOR+set}" != set; then
10853 PATH_SEPARATOR=:
10854 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10855 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10856 PATH_SEPARATOR=';'
10857 }
10858 fi
10859
10860
10861 # IFS
10862 # We need space, tab and new line, in precisely that order. Quoting is
10863 # there to prevent editors from complaining about space-tab.
10864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10865 # splitting by setting IFS to empty value.)
10866 IFS=" "" $as_nl"
10867
10868 # Find who we are. Look in the path if we contain no directory separator.
10869 as_myself=
10870 case $0 in #((
10871 *[\\/]* ) as_myself=$0 ;;
10872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10874 do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
10877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10878 done
10879 IFS=$as_save_IFS
10880
10881 ;;
10882 esac
10883 # We did not find ourselves, most probably we were run as `sh COMMAND'
10884 # in which case we are not to be found in the path.
10885 if test "x$as_myself" = x; then
10886 as_myself=$0
10887 fi
10888 if test ! -f "$as_myself"; then
10889 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10890 exit 1
10891 fi
10892
10893 # Unset variables that we do not need and which cause bugs (e.g. in
10894 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10895 # suppresses any "Segmentation fault" message there. '((' could
10896 # trigger a bug in pdksh 5.2.14.
10897 for as_var in BASH_ENV ENV MAIL MAILPATH
10898 do eval test x\${$as_var+set} = xset \
10899 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10900 done
10901 PS1='$ '
10902 PS2='> '
10903 PS4='+ '
10904
10905 # NLS nuisances.
10906 LC_ALL=C
10907 export LC_ALL
10908 LANGUAGE=C
10909 export LANGUAGE
10910
10911 # CDPATH.
10912 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10913
10914
10915 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10916 # ----------------------------------------
10917 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10918 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10919 # script with STATUS, using 1 if that was 0.
10920 as_fn_error ()
10921 {
10922 as_status=$1; test $as_status -eq 0 && as_status=1
10923 if test "$4"; then
10924 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10925 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10926 fi
10927 $as_echo "$as_me: error: $2" >&2
10928 as_fn_exit $as_status
10929 } # as_fn_error
10930
10931
10932 # as_fn_set_status STATUS
10933 # -----------------------
10934 # Set $? to STATUS, without forking.
10935 as_fn_set_status ()
10936 {
10937 return $1
10938 } # as_fn_set_status
10939
10940 # as_fn_exit STATUS
10941 # -----------------
10942 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10943 as_fn_exit ()
10944 {
10945 set +e
10946 as_fn_set_status $1
10947 exit $1
10948 } # as_fn_exit
10949
10950 # as_fn_unset VAR
10951 # ---------------
10952 # Portably unset VAR.
10953 as_fn_unset ()
10954 {
10955 { eval $1=; unset $1;}
10956 }
10957 as_unset=as_fn_unset
10958 # as_fn_append VAR VALUE
10959 # ----------------------
10960 # Append the text in VALUE to the end of the definition contained in VAR. Take
10961 # advantage of any shell optimizations that allow amortized linear growth over
10962 # repeated appends, instead of the typical quadratic growth present in naive
10963 # implementations.
10964 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10965 eval 'as_fn_append ()
10966 {
10967 eval $1+=\$2
10968 }'
10969 else
10970 as_fn_append ()
10971 {
10972 eval $1=\$$1\$2
10973 }
10974 fi # as_fn_append
10975
10976 # as_fn_arith ARG...
10977 # ------------------
10978 # Perform arithmetic evaluation on the ARGs, and store the result in the
10979 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10980 # must be portable across $(()) and expr.
10981 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10982 eval 'as_fn_arith ()
10983 {
10984 as_val=$(( $* ))
10985 }'
10986 else
10987 as_fn_arith ()
10988 {
10989 as_val=`expr "$@" || test $? -eq 1`
10990 }
10991 fi # as_fn_arith
10992
10993
10994 if expr a : '\(a\)' >/dev/null 2>&1 &&
10995 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10996 as_expr=expr
10997 else
10998 as_expr=false
10999 fi
11000
11001 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11002 as_basename=basename
11003 else
11004 as_basename=false
11005 fi
11006
11007 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11008 as_dirname=dirname
11009 else
11010 as_dirname=false
11011 fi
11012
11013 as_me=`$as_basename -- "$0" ||
11014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11015 X"$0" : 'X\(//\)$' \| \
11016 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11017 $as_echo X/"$0" |
11018 sed '/^.*\/\([^/][^/]*\)\/*$/{
11019 s//\1/
11020 q
11021 }
11022 /^X\/\(\/\/\)$/{
11023 s//\1/
11024 q
11025 }
11026 /^X\/\(\/\).*/{
11027 s//\1/
11028 q
11029 }
11030 s/.*/./; q'`
11031
11032 # Avoid depending upon Character Ranges.
11033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11036 as_cr_digits='0123456789'
11037 as_cr_alnum=$as_cr_Letters$as_cr_digits
11038
11039 ECHO_C= ECHO_N= ECHO_T=
11040 case `echo -n x` in #(((((
11041 -n*)
11042 case `echo 'xy\c'` in
11043 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11044 xy) ECHO_C='\c';;
11045 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11046 ECHO_T=' ';;
11047 esac;;
11048 *)
11049 ECHO_N='-n';;
11050 esac
11051
11052 rm -f conf$$ conf$$.exe conf$$.file
11053 if test -d conf$$.dir; then
11054 rm -f conf$$.dir/conf$$.file
11055 else
11056 rm -f conf$$.dir
11057 mkdir conf$$.dir 2>/dev/null
11058 fi
11059 if (echo >conf$$.file) 2>/dev/null; then
11060 if ln -s conf$$.file conf$$ 2>/dev/null; then
11061 as_ln_s='ln -s'
11062 # ... but there are two gotchas:
11063 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11064 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11065 # In both cases, we have to default to `cp -pR'.
11066 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11067 as_ln_s='cp -pR'
11068 elif ln conf$$.file conf$$ 2>/dev/null; then
11069 as_ln_s=ln
11070 else
11071 as_ln_s='cp -pR'
11072 fi
11073 else
11074 as_ln_s='cp -pR'
11075 fi
11076 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11077 rmdir conf$$.dir 2>/dev/null
11078
11079
11080 # as_fn_mkdir_p
11081 # -------------
11082 # Create "$as_dir" as a directory, including parents if necessary.
11083 as_fn_mkdir_p ()
11084 {
11085
11086 case $as_dir in #(
11087 -*) as_dir=./$as_dir;;
11088 esac
11089 test -d "$as_dir" || eval $as_mkdir_p || {
11090 as_dirs=
11091 while :; do
11092 case $as_dir in #(
11093 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11094 *) as_qdir=$as_dir;;
11095 esac
11096 as_dirs="'$as_qdir' $as_dirs"
11097 as_dir=`$as_dirname -- "$as_dir" ||
11098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11099 X"$as_dir" : 'X\(//\)[^/]' \| \
11100 X"$as_dir" : 'X\(//\)$' \| \
11101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11102 $as_echo X"$as_dir" |
11103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11104 s//\1/
11105 q
11106 }
11107 /^X\(\/\/\)[^/].*/{
11108 s//\1/
11109 q
11110 }
11111 /^X\(\/\/\)$/{
11112 s//\1/
11113 q
11114 }
11115 /^X\(\/\).*/{
11116 s//\1/
11117 q
11118 }
11119 s/.*/./; q'`
11120 test -d "$as_dir" && break
11121 done
11122 test -z "$as_dirs" || eval "mkdir $as_dirs"
11123 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11124
11125
11126 } # as_fn_mkdir_p
11127 if mkdir -p . 2>/dev/null; then
11128 as_mkdir_p='mkdir -p "$as_dir"'
11129 else
11130 test -d ./-p && rmdir ./-p
11131 as_mkdir_p=false
11132 fi
11133
11134
11135 # as_fn_executable_p FILE
11136 # -----------------------
11137 # Test if FILE is an executable regular file.
11138 as_fn_executable_p ()
11139 {
11140 test -f "$1" && test -x "$1"
11141 } # as_fn_executable_p
11142 as_test_x='test -x'
11143 as_executable_p=as_fn_executable_p
11144
11145 # Sed expression to map a string onto a valid CPP name.
11146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11147
11148 # Sed expression to map a string onto a valid variable name.
11149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11150
11151
11152 exec 6>&1
11153 ## ----------------------------------- ##
11154 ## Main body of $CONFIG_STATUS script. ##
11155 ## ----------------------------------- ##
11156 _ASEOF
11157 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11158
11159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11160 # Save the log message, to keep $0 and so on meaningful, and to
11161 # report actual input values of CONFIG_FILES etc. instead of their
11162 # values after options handling.
11163 ac_log="
11164 This file was extended by font-util $as_me 1.3.2, which was
11165 generated by GNU Autoconf 2.69. Invocation command line was
11166
11167 CONFIG_FILES = $CONFIG_FILES
11168 CONFIG_HEADERS = $CONFIG_HEADERS
11169 CONFIG_LINKS = $CONFIG_LINKS
11170 CONFIG_COMMANDS = $CONFIG_COMMANDS
11171 $ $0 $@
11172
11173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11174 "
11175
11176 _ACEOF
11177
11178 case $ac_config_files in *"
11179 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11180 esac
11181
11182 case $ac_config_headers in *"
11183 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11184 esac
11185
11186
11187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11188 # Files that config.status was made for.
11189 config_files="$ac_config_files"
11190 config_headers="$ac_config_headers"
11191 config_commands="$ac_config_commands"
11192
11193 _ACEOF
11194
11195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11196 ac_cs_usage="\
11197 \`$as_me' instantiates files and other configuration actions
11198 from templates according to the current configuration. Unless the files
11199 and actions are specified as TAGs, all are instantiated by default.
11200
11201 Usage: $0 [OPTION]... [TAG]...
11202
11203 -h, --help print this help, then exit
11204 -V, --version print version number and configuration settings, then exit
11205 --config print configuration, then exit
11206 -q, --quiet, --silent
11207 do not print progress messages
11208 -d, --debug don't remove temporary files
11209 --recheck update $as_me by reconfiguring in the same conditions
11210 --file=FILE[:TEMPLATE]
11211 instantiate the configuration file FILE
11212 --header=FILE[:TEMPLATE]
11213 instantiate the configuration header FILE
11214
11215 Configuration files:
11216 $config_files
11217
11218 Configuration headers:
11219 $config_headers
11220
11221 Configuration commands:
11222 $config_commands
11223
11224 Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/issues>."
11225
11226 _ACEOF
11227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11228 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11229 ac_cs_version="\\
11230 font-util config.status 1.3.2
11231 configured by $0, generated by GNU Autoconf 2.69,
11232 with options \\"\$ac_cs_config\\"
11233
11234 Copyright (C) 2012 Free Software Foundation, Inc.
11235 This config.status script is free software; the Free Software Foundation
11236 gives unlimited permission to copy, distribute and modify it."
11237
11238 ac_pwd='$ac_pwd'
11239 srcdir='$srcdir'
11240 INSTALL='$INSTALL'
11241 MKDIR_P='$MKDIR_P'
11242 AWK='$AWK'
11243 test -n "\$AWK" || AWK=awk
11244 _ACEOF
11245
11246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11247 # The default lists apply if the user does not specify any file.
11248 ac_need_defaults=:
11249 while test $# != 0
11250 do
11251 case $1 in
11252 --*=?*)
11253 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11254 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11255 ac_shift=:
11256 ;;
11257 --*=)
11258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11259 ac_optarg=
11260 ac_shift=:
11261 ;;
11262 *)
11263 ac_option=$1
11264 ac_optarg=$2
11265 ac_shift=shift
11266 ;;
11267 esac
11268
11269 case $ac_option in
11270 # Handling of the options.
11271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11272 ac_cs_recheck=: ;;
11273 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11274 $as_echo "$ac_cs_version"; exit ;;
11275 --config | --confi | --conf | --con | --co | --c )
11276 $as_echo "$ac_cs_config"; exit ;;
11277 --debug | --debu | --deb | --de | --d | -d )
11278 debug=: ;;
11279 --file | --fil | --fi | --f )
11280 $ac_shift
11281 case $ac_optarg in
11282 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11283 '') as_fn_error $? "missing file argument" ;;
11284 esac
11285 as_fn_append CONFIG_FILES " '$ac_optarg'"
11286 ac_need_defaults=false;;
11287 --header | --heade | --head | --hea )
11288 $ac_shift
11289 case $ac_optarg in
11290 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11291 esac
11292 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11293 ac_need_defaults=false;;
11294 --he | --h)
11295 # Conflict between --help and --header
11296 as_fn_error $? "ambiguous option: \`$1'
11297 Try \`$0 --help' for more information.";;
11298 --help | --hel | -h )
11299 $as_echo "$ac_cs_usage"; exit ;;
11300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11302 ac_cs_silent=: ;;
11303
11304 # This is an error.
11305 -*) as_fn_error $? "unrecognized option: \`$1'
11306 Try \`$0 --help' for more information." ;;
11307
11308 *) as_fn_append ac_config_targets " $1"
11309 ac_need_defaults=false ;;
11310
11311 esac
11312 shift
11313 done
11314
11315 ac_configure_extra_args=
11316
11317 if $ac_cs_silent; then
11318 exec 6>/dev/null
11319 ac_configure_extra_args="$ac_configure_extra_args --silent"
11320 fi
11321
11322 _ACEOF
11323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11324 if \$ac_cs_recheck; then
11325 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11326 shift
11327 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11328 CONFIG_SHELL='$SHELL'
11329 export CONFIG_SHELL
11330 exec "\$@"
11331 fi
11332
11333 _ACEOF
11334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11335 exec 5>>config.log
11336 {
11337 echo
11338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11339 ## Running $as_me. ##
11340 _ASBOX
11341 $as_echo "$ac_log"
11342 } >&5
11343
11344 _ACEOF
11345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11346 #
11347 # INIT-COMMANDS
11348 #
11349 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11350
11351 _ACEOF
11352
11353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11354
11355 # Handling of arguments.
11356 for ac_config_target in $ac_config_targets
11357 do
11358 case $ac_config_target in
11359 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11361 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11362 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11363 "fontutil.m4") CONFIG_FILES="$CONFIG_FILES fontutil.m4" ;;
11364 "fontutil.pc") CONFIG_FILES="$CONFIG_FILES fontutil.pc" ;;
11365
11366 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11367 esac
11368 done
11369
11370
11371 # If the user did not use the arguments to specify the items to instantiate,
11372 # then the envvar interface is used. Set only those that are not.
11373 # We use the long form for the default assignment because of an extremely
11374 # bizarre bug on SunOS 4.1.3.
11375 if $ac_need_defaults; then
11376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11378 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11379 fi
11380
11381 # Have a temporary directory for convenience. Make it in the build tree
11382 # simply because there is no reason against having it here, and in addition,
11383 # creating and moving files from /tmp can sometimes cause problems.
11384 # Hook for its removal unless debugging.
11385 # Note that there is a small window in which the directory will not be cleaned:
11386 # after its creation but before its name has been assigned to `$tmp'.
11387 $debug ||
11388 {
11389 tmp= ac_tmp=
11390 trap 'exit_status=$?
11391 : "${ac_tmp:=$tmp}"
11392 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11393 ' 0
11394 trap 'as_fn_exit 1' 1 2 13 15
11395 }
11396 # Create a (secure) tmp directory for tmp files.
11397
11398 {
11399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11400 test -d "$tmp"
11401 } ||
11402 {
11403 tmp=./conf$$-$RANDOM
11404 (umask 077 && mkdir "$tmp")
11405 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11406 ac_tmp=$tmp
11407
11408 # Set up the scripts for CONFIG_FILES section.
11409 # No need to generate them if there are no CONFIG_FILES.
11410 # This happens for instance with `./config.status config.h'.
11411 if test -n "$CONFIG_FILES"; then
11412
11413
11414 ac_cr=`echo X | tr X '\015'`
11415 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11416 # But we know of no other shell where ac_cr would be empty at this
11417 # point, so we can use a bashism as a fallback.
11418 if test "x$ac_cr" = x; then
11419 eval ac_cr=\$\'\\r\'
11420 fi
11421 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11422 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11423 ac_cs_awk_cr='\\r'
11424 else
11425 ac_cs_awk_cr=$ac_cr
11426 fi
11427
11428 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11429 _ACEOF
11430
11431
11432 {
11433 echo "cat >conf$$subs.awk <<_ACEOF" &&
11434 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11435 echo "_ACEOF"
11436 } >conf$$subs.sh ||
11437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11438 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11439 ac_delim='%!_!# '
11440 for ac_last_try in false false false false false :; do
11441 . ./conf$$subs.sh ||
11442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11443
11444 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11445 if test $ac_delim_n = $ac_delim_num; then
11446 break
11447 elif $ac_last_try; then
11448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11449 else
11450 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11451 fi
11452 done
11453 rm -f conf$$subs.sh
11454
11455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11456 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11457 _ACEOF
11458 sed -n '
11459 h
11460 s/^/S["/; s/!.*/"]=/
11461 p
11462 g
11463 s/^[^!]*!//
11464 :repl
11465 t repl
11466 s/'"$ac_delim"'$//
11467 t delim
11468 :nl
11469 h
11470 s/\(.\{148\}\)..*/\1/
11471 t more1
11472 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11473 p
11474 n
11475 b repl
11476 :more1
11477 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11478 p
11479 g
11480 s/.\{148\}//
11481 t nl
11482 :delim
11483 h
11484 s/\(.\{148\}\)..*/\1/
11485 t more2
11486 s/["\\]/\\&/g; s/^/"/; s/$/"/
11487 p
11488 b
11489 :more2
11490 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11491 p
11492 g
11493 s/.\{148\}//
11494 t delim
11495 ' <conf$$subs.awk | sed '
11496 /^[^""]/{
11497 N
11498 s/\n//
11499 }
11500 ' >>$CONFIG_STATUS || ac_write_fail=1
11501 rm -f conf$$subs.awk
11502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11503 _ACAWK
11504 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11505 for (key in S) S_is_set[key] = 1
11506 FS = ""
11507
11508 }
11509 {
11510 line = $ 0
11511 nfields = split(line, field, "@")
11512 substed = 0
11513 len = length(field[1])
11514 for (i = 2; i < nfields; i++) {
11515 key = field[i]
11516 keylen = length(key)
11517 if (S_is_set[key]) {
11518 value = S[key]
11519 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11520 len += length(value) + length(field[++i])
11521 substed = 1
11522 } else
11523 len += 1 + keylen
11524 }
11525
11526 print line
11527 }
11528
11529 _ACAWK
11530 _ACEOF
11531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11532 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11533 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11534 else
11535 cat
11536 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11537 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11538 _ACEOF
11539
11540 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11541 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11542 # trailing colons and then remove the whole line if VPATH becomes empty
11543 # (actually we leave an empty line to preserve line numbers).
11544 if test "x$srcdir" = x.; then
11545 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11546 h
11547 s///
11548 s/^/:/
11549 s/[ ]*$/:/
11550 s/:\$(srcdir):/:/g
11551 s/:\${srcdir}:/:/g
11552 s/:@srcdir@:/:/g
11553 s/^:*//
11554 s/:*$//
11555 x
11556 s/\(=[ ]*\).*/\1/
11557 G
11558 s/\n//
11559 s/^[^=]*=[ ]*$//
11560 }'
11561 fi
11562
11563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11564 fi # test -n "$CONFIG_FILES"
11565
11566 # Set up the scripts for CONFIG_HEADERS section.
11567 # No need to generate them if there are no CONFIG_HEADERS.
11568 # This happens for instance with `./config.status Makefile'.
11569 if test -n "$CONFIG_HEADERS"; then
11570 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11571 BEGIN {
11572 _ACEOF
11573
11574 # Transform confdefs.h into an awk script `defines.awk', embedded as
11575 # here-document in config.status, that substitutes the proper values into
11576 # config.h.in to produce config.h.
11577
11578 # Create a delimiter string that does not exist in confdefs.h, to ease
11579 # handling of long lines.
11580 ac_delim='%!_!# '
11581 for ac_last_try in false false :; do
11582 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11583 if test -z "$ac_tt"; then
11584 break
11585 elif $ac_last_try; then
11586 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11587 else
11588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11589 fi
11590 done
11591
11592 # For the awk script, D is an array of macro values keyed by name,
11593 # likewise P contains macro parameters if any. Preserve backslash
11594 # newline sequences.
11595
11596 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11597 sed -n '
11598 s/.\{148\}/&'"$ac_delim"'/g
11599 t rset
11600 :rset
11601 s/^[ ]*#[ ]*define[ ][ ]*/ /
11602 t def
11603 d
11604 :def
11605 s/\\$//
11606 t bsnl
11607 s/["\\]/\\&/g
11608 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11609 D["\1"]=" \3"/p
11610 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11611 d
11612 :bsnl
11613 s/["\\]/\\&/g
11614 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11615 D["\1"]=" \3\\\\\\n"\\/p
11616 t cont
11617 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11618 t cont
11619 d
11620 :cont
11621 n
11622 s/.\{148\}/&'"$ac_delim"'/g
11623 t clear
11624 :clear
11625 s/\\$//
11626 t bsnlc
11627 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11628 d
11629 :bsnlc
11630 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11631 b cont
11632 ' <confdefs.h | sed '
11633 s/'"$ac_delim"'/"\\\
11634 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11635
11636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11637 for (key in D) D_is_set[key] = 1
11638 FS = ""
11639 }
11640 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11641 line = \$ 0
11642 split(line, arg, " ")
11643 if (arg[1] == "#") {
11644 defundef = arg[2]
11645 mac1 = arg[3]
11646 } else {
11647 defundef = substr(arg[1], 2)
11648 mac1 = arg[2]
11649 }
11650 split(mac1, mac2, "(") #)
11651 macro = mac2[1]
11652 prefix = substr(line, 1, index(line, defundef) - 1)
11653 if (D_is_set[macro]) {
11654 # Preserve the white space surrounding the "#".
11655 print prefix "define", macro P[macro] D[macro]
11656 next
11657 } else {
11658 # Replace #undef with comments. This is necessary, for example,
11659 # in the case of _POSIX_SOURCE, which is predefined and required
11660 # on some systems where configure will not decide to define it.
11661 if (defundef == "undef") {
11662 print "/*", prefix defundef, macro, "*/"
11663 next
11664 }
11665 }
11666 }
11667 { print }
11668 _ACAWK
11669 _ACEOF
11670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11671 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11672 fi # test -n "$CONFIG_HEADERS"
11673
11674
11675 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11676 shift
11677 for ac_tag
11678 do
11679 case $ac_tag in
11680 :[FHLC]) ac_mode=$ac_tag; continue;;
11681 esac
11682 case $ac_mode$ac_tag in
11683 :[FHL]*:*);;
11684 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11685 :[FH]-) ac_tag=-:-;;
11686 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11687 esac
11688 ac_save_IFS=$IFS
11689 IFS=:
11690 set x $ac_tag
11691 IFS=$ac_save_IFS
11692 shift
11693 ac_file=$1
11694 shift
11695
11696 case $ac_mode in
11697 :L) ac_source=$1;;
11698 :[FH])
11699 ac_file_inputs=
11700 for ac_f
11701 do
11702 case $ac_f in
11703 -) ac_f="$ac_tmp/stdin";;
11704 *) # Look for the file first in the build tree, then in the source tree
11705 # (if the path is not absolute). The absolute path cannot be DOS-style,
11706 # because $ac_f cannot contain `:'.
11707 test -f "$ac_f" ||
11708 case $ac_f in
11709 [\\/$]*) false;;
11710 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11711 esac ||
11712 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11713 esac
11714 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11715 as_fn_append ac_file_inputs " '$ac_f'"
11716 done
11717
11718 # Let's still pretend it is `configure' which instantiates (i.e., don't
11719 # use $as_me), people would be surprised to read:
11720 # /* config.h. Generated by config.status. */
11721 configure_input='Generated from '`
11722 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11723 `' by configure.'
11724 if test x"$ac_file" != x-; then
11725 configure_input="$ac_file. $configure_input"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11727 $as_echo "$as_me: creating $ac_file" >&6;}
11728 fi
11729 # Neutralize special characters interpreted by sed in replacement strings.
11730 case $configure_input in #(
11731 *\&* | *\|* | *\\* )
11732 ac_sed_conf_input=`$as_echo "$configure_input" |
11733 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11734 *) ac_sed_conf_input=$configure_input;;
11735 esac
11736
11737 case $ac_tag in
11738 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11740 esac
11741 ;;
11742 esac
11743
11744 ac_dir=`$as_dirname -- "$ac_file" ||
11745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11746 X"$ac_file" : 'X\(//\)[^/]' \| \
11747 X"$ac_file" : 'X\(//\)$' \| \
11748 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11749 $as_echo X"$ac_file" |
11750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11751 s//\1/
11752 q
11753 }
11754 /^X\(\/\/\)[^/].*/{
11755 s//\1/
11756 q
11757 }
11758 /^X\(\/\/\)$/{
11759 s//\1/
11760 q
11761 }
11762 /^X\(\/\).*/{
11763 s//\1/
11764 q
11765 }
11766 s/.*/./; q'`
11767 as_dir="$ac_dir"; as_fn_mkdir_p
11768 ac_builddir=.
11769
11770 case "$ac_dir" in
11771 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11772 *)
11773 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11774 # A ".." for each directory in $ac_dir_suffix.
11775 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11776 case $ac_top_builddir_sub in
11777 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11778 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11779 esac ;;
11780 esac
11781 ac_abs_top_builddir=$ac_pwd
11782 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11783 # for backward compatibility:
11784 ac_top_builddir=$ac_top_build_prefix
11785
11786 case $srcdir in
11787 .) # We are building in place.
11788 ac_srcdir=.
11789 ac_top_srcdir=$ac_top_builddir_sub
11790 ac_abs_top_srcdir=$ac_pwd ;;
11791 [\\/]* | ?:[\\/]* ) # Absolute name.
11792 ac_srcdir=$srcdir$ac_dir_suffix;
11793 ac_top_srcdir=$srcdir
11794 ac_abs_top_srcdir=$srcdir ;;
11795 *) # Relative name.
11796 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11797 ac_top_srcdir=$ac_top_build_prefix$srcdir
11798 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11799 esac
11800 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11801
11802
11803 case $ac_mode in
11804 :F)
11805 #
11806 # CONFIG_FILE
11807 #
11808
11809 case $INSTALL in
11810 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11811 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11812 esac
11813 ac_MKDIR_P=$MKDIR_P
11814 case $MKDIR_P in
11815 [\\/$]* | ?:[\\/]* ) ;;
11816 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11817 esac
11818 _ACEOF
11819
11820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11821 # If the template does not know about datarootdir, expand it.
11822 # FIXME: This hack should be removed a few years after 2.60.
11823 ac_datarootdir_hack=; ac_datarootdir_seen=
11824 ac_sed_dataroot='
11825 /datarootdir/ {
11826 p
11827 q
11828 }
11829 /@datadir@/p
11830 /@docdir@/p
11831 /@infodir@/p
11832 /@localedir@/p
11833 /@mandir@/p'
11834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11835 *datarootdir*) ac_datarootdir_seen=yes;;
11836 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11839 _ACEOF
11840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841 ac_datarootdir_hack='
11842 s&@datadir@&$datadir&g
11843 s&@docdir@&$docdir&g
11844 s&@infodir@&$infodir&g
11845 s&@localedir@&$localedir&g
11846 s&@mandir@&$mandir&g
11847 s&\\\${datarootdir}&$datarootdir&g' ;;
11848 esac
11849 _ACEOF
11850
11851 # Neutralize VPATH when `$srcdir' = `.'.
11852 # Shell code in configure.ac might set extrasub.
11853 # FIXME: do we really want to maintain this feature?
11854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11855 ac_sed_extra="$ac_vpsub
11856 $extrasub
11857 _ACEOF
11858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11859 :t
11860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11861 s|@configure_input@|$ac_sed_conf_input|;t t
11862 s&@top_builddir@&$ac_top_builddir_sub&;t t
11863 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11864 s&@srcdir@&$ac_srcdir&;t t
11865 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11866 s&@top_srcdir@&$ac_top_srcdir&;t t
11867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11868 s&@builddir@&$ac_builddir&;t t
11869 s&@abs_builddir@&$ac_abs_builddir&;t t
11870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11871 s&@INSTALL@&$ac_INSTALL&;t t
11872 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11873 $ac_datarootdir_hack
11874 "
11875 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11876 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11877
11878 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11879 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11881 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11883 which seems to be undefined. Please make sure it is defined" >&5
11884 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11885 which seems to be undefined. Please make sure it is defined" >&2;}
11886
11887 rm -f "$ac_tmp/stdin"
11888 case $ac_file in
11889 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11890 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11891 esac \
11892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11893 ;;
11894 :H)
11895 #
11896 # CONFIG_HEADER
11897 #
11898 if test x"$ac_file" != x-; then
11899 {
11900 $as_echo "/* $configure_input */" \
11901 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11902 } >"$ac_tmp/config.h" \
11903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11904 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11906 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11907 else
11908 rm -f "$ac_file"
11909 mv "$ac_tmp/config.h" "$ac_file" \
11910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11911 fi
11912 else
11913 $as_echo "/* $configure_input */" \
11914 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11915 || as_fn_error $? "could not create -" "$LINENO" 5
11916 fi
11917 # Compute "$ac_file"'s index in $config_headers.
11918 _am_arg="$ac_file"
11919 _am_stamp_count=1
11920 for _am_header in $config_headers :; do
11921 case $_am_header in
11922 $_am_arg | $_am_arg:* )
11923 break ;;
11924 * )
11925 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11926 esac
11927 done
11928 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11929 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11930 X"$_am_arg" : 'X\(//\)[^/]' \| \
11931 X"$_am_arg" : 'X\(//\)$' \| \
11932 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11933 $as_echo X"$_am_arg" |
11934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11935 s//\1/
11936 q
11937 }
11938 /^X\(\/\/\)[^/].*/{
11939 s//\1/
11940 q
11941 }
11942 /^X\(\/\/\)$/{
11943 s//\1/
11944 q
11945 }
11946 /^X\(\/\).*/{
11947 s//\1/
11948 q
11949 }
11950 s/.*/./; q'`/stamp-h$_am_stamp_count
11951 ;;
11952
11953 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11954 $as_echo "$as_me: executing $ac_file commands" >&6;}
11955 ;;
11956 esac
11957
11958
11959 case $ac_file$ac_mode in
11960 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11961 # Older Autoconf quotes --file arguments for eval, but not when files
11962 # are listed without --file. Let's play safe and only enable the eval
11963 # if we detect the quoting.
11964 case $CONFIG_FILES in
11965 *\'*) eval set x "$CONFIG_FILES" ;;
11966 *) set x $CONFIG_FILES ;;
11967 esac
11968 shift
11969 for mf
11970 do
11971 # Strip MF so we end up with the name of the file.
11972 mf=`echo "$mf" | sed -e 's/:.*$//'`
11973 # Check whether this is an Automake generated Makefile or not.
11974 # We used to match only the files named 'Makefile.in', but
11975 # some people rename them; so instead we look at the file content.
11976 # Grep'ing the first line is not enough: some people post-process
11977 # each Makefile.in and add a new line on top of each file to say so.
11978 # Grep'ing the whole file is not good either: AIX grep has a line
11979 # limit of 2048, but all sed's we know have understand at least 4000.
11980 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11981 dirpart=`$as_dirname -- "$mf" ||
11982 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11983 X"$mf" : 'X\(//\)[^/]' \| \
11984 X"$mf" : 'X\(//\)$' \| \
11985 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11986 $as_echo X"$mf" |
11987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11988 s//\1/
11989 q
11990 }
11991 /^X\(\/\/\)[^/].*/{
11992 s//\1/
11993 q
11994 }
11995 /^X\(\/\/\)$/{
11996 s//\1/
11997 q
11998 }
11999 /^X\(\/\).*/{
12000 s//\1/
12001 q
12002 }
12003 s/.*/./; q'`
12004 else
12005 continue
12006 fi
12007 # Extract the definition of DEPDIR, am__include, and am__quote
12008 # from the Makefile without running 'make'.
12009 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12010 test -z "$DEPDIR" && continue
12011 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12012 test -z "$am__include" && continue
12013 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12014 # Find all dependency output files, they are included files with
12015 # $(DEPDIR) in their names. We invoke sed twice because it is the
12016 # simplest approach to changing $(DEPDIR) to its actual value in the
12017 # expansion.
12018 for file in `sed -n "
12019 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12020 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12021 # Make sure the directory exists.
12022 test -f "$dirpart/$file" && continue
12023 fdir=`$as_dirname -- "$file" ||
12024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12025 X"$file" : 'X\(//\)[^/]' \| \
12026 X"$file" : 'X\(//\)$' \| \
12027 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12028 $as_echo X"$file" |
12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12030 s//\1/
12031 q
12032 }
12033 /^X\(\/\/\)[^/].*/{
12034 s//\1/
12035 q
12036 }
12037 /^X\(\/\/\)$/{
12038 s//\1/
12039 q
12040 }
12041 /^X\(\/\).*/{
12042 s//\1/
12043 q
12044 }
12045 s/.*/./; q'`
12046 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12047 # echo "creating $dirpart/$file"
12048 echo '# dummy' > "$dirpart/$file"
12049 done
12050 done
12051 }
12052 ;;
12053
12054 esac
12055 done # for ac_tag
12056
12057
12058 as_fn_exit 0
12059 _ACEOF
12060 ac_clean_files=$ac_clean_files_save
12061
12062 test $ac_write_fail = 0 ||
12063 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12064
12065
12066 # configure is writing to config.log, and then calls config.status.
12067 # config.status does its own redirection, appending to config.log.
12068 # Unfortunately, on DOS this fails, as config.log is still kept open
12069 # by configure, so config.status won't be able to write to it; its
12070 # output is simply discarded. So we exec the FD to /dev/null,
12071 # effectively closing config.log, so it can be properly (re)opened and
12072 # appended to by config.status. When coming back to configure, we
12073 # need to make the FD available again.
12074 if test "$no_create" != yes; then
12075 ac_cs_success=:
12076 ac_config_status_args=
12077 test "$silent" = yes &&
12078 ac_config_status_args="$ac_config_status_args --quiet"
12079 exec 5>/dev/null
12080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12081 exec 5>>config.log
12082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12083 # would make configure fail if this is the last instruction.
12084 $ac_cs_success || as_fn_exit 1
12085 fi
12086 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12088 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12089 fi
12090
12091