configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mkfontdir 1.0.7.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='mkfontdir'
563 PACKAGE_TARNAME='mkfontdir'
564 PACKAGE_VERSION='1.0.7'
565 PACKAGE_STRING='mkfontdir 1.0.7'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 AM_BACKSLASH
611 AM_DEFAULT_VERBOSITY
612 MAN_SUBSTS
613 XORG_MAN_PAGE
614 ADMIN_MAN_DIR
615 DRIVER_MAN_DIR
616 MISC_MAN_DIR
617 FILE_MAN_DIR
618 LIB_MAN_DIR
619 APP_MAN_DIR
620 ADMIN_MAN_SUFFIX
621 DRIVER_MAN_SUFFIX
622 MISC_MAN_SUFFIX
623 FILE_MAN_SUFFIX
624 LIB_MAN_SUFFIX
625 APP_MAN_SUFFIX
626 SED
627 host_os
628 host_vendor
629 host_cpu
630 host
631 build_os
632 build_vendor
633 build_cpu
634 build
635 INSTALL_CMD
636 PKG_CONFIG
637 CHANGELOG_CMD
638 STRICT_CFLAGS
639 CWARNFLAGS
640 BASE_CFLAGS
641 EGREP
642 GREP
643 CPP
644 am__fastdepCC_FALSE
645 am__fastdepCC_TRUE
646 CCDEPMODE
647 AMDEPBACKSLASH
648 AMDEP_FALSE
649 AMDEP_TRUE
650 am__quote
651 am__include
652 DEPDIR
653 OBJEXT
654 EXEEXT
655 ac_ct_CC
656 CPPFLAGS
657 LDFLAGS
658 CFLAGS
659 CC
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 am__untar
664 am__tar
665 AMTAR
666 am__leading_dot
667 SET_MAKE
668 AWK
669 mkdir_p
670 MKDIR_P
671 INSTALL_STRIP_PROGRAM
672 STRIP
673 install_sh
674 MAKEINFO
675 AUTOHEADER
676 AUTOMAKE
677 AUTOCONF
678 ACLOCAL
679 VERSION
680 PACKAGE
681 CYGPATH_W
682 am__isrc
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 target_alias
687 host_alias
688 build_alias
689 LIBS
690 ECHO_T
691 ECHO_N
692 ECHO_C
693 DEFS
694 mandir
695 localedir
696 libdir
697 psdir
698 pdfdir
699 dvidir
700 htmldir
701 infodir
702 docdir
703 oldincludedir
704 includedir
705 localstatedir
706 sharedstatedir
707 sysconfdir
708 datadir
709 datarootdir
710 libexecdir
711 sbindir
712 bindir
713 program_transform_name
714 prefix
715 exec_prefix
716 PACKAGE_URL
717 PACKAGE_BUGREPORT
718 PACKAGE_STRING
719 PACKAGE_VERSION
720 PACKAGE_TARNAME
721 PACKAGE_NAME
722 PATH_SEPARATOR
723 SHELL'
724 ac_subst_files=''
725 ac_user_opts='
726 enable_option_checking
727 enable_maintainer_mode
728 enable_dependency_tracking
729 enable_selective_werror
730 enable_strict_compilation
731 enable_silent_rules
732 '
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
736 CC
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
741 CPP
742 PKG_CONFIG'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 ac_unrecognized_opts=
749 ac_unrecognized_sep=
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
766
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
792
793 ac_prev=
794 ac_dashdash=
795 for ac_option
796 do
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
802 fi
803
804 case $ac_option in
805 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *=) ac_optarg= ;;
807 *) ac_optarg=yes ;;
808 esac
809
810 # Accept the important Cygnus configure options, so we can diagnose typos.
811
812 case $ac_dashdash$ac_option in
813 --)
814 ac_dashdash=yes ;;
815
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
820
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
825
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
832
833 --config-cache | -C)
834 cache_file=config.cache ;;
835
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
840
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
847
848 -disable-* | --disable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857 "enable_$ac_useropt"
858 "*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=no ;;
863
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
868
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
873
874 -enable-* | --enable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=\$ac_optarg ;;
889
890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892 | --exec | --exe | --ex)
893 ac_prev=exec_prefix ;;
894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896 | --exec=* | --exe=* | --ex=*)
897 exec_prefix=$ac_optarg ;;
898
899 -gas | --gas | --ga | --g)
900 # Obsolete; use --with-gas.
901 with_gas=yes ;;
902
903 -help | --help | --hel | --he | -h)
904 ac_init_help=long ;;
905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906 ac_init_help=recursive ;;
907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908 ac_init_help=short ;;
909
910 -host | --host | --hos | --ho)
911 ac_prev=host_alias ;;
912 -host=* | --host=* | --hos=* | --ho=*)
913 host_alias=$ac_optarg ;;
914
915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916 ac_prev=htmldir ;;
917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918 | --ht=*)
919 htmldir=$ac_optarg ;;
920
921 -includedir | --includedir | --includedi | --included | --include \
922 | --includ | --inclu | --incl | --inc)
923 ac_prev=includedir ;;
924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925 | --includ=* | --inclu=* | --incl=* | --inc=*)
926 includedir=$ac_optarg ;;
927
928 -infodir | --infodir | --infodi | --infod | --info | --inf)
929 ac_prev=infodir ;;
930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931 infodir=$ac_optarg ;;
932
933 -libdir | --libdir | --libdi | --libd)
934 ac_prev=libdir ;;
935 -libdir=* | --libdir=* | --libdi=* | --libd=*)
936 libdir=$ac_optarg ;;
937
938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939 | --libexe | --libex | --libe)
940 ac_prev=libexecdir ;;
941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942 | --libexe=* | --libex=* | --libe=*)
943 libexecdir=$ac_optarg ;;
944
945 -localedir | --localedir | --localedi | --localed | --locale)
946 ac_prev=localedir ;;
947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948 localedir=$ac_optarg ;;
949
950 -localstatedir | --localstatedir | --localstatedi | --localstated \
951 | --localstate | --localstat | --localsta | --localst | --locals)
952 ac_prev=localstatedir ;;
953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955 localstatedir=$ac_optarg ;;
956
957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958 ac_prev=mandir ;;
959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960 mandir=$ac_optarg ;;
961
962 -nfp | --nfp | --nf)
963 # Obsolete; use --without-fp.
964 with_fp=no ;;
965
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c | -n)
968 no_create=yes ;;
969
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972 no_recursion=yes ;;
973
974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976 | --oldin | --oldi | --old | --ol | --o)
977 ac_prev=oldincludedir ;;
978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981 oldincludedir=$ac_optarg ;;
982
983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984 ac_prev=prefix ;;
985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986 prefix=$ac_optarg ;;
987
988 -program-prefix | --program-prefix | --program-prefi | --program-pref \
989 | --program-pre | --program-pr | --program-p)
990 ac_prev=program_prefix ;;
991 -program-prefix=* | --program-prefix=* | --program-prefi=* \
992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993 program_prefix=$ac_optarg ;;
994
995 -program-suffix | --program-suffix | --program-suffi | --program-suff \
996 | --program-suf | --program-su | --program-s)
997 ac_prev=program_suffix ;;
998 -program-suffix=* | --program-suffix=* | --program-suffi=* \
999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000 program_suffix=$ac_optarg ;;
1001
1002 -program-transform-name | --program-transform-name \
1003 | --program-transform-nam | --program-transform-na \
1004 | --program-transform-n | --program-transform- \
1005 | --program-transform | --program-transfor \
1006 | --program-transfo | --program-transf \
1007 | --program-trans | --program-tran \
1008 | --progr-tra | --program-tr | --program-t)
1009 ac_prev=program_transform_name ;;
1010 -program-transform-name=* | --program-transform-name=* \
1011 | --program-transform-nam=* | --program-transform-na=* \
1012 | --program-transform-n=* | --program-transform-=* \
1013 | --program-transform=* | --program-transfor=* \
1014 | --program-transfo=* | --program-transf=* \
1015 | --program-trans=* | --program-tran=* \
1016 | --progr-tra=* | --program-tr=* | --program-t=*)
1017 program_transform_name=$ac_optarg ;;
1018
1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020 ac_prev=pdfdir ;;
1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022 pdfdir=$ac_optarg ;;
1023
1024 -psdir | --psdir | --psdi | --psd | --ps)
1025 ac_prev=psdir ;;
1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027 psdir=$ac_optarg ;;
1028
1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 | -silent | --silent | --silen | --sile | --sil)
1031 silent=yes ;;
1032
1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034 ac_prev=sbindir ;;
1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036 | --sbi=* | --sb=*)
1037 sbindir=$ac_optarg ;;
1038
1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041 | --sharedst | --shareds | --shared | --share | --shar \
1042 | --sha | --sh)
1043 ac_prev=sharedstatedir ;;
1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047 | --sha=* | --sh=*)
1048 sharedstatedir=$ac_optarg ;;
1049
1050 -site | --site | --sit)
1051 ac_prev=site ;;
1052 -site=* | --site=* | --sit=*)
1053 site=$ac_optarg ;;
1054
1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056 ac_prev=srcdir ;;
1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058 srcdir=$ac_optarg ;;
1059
1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061 | --syscon | --sysco | --sysc | --sys | --sy)
1062 ac_prev=sysconfdir ;;
1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065 sysconfdir=$ac_optarg ;;
1066
1067 -target | --target | --targe | --targ | --tar | --ta | --t)
1068 ac_prev=target_alias ;;
1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070 target_alias=$ac_optarg ;;
1071
1072 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073 verbose=yes ;;
1074
1075 -version | --version | --versio | --versi | --vers | -V)
1076 ac_init_version=: ;;
1077
1078 -with-* | --with-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087 "with_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=\$ac_optarg ;;
1093
1094 -without-* | --without-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=no ;;
1109
1110 --x)
1111 # Obsolete; use --with-x.
1112 with_x=yes ;;
1113
1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 | --x-incl | --x-inc | --x-in | --x-i)
1116 ac_prev=x_includes ;;
1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 x_includes=$ac_optarg ;;
1120
1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 ac_prev=x_libraries ;;
1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 x_libraries=$ac_optarg ;;
1127
1128 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129 Try \`$0 --help' for more information"
1130 ;;
1131
1132 *=*)
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 case $ac_envvar in #(
1136 '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138 esac
1139 eval $ac_envvar=\$ac_optarg
1140 export $ac_envvar ;;
1141
1142 *)
1143 # FIXME: should be removed in autoconf 3.0.
1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148 ;;
1149
1150 esac
1151 done
1152
1153 if test -n "$ac_prev"; then
1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 as_fn_error $? "missing argument to $ac_option"
1156 fi
1157
1158 if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in
1160 no) ;;
1161 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 esac
1164 fi
1165
1166 # Check all directory arguments for consistency.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1171 do
1172 eval ac_val=\$$ac_var
1173 # Remove trailing slashes.
1174 case $ac_val in
1175 */ )
1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 eval $ac_var=\$ac_val;;
1178 esac
1179 # Be sure to have absolute directory names.
1180 case $ac_val in
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 esac
1184 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185 done
1186
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1190 build=$build_alias
1191 host=$host_alias
1192 target=$target_alias
1193
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used" >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1201 cross_compiling=yes
1202 fi
1203 fi
1204
1205 ac_tool_prefix=
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
1208 test "$silent" = yes && exec 6>/dev/null
1209
1210
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 as_fn_error $? "working directory cannot be determined"
1215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 as_fn_error $? "pwd does not report name of working directory"
1217
1218
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 $as_echo X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\/\)[^/].*/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\).*/{
1242 s//\1/
1243 q
1244 }
1245 s/.*/./; q'`
1246 srcdir=$ac_confdir
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 srcdir=..
1249 fi
1250 else
1251 ac_srcdir_defaulted=no
1252 fi
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256 fi
1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 ac_abs_confdir=`(
1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260 pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 srcdir=.
1264 fi
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1277
1278 #
1279 # Report the --help message.
1280 #
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1284 cat <<_ACEOF
1285 \`configure' configures mkfontdir 1.0.7 to adapt to many kinds of systems.
1286
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1291
1292 Defaults for the options are specified in brackets.
1293
1294 Configuration:
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking ...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 [PREFIX]
1310
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1315
1316 For better control, use the options below.
1317
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontdir]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1338 _ACEOF
1339
1340 cat <<\_ACEOF
1341
1342 Program names:
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1346
1347 System types:
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350 _ACEOF
1351 fi
1352
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of mkfontdir 1.0.7:";;
1356 esac
1357 cat <<\_ACEOF
1358
1359 Optional Features:
1360 --disable-option-checking ignore unrecognized --enable/--with options
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --enable-maintainer-mode enable make rules and dependencies not useful
1364 (and sometimes confusing) to the casual installer
1365 --disable-dependency-tracking speeds up one-time build
1366 --enable-dependency-tracking do not reject slow dependency extractors
1367 --disable-selective-werror
1368 Turn off selective compiler errors. (default:
1369 enabled)
1370 --enable-strict-compilation
1371 Enable all warnings from compiler and make them
1372 errors (default: disabled)
1373 --enable-silent-rules less verbose build output (undo: `make V=1')
1374 --disable-silent-rules verbose build output (undo: `make V=0')
1375
1376 Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1384 CPP C preprocessor
1385 PKG_CONFIG path to pkg-config utility
1386
1387 Use these variables to override the choices made by `configure' or to help
1388 it to find libraries and programs with nonstandard names/locations.
1389
1390 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1391 _ACEOF
1392 ac_status=$?
1393 fi
1394
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" ||
1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1400 continue
1401 ac_builddir=.
1402
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *)
1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1418
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1448 fi
1449
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 mkfontdir configure 1.0.7
1454 generated by GNU Autoconf 2.68
1455
1456 Copyright (C) 2010 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1461 fi
1462
1463 ## ------------------------ ##
1464 ## Autoconf initialization. ##
1465 ## ------------------------ ##
1466
1467 # ac_fn_c_try_compile LINENO
1468 # --------------------------
1469 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1470 ac_fn_c_try_compile ()
1471 {
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 rm -f conftest.$ac_objext
1474 if { { ac_try="$ac_compile"
1475 case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478 esac
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_compile") 2>conftest.err
1482 ac_status=$?
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1487 fi
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } && {
1490 test -z "$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1492 } && test -s conftest.$ac_objext; then :
1493 ac_retval=0
1494 else
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.$ac_ext >&5
1497
1498 ac_retval=1
1499 fi
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 as_fn_set_status $ac_retval
1502
1503 } # ac_fn_c_try_compile
1504
1505 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1506 # ---------------------------------------------
1507 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1508 # accordingly.
1509 ac_fn_c_check_decl ()
1510 {
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 as_decl_name=`echo $2|sed 's/ *(.*//'`
1513 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1515 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1516 if eval \${$3+:} false; then :
1517 $as_echo_n "(cached) " >&6
1518 else
1519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1520 /* end confdefs.h. */
1521 $4
1522 int
1523 main ()
1524 {
1525 #ifndef $as_decl_name
1526 #ifdef __cplusplus
1527 (void) $as_decl_use;
1528 #else
1529 (void) $as_decl_name;
1530 #endif
1531 #endif
1532
1533 ;
1534 return 0;
1535 }
1536 _ACEOF
1537 if ac_fn_c_try_compile "$LINENO"; then :
1538 eval "$3=yes"
1539 else
1540 eval "$3=no"
1541 fi
1542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1543 fi
1544 eval ac_res=\$$3
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546 $as_echo "$ac_res" >&6; }
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548
1549 } # ac_fn_c_check_decl
1550
1551 # ac_fn_c_try_cpp LINENO
1552 # ----------------------
1553 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_cpp ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 if { { ac_try="$ac_cpp conftest.$ac_ext"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } > conftest.i && {
1573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 }; then :
1576 ac_retval=0
1577 else
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_cpp
1587
1588 # ac_fn_c_try_run LINENO
1589 # ----------------------
1590 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1591 # that executables *can* be run.
1592 ac_fn_c_try_run ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_link"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_link") 2>&5
1603 ac_status=$?
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1606 { { case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_try") 2>&5
1613 ac_status=$?
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; }; }; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: program exited with status $ac_status" >&5
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=$ac_status
1623 fi
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_run
1629
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1641 else
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 $4
1645 #include <$2>
1646 _ACEOF
1647 if ac_fn_c_try_compile "$LINENO"; then :
1648 eval "$3=yes"
1649 else
1650 eval "$3=no"
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 fi
1654 eval ac_res=\$$3
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659 } # ac_fn_c_check_header_compile
1660
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 $as_test_x conftest$ac_exeext
1689 }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706 cat >config.log <<_ACEOF
1707 This file contains any messages produced by compilers while
1708 running configure, to aid debugging if configure makes a mistake.
1709
1710 It was created by mkfontdir $as_me 1.0.7, which was
1711 generated by GNU Autoconf 2.68. Invocation command line was
1712
1713 $ $0 $@
1714
1715 _ACEOF
1716 exec 5>>config.log
1717 {
1718 cat <<_ASUNAME
1719 ## --------- ##
1720 ## Platform. ##
1721 ## --------- ##
1722
1723 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1724 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1725 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1726 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1727 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1728
1729 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1730 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1731
1732 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1733 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1734 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1735 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1736 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1737 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1738 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1739
1740 _ASUNAME
1741
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 $as_echo "PATH: $as_dir"
1748 done
1749 IFS=$as_save_IFS
1750
1751 } >&5
1752
1753 cat >&5 <<_ACEOF
1754
1755
1756 ## ----------- ##
1757 ## Core tests. ##
1758 ## ----------- ##
1759
1760 _ACEOF
1761
1762
1763 # Keep a trace of the command line.
1764 # Strip out --no-create and --no-recursion so they do not pile up.
1765 # Strip out --silent because we don't want to record it for future runs.
1766 # Also quote any args containing shell meta-characters.
1767 # Make two passes to allow for proper duplicate-argument suppression.
1768 ac_configure_args=
1769 ac_configure_args0=
1770 ac_configure_args1=
1771 ac_must_keep_next=false
1772 for ac_pass in 1 2
1773 do
1774 for ac_arg
1775 do
1776 case $ac_arg in
1777 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1779 | -silent | --silent | --silen | --sile | --sil)
1780 continue ;;
1781 *\'*)
1782 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1783 esac
1784 case $ac_pass in
1785 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1786 2)
1787 as_fn_append ac_configure_args1 " '$ac_arg'"
1788 if test $ac_must_keep_next = true; then
1789 ac_must_keep_next=false # Got value, back to normal.
1790 else
1791 case $ac_arg in
1792 *=* | --config-cache | -C | -disable-* | --disable-* \
1793 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1794 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1795 | -with-* | --with-* | -without-* | --without-* | --x)
1796 case "$ac_configure_args0 " in
1797 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1798 esac
1799 ;;
1800 -* ) ac_must_keep_next=true ;;
1801 esac
1802 fi
1803 as_fn_append ac_configure_args " '$ac_arg'"
1804 ;;
1805 esac
1806 done
1807 done
1808 { ac_configure_args0=; unset ac_configure_args0;}
1809 { ac_configure_args1=; unset ac_configure_args1;}
1810
1811 # When interrupted or exit'd, cleanup temporary files, and complete
1812 # config.log. We remove comments because anyway the quotes in there
1813 # would cause problems or look ugly.
1814 # WARNING: Use '\'' to represent an apostrophe within the trap.
1815 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1816 trap 'exit_status=$?
1817 # Save into config.log some information that might help in debugging.
1818 {
1819 echo
1820
1821 $as_echo "## ---------------- ##
1822 ## Cache variables. ##
1823 ## ---------------- ##"
1824 echo
1825 # The following way of writing the cache mishandles newlines in values,
1826 (
1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828 eval ac_val=\$$ac_var
1829 case $ac_val in #(
1830 *${as_nl}*)
1831 case $ac_var in #(
1832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1834 esac
1835 case $ac_var in #(
1836 _ | IFS | as_nl) ;; #(
1837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1838 *) { eval $ac_var=; unset $ac_var;} ;;
1839 esac ;;
1840 esac
1841 done
1842 (set) 2>&1 |
1843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1844 *${as_nl}ac_space=\ *)
1845 sed -n \
1846 "s/'\''/'\''\\\\'\'''\''/g;
1847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848 ;; #(
1849 *)
1850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851 ;;
1852 esac |
1853 sort
1854 )
1855 echo
1856
1857 $as_echo "## ----------------- ##
1858 ## Output variables. ##
1859 ## ----------------- ##"
1860 echo
1861 for ac_var in $ac_subst_vars
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 $as_echo "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870
1871 if test -n "$ac_subst_files"; then
1872 $as_echo "## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##"
1875 echo
1876 for ac_var in $ac_subst_files
1877 do
1878 eval ac_val=\$$ac_var
1879 case $ac_val in
1880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881 esac
1882 $as_echo "$ac_var='\''$ac_val'\''"
1883 done | sort
1884 echo
1885 fi
1886
1887 if test -s confdefs.h; then
1888 $as_echo "## ----------- ##
1889 ## confdefs.h. ##
1890 ## ----------- ##"
1891 echo
1892 cat confdefs.h
1893 echo
1894 fi
1895 test "$ac_signal" != 0 &&
1896 $as_echo "$as_me: caught signal $ac_signal"
1897 $as_echo "$as_me: exit $exit_status"
1898 } >&5
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901 exit $exit_status
1902 ' 0
1903 for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1905 done
1906 ac_signal=0
1907
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1910
1911 $as_echo "/* confdefs.h */" > confdefs.h
1912
1913 # Predefined preprocessor variables.
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_NAME "$PACKAGE_NAME"
1917 _ACEOF
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1921 _ACEOF
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 _ACEOF
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_STRING "$PACKAGE_STRING"
1929 _ACEOF
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933 _ACEOF
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_URL "$PACKAGE_URL"
1937 _ACEOF
1938
1939
1940 # Let the site file select an alternate cache file if it wants to.
1941 # Prefer an explicitly selected file to automatically selected ones.
1942 ac_site_file1=NONE
1943 ac_site_file2=NONE
1944 if test -n "$CONFIG_SITE"; then
1945 # We do not want a PATH search for config.site.
1946 case $CONFIG_SITE in #((
1947 -*) ac_site_file1=./$CONFIG_SITE;;
1948 */*) ac_site_file1=$CONFIG_SITE;;
1949 *) ac_site_file1=./$CONFIG_SITE;;
1950 esac
1951 elif test "x$prefix" != xNONE; then
1952 ac_site_file1=$prefix/share/config.site
1953 ac_site_file2=$prefix/etc/config.site
1954 else
1955 ac_site_file1=$ac_default_prefix/share/config.site
1956 ac_site_file2=$ac_default_prefix/etc/config.site
1957 fi
1958 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1959 do
1960 test "x$ac_site_file" = xNONE && continue
1961 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1963 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1964 sed 's/^/| /' "$ac_site_file" >&5
1965 . "$ac_site_file" \
1966 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1968 as_fn_error $? "failed to load site script $ac_site_file
1969 See \`config.log' for more details" "$LINENO" 5; }
1970 fi
1971 done
1972
1973 if test -r "$cache_file"; then
1974 # Some versions of bash will fail to source /dev/null (special files
1975 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1976 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1978 $as_echo "$as_me: loading cache $cache_file" >&6;}
1979 case $cache_file in
1980 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981 *) . "./$cache_file";;
1982 esac
1983 fi
1984 else
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1986 $as_echo "$as_me: creating cache $cache_file" >&6;}
1987 >$cache_file
1988 fi
1989
1990 # Check that the precious variables saved in the cache have kept the same
1991 # value.
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
1999 set,)
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2003 ,set)
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2007 ,);;
2008 *)
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w=`echo x $ac_old_val`
2012 ac_new_val_w=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted=:
2017 else
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\$ac_old_val
2021 fi
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2026 fi;;
2027 esac
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2030 case $ac_new_val in
2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2033 esac
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2037 esac
2038 fi
2039 done
2040 if $ac_cache_corrupted; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2045 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2046 fi
2047 ## -------------------- ##
2048 ## Main body of script. ##
2049 ## -------------------- ##
2050
2051 ac_ext=c
2052 ac_cpp='$CPP $CPPFLAGS'
2053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056
2057
2058
2059
2060 # Initialize Automake
2061 am__api_version='1.11'
2062
2063 ac_aux_dir=
2064 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2065 if test -f "$ac_dir/install-sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install-sh -c"
2068 break
2069 elif test -f "$ac_dir/install.sh"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/install.sh -c"
2072 break
2073 elif test -f "$ac_dir/shtool"; then
2074 ac_aux_dir=$ac_dir
2075 ac_install_sh="$ac_aux_dir/shtool install -c"
2076 break
2077 fi
2078 done
2079 if test -z "$ac_aux_dir"; then
2080 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2081 fi
2082
2083 # These three variables are undocumented and unsupported,
2084 # and are intended to be withdrawn in a future Autoconf release.
2085 # They can cause serious problems if a builder's source tree is in a directory
2086 # whose full name contains unusual characters.
2087 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2088 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2089 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2090
2091
2092 # Find a good install program. We prefer a C program (faster),
2093 # so one script is as good as another. But avoid the broken or
2094 # incompatible versions:
2095 # SysV /etc/install, /usr/sbin/install
2096 # SunOS /usr/etc/install
2097 # IRIX /sbin/install
2098 # AIX /bin/install
2099 # AmigaOS /C/install, which installs bootblocks on floppy discs
2100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2103 # OS/2's system install, which has a completely different semantic
2104 # ./install, which can be erroneously created by make from ./install.sh.
2105 # Reject install programs that cannot install multiple files.
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2107 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2108 if test -z "$INSTALL"; then
2109 if ${ac_cv_path_install+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 # Account for people who put trailing slashes in PATH elements.
2118 case $as_dir/ in #((
2119 ./ | .// | /[cC]/* | \
2120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2121 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2122 /usr/ucb/* ) ;;
2123 *)
2124 # OSF1 and SCO ODT 3.0 have their own names for install.
2125 # Don't use installbsd from OSF since it installs stuff as root
2126 # by default.
2127 for ac_prog in ginstall scoinst install; do
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2130 if test $ac_prog = install &&
2131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2132 # AIX install. It has an incompatible calling convention.
2133 :
2134 elif test $ac_prog = install &&
2135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2136 # program-specific install script used by HP pwplus--don't use.
2137 :
2138 else
2139 rm -rf conftest.one conftest.two conftest.dir
2140 echo one > conftest.one
2141 echo two > conftest.two
2142 mkdir conftest.dir
2143 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2144 test -s conftest.one && test -s conftest.two &&
2145 test -s conftest.dir/conftest.one &&
2146 test -s conftest.dir/conftest.two
2147 then
2148 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2149 break 3
2150 fi
2151 fi
2152 fi
2153 done
2154 done
2155 ;;
2156 esac
2157
2158 done
2159 IFS=$as_save_IFS
2160
2161 rm -rf conftest.one conftest.two conftest.dir
2162
2163 fi
2164 if test "${ac_cv_path_install+set}" = set; then
2165 INSTALL=$ac_cv_path_install
2166 else
2167 # As a last resort, use the slow shell script. Don't cache a
2168 # value for INSTALL within a source directory, because that will
2169 # break other packages using the cache if that directory is
2170 # removed, or if the value is a relative name.
2171 INSTALL=$ac_install_sh
2172 fi
2173 fi
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2175 $as_echo "$INSTALL" >&6; }
2176
2177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2178 # It thinks the first close brace ends the variable substitution.
2179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2180
2181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2182
2183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2184
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2186 $as_echo_n "checking whether build environment is sane... " >&6; }
2187 # Just in case
2188 sleep 1
2189 echo timestamp > conftest.file
2190 # Reject unsafe characters in $srcdir or the absolute working directory
2191 # name. Accept space and tab only in the latter.
2192 am_lf='
2193 '
2194 case `pwd` in
2195 *[\\\"\#\$\&\'\`$am_lf]*)
2196 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2197 esac
2198 case $srcdir in
2199 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2200 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2201 esac
2202
2203 # Do `set' in a subshell so we don't clobber the current shell's
2204 # arguments. Must try -L first in case configure is actually a
2205 # symlink; some systems play weird games with the mod time of symlinks
2206 # (eg FreeBSD returns the mod time of the symlink's containing
2207 # directory).
2208 if (
2209 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2210 if test "$*" = "X"; then
2211 # -L didn't work.
2212 set X `ls -t "$srcdir/configure" conftest.file`
2213 fi
2214 rm -f conftest.file
2215 if test "$*" != "X $srcdir/configure conftest.file" \
2216 && test "$*" != "X conftest.file $srcdir/configure"; then
2217
2218 # If neither matched, then we have a broken ls. This can happen
2219 # if, for instance, CONFIG_SHELL is bash and it inherits a
2220 # broken ls alias from the environment. This has actually
2221 # happened. Such a system could not be considered "sane".
2222 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2223 alias in your environment" "$LINENO" 5
2224 fi
2225
2226 test "$2" = conftest.file
2227 )
2228 then
2229 # Ok.
2230 :
2231 else
2232 as_fn_error $? "newly created file is older than distributed files!
2233 Check your system clock" "$LINENO" 5
2234 fi
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2236 $as_echo "yes" >&6; }
2237 test "$program_prefix" != NONE &&
2238 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2239 # Use a double $ so make ignores it.
2240 test "$program_suffix" != NONE &&
2241 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2242 # Double any \ or $.
2243 # By default was `s,x,x', remove it if useless.
2244 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2245 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2246
2247 # expand $ac_aux_dir to an absolute path
2248 am_aux_dir=`cd $ac_aux_dir && pwd`
2249
2250 if test x"${MISSING+set}" != xset; then
2251 case $am_aux_dir in
2252 *\ * | *\ *)
2253 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2254 *)
2255 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2256 esac
2257 fi
2258 # Use eval to expand $SHELL
2259 if eval "$MISSING --run true"; then
2260 am_missing_run="$MISSING --run "
2261 else
2262 am_missing_run=
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2264 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2265 fi
2266
2267 if test x"${install_sh}" != xset; then
2268 case $am_aux_dir in
2269 *\ * | *\ *)
2270 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2271 *)
2272 install_sh="\${SHELL} $am_aux_dir/install-sh"
2273 esac
2274 fi
2275
2276 # Installed binaries are usually stripped using `strip' when the user
2277 # run `make install-strip'. However `strip' might not be the right
2278 # tool to use in cross-compilation environments, therefore Automake
2279 # will honor the `STRIP' environment variable to overrule this program.
2280 if test "$cross_compiling" != no; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}strip; ac_word=$2
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2285 $as_echo_n "checking for $ac_word... " >&6; }
2286 if ${ac_cv_prog_STRIP+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 if test -n "$STRIP"; then
2290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2302 fi
2303 done
2304 done
2305 IFS=$as_save_IFS
2306
2307 fi
2308 fi
2309 STRIP=$ac_cv_prog_STRIP
2310 if test -n "$STRIP"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2312 $as_echo "$STRIP" >&6; }
2313 else
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2315 $as_echo "no" >&6; }
2316 fi
2317
2318
2319 fi
2320 if test -z "$ac_cv_prog_STRIP"; then
2321 ac_ct_STRIP=$STRIP
2322 # Extract the first word of "strip", so it can be a program name with args.
2323 set dummy strip; ac_word=$2
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 if test -n "$ac_ct_STRIP"; then
2330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_ac_ct_STRIP="strip"
2340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2350 if test -n "$ac_ct_STRIP"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2352 $as_echo "$ac_ct_STRIP" >&6; }
2353 else
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2355 $as_echo "no" >&6; }
2356 fi
2357
2358 if test "x$ac_ct_STRIP" = x; then
2359 STRIP=":"
2360 else
2361 case $cross_compiling:$ac_tool_warned in
2362 yes:)
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2365 ac_tool_warned=yes ;;
2366 esac
2367 STRIP=$ac_ct_STRIP
2368 fi
2369 else
2370 STRIP="$ac_cv_prog_STRIP"
2371 fi
2372
2373 fi
2374 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2375
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2377 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2378 if test -z "$MKDIR_P"; then
2379 if ${ac_cv_path_mkdir+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_prog in mkdir gmkdir; do
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2390 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2391 'mkdir (GNU coreutils) '* | \
2392 'mkdir (coreutils) '* | \
2393 'mkdir (fileutils) '4.1*)
2394 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2395 break 3;;
2396 esac
2397 done
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403
2404 test -d ./--version && rmdir ./--version
2405 if test "${ac_cv_path_mkdir+set}" = set; then
2406 MKDIR_P="$ac_cv_path_mkdir -p"
2407 else
2408 # As a last resort, use the slow shell script. Don't cache a
2409 # value for MKDIR_P within a source directory, because that will
2410 # break other packages using the cache if that directory is
2411 # removed, or if the value is a relative name.
2412 MKDIR_P="$ac_install_sh -d"
2413 fi
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2416 $as_echo "$MKDIR_P" >&6; }
2417
2418 mkdir_p="$MKDIR_P"
2419 case $mkdir_p in
2420 [\\/$]* | ?:[\\/]*) ;;
2421 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2422 esac
2423
2424 for ac_prog in gawk mawk nawk awk
2425 do
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if ${ac_cv_prog_AWK+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 if test -n "$AWK"; then
2434 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_AWK="$ac_prog"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 AWK=$ac_cv_prog_AWK
2454 if test -n "$AWK"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2456 $as_echo "$AWK" >&6; }
2457 else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2460 fi
2461
2462
2463 test -n "$AWK" && break
2464 done
2465
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2467 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2468 set x ${MAKE-make}
2469 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2470 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 cat >conftest.make <<\_ACEOF
2474 SHELL = /bin/sh
2475 all:
2476 @echo '@@@%%%=$(MAKE)=@@@%%%'
2477 _ACEOF
2478 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2479 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2480 *@@@%%%=?*=@@@%%%*)
2481 eval ac_cv_prog_make_${ac_make}_set=yes;;
2482 *)
2483 eval ac_cv_prog_make_${ac_make}_set=no;;
2484 esac
2485 rm -f conftest.make
2486 fi
2487 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2489 $as_echo "yes" >&6; }
2490 SET_MAKE=
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 SET_MAKE="MAKE=${MAKE-make}"
2495 fi
2496
2497 rm -rf .tst 2>/dev/null
2498 mkdir .tst 2>/dev/null
2499 if test -d .tst; then
2500 am__leading_dot=.
2501 else
2502 am__leading_dot=_
2503 fi
2504 rmdir .tst 2>/dev/null
2505
2506 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2507 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2508 # is not polluted with repeated "-I."
2509 am__isrc=' -I$(srcdir)'
2510 # test to see if srcdir already configured
2511 if test -f $srcdir/config.status; then
2512 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2513 fi
2514 fi
2515
2516 # test whether we have cygpath
2517 if test -z "$CYGPATH_W"; then
2518 if (cygpath --version) >/dev/null 2>/dev/null; then
2519 CYGPATH_W='cygpath -w'
2520 else
2521 CYGPATH_W=echo
2522 fi
2523 fi
2524
2525
2526 # Define the identity of the package.
2527 PACKAGE='mkfontdir'
2528 VERSION='1.0.7'
2529
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE "$PACKAGE"
2533 _ACEOF
2534
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define VERSION "$VERSION"
2538 _ACEOF
2539
2540 # Some tools Automake needs.
2541
2542 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2543
2544
2545 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2546
2547
2548 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2549
2550
2551 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2552
2553
2554 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2555
2556 # We need awk for the "check" target. The system "awk" is bad on
2557 # some platforms.
2558 # Always define AMTAR for backward compatibility.
2559
2560 AMTAR=${AMTAR-"${am_missing_run}tar"}
2561
2562 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2563
2564
2565
2566
2567
2568
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2570 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2571 # Check whether --enable-maintainer-mode was given.
2572 if test "${enable_maintainer_mode+set}" = set; then :
2573 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2574 else
2575 USE_MAINTAINER_MODE=no
2576 fi
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2579 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2580 if test $USE_MAINTAINER_MODE = yes; then
2581 MAINTAINER_MODE_TRUE=
2582 MAINTAINER_MODE_FALSE='#'
2583 else
2584 MAINTAINER_MODE_TRUE='#'
2585 MAINTAINER_MODE_FALSE=
2586 fi
2587
2588 MAINT=$MAINTAINER_MODE_TRUE
2589
2590
2591
2592 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604 DEPDIR="${am__leading_dot}deps"
2605
2606 ac_config_commands="$ac_config_commands depfiles"
2607
2608
2609 am_make=${MAKE-make}
2610 cat > confinc << 'END'
2611 am__doit:
2612 @echo this is the am__doit target
2613 .PHONY: am__doit
2614 END
2615 # If we don't find an include directive, just comment out the code.
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2617 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2618 am__include="#"
2619 am__quote=
2620 _am_result=none
2621 # First try GNU make style include.
2622 echo "include confinc" > confmf
2623 # Ignore all kinds of additional output from `make'.
2624 case `$am_make -s -f confmf 2> /dev/null` in #(
2625 *the\ am__doit\ target*)
2626 am__include=include
2627 am__quote=
2628 _am_result=GNU
2629 ;;
2630 esac
2631 # Now try BSD make style include.
2632 if test "$am__include" = "#"; then
2633 echo '.include "confinc"' > confmf
2634 case `$am_make -s -f confmf 2> /dev/null` in #(
2635 *the\ am__doit\ target*)
2636 am__include=.include
2637 am__quote="\""
2638 _am_result=BSD
2639 ;;
2640 esac
2641 fi
2642
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2645 $as_echo "$_am_result" >&6; }
2646 rm -f confinc confmf
2647
2648 # Check whether --enable-dependency-tracking was given.
2649 if test "${enable_dependency_tracking+set}" = set; then :
2650 enableval=$enable_dependency_tracking;
2651 fi
2652
2653 if test "x$enable_dependency_tracking" != xno; then
2654 am_depcomp="$ac_aux_dir/depcomp"
2655 AMDEPBACKSLASH='\'
2656 fi
2657 if test "x$enable_dependency_tracking" != xno; then
2658 AMDEP_TRUE=
2659 AMDEP_FALSE='#'
2660 else
2661 AMDEP_TRUE='#'
2662 AMDEP_FALSE=
2663 fi
2664
2665
2666 ac_ext=c
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708
2709 fi
2710 if test -z "$ac_cv_prog_CC"; then
2711 ac_ct_CC=$CC
2712 # Extract the first word of "gcc", so it can be a program name with args.
2713 set dummy gcc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$ac_ct_CC"; then
2720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_ac_ct_CC="gcc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740 if test -n "$ac_ct_CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742 $as_echo "$ac_ct_CC" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748 if test "x$ac_ct_CC" = x; then
2749 CC=""
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752 yes:)
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 ac_tool_warned=yes ;;
2756 esac
2757 CC=$ac_ct_CC
2758 fi
2759 else
2760 CC="$ac_cv_prog_CC"
2761 fi
2762
2763 if test -z "$CC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}cc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_CC+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CC="${ac_tool_prefix}cc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802 fi
2803 fi
2804 if test -z "$CC"; then
2805 # Extract the first word of "cc", so it can be a program name with args.
2806 set dummy cc; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_CC+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 else
2815 ac_prog_rejected=no
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2824 ac_prog_rejected=yes
2825 continue
2826 fi
2827 ac_cv_prog_CC="cc"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 if test $ac_prog_rejected = yes; then
2836 # We found a bogon in the path, so make sure we never use it.
2837 set dummy $ac_cv_prog_CC
2838 shift
2839 if test $# != 0; then
2840 # We chose a different compiler from the bogus one.
2841 # However, it has the same basename, so the bogon will be chosen
2842 # first if we set CC to just the basename; use the full file name.
2843 shift
2844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2845 fi
2846 fi
2847 fi
2848 fi
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859 fi
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 for ac_prog in cl.exe
2863 do
2864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_CC+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900
2901 test -n "$CC" && break
2902 done
2903 fi
2904 if test -z "$CC"; then
2905 ac_ct_CC=$CC
2906 for ac_prog in cl.exe
2907 do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_CC="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 test -n "$ac_ct_CC" && break
2946 done
2947
2948 if test "x$ac_ct_CC" = x; then
2949 CC=""
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957 CC=$ac_ct_CC
2958 fi
2959 fi
2960
2961 fi
2962
2963
2964 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error $? "no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details" "$LINENO" 5; }
2968
2969 # Provide some information about the compiler.
2970 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2971 set X $ac_compile
2972 ac_compiler=$2
2973 for ac_option in --version -v -V -qversion; do
2974 { { ac_try="$ac_compiler $ac_option >&5"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2982 ac_status=$?
2983 if test -s conftest.err; then
2984 sed '10a\
2985 ... rest of stderr output deleted ...
2986 10q' conftest.err >conftest.er1
2987 cat conftest.er1 >&5
2988 fi
2989 rm -f conftest.er1 conftest.err
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }
2992 done
2993
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
2996
2997 int
2998 main ()
2999 {
3000
3001 ;
3002 return 0;
3003 }
3004 _ACEOF
3005 ac_clean_files_save=$ac_clean_files
3006 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3007 # Try to create an executable without -o first, disregard a.out.
3008 # It will help us diagnose broken compilers, and finding out an intuition
3009 # of exeext.
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3011 $as_echo_n "checking whether the C compiler works... " >&6; }
3012 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3013
3014 # The possible output files:
3015 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3016
3017 ac_rmfiles=
3018 for ac_file in $ac_files
3019 do
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3023 esac
3024 done
3025 rm -f $ac_rmfiles
3026
3027 if { { ac_try="$ac_link_default"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link_default") 2>&5
3035 ac_status=$?
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3039 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3040 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3041 # so that the user can short-circuit this test for compilers unknown to
3042 # Autoconf.
3043 for ac_file in $ac_files ''
3044 do
3045 test -f "$ac_file" || continue
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3048 ;;
3049 [ab].out )
3050 # We found the default executable, but exeext='' is most
3051 # certainly right.
3052 break;;
3053 *.* )
3054 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3055 then :; else
3056 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3057 fi
3058 # We set ac_cv_exeext here because the later test for it is not
3059 # safe: cross compilers may not add the suffix if given an `-o'
3060 # argument, so we may need to know it at that point already.
3061 # Even if this section looks crufty: it has the advantage of
3062 # actually working.
3063 break;;
3064 * )
3065 break;;
3066 esac
3067 done
3068 test "$ac_cv_exeext" = no && ac_cv_exeext=
3069
3070 else
3071 ac_file=''
3072 fi
3073 if test -z "$ac_file"; then :
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 $as_echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error 77 "C compiler cannot create executables
3082 See \`config.log' for more details" "$LINENO" 5; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3086 fi
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3088 $as_echo_n "checking for C compiler default output file name... " >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3090 $as_echo "$ac_file" >&6; }
3091 ac_exeext=$ac_cv_exeext
3092
3093 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3094 ac_clean_files=$ac_clean_files_save
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3096 $as_echo_n "checking for suffix of executables... " >&6; }
3097 if { { ac_try="$ac_link"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3111 # `rm'.
3112 for ac_file in conftest.exe conftest conftest.*; do
3113 test -f "$ac_file" || continue
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 break;;
3118 * ) break;;
3119 esac
3120 done
3121 else
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details" "$LINENO" 5; }
3126 fi
3127 rm -f conftest conftest$ac_cv_exeext
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3129 $as_echo "$ac_cv_exeext" >&6; }
3130
3131 rm -f conftest.$ac_ext
3132 EXEEXT=$ac_cv_exeext
3133 ac_exeext=$EXEEXT
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3136 #include <stdio.h>
3137 int
3138 main ()
3139 {
3140 FILE *f = fopen ("conftest.out", "w");
3141 return ferror (f) || fclose (f) != 0;
3142
3143 ;
3144 return 0;
3145 }
3146 _ACEOF
3147 ac_clean_files="$ac_clean_files conftest.out"
3148 # Check that the compiler produces executables we can run. If not, either
3149 # the compiler is broken, or we cross compile.
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3151 $as_echo_n "checking whether we are cross compiling... " >&6; }
3152 if test "$cross_compiling" != yes; then
3153 { { ac_try="$ac_link"
3154 case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_link") 2>&5
3161 ac_status=$?
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }
3164 if { ac_try='./conftest$ac_cv_exeext'
3165 { { case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; }; then
3175 cross_compiling=no
3176 else
3177 if test "$cross_compiling" = maybe; then
3178 cross_compiling=yes
3179 else
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot run C compiled programs.
3183 If you meant to cross compile, use \`--host'.
3184 See \`config.log' for more details" "$LINENO" 5; }
3185 fi
3186 fi
3187 fi
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3189 $as_echo "$cross_compiling" >&6; }
3190
3191 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3192 ac_clean_files=$ac_clean_files_save
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3194 $as_echo_n "checking for suffix of object files... " >&6; }
3195 if ${ac_cv_objext+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3200
3201 int
3202 main ()
3203 {
3204
3205 ;
3206 return 0;
3207 }
3208 _ACEOF
3209 rm -f conftest.o conftest.obj
3210 if { { ac_try="$ac_compile"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compile") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 for ac_file in conftest.o conftest.obj conftest.*; do
3222 test -f "$ac_file" || continue;
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3226 break;;
3227 esac
3228 done
3229 else
3230 $as_echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of object files: cannot compile
3236 See \`config.log' for more details" "$LINENO" 5; }
3237 fi
3238 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3241 $as_echo "$ac_cv_objext" >&6; }
3242 OBJEXT=$ac_cv_objext
3243 ac_objext=$OBJEXT
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3245 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3246 if ${ac_cv_c_compiler_gnu+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255 #ifndef __GNUC__
3256 choke me
3257 #endif
3258
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264 ac_compiler_gnu=yes
3265 else
3266 ac_compiler_gnu=no
3267 fi
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3270
3271 fi
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3273 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3274 if test $ac_compiler_gnu = yes; then
3275 GCC=yes
3276 else
3277 GCC=
3278 fi
3279 ac_test_CFLAGS=${CFLAGS+set}
3280 ac_save_CFLAGS=$CFLAGS
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3282 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3283 if ${ac_cv_prog_cc_g+:} false; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 ac_save_c_werror_flag=$ac_c_werror_flag
3287 ac_c_werror_flag=yes
3288 ac_cv_prog_cc_g=no
3289 CFLAGS="-g"
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3292
3293 int
3294 main ()
3295 {
3296
3297 ;
3298 return 0;
3299 }
3300 _ACEOF
3301 if ac_fn_c_try_compile "$LINENO"; then :
3302 ac_cv_prog_cc_g=yes
3303 else
3304 CFLAGS=""
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3307
3308 int
3309 main ()
3310 {
3311
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 if ac_fn_c_try_compile "$LINENO"; then :
3317
3318 else
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3320 CFLAGS="-g"
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3323
3324 int
3325 main ()
3326 {
3327
3328 ;
3329 return 0;
3330 }
3331 _ACEOF
3332 if ac_fn_c_try_compile "$LINENO"; then :
3333 ac_cv_prog_cc_g=yes
3334 fi
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 ac_c_werror_flag=$ac_save_c_werror_flag
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3343 $as_echo "$ac_cv_prog_cc_g" >&6; }
3344 if test "$ac_test_CFLAGS" = set; then
3345 CFLAGS=$ac_save_CFLAGS
3346 elif test $ac_cv_prog_cc_g = yes; then
3347 if test "$GCC" = yes; then
3348 CFLAGS="-g -O2"
3349 else
3350 CFLAGS="-g"
3351 fi
3352 else
3353 if test "$GCC" = yes; then
3354 CFLAGS="-O2"
3355 else
3356 CFLAGS=
3357 fi
3358 fi
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3360 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3361 if ${ac_cv_prog_cc_c89+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 ac_cv_prog_cc_c89=no
3365 ac_save_CC=$CC
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368 #include <stdarg.h>
3369 #include <stdio.h>
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3376 char **p;
3377 int i;
3378 {
3379 return p[i];
3380 }
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3382 {
3383 char *s;
3384 va_list v;
3385 va_start (v,p);
3386 s = g (p, va_arg (v,int));
3387 va_end (v);
3388 return s;
3389 }
3390
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401 inside strings and character constants. */
3402 #define FOO(x) 'x'
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3411 int
3412 main ()
3413 {
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 do
3422 CC="$ac_save_CC $ac_arg"
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_c89=$ac_arg
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext
3427 test "x$ac_cv_prog_cc_c89" != "xno" && break
3428 done
3429 rm -f conftest.$ac_ext
3430 CC=$ac_save_CC
3431
3432 fi
3433 # AC_CACHE_VAL
3434 case "x$ac_cv_prog_cc_c89" in
3435 x)
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3437 $as_echo "none needed" >&6; } ;;
3438 xno)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3440 $as_echo "unsupported" >&6; } ;;
3441 *)
3442 CC="$CC $ac_cv_prog_cc_c89"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3445 esac
3446 if test "x$ac_cv_prog_cc_c89" != xno; then :
3447
3448 fi
3449
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456 depcc="$CC" am_compiler_list=
3457
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3459 $as_echo_n "checking dependency style of $depcc... " >&6; }
3460 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3464 # We make a subdir and do the tests there. Otherwise we can end up
3465 # making bogus files that we don't know about and never remove. For
3466 # instance it was reported that on HP-UX the gcc test will end up
3467 # making a dummy file named `D' -- because `-MD' means `put the output
3468 # in D'.
3469 mkdir conftest.dir
3470 # Copy depcomp to subdir because otherwise we won't find it if we're
3471 # using a relative directory.
3472 cp "$am_depcomp" conftest.dir
3473 cd conftest.dir
3474 # We will build objects and dependencies in a subdirectory because
3475 # it helps to detect inapplicable dependency modes. For instance
3476 # both Tru64's cc and ICC support -MD to output dependencies as a
3477 # side effect of compilation, but ICC will put the dependencies in
3478 # the current directory while Tru64 will put them in the object
3479 # directory.
3480 mkdir sub
3481
3482 am_cv_CC_dependencies_compiler_type=none
3483 if test "$am_compiler_list" = ""; then
3484 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3485 fi
3486 am__universal=false
3487 case " $depcc " in #(
3488 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3489 esac
3490
3491 for depmode in $am_compiler_list; do
3492 # Setup a source with many dependencies, because some compilers
3493 # like to wrap large dependency lists on column 80 (with \), and
3494 # we should not choose a depcomp mode which is confused by this.
3495 #
3496 # We need to recreate these files for each test, as the compiler may
3497 # overwrite some of them when testing with obscure command lines.
3498 # This happens at least with the AIX C compiler.
3499 : > sub/conftest.c
3500 for i in 1 2 3 4 5 6; do
3501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3502 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3503 # Solaris 8's {/usr,}/bin/sh.
3504 touch sub/conftst$i.h
3505 done
3506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3507
3508 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3509 # mode. It turns out that the SunPro C++ compiler does not properly
3510 # handle `-M -o', and we need to detect this. Also, some Intel
3511 # versions had trouble with output in subdirs
3512 am__obj=sub/conftest.${OBJEXT-o}
3513 am__minus_obj="-o $am__obj"
3514 case $depmode in
3515 gcc)
3516 # This depmode causes a compiler race in universal mode.
3517 test "$am__universal" = false || continue
3518 ;;
3519 nosideeffect)
3520 # after this tag, mechanisms are not by side-effect, so they'll
3521 # only be used when explicitly requested
3522 if test "x$enable_dependency_tracking" = xyes; then
3523 continue
3524 else
3525 break
3526 fi
3527 ;;
3528 msvisualcpp | msvcmsys)
3529 # This compiler won't grok `-c -o', but also, the minuso test has
3530 # not run yet. These depmodes are late enough in the game, and
3531 # so weak that their functioning should not be impacted.
3532 am__obj=conftest.${OBJEXT-o}
3533 am__minus_obj=
3534 ;;
3535 none) break ;;
3536 esac
3537 if depmode=$depmode \
3538 source=sub/conftest.c object=$am__obj \
3539 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3540 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3541 >/dev/null 2>conftest.err &&
3542 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3544 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3546 # icc doesn't choke on unknown options, it will just issue warnings
3547 # or remarks (even with -Werror). So we grep stderr for any message
3548 # that says an option was ignored or not supported.
3549 # When given -MP, icc 7.0 and 7.1 complain thusly:
3550 # icc: Command line warning: ignoring option '-M'; no argument required
3551 # The diagnosis changed in icc 8.0:
3552 # icc: Command line remark: option '-MP' not supported
3553 if (grep 'ignoring option' conftest.err ||
3554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3555 am_cv_CC_dependencies_compiler_type=$depmode
3556 break
3557 fi
3558 fi
3559 done
3560
3561 cd ..
3562 rm -rf conftest.dir
3563 else
3564 am_cv_CC_dependencies_compiler_type=none
3565 fi
3566
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3569 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3570 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3571
3572 if
3573 test "x$enable_dependency_tracking" != xno \
3574 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3575 am__fastdepCC_TRUE=
3576 am__fastdepCC_FALSE='#'
3577 else
3578 am__fastdepCC_TRUE='#'
3579 am__fastdepCC_FALSE=
3580 fi
3581
3582
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3584 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3585 if ${ac_cv_prog_cc_c99+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 ac_cv_prog_cc_c99=no
3589 ac_save_CC=$CC
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <stdarg.h>
3593 #include <stdbool.h>
3594 #include <stdlib.h>
3595 #include <wchar.h>
3596 #include <stdio.h>
3597
3598 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3599 #define debug(...) fprintf (stderr, __VA_ARGS__)
3600 #define showlist(...) puts (#__VA_ARGS__)
3601 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3602 static void
3603 test_varargs_macros (void)
3604 {
3605 int x = 1234;
3606 int y = 5678;
3607 debug ("Flag");
3608 debug ("X = %d\n", x);
3609 showlist (The first, second, and third items.);
3610 report (x>y, "x is %d but y is %d", x, y);
3611 }
3612
3613 // Check long long types.
3614 #define BIG64 18446744073709551615ull
3615 #define BIG32 4294967295ul
3616 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3617 #if !BIG_OK
3618 your preprocessor is broken;
3619 #endif
3620 #if BIG_OK
3621 #else
3622 your preprocessor is broken;
3623 #endif
3624 static long long int bignum = -9223372036854775807LL;
3625 static unsigned long long int ubignum = BIG64;
3626
3627 struct incomplete_array
3628 {
3629 int datasize;
3630 double data[];
3631 };
3632
3633 struct named_init {
3634 int number;
3635 const wchar_t *name;
3636 double average;
3637 };
3638
3639 typedef const char *ccp;
3640
3641 static inline int
3642 test_restrict (ccp restrict text)
3643 {
3644 // See if C++-style comments work.
3645 // Iterate through items via the restricted pointer.
3646 // Also check for declarations in for loops.
3647 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3648 continue;
3649 return 0;
3650 }
3651
3652 // Check varargs and va_copy.
3653 static void
3654 test_varargs (const char *format, ...)
3655 {
3656 va_list args;
3657 va_start (args, format);
3658 va_list args_copy;
3659 va_copy (args_copy, args);
3660
3661 const char *str;
3662 int number;
3663 float fnumber;
3664
3665 while (*format)
3666 {
3667 switch (*format++)
3668 {
3669 case 's': // string
3670 str = va_arg (args_copy, const char *);
3671 break;
3672 case 'd': // int
3673 number = va_arg (args_copy, int);
3674 break;
3675 case 'f': // float
3676 fnumber = va_arg (args_copy, double);
3677 break;
3678 default:
3679 break;
3680 }
3681 }
3682 va_end (args_copy);
3683 va_end (args);
3684 }
3685
3686 int
3687 main ()
3688 {
3689
3690 // Check bool.
3691 _Bool success = false;
3692
3693 // Check restrict.
3694 if (test_restrict ("String literal") == 0)
3695 success = true;
3696 char *restrict newvar = "Another string";
3697
3698 // Check varargs.
3699 test_varargs ("s, d' f .", "string", 65, 34.234);
3700 test_varargs_macros ();
3701
3702 // Check flexible array members.
3703 struct incomplete_array *ia =
3704 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3705 ia->datasize = 10;
3706 for (int i = 0; i < ia->datasize; ++i)
3707 ia->data[i] = i * 1.234;
3708
3709 // Check named initializers.
3710 struct named_init ni = {
3711 .number = 34,
3712 .name = L"Test wide string",
3713 .average = 543.34343,
3714 };
3715
3716 ni.number = 58;
3717
3718 int dynamic_array[ni.number];
3719 dynamic_array[ni.number - 1] = 543;
3720
3721 // work around unused variable warnings
3722 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3723 || dynamic_array[ni.number - 1] != 543);
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3730 do
3731 CC="$ac_save_CC $ac_arg"
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_cv_prog_cc_c99=$ac_arg
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext
3736 test "x$ac_cv_prog_cc_c99" != "xno" && break
3737 done
3738 rm -f conftest.$ac_ext
3739 CC=$ac_save_CC
3740
3741 fi
3742 # AC_CACHE_VAL
3743 case "x$ac_cv_prog_cc_c99" in
3744 x)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3746 $as_echo "none needed" >&6; } ;;
3747 xno)
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3749 $as_echo "unsupported" >&6; } ;;
3750 *)
3751 CC="$CC $ac_cv_prog_cc_c99"
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3753 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3754 esac
3755 if test "x$ac_cv_prog_cc_c99" != xno; then :
3756
3757 fi
3758
3759
3760
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3767 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3768 # On Suns, sometimes $CPP names a directory.
3769 if test -n "$CPP" && test -d "$CPP"; then
3770 CPP=
3771 fi
3772 if test -z "$CPP"; then
3773 if ${ac_cv_prog_CPP+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 # Double quotes because CPP needs to be expanded
3777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3778 do
3779 ac_preproc_ok=false
3780 for ac_c_preproc_warn_flag in '' yes
3781 do
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error" is here to catch this case.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #ifdef __STDC__
3791 # include <limits.h>
3792 #else
3793 # include <assert.h>
3794 #endif
3795 Syntax error
3796 _ACEOF
3797 if ac_fn_c_try_cpp "$LINENO"; then :
3798
3799 else
3800 # Broken: fails on valid input.
3801 continue
3802 fi
3803 rm -f conftest.err conftest.i conftest.$ac_ext
3804
3805 # OK, works on sane cases. Now check whether nonexistent headers
3806 # can be detected and how.
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809 #include <ac_nonexistent.h>
3810 _ACEOF
3811 if ac_fn_c_try_cpp "$LINENO"; then :
3812 # Broken: success on invalid input.
3813 continue
3814 else
3815 # Passes both tests.
3816 ac_preproc_ok=:
3817 break
3818 fi
3819 rm -f conftest.err conftest.i conftest.$ac_ext
3820
3821 done
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.i conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then :
3825 break
3826 fi
3827
3828 done
3829 ac_cv_prog_CPP=$CPP
3830
3831 fi
3832 CPP=$ac_cv_prog_CPP
3833 else
3834 ac_cv_prog_CPP=$CPP
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3837 $as_echo "$CPP" >&6; }
3838 ac_preproc_ok=false
3839 for ac_c_preproc_warn_flag in '' yes
3840 do
3841 # Use a header file that comes with gcc, so configuring glibc
3842 # with a fresh cross-compiler works.
3843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3844 # <limits.h> exists even on freestanding compilers.
3845 # On the NeXT, cc -E runs the code through the compiler's parser,
3846 # not just through cpp. "Syntax error" is here to catch this case.
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #ifdef __STDC__
3850 # include <limits.h>
3851 #else
3852 # include <assert.h>
3853 #endif
3854 Syntax error
3855 _ACEOF
3856 if ac_fn_c_try_cpp "$LINENO"; then :
3857
3858 else
3859 # Broken: fails on valid input.
3860 continue
3861 fi
3862 rm -f conftest.err conftest.i conftest.$ac_ext
3863
3864 # OK, works on sane cases. Now check whether nonexistent headers
3865 # can be detected and how.
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #include <ac_nonexistent.h>
3869 _ACEOF
3870 if ac_fn_c_try_cpp "$LINENO"; then :
3871 # Broken: success on invalid input.
3872 continue
3873 else
3874 # Passes both tests.
3875 ac_preproc_ok=:
3876 break
3877 fi
3878 rm -f conftest.err conftest.i conftest.$ac_ext
3879
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.i conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then :
3884
3885 else
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details" "$LINENO" 5; }
3890 fi
3891
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
3898
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3900 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3901 if ${ac_cv_path_GREP+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 if test -z "$GREP"; then
3905 ac_path_GREP_found=false
3906 # Loop through the user's path and test for each of PROGNAME-LIST
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909 do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_prog in grep ggrep; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3915 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3916 # Check for GNU ac_path_GREP and select it if it is found.
3917 # Check for GNU $ac_path_GREP
3918 case `"$ac_path_GREP" --version 2>&1` in
3919 *GNU*)
3920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3921 *)
3922 ac_count=0
3923 $as_echo_n 0123456789 >"conftest.in"
3924 while :
3925 do
3926 cat "conftest.in" "conftest.in" >"conftest.tmp"
3927 mv "conftest.tmp" "conftest.in"
3928 cp "conftest.in" "conftest.nl"
3929 $as_echo 'GREP' >> "conftest.nl"
3930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932 as_fn_arith $ac_count + 1 && ac_count=$as_val
3933 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3934 # Best one so far, save it but keep looking for a better one
3935 ac_cv_path_GREP="$ac_path_GREP"
3936 ac_path_GREP_max=$ac_count
3937 fi
3938 # 10*(2^10) chars as input seems more than enough
3939 test $ac_count -gt 10 && break
3940 done
3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942 esac
3943
3944 $ac_path_GREP_found && break 3
3945 done
3946 done
3947 done
3948 IFS=$as_save_IFS
3949 if test -z "$ac_cv_path_GREP"; then
3950 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3951 fi
3952 else
3953 ac_cv_path_GREP=$GREP
3954 fi
3955
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3958 $as_echo "$ac_cv_path_GREP" >&6; }
3959 GREP="$ac_cv_path_GREP"
3960
3961
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3963 $as_echo_n "checking for egrep... " >&6; }
3964 if ${ac_cv_path_EGREP+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968 then ac_cv_path_EGREP="$GREP -E"
3969 else
3970 if test -z "$EGREP"; then
3971 ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in egrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982 # Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3985 *GNU*)
3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987 *)
3988 ac_count=0
3989 $as_echo_n 0123456789 >"conftest.in"
3990 while :
3991 do
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 $as_echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 as_fn_arith $ac_count + 1 && ac_count=$as_val
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP="$ac_path_EGREP"
4002 ac_path_EGREP_max=$ac_count
4003 fi
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4006 done
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 esac
4009
4010 $ac_path_EGREP_found && break 3
4011 done
4012 done
4013 done
4014 IFS=$as_save_IFS
4015 if test -z "$ac_cv_path_EGREP"; then
4016 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4017 fi
4018 else
4019 ac_cv_path_EGREP=$EGREP
4020 fi
4021
4022 fi
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4025 $as_echo "$ac_cv_path_EGREP" >&6; }
4026 EGREP="$ac_cv_path_EGREP"
4027
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4030 $as_echo_n "checking for ANSI C header files... " >&6; }
4031 if ${ac_cv_header_stdc+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <stdlib.h>
4037 #include <stdarg.h>
4038 #include <string.h>
4039 #include <float.h>
4040
4041 int
4042 main ()
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_header_stdc=yes
4051 else
4052 ac_cv_header_stdc=no
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055
4056 if test $ac_cv_header_stdc = yes; then
4057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <string.h>
4061
4062 _ACEOF
4063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4064 $EGREP "memchr" >/dev/null 2>&1; then :
4065
4066 else
4067 ac_cv_header_stdc=no
4068 fi
4069 rm -f conftest*
4070
4071 fi
4072
4073 if test $ac_cv_header_stdc = yes; then
4074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077 #include <stdlib.h>
4078
4079 _ACEOF
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081 $EGREP "free" >/dev/null 2>&1; then :
4082
4083 else
4084 ac_cv_header_stdc=no
4085 fi
4086 rm -f conftest*
4087
4088 fi
4089
4090 if test $ac_cv_header_stdc = yes; then
4091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4092 if test "$cross_compiling" = yes; then :
4093 :
4094 else
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #include <ctype.h>
4098 #include <stdlib.h>
4099 #if ((' ' & 0x0FF) == 0x020)
4100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4102 #else
4103 # define ISLOWER(c) \
4104 (('a' <= (c) && (c) <= 'i') \
4105 || ('j' <= (c) && (c) <= 'r') \
4106 || ('s' <= (c) && (c) <= 'z'))
4107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4108 #endif
4109
4110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4111 int
4112 main ()
4113 {
4114 int i;
4115 for (i = 0; i < 256; i++)
4116 if (XOR (islower (i), ISLOWER (i))
4117 || toupper (i) != TOUPPER (i))
4118 return 2;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_run "$LINENO"; then :
4123
4124 else
4125 ac_cv_header_stdc=no
4126 fi
4127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4128 conftest.$ac_objext conftest.beam conftest.$ac_ext
4129 fi
4130
4131 fi
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4134 $as_echo "$ac_cv_header_stdc" >&6; }
4135 if test $ac_cv_header_stdc = yes; then
4136
4137 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4138
4139 fi
4140
4141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4143 inttypes.h stdint.h unistd.h
4144 do :
4145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4146 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4147 "
4148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4149 cat >>confdefs.h <<_ACEOF
4150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4151 _ACEOF
4152
4153 fi
4154
4155 done
4156
4157
4158
4159
4160 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4161 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4162 CLANGCC="yes"
4163 else
4164 CLANGCC="no"
4165 fi
4166
4167 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4168 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4169 INTELCC="yes"
4170 else
4171 INTELCC="no"
4172 fi
4173
4174 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4175 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4176 SUNCC="yes"
4177 else
4178 SUNCC="no"
4179 fi
4180
4181
4182
4183
4184 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 case $PKG_CONFIG in
4194 [\\/]* | ?:[\\/]*)
4195 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4196 ;;
4197 *)
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 ;;
4214 esac
4215 fi
4216 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4217 if test -n "$PKG_CONFIG"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4219 $as_echo "$PKG_CONFIG" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225
4226 fi
4227 if test -z "$ac_cv_path_PKG_CONFIG"; then
4228 ac_pt_PKG_CONFIG=$PKG_CONFIG
4229 # Extract the first word of "pkg-config", so it can be a program name with args.
4230 set dummy pkg-config; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 case $ac_pt_PKG_CONFIG in
4237 [\\/]* | ?:[\\/]*)
4238 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4239 ;;
4240 *)
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252 done
4253 done
4254 IFS=$as_save_IFS
4255
4256 ;;
4257 esac
4258 fi
4259 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4260 if test -n "$ac_pt_PKG_CONFIG"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4262 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268 if test "x$ac_pt_PKG_CONFIG" = x; then
4269 PKG_CONFIG=""
4270 else
4271 case $cross_compiling:$ac_tool_warned in
4272 yes:)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4275 ac_tool_warned=yes ;;
4276 esac
4277 PKG_CONFIG=$ac_pt_PKG_CONFIG
4278 fi
4279 else
4280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4281 fi
4282
4283 fi
4284 if test -n "$PKG_CONFIG"; then
4285 _pkg_min_version=0.9.0
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4287 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4288 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4290 $as_echo "yes" >&6; }
4291 else
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4294 PKG_CONFIG=""
4295 fi
4296
4297 fi
4298 # Make sure we can run config.sub.
4299 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4300 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4301
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4303 $as_echo_n "checking build system type... " >&6; }
4304 if ${ac_cv_build+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 ac_build_alias=$build_alias
4308 test "x$ac_build_alias" = x &&
4309 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4310 test "x$ac_build_alias" = x &&
4311 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4312 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4314
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4317 $as_echo "$ac_cv_build" >&6; }
4318 case $ac_cv_build in
4319 *-*-*) ;;
4320 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4321 esac
4322 build=$ac_cv_build
4323 ac_save_IFS=$IFS; IFS='-'
4324 set x $ac_cv_build
4325 shift
4326 build_cpu=$1
4327 build_vendor=$2
4328 shift; shift
4329 # Remember, the first character of IFS is used to create $*,
4330 # except with old shells:
4331 build_os=$*
4332 IFS=$ac_save_IFS
4333 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4337 $as_echo_n "checking host system type... " >&6; }
4338 if ${ac_cv_host+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test "x$host_alias" = x; then
4342 ac_cv_host=$ac_cv_build
4343 else
4344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4346 fi
4347
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4350 $as_echo "$ac_cv_host" >&6; }
4351 case $ac_cv_host in
4352 *-*-*) ;;
4353 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4354 esac
4355 host=$ac_cv_host
4356 ac_save_IFS=$IFS; IFS='-'
4357 set x $ac_cv_host
4358 shift
4359 host_cpu=$1
4360 host_vendor=$2
4361 shift; shift
4362 # Remember, the first character of IFS is used to create $*,
4363 # except with old shells:
4364 host_os=$*
4365 IFS=$ac_save_IFS
4366 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4367
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4370 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4371 if ${ac_cv_path_SED+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4375 for ac_i in 1 2 3 4 5 6 7; do
4376 ac_script="$ac_script$as_nl$ac_script"
4377 done
4378 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4379 { ac_script=; unset ac_script;}
4380 if test -z "$SED"; then
4381 ac_path_SED_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in sed gsed; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4391 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4392 # Check for GNU ac_path_SED and select it if it is found.
4393 # Check for GNU $ac_path_SED
4394 case `"$ac_path_SED" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4397 *)
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo '' >> "conftest.nl"
4406 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_SED_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_SED="$ac_path_SED"
4412 ac_path_SED_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420 $ac_path_SED_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_SED"; then
4426 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4427 fi
4428 else
4429 ac_cv_path_SED=$SED
4430 fi
4431
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4434 $as_echo "$ac_cv_path_SED" >&6; }
4435 SED="$ac_cv_path_SED"
4436 rm -f conftest.sed
4437
4438
4439
4440
4441
4442
4443 # Check whether --enable-selective-werror was given.
4444 if test "${enable_selective_werror+set}" = set; then :
4445 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4446 else
4447 SELECTIVE_WERROR=yes
4448 fi
4449
4450
4451 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4452 if test "x$SUNCC" = "xyes"; then
4453 BASE_CFLAGS="-v"
4454 else
4455 BASE_CFLAGS=""
4456 fi
4457
4458 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4459
4460
4461
4462
4463
4464 xorg_testset_save_CFLAGS="$CFLAGS"
4465
4466 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4470 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475 int i;
4476 _ACEOF
4477 if ac_fn_c_try_compile "$LINENO"; then :
4478 xorg_cv_cc_flag_unknown_warning_option=yes
4479 else
4480 xorg_cv_cc_flag_unknown_warning_option=no
4481 fi
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4485 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4486 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4487 CFLAGS="$xorg_testset_save_CFLAGS"
4488 fi
4489
4490 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4493 fi
4494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4497 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 int i;
4503 _ACEOF
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 xorg_cv_cc_flag_unused_command_line_argument=yes
4506 else
4507 xorg_cv_cc_flag_unused_command_line_argument=no
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4512 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4513 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4514 CFLAGS="$xorg_testset_save_CFLAGS"
4515 fi
4516
4517 found="no"
4518
4519 if test $found = "no" ; then
4520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4522 fi
4523
4524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4526 fi
4527
4528 CFLAGS="$CFLAGS -Wall"
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4531 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4532 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4533 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 int i;
4539 int
4540 main ()
4541 {
4542
4543 ;
4544 return 0;
4545 }
4546 _ACEOF
4547 if ac_fn_c_try_link "$LINENO"; then :
4548 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4549 else
4550 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext \
4553 conftest$ac_exeext conftest.$ac_ext
4554 fi
4555
4556
4557 CFLAGS="$xorg_testset_save_CFLAGS"
4558
4559 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4561 $as_echo "$supported" >&6; }
4562 if test "$supported" = "yes" ; then
4563 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4564 found="yes"
4565 fi
4566 fi
4567
4568
4569
4570
4571
4572
4573
4574 xorg_testset_save_CFLAGS="$CFLAGS"
4575
4576 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4579 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4580 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 int i;
4586 _ACEOF
4587 if ac_fn_c_try_compile "$LINENO"; then :
4588 xorg_cv_cc_flag_unknown_warning_option=yes
4589 else
4590 xorg_cv_cc_flag_unknown_warning_option=no
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4595 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4596 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4597 CFLAGS="$xorg_testset_save_CFLAGS"
4598 fi
4599
4600 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4603 fi
4604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4606 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4607 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612 int i;
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 xorg_cv_cc_flag_unused_command_line_argument=yes
4616 else
4617 xorg_cv_cc_flag_unused_command_line_argument=no
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4622 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4623 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4624 CFLAGS="$xorg_testset_save_CFLAGS"
4625 fi
4626
4627 found="no"
4628
4629 if test $found = "no" ; then
4630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4632 fi
4633
4634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4636 fi
4637
4638 CFLAGS="$CFLAGS -Wpointer-arith"
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4641 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4642 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4643 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 int i;
4649 int
4650 main ()
4651 {
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_c_try_link "$LINENO"; then :
4658 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4659 else
4660 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext \
4663 conftest$ac_exeext conftest.$ac_ext
4664 fi
4665
4666
4667 CFLAGS="$xorg_testset_save_CFLAGS"
4668
4669 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4671 $as_echo "$supported" >&6; }
4672 if test "$supported" = "yes" ; then
4673 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4674 found="yes"
4675 fi
4676 fi
4677
4678
4679
4680
4681
4682
4683
4684 xorg_testset_save_CFLAGS="$CFLAGS"
4685
4686 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4690 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
4699 else
4700 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
4705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4706 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4707 CFLAGS="$xorg_testset_save_CFLAGS"
4708 fi
4709
4710 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4711 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4713 fi
4714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 int i;
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 xorg_cv_cc_flag_unused_command_line_argument=yes
4726 else
4727 xorg_cv_cc_flag_unused_command_line_argument=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4733 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4734 CFLAGS="$xorg_testset_save_CFLAGS"
4735 fi
4736
4737 found="no"
4738
4739 if test $found = "no" ; then
4740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4742 fi
4743
4744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4746 fi
4747
4748 CFLAGS="$CFLAGS -Wstrict-prototypes"
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4751 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4752 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4753 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 int i;
4759 int
4760 main ()
4761 {
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_link "$LINENO"; then :
4768 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4769 else
4770 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext \
4773 conftest$ac_exeext conftest.$ac_ext
4774 fi
4775
4776
4777 CFLAGS="$xorg_testset_save_CFLAGS"
4778
4779 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4781 $as_echo "$supported" >&6; }
4782 if test "$supported" = "yes" ; then
4783 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4784 found="yes"
4785 fi
4786 fi
4787
4788
4789
4790
4791
4792
4793
4794 xorg_testset_save_CFLAGS="$CFLAGS"
4795
4796 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4800 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 int i;
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 xorg_cv_cc_flag_unknown_warning_option=yes
4809 else
4810 xorg_cv_cc_flag_unknown_warning_option=no
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4816 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4817 CFLAGS="$xorg_testset_save_CFLAGS"
4818 fi
4819
4820 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4823 fi
4824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 int i;
4833 _ACEOF
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835 xorg_cv_cc_flag_unused_command_line_argument=yes
4836 else
4837 xorg_cv_cc_flag_unused_command_line_argument=no
4838 fi
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4843 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4844 CFLAGS="$xorg_testset_save_CFLAGS"
4845 fi
4846
4847 found="no"
4848
4849 if test $found = "no" ; then
4850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852 fi
4853
4854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4856 fi
4857
4858 CFLAGS="$CFLAGS -Wmissing-prototypes"
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4861 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4862 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4863 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 int i;
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_c_try_link "$LINENO"; then :
4878 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4879 else
4880 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext \
4883 conftest$ac_exeext conftest.$ac_ext
4884 fi
4885
4886
4887 CFLAGS="$xorg_testset_save_CFLAGS"
4888
4889 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4891 $as_echo "$supported" >&6; }
4892 if test "$supported" = "yes" ; then
4893 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4894 found="yes"
4895 fi
4896 fi
4897
4898
4899
4900
4901
4902
4903
4904 xorg_testset_save_CFLAGS="$CFLAGS"
4905
4906 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 int i;
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 xorg_cv_cc_flag_unknown_warning_option=yes
4919 else
4920 xorg_cv_cc_flag_unknown_warning_option=no
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4926 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4927 CFLAGS="$xorg_testset_save_CFLAGS"
4928 fi
4929
4930 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933 fi
4934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 int i;
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 xorg_cv_cc_flag_unused_command_line_argument=yes
4946 else
4947 xorg_cv_cc_flag_unused_command_line_argument=no
4948 fi
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4953 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4954 CFLAGS="$xorg_testset_save_CFLAGS"
4955 fi
4956
4957 found="no"
4958
4959 if test $found = "no" ; then
4960 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4962 fi
4963
4964 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4966 fi
4967
4968 CFLAGS="$CFLAGS -Wmissing-declarations"
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4971 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4972 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
4973 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 int i;
4979 int
4980 main ()
4981 {
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 if ac_fn_c_try_link "$LINENO"; then :
4988 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4989 else
4990 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext \
4993 conftest$ac_exeext conftest.$ac_ext
4994 fi
4995
4996
4997 CFLAGS="$xorg_testset_save_CFLAGS"
4998
4999 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5001 $as_echo "$supported" >&6; }
5002 if test "$supported" = "yes" ; then
5003 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5004 found="yes"
5005 fi
5006 fi
5007
5008
5009
5010
5011
5012
5013
5014 xorg_testset_save_CFLAGS="$CFLAGS"
5015
5016 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 int i;
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 xorg_cv_cc_flag_unknown_warning_option=yes
5029 else
5030 xorg_cv_cc_flag_unknown_warning_option=no
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5036 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5037 CFLAGS="$xorg_testset_save_CFLAGS"
5038 fi
5039
5040 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5041 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043 fi
5044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 int i;
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055 xorg_cv_cc_flag_unused_command_line_argument=yes
5056 else
5057 xorg_cv_cc_flag_unused_command_line_argument=no
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5063 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5064 CFLAGS="$xorg_testset_save_CFLAGS"
5065 fi
5066
5067 found="no"
5068
5069 if test $found = "no" ; then
5070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5072 fi
5073
5074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076 fi
5077
5078 CFLAGS="$CFLAGS -Wnested-externs"
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5081 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5082 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5083 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 int i;
5089 int
5090 main ()
5091 {
5092
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 if ac_fn_c_try_link "$LINENO"; then :
5098 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5099 else
5100 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 fi
5105
5106
5107 CFLAGS="$xorg_testset_save_CFLAGS"
5108
5109 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5111 $as_echo "$supported" >&6; }
5112 if test "$supported" = "yes" ; then
5113 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5114 found="yes"
5115 fi
5116 fi
5117
5118
5119
5120
5121
5122
5123
5124 xorg_testset_save_CFLAGS="$CFLAGS"
5125
5126 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5129 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5130 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 int i;
5136 _ACEOF
5137 if ac_fn_c_try_compile "$LINENO"; then :
5138 xorg_cv_cc_flag_unknown_warning_option=yes
5139 else
5140 xorg_cv_cc_flag_unknown_warning_option=no
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5145 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5146 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5147 CFLAGS="$xorg_testset_save_CFLAGS"
5148 fi
5149
5150 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153 fi
5154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5157 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 int i;
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165 xorg_cv_cc_flag_unused_command_line_argument=yes
5166 else
5167 xorg_cv_cc_flag_unused_command_line_argument=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5172 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5173 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5174 CFLAGS="$xorg_testset_save_CFLAGS"
5175 fi
5176
5177 found="no"
5178
5179 if test $found = "no" ; then
5180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182 fi
5183
5184 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186 fi
5187
5188 CFLAGS="$CFLAGS -Wbad-function-cast"
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5191 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5192 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5193 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 int i;
5199 int
5200 main ()
5201 {
5202
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_c_try_link "$LINENO"; then :
5208 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5209 else
5210 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5214 fi
5215
5216
5217 CFLAGS="$xorg_testset_save_CFLAGS"
5218
5219 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5221 $as_echo "$supported" >&6; }
5222 if test "$supported" = "yes" ; then
5223 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5224 found="yes"
5225 fi
5226 fi
5227
5228
5229
5230
5231
5232
5233
5234 xorg_testset_save_CFLAGS="$CFLAGS"
5235
5236 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5239 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5240 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 int i;
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 xorg_cv_cc_flag_unknown_warning_option=yes
5249 else
5250 xorg_cv_cc_flag_unknown_warning_option=no
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5255 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5256 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5257 CFLAGS="$xorg_testset_save_CFLAGS"
5258 fi
5259
5260 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5263 fi
5264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5266 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5267 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 int i;
5273 _ACEOF
5274 if ac_fn_c_try_compile "$LINENO"; then :
5275 xorg_cv_cc_flag_unused_command_line_argument=yes
5276 else
5277 xorg_cv_cc_flag_unused_command_line_argument=no
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 fi
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5282 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5283 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5284 CFLAGS="$xorg_testset_save_CFLAGS"
5285 fi
5286
5287 found="no"
5288
5289 if test $found = "no" ; then
5290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5292 fi
5293
5294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5296 fi
5297
5298 CFLAGS="$CFLAGS -Wformat=2"
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5301 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5302 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5303 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 int i;
5309 int
5310 main ()
5311 {
5312
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_link "$LINENO"; then :
5318 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5319 else
5320 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5324 fi
5325
5326
5327 CFLAGS="$xorg_testset_save_CFLAGS"
5328
5329 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5331 $as_echo "$supported" >&6; }
5332 if test "$supported" = "yes" ; then
5333 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5334 found="yes"
5335 fi
5336 fi
5337
5338 if test $found = "no" ; then
5339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5341 fi
5342
5343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5345 fi
5346
5347 CFLAGS="$CFLAGS -Wformat"
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5350 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5351 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5352 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 int i;
5358 int
5359 main ()
5360 {
5361
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_link "$LINENO"; then :
5367 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5368 else
5369 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext \
5372 conftest$ac_exeext conftest.$ac_ext
5373 fi
5374
5375
5376 CFLAGS="$xorg_testset_save_CFLAGS"
5377
5378 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5380 $as_echo "$supported" >&6; }
5381 if test "$supported" = "yes" ; then
5382 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5383 found="yes"
5384 fi
5385 fi
5386
5387
5388
5389
5390
5391
5392
5393 xorg_testset_save_CFLAGS="$CFLAGS"
5394
5395 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5398 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5399 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 int i;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 xorg_cv_cc_flag_unknown_warning_option=yes
5408 else
5409 xorg_cv_cc_flag_unknown_warning_option=no
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5414 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5415 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5416 CFLAGS="$xorg_testset_save_CFLAGS"
5417 fi
5418
5419 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422 fi
5423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5425 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5426 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 int i;
5432 _ACEOF
5433 if ac_fn_c_try_compile "$LINENO"; then :
5434 xorg_cv_cc_flag_unused_command_line_argument=yes
5435 else
5436 xorg_cv_cc_flag_unused_command_line_argument=no
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5441 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5442 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5443 CFLAGS="$xorg_testset_save_CFLAGS"
5444 fi
5445
5446 found="no"
5447
5448 if test $found = "no" ; then
5449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451 fi
5452
5453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5455 fi
5456
5457 CFLAGS="$CFLAGS -Wold-style-definition"
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5460 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5461 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5462 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 int i;
5468 int
5469 main ()
5470 {
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_c_try_link "$LINENO"; then :
5477 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5478 else
5479 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext \
5482 conftest$ac_exeext conftest.$ac_ext
5483 fi
5484
5485
5486 CFLAGS="$xorg_testset_save_CFLAGS"
5487
5488 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5490 $as_echo "$supported" >&6; }
5491 if test "$supported" = "yes" ; then
5492 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5493 found="yes"
5494 fi
5495 fi
5496
5497
5498
5499
5500
5501
5502
5503 xorg_testset_save_CFLAGS="$CFLAGS"
5504
5505 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 int i;
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 xorg_cv_cc_flag_unknown_warning_option=yes
5518 else
5519 xorg_cv_cc_flag_unknown_warning_option=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 fi
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5525 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5526 CFLAGS="$xorg_testset_save_CFLAGS"
5527 fi
5528
5529 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532 fi
5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 int i;
5542 _ACEOF
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 xorg_cv_cc_flag_unused_command_line_argument=yes
5545 else
5546 xorg_cv_cc_flag_unused_command_line_argument=no
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5552 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5553 CFLAGS="$xorg_testset_save_CFLAGS"
5554 fi
5555
5556 found="no"
5557
5558 if test $found = "no" ; then
5559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561 fi
5562
5563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5565 fi
5566
5567 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5570 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5571 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5572 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 int i;
5578 int
5579 main ()
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_link "$LINENO"; then :
5587 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5588 else
5589 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5590 fi
5591 rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5593 fi
5594
5595
5596 CFLAGS="$xorg_testset_save_CFLAGS"
5597
5598 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5600 $as_echo "$supported" >&6; }
5601 if test "$supported" = "yes" ; then
5602 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5603 found="yes"
5604 fi
5605 fi
5606
5607
5608
5609 # This chunk adds additional warnings that could catch undesired effects.
5610
5611
5612
5613
5614
5615 xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 int i;
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 xorg_cv_cc_flag_unknown_warning_option=yes
5630 else
5631 xorg_cv_cc_flag_unknown_warning_option=no
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639 fi
5640
5641 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644 fi
5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 int i;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 xorg_cv_cc_flag_unused_command_line_argument=yes
5657 else
5658 xorg_cv_cc_flag_unused_command_line_argument=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5666 fi
5667
5668 found="no"
5669
5670 if test $found = "no" ; then
5671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 fi
5674
5675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677 fi
5678
5679 CFLAGS="$CFLAGS -Wunused"
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5682 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5683 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5684 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 int
5691 main ()
5692 {
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5700 else
5701 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
5705 fi
5706
5707
5708 CFLAGS="$xorg_testset_save_CFLAGS"
5709
5710 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5712 $as_echo "$supported" >&6; }
5713 if test "$supported" = "yes" ; then
5714 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5715 found="yes"
5716 fi
5717 fi
5718
5719
5720
5721
5722
5723
5724
5725 xorg_testset_save_CFLAGS="$CFLAGS"
5726
5727 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 int i;
5737 _ACEOF
5738 if ac_fn_c_try_compile "$LINENO"; then :
5739 xorg_cv_cc_flag_unknown_warning_option=yes
5740 else
5741 xorg_cv_cc_flag_unknown_warning_option=no
5742 fi
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5747 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5748 CFLAGS="$xorg_testset_save_CFLAGS"
5749 fi
5750
5751 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754 fi
5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 int i;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 xorg_cv_cc_flag_unused_command_line_argument=yes
5767 else
5768 xorg_cv_cc_flag_unused_command_line_argument=no
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5774 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5776 fi
5777
5778 found="no"
5779
5780 if test $found = "no" ; then
5781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783 fi
5784
5785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5787 fi
5788
5789 CFLAGS="$CFLAGS -Wuninitialized"
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5792 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5793 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5794 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 int i;
5800 int
5801 main ()
5802 {
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 if ac_fn_c_try_link "$LINENO"; then :
5809 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5810 else
5811 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext conftest.$ac_ext
5815 fi
5816
5817
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819
5820 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822 $as_echo "$supported" >&6; }
5823 if test "$supported" = "yes" ; then
5824 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5825 found="yes"
5826 fi
5827 fi
5828
5829
5830
5831
5832
5833
5834
5835 xorg_testset_save_CFLAGS="$CFLAGS"
5836
5837 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 int i;
5847 _ACEOF
5848 if ac_fn_c_try_compile "$LINENO"; then :
5849 xorg_cv_cc_flag_unknown_warning_option=yes
5850 else
5851 xorg_cv_cc_flag_unknown_warning_option=no
5852 fi
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5857 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5858 CFLAGS="$xorg_testset_save_CFLAGS"
5859 fi
5860
5861 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5862 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864 fi
5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 int i;
5874 _ACEOF
5875 if ac_fn_c_try_compile "$LINENO"; then :
5876 xorg_cv_cc_flag_unused_command_line_argument=yes
5877 else
5878 xorg_cv_cc_flag_unused_command_line_argument=no
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 fi
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5884 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5885 CFLAGS="$xorg_testset_save_CFLAGS"
5886 fi
5887
5888 found="no"
5889
5890 if test $found = "no" ; then
5891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5893 fi
5894
5895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5897 fi
5898
5899 CFLAGS="$CFLAGS -Wshadow"
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5902 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5903 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
5904 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 int i;
5910 int
5911 main ()
5912 {
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_link "$LINENO"; then :
5919 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5920 else
5921 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5925 fi
5926
5927
5928 CFLAGS="$xorg_testset_save_CFLAGS"
5929
5930 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5932 $as_echo "$supported" >&6; }
5933 if test "$supported" = "yes" ; then
5934 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5935 found="yes"
5936 fi
5937 fi
5938
5939
5940
5941
5942
5943
5944
5945 xorg_testset_save_CFLAGS="$CFLAGS"
5946
5947 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5950 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5951 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int i;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 xorg_cv_cc_flag_unknown_warning_option=yes
5960 else
5961 xorg_cv_cc_flag_unknown_warning_option=no
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 fi
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5966 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5967 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5968 CFLAGS="$xorg_testset_save_CFLAGS"
5969 fi
5970
5971 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5974 fi
5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5977 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5978 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 int i;
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 xorg_cv_cc_flag_unused_command_line_argument=yes
5987 else
5988 xorg_cv_cc_flag_unused_command_line_argument=no
5989 fi
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5993 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5994 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5995 CFLAGS="$xorg_testset_save_CFLAGS"
5996 fi
5997
5998 found="no"
5999
6000 if test $found = "no" ; then
6001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6003 fi
6004
6005 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6007 fi
6008
6009 CFLAGS="$CFLAGS -Wcast-qual"
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6012 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6013 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6014 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 int i;
6020 int
6021 main ()
6022 {
6023
6024 ;
6025 return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_link "$LINENO"; then :
6029 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6030 else
6031 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 fi
6036
6037
6038 CFLAGS="$xorg_testset_save_CFLAGS"
6039
6040 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6042 $as_echo "$supported" >&6; }
6043 if test "$supported" = "yes" ; then
6044 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6045 found="yes"
6046 fi
6047 fi
6048
6049
6050
6051
6052
6053
6054
6055 xorg_testset_save_CFLAGS="$CFLAGS"
6056
6057 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 int i;
6067 _ACEOF
6068 if ac_fn_c_try_compile "$LINENO"; then :
6069 xorg_cv_cc_flag_unknown_warning_option=yes
6070 else
6071 xorg_cv_cc_flag_unknown_warning_option=no
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6077 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6078 CFLAGS="$xorg_testset_save_CFLAGS"
6079 fi
6080
6081 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 fi
6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 int i;
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096 xorg_cv_cc_flag_unused_command_line_argument=yes
6097 else
6098 xorg_cv_cc_flag_unused_command_line_argument=no
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6104 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6105 CFLAGS="$xorg_testset_save_CFLAGS"
6106 fi
6107
6108 found="no"
6109
6110 if test $found = "no" ; then
6111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6113 fi
6114
6115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6117 fi
6118
6119 CFLAGS="$CFLAGS -Wmissing-noreturn"
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6122 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6123 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6124 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 int i;
6130 int
6131 main ()
6132 {
6133
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 if ac_fn_c_try_link "$LINENO"; then :
6139 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6140 else
6141 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6145 fi
6146
6147
6148 CFLAGS="$xorg_testset_save_CFLAGS"
6149
6150 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6152 $as_echo "$supported" >&6; }
6153 if test "$supported" = "yes" ; then
6154 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6155 found="yes"
6156 fi
6157 fi
6158
6159
6160
6161
6162
6163
6164
6165 xorg_testset_save_CFLAGS="$CFLAGS"
6166
6167 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176 int i;
6177 _ACEOF
6178 if ac_fn_c_try_compile "$LINENO"; then :
6179 xorg_cv_cc_flag_unknown_warning_option=yes
6180 else
6181 xorg_cv_cc_flag_unknown_warning_option=no
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 fi
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6187 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6188 CFLAGS="$xorg_testset_save_CFLAGS"
6189 fi
6190
6191 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194 fi
6195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 int i;
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206 xorg_cv_cc_flag_unused_command_line_argument=yes
6207 else
6208 xorg_cv_cc_flag_unused_command_line_argument=no
6209 fi
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 fi
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6214 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6215 CFLAGS="$xorg_testset_save_CFLAGS"
6216 fi
6217
6218 found="no"
6219
6220 if test $found = "no" ; then
6221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223 fi
6224
6225 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227 fi
6228
6229 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6230
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6232 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6233 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6234 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 int i;
6240 int
6241 main ()
6242 {
6243
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 if ac_fn_c_try_link "$LINENO"; then :
6249 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6250 else
6251 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6255 fi
6256
6257
6258 CFLAGS="$xorg_testset_save_CFLAGS"
6259
6260 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6262 $as_echo "$supported" >&6; }
6263 if test "$supported" = "yes" ; then
6264 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6265 found="yes"
6266 fi
6267 fi
6268
6269
6270
6271
6272
6273
6274
6275 xorg_testset_save_CFLAGS="$CFLAGS"
6276
6277 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286 int i;
6287 _ACEOF
6288 if ac_fn_c_try_compile "$LINENO"; then :
6289 xorg_cv_cc_flag_unknown_warning_option=yes
6290 else
6291 xorg_cv_cc_flag_unknown_warning_option=no
6292 fi
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6297 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6298 CFLAGS="$xorg_testset_save_CFLAGS"
6299 fi
6300
6301 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 fi
6305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 int i;
6314 _ACEOF
6315 if ac_fn_c_try_compile "$LINENO"; then :
6316 xorg_cv_cc_flag_unused_command_line_argument=yes
6317 else
6318 xorg_cv_cc_flag_unused_command_line_argument=no
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 fi
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325 CFLAGS="$xorg_testset_save_CFLAGS"
6326 fi
6327
6328 found="no"
6329
6330 if test $found = "no" ; then
6331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333 fi
6334
6335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337 fi
6338
6339 CFLAGS="$CFLAGS -Wredundant-decls"
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6342 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6343 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6344 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 int i;
6350 int
6351 main ()
6352 {
6353
6354 ;
6355 return 0;
6356 }
6357 _ACEOF
6358 if ac_fn_c_try_link "$LINENO"; then :
6359 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6360 else
6361 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6365 fi
6366
6367
6368 CFLAGS="$xorg_testset_save_CFLAGS"
6369
6370 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6372 $as_echo "$supported" >&6; }
6373 if test "$supported" = "yes" ; then
6374 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6375 found="yes"
6376 fi
6377 fi
6378
6379
6380
6381 # These are currently disabled because they are noisy. They will be enabled
6382 # in the future once the codebase is sufficiently modernized to silence
6383 # them. For now, I don't want them to drown out the other warnings.
6384 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6385 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6386 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6387
6388 # Turn some warnings into errors, so we don't accidently get successful builds
6389 # when there are problems that should be fixed.
6390
6391 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6392
6393
6394
6395
6396
6397 xorg_testset_save_CFLAGS="$CFLAGS"
6398
6399 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6402 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6403 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 int i;
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 xorg_cv_cc_flag_unknown_warning_option=yes
6412 else
6413 xorg_cv_cc_flag_unknown_warning_option=no
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6418 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6419 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6420 CFLAGS="$xorg_testset_save_CFLAGS"
6421 fi
6422
6423 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426 fi
6427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6429 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6430 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 int i;
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 xorg_cv_cc_flag_unused_command_line_argument=yes
6439 else
6440 xorg_cv_cc_flag_unused_command_line_argument=no
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6445 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6446 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6447 CFLAGS="$xorg_testset_save_CFLAGS"
6448 fi
6449
6450 found="no"
6451
6452 if test $found = "no" ; then
6453 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455 fi
6456
6457 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6459 fi
6460
6461 CFLAGS="$CFLAGS -Werror=implicit"
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6464 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6465 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6466 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 int i;
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_link "$LINENO"; then :
6481 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6482 else
6483 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6487 fi
6488
6489
6490 CFLAGS="$xorg_testset_save_CFLAGS"
6491
6492 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6494 $as_echo "$supported" >&6; }
6495 if test "$supported" = "yes" ; then
6496 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6497 found="yes"
6498 fi
6499 fi
6500
6501 if test $found = "no" ; then
6502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504 fi
6505
6506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6508 fi
6509
6510 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6513 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6514 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6515 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 int i;
6521 int
6522 main ()
6523 {
6524
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 if ac_fn_c_try_link "$LINENO"; then :
6530 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6531 else
6532 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6536 fi
6537
6538
6539 CFLAGS="$xorg_testset_save_CFLAGS"
6540
6541 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6543 $as_echo "$supported" >&6; }
6544 if test "$supported" = "yes" ; then
6545 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6546 found="yes"
6547 fi
6548 fi
6549
6550
6551
6552
6553
6554
6555
6556 xorg_testset_save_CFLAGS="$CFLAGS"
6557
6558 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 int i;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 xorg_cv_cc_flag_unknown_warning_option=yes
6571 else
6572 xorg_cv_cc_flag_unknown_warning_option=no
6573 fi
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6578 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6579 CFLAGS="$xorg_testset_save_CFLAGS"
6580 fi
6581
6582 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585 fi
6586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 int i;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 xorg_cv_cc_flag_unused_command_line_argument=yes
6598 else
6599 xorg_cv_cc_flag_unused_command_line_argument=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6605 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6606 CFLAGS="$xorg_testset_save_CFLAGS"
6607 fi
6608
6609 found="no"
6610
6611 if test $found = "no" ; then
6612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614 fi
6615
6616 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6618 fi
6619
6620 CFLAGS="$CFLAGS -Werror=nonnull"
6621
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6623 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6624 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6625 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630 int i;
6631 int
6632 main ()
6633 {
6634
6635 ;
6636 return 0;
6637 }
6638 _ACEOF
6639 if ac_fn_c_try_link "$LINENO"; then :
6640 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6641 else
6642 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
6646 fi
6647
6648
6649 CFLAGS="$xorg_testset_save_CFLAGS"
6650
6651 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6653 $as_echo "$supported" >&6; }
6654 if test "$supported" = "yes" ; then
6655 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6656 found="yes"
6657 fi
6658 fi
6659
6660
6661
6662
6663
6664
6665
6666 xorg_testset_save_CFLAGS="$CFLAGS"
6667
6668 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 int i;
6678 _ACEOF
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 xorg_cv_cc_flag_unknown_warning_option=yes
6681 else
6682 xorg_cv_cc_flag_unknown_warning_option=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6688 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6690 fi
6691
6692 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695 fi
6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 xorg_cv_cc_flag_unused_command_line_argument=yes
6708 else
6709 xorg_cv_cc_flag_unused_command_line_argument=no
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 fi
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6715 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6716 CFLAGS="$xorg_testset_save_CFLAGS"
6717 fi
6718
6719 found="no"
6720
6721 if test $found = "no" ; then
6722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724 fi
6725
6726 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6728 fi
6729
6730 CFLAGS="$CFLAGS -Werror=init-self"
6731
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6733 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6734 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6735 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 int i;
6741 int
6742 main ()
6743 {
6744
6745 ;
6746 return 0;
6747 }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6751 else
6752 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 fi
6757
6758
6759 CFLAGS="$xorg_testset_save_CFLAGS"
6760
6761 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6763 $as_echo "$supported" >&6; }
6764 if test "$supported" = "yes" ; then
6765 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6766 found="yes"
6767 fi
6768 fi
6769
6770
6771
6772
6773
6774
6775
6776 xorg_testset_save_CFLAGS="$CFLAGS"
6777
6778 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6781 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6782 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 int i;
6788 _ACEOF
6789 if ac_fn_c_try_compile "$LINENO"; then :
6790 xorg_cv_cc_flag_unknown_warning_option=yes
6791 else
6792 xorg_cv_cc_flag_unknown_warning_option=no
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 fi
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6797 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6798 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6799 CFLAGS="$xorg_testset_save_CFLAGS"
6800 fi
6801
6802 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805 fi
6806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6808 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6809 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 int i;
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 xorg_cv_cc_flag_unused_command_line_argument=yes
6818 else
6819 xorg_cv_cc_flag_unused_command_line_argument=no
6820 fi
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6824 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6825 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6826 CFLAGS="$xorg_testset_save_CFLAGS"
6827 fi
6828
6829 found="no"
6830
6831 if test $found = "no" ; then
6832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834 fi
6835
6836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838 fi
6839
6840 CFLAGS="$CFLAGS -Werror=main"
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6843 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6844 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6845 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 int i;
6851 int
6852 main ()
6853 {
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_link "$LINENO"; then :
6860 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6861 else
6862 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext \
6865 conftest$ac_exeext conftest.$ac_ext
6866 fi
6867
6868
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6870
6871 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6873 $as_echo "$supported" >&6; }
6874 if test "$supported" = "yes" ; then
6875 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6876 found="yes"
6877 fi
6878 fi
6879
6880
6881
6882
6883
6884
6885
6886 xorg_testset_save_CFLAGS="$CFLAGS"
6887
6888 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6891 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6892 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 int i;
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 xorg_cv_cc_flag_unknown_warning_option=yes
6901 else
6902 xorg_cv_cc_flag_unknown_warning_option=no
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6907 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6908 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6909 CFLAGS="$xorg_testset_save_CFLAGS"
6910 fi
6911
6912 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915 fi
6916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6918 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6919 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 int i;
6925 _ACEOF
6926 if ac_fn_c_try_compile "$LINENO"; then :
6927 xorg_cv_cc_flag_unused_command_line_argument=yes
6928 else
6929 xorg_cv_cc_flag_unused_command_line_argument=no
6930 fi
6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6934 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6935 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6936 CFLAGS="$xorg_testset_save_CFLAGS"
6937 fi
6938
6939 found="no"
6940
6941 if test $found = "no" ; then
6942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944 fi
6945
6946 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948 fi
6949
6950 CFLAGS="$CFLAGS -Werror=missing-braces"
6951
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6953 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6954 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
6955 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 int i;
6961 int
6962 main ()
6963 {
6964
6965 ;
6966 return 0;
6967 }
6968 _ACEOF
6969 if ac_fn_c_try_link "$LINENO"; then :
6970 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6971 else
6972 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6973 fi
6974 rm -f core conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 fi
6977
6978
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6980
6981 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6983 $as_echo "$supported" >&6; }
6984 if test "$supported" = "yes" ; then
6985 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6986 found="yes"
6987 fi
6988 fi
6989
6990
6991
6992
6993
6994
6995
6996 xorg_testset_save_CFLAGS="$CFLAGS"
6997
6998 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7001 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7002 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 int i;
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 xorg_cv_cc_flag_unknown_warning_option=yes
7011 else
7012 xorg_cv_cc_flag_unknown_warning_option=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019 CFLAGS="$xorg_testset_save_CFLAGS"
7020 fi
7021
7022 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025 fi
7026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 int i;
7035 _ACEOF
7036 if ac_fn_c_try_compile "$LINENO"; then :
7037 xorg_cv_cc_flag_unused_command_line_argument=yes
7038 else
7039 xorg_cv_cc_flag_unused_command_line_argument=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7044 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7045 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7047 fi
7048
7049 found="no"
7050
7051 if test $found = "no" ; then
7052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054 fi
7055
7056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7058 fi
7059
7060 CFLAGS="$CFLAGS -Werror=sequence-point"
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7063 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7064 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7065 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 int i;
7071 int
7072 main ()
7073 {
7074
7075 ;
7076 return 0;
7077 }
7078 _ACEOF
7079 if ac_fn_c_try_link "$LINENO"; then :
7080 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7081 else
7082 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7086 fi
7087
7088
7089 CFLAGS="$xorg_testset_save_CFLAGS"
7090
7091 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7093 $as_echo "$supported" >&6; }
7094 if test "$supported" = "yes" ; then
7095 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7096 found="yes"
7097 fi
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106 xorg_testset_save_CFLAGS="$CFLAGS"
7107
7108 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"; then :
7120 xorg_cv_cc_flag_unknown_warning_option=yes
7121 else
7122 xorg_cv_cc_flag_unknown_warning_option=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7130 fi
7131
7132 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 fi
7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 int i;
7145 _ACEOF
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147 xorg_cv_cc_flag_unused_command_line_argument=yes
7148 else
7149 xorg_cv_cc_flag_unused_command_line_argument=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157 fi
7158
7159 found="no"
7160
7161 if test $found = "no" ; then
7162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164 fi
7165
7166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168 fi
7169
7170 CFLAGS="$CFLAGS -Werror=return-type"
7171
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7173 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7174 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7175 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 int i;
7181 int
7182 main ()
7183 {
7184
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_link "$LINENO"; then :
7190 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7191 else
7192 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7196 fi
7197
7198
7199 CFLAGS="$xorg_testset_save_CFLAGS"
7200
7201 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7203 $as_echo "$supported" >&6; }
7204 if test "$supported" = "yes" ; then
7205 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7206 found="yes"
7207 fi
7208 fi
7209
7210 if test $found = "no" ; then
7211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7213 fi
7214
7215 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7217 fi
7218
7219 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7222 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7223 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7224 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 int i;
7230 int
7231 main ()
7232 {
7233
7234 ;
7235 return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_link "$LINENO"; then :
7239 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7240 else
7241 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7242 fi
7243 rm -f core conftest.err conftest.$ac_objext \
7244 conftest$ac_exeext conftest.$ac_ext
7245 fi
7246
7247
7248 CFLAGS="$xorg_testset_save_CFLAGS"
7249
7250 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7252 $as_echo "$supported" >&6; }
7253 if test "$supported" = "yes" ; then
7254 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7255 found="yes"
7256 fi
7257 fi
7258
7259
7260
7261
7262
7263
7264
7265 xorg_testset_save_CFLAGS="$CFLAGS"
7266
7267 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 int i;
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 xorg_cv_cc_flag_unknown_warning_option=yes
7280 else
7281 xorg_cv_cc_flag_unknown_warning_option=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7287 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7288 CFLAGS="$xorg_testset_save_CFLAGS"
7289 fi
7290
7291 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294 fi
7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 int i;
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"; then :
7306 xorg_cv_cc_flag_unused_command_line_argument=yes
7307 else
7308 xorg_cv_cc_flag_unused_command_line_argument=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7314 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316 fi
7317
7318 found="no"
7319
7320 if test $found = "no" ; then
7321 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323 fi
7324
7325 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7327 fi
7328
7329 CFLAGS="$CFLAGS -Werror=trigraphs"
7330
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7332 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7333 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7334 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 int i;
7340 int
7341 main ()
7342 {
7343
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 if ac_fn_c_try_link "$LINENO"; then :
7349 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7350 else
7351 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext conftest.$ac_ext
7355 fi
7356
7357
7358 CFLAGS="$xorg_testset_save_CFLAGS"
7359
7360 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7362 $as_echo "$supported" >&6; }
7363 if test "$supported" = "yes" ; then
7364 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7365 found="yes"
7366 fi
7367 fi
7368
7369
7370
7371
7372
7373
7374
7375 xorg_testset_save_CFLAGS="$CFLAGS"
7376
7377 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7381 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 int i;
7387 _ACEOF
7388 if ac_fn_c_try_compile "$LINENO"; then :
7389 xorg_cv_cc_flag_unknown_warning_option=yes
7390 else
7391 xorg_cv_cc_flag_unknown_warning_option=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7396 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7397 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7398 CFLAGS="$xorg_testset_save_CFLAGS"
7399 fi
7400
7401 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404 fi
7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7407 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7408 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 xorg_cv_cc_flag_unused_command_line_argument=yes
7417 else
7418 xorg_cv_cc_flag_unused_command_line_argument=no
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7423 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7424 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7425 CFLAGS="$xorg_testset_save_CFLAGS"
7426 fi
7427
7428 found="no"
7429
7430 if test $found = "no" ; then
7431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433 fi
7434
7435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7437 fi
7438
7439 CFLAGS="$CFLAGS -Werror=array-bounds"
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7442 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7443 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7444 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 int
7451 main ()
7452 {
7453
7454 ;
7455 return 0;
7456 }
7457 _ACEOF
7458 if ac_fn_c_try_link "$LINENO"; then :
7459 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7460 else
7461 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7462 fi
7463 rm -f core conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7465 fi
7466
7467
7468 CFLAGS="$xorg_testset_save_CFLAGS"
7469
7470 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7472 $as_echo "$supported" >&6; }
7473 if test "$supported" = "yes" ; then
7474 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7475 found="yes"
7476 fi
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485 xorg_testset_save_CFLAGS="$CFLAGS"
7486
7487 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 int i;
7497 _ACEOF
7498 if ac_fn_c_try_compile "$LINENO"; then :
7499 xorg_cv_cc_flag_unknown_warning_option=yes
7500 else
7501 xorg_cv_cc_flag_unknown_warning_option=no
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7507 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7508 CFLAGS="$xorg_testset_save_CFLAGS"
7509 fi
7510
7511 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514 fi
7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 int i;
7524 _ACEOF
7525 if ac_fn_c_try_compile "$LINENO"; then :
7526 xorg_cv_cc_flag_unused_command_line_argument=yes
7527 else
7528 xorg_cv_cc_flag_unused_command_line_argument=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7534 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7536 fi
7537
7538 found="no"
7539
7540 if test $found = "no" ; then
7541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543 fi
7544
7545 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547 fi
7548
7549 CFLAGS="$CFLAGS -Werror=write-strings"
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7552 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7553 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7554 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 int i;
7560 int
7561 main ()
7562 {
7563
7564 ;
7565 return 0;
7566 }
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7570 else
7571 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 fi
7576
7577
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579
7580 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7582 $as_echo "$supported" >&6; }
7583 if test "$supported" = "yes" ; then
7584 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7585 found="yes"
7586 fi
7587 fi
7588
7589
7590
7591
7592
7593
7594
7595 xorg_testset_save_CFLAGS="$CFLAGS"
7596
7597 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 int i;
7607 _ACEOF
7608 if ac_fn_c_try_compile "$LINENO"; then :
7609 xorg_cv_cc_flag_unknown_warning_option=yes
7610 else
7611 xorg_cv_cc_flag_unknown_warning_option=no
7612 fi
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7617 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7618 CFLAGS="$xorg_testset_save_CFLAGS"
7619 fi
7620
7621 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624 fi
7625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 int i;
7634 _ACEOF
7635 if ac_fn_c_try_compile "$LINENO"; then :
7636 xorg_cv_cc_flag_unused_command_line_argument=yes
7637 else
7638 xorg_cv_cc_flag_unused_command_line_argument=no
7639 fi
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7644 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7645 CFLAGS="$xorg_testset_save_CFLAGS"
7646 fi
7647
7648 found="no"
7649
7650 if test $found = "no" ; then
7651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7653 fi
7654
7655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7657 fi
7658
7659 CFLAGS="$CFLAGS -Werror=address"
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7662 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7663 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7664 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 int i;
7670 int
7671 main ()
7672 {
7673
7674 ;
7675 return 0;
7676 }
7677 _ACEOF
7678 if ac_fn_c_try_link "$LINENO"; then :
7679 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7680 else
7681 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685 fi
7686
7687
7688 CFLAGS="$xorg_testset_save_CFLAGS"
7689
7690 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7692 $as_echo "$supported" >&6; }
7693 if test "$supported" = "yes" ; then
7694 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7695 found="yes"
7696 fi
7697 fi
7698
7699
7700
7701
7702
7703
7704
7705 xorg_testset_save_CFLAGS="$CFLAGS"
7706
7707 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7710 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7711 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 int i;
7717 _ACEOF
7718 if ac_fn_c_try_compile "$LINENO"; then :
7719 xorg_cv_cc_flag_unknown_warning_option=yes
7720 else
7721 xorg_cv_cc_flag_unknown_warning_option=no
7722 fi
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7726 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7727 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7728 CFLAGS="$xorg_testset_save_CFLAGS"
7729 fi
7730
7731 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7734 fi
7735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7737 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7738 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 int i;
7744 _ACEOF
7745 if ac_fn_c_try_compile "$LINENO"; then :
7746 xorg_cv_cc_flag_unused_command_line_argument=yes
7747 else
7748 xorg_cv_cc_flag_unused_command_line_argument=no
7749 fi
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7753 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7754 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7755 CFLAGS="$xorg_testset_save_CFLAGS"
7756 fi
7757
7758 found="no"
7759
7760 if test $found = "no" ; then
7761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763 fi
7764
7765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7767 fi
7768
7769 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7772 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7773 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7774 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 int i;
7780 int
7781 main ()
7782 {
7783
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_link "$LINENO"; then :
7789 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7790 else
7791 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext \
7794 conftest$ac_exeext conftest.$ac_ext
7795 fi
7796
7797
7798 CFLAGS="$xorg_testset_save_CFLAGS"
7799
7800 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7802 $as_echo "$supported" >&6; }
7803 if test "$supported" = "yes" ; then
7804 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7805 found="yes"
7806 fi
7807 fi
7808
7809 if test $found = "no" ; then
7810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812 fi
7813
7814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7816 fi
7817
7818 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7819
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7821 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7822 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7823 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 int i;
7829 int
7830 main ()
7831 {
7832
7833 ;
7834 return 0;
7835 }
7836 _ACEOF
7837 if ac_fn_c_try_link "$LINENO"; then :
7838 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7839 else
7840 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7844 fi
7845
7846
7847 CFLAGS="$xorg_testset_save_CFLAGS"
7848
7849 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7851 $as_echo "$supported" >&6; }
7852 if test "$supported" = "yes" ; then
7853 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7854 found="yes"
7855 fi
7856 fi
7857
7858
7859
7860
7861
7862
7863
7864 xorg_testset_save_CFLAGS="$CFLAGS"
7865
7866 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875 int i;
7876 _ACEOF
7877 if ac_fn_c_try_compile "$LINENO"; then :
7878 xorg_cv_cc_flag_unknown_warning_option=yes
7879 else
7880 xorg_cv_cc_flag_unknown_warning_option=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7886 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7887 CFLAGS="$xorg_testset_save_CFLAGS"
7888 fi
7889
7890 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893 fi
7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 int i;
7903 _ACEOF
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905 xorg_cv_cc_flag_unused_command_line_argument=yes
7906 else
7907 xorg_cv_cc_flag_unused_command_line_argument=no
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7913 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7914 CFLAGS="$xorg_testset_save_CFLAGS"
7915 fi
7916
7917 found="no"
7918
7919 if test $found = "no" ; then
7920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7922 fi
7923
7924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926 fi
7927
7928 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7929
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7931 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7932 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7933 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 int i;
7939 int
7940 main ()
7941 {
7942
7943 ;
7944 return 0;
7945 }
7946 _ACEOF
7947 if ac_fn_c_try_link "$LINENO"; then :
7948 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7949 else
7950 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7951 fi
7952 rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7954 fi
7955
7956
7957 CFLAGS="$xorg_testset_save_CFLAGS"
7958
7959 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7961 $as_echo "$supported" >&6; }
7962 if test "$supported" = "yes" ; then
7963 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7964 found="yes"
7965 fi
7966 fi
7967
7968 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7969 else
7970 { $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
7971 $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;}
7972
7973
7974
7975
7976
7977 xorg_testset_save_CFLAGS="$CFLAGS"
7978
7979 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 int i;
7989 _ACEOF
7990 if ac_fn_c_try_compile "$LINENO"; then :
7991 xorg_cv_cc_flag_unknown_warning_option=yes
7992 else
7993 xorg_cv_cc_flag_unknown_warning_option=no
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 fi
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7999 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8000 CFLAGS="$xorg_testset_save_CFLAGS"
8001 fi
8002
8003 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8006 fi
8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015 int i;
8016 _ACEOF
8017 if ac_fn_c_try_compile "$LINENO"; then :
8018 xorg_cv_cc_flag_unused_command_line_argument=yes
8019 else
8020 xorg_cv_cc_flag_unused_command_line_argument=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023 fi
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8026 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8027 CFLAGS="$xorg_testset_save_CFLAGS"
8028 fi
8029
8030 found="no"
8031
8032 if test $found = "no" ; then
8033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8035 fi
8036
8037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8039 fi
8040
8041 CFLAGS="$CFLAGS -Wimplicit"
8042
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8044 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8045 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8046 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 int i;
8052 int
8053 main ()
8054 {
8055
8056 ;
8057 return 0;
8058 }
8059 _ACEOF
8060 if ac_fn_c_try_link "$LINENO"; then :
8061 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8062 else
8063 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 fi
8068
8069
8070 CFLAGS="$xorg_testset_save_CFLAGS"
8071
8072 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8074 $as_echo "$supported" >&6; }
8075 if test "$supported" = "yes" ; then
8076 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8077 found="yes"
8078 fi
8079 fi
8080
8081
8082
8083
8084
8085
8086
8087 xorg_testset_save_CFLAGS="$CFLAGS"
8088
8089 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098 int i;
8099 _ACEOF
8100 if ac_fn_c_try_compile "$LINENO"; then :
8101 xorg_cv_cc_flag_unknown_warning_option=yes
8102 else
8103 xorg_cv_cc_flag_unknown_warning_option=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8109 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8111 fi
8112
8113 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8116 fi
8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 int i;
8126 _ACEOF
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 xorg_cv_cc_flag_unused_command_line_argument=yes
8129 else
8130 xorg_cv_cc_flag_unused_command_line_argument=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8136 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8137 CFLAGS="$xorg_testset_save_CFLAGS"
8138 fi
8139
8140 found="no"
8141
8142 if test $found = "no" ; then
8143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 fi
8146
8147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149 fi
8150
8151 CFLAGS="$CFLAGS -Wnonnull"
8152
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8154 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8155 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8156 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 int i;
8162 int
8163 main ()
8164 {
8165
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8172 else
8173 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177 fi
8178
8179
8180 CFLAGS="$xorg_testset_save_CFLAGS"
8181
8182 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8184 $as_echo "$supported" >&6; }
8185 if test "$supported" = "yes" ; then
8186 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8187 found="yes"
8188 fi
8189 fi
8190
8191
8192
8193
8194
8195
8196
8197 xorg_testset_save_CFLAGS="$CFLAGS"
8198
8199 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 int i;
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 xorg_cv_cc_flag_unknown_warning_option=yes
8212 else
8213 xorg_cv_cc_flag_unknown_warning_option=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8219 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8220 CFLAGS="$xorg_testset_save_CFLAGS"
8221 fi
8222
8223 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226 fi
8227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235 int i;
8236 _ACEOF
8237 if ac_fn_c_try_compile "$LINENO"; then :
8238 xorg_cv_cc_flag_unused_command_line_argument=yes
8239 else
8240 xorg_cv_cc_flag_unused_command_line_argument=no
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 fi
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8246 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8247 CFLAGS="$xorg_testset_save_CFLAGS"
8248 fi
8249
8250 found="no"
8251
8252 if test $found = "no" ; then
8253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8255 fi
8256
8257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8259 fi
8260
8261 CFLAGS="$CFLAGS -Winit-self"
8262
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8264 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8265 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8266 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int i;
8272 int
8273 main ()
8274 {
8275
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"; then :
8281 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8282 else
8283 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8287 fi
8288
8289
8290 CFLAGS="$xorg_testset_save_CFLAGS"
8291
8292 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8294 $as_echo "$supported" >&6; }
8295 if test "$supported" = "yes" ; then
8296 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8297 found="yes"
8298 fi
8299 fi
8300
8301
8302
8303
8304
8305
8306
8307 xorg_testset_save_CFLAGS="$CFLAGS"
8308
8309 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 int i;
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 xorg_cv_cc_flag_unknown_warning_option=yes
8322 else
8323 xorg_cv_cc_flag_unknown_warning_option=no
8324 fi
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8329 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8330 CFLAGS="$xorg_testset_save_CFLAGS"
8331 fi
8332
8333 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8334 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336 fi
8337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345 int i;
8346 _ACEOF
8347 if ac_fn_c_try_compile "$LINENO"; then :
8348 xorg_cv_cc_flag_unused_command_line_argument=yes
8349 else
8350 xorg_cv_cc_flag_unused_command_line_argument=no
8351 fi
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8356 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8357 CFLAGS="$xorg_testset_save_CFLAGS"
8358 fi
8359
8360 found="no"
8361
8362 if test $found = "no" ; then
8363 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8365 fi
8366
8367 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8369 fi
8370
8371 CFLAGS="$CFLAGS -Wmain"
8372
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8374 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8375 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8376 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8381 int i;
8382 int
8383 main ()
8384 {
8385
8386 ;
8387 return 0;
8388 }
8389 _ACEOF
8390 if ac_fn_c_try_link "$LINENO"; then :
8391 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8392 else
8393 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8394 fi
8395 rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8397 fi
8398
8399
8400 CFLAGS="$xorg_testset_save_CFLAGS"
8401
8402 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8404 $as_echo "$supported" >&6; }
8405 if test "$supported" = "yes" ; then
8406 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8407 found="yes"
8408 fi
8409 fi
8410
8411
8412
8413
8414
8415
8416
8417 xorg_testset_save_CFLAGS="$CFLAGS"
8418
8419 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 int i;
8429 _ACEOF
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431 xorg_cv_cc_flag_unknown_warning_option=yes
8432 else
8433 xorg_cv_cc_flag_unknown_warning_option=no
8434 fi
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 fi
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8439 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8440 CFLAGS="$xorg_testset_save_CFLAGS"
8441 fi
8442
8443 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446 fi
8447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 int i;
8456 _ACEOF
8457 if ac_fn_c_try_compile "$LINENO"; then :
8458 xorg_cv_cc_flag_unused_command_line_argument=yes
8459 else
8460 xorg_cv_cc_flag_unused_command_line_argument=no
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8466 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8468 fi
8469
8470 found="no"
8471
8472 if test $found = "no" ; then
8473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8475 fi
8476
8477 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8479 fi
8480
8481 CFLAGS="$CFLAGS -Wmissing-braces"
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8484 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8485 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8486 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 int i;
8492 int
8493 main ()
8494 {
8495
8496 ;
8497 return 0;
8498 }
8499 _ACEOF
8500 if ac_fn_c_try_link "$LINENO"; then :
8501 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8502 else
8503 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8504 fi
8505 rm -f core conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8507 fi
8508
8509
8510 CFLAGS="$xorg_testset_save_CFLAGS"
8511
8512 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8514 $as_echo "$supported" >&6; }
8515 if test "$supported" = "yes" ; then
8516 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8517 found="yes"
8518 fi
8519 fi
8520
8521
8522
8523
8524
8525
8526
8527 xorg_testset_save_CFLAGS="$CFLAGS"
8528
8529 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8532 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8533 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538 int i;
8539 _ACEOF
8540 if ac_fn_c_try_compile "$LINENO"; then :
8541 xorg_cv_cc_flag_unknown_warning_option=yes
8542 else
8543 xorg_cv_cc_flag_unknown_warning_option=no
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8548 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8549 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8550 CFLAGS="$xorg_testset_save_CFLAGS"
8551 fi
8552
8553 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8554 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556 fi
8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8559 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8560 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 int i;
8566 _ACEOF
8567 if ac_fn_c_try_compile "$LINENO"; then :
8568 xorg_cv_cc_flag_unused_command_line_argument=yes
8569 else
8570 xorg_cv_cc_flag_unused_command_line_argument=no
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8575 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8576 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8577 CFLAGS="$xorg_testset_save_CFLAGS"
8578 fi
8579
8580 found="no"
8581
8582 if test $found = "no" ; then
8583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585 fi
8586
8587 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589 fi
8590
8591 CFLAGS="$CFLAGS -Wsequence-point"
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8594 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8595 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8596 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601 int i;
8602 int
8603 main ()
8604 {
8605
8606 ;
8607 return 0;
8608 }
8609 _ACEOF
8610 if ac_fn_c_try_link "$LINENO"; then :
8611 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8612 else
8613 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 fi
8618
8619
8620 CFLAGS="$xorg_testset_save_CFLAGS"
8621
8622 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8624 $as_echo "$supported" >&6; }
8625 if test "$supported" = "yes" ; then
8626 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8627 found="yes"
8628 fi
8629 fi
8630
8631
8632
8633
8634
8635
8636
8637 xorg_testset_save_CFLAGS="$CFLAGS"
8638
8639 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648 int i;
8649 _ACEOF
8650 if ac_fn_c_try_compile "$LINENO"; then :
8651 xorg_cv_cc_flag_unknown_warning_option=yes
8652 else
8653 xorg_cv_cc_flag_unknown_warning_option=no
8654 fi
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8659 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8660 CFLAGS="$xorg_testset_save_CFLAGS"
8661 fi
8662
8663 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8666 fi
8667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 int i;
8676 _ACEOF
8677 if ac_fn_c_try_compile "$LINENO"; then :
8678 xorg_cv_cc_flag_unused_command_line_argument=yes
8679 else
8680 xorg_cv_cc_flag_unused_command_line_argument=no
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8686 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8687 CFLAGS="$xorg_testset_save_CFLAGS"
8688 fi
8689
8690 found="no"
8691
8692 if test $found = "no" ; then
8693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8695 fi
8696
8697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8699 fi
8700
8701 CFLAGS="$CFLAGS -Wreturn-type"
8702
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8704 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8705 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8706 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 int i;
8712 int
8713 main ()
8714 {
8715
8716 ;
8717 return 0;
8718 }
8719 _ACEOF
8720 if ac_fn_c_try_link "$LINENO"; then :
8721 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8722 else
8723 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 fi
8728
8729
8730 CFLAGS="$xorg_testset_save_CFLAGS"
8731
8732 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8734 $as_echo "$supported" >&6; }
8735 if test "$supported" = "yes" ; then
8736 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8737 found="yes"
8738 fi
8739 fi
8740
8741
8742
8743
8744
8745
8746
8747 xorg_testset_save_CFLAGS="$CFLAGS"
8748
8749 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8752 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8753 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 int i;
8759 _ACEOF
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 xorg_cv_cc_flag_unknown_warning_option=yes
8762 else
8763 xorg_cv_cc_flag_unknown_warning_option=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8768 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8769 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8770 CFLAGS="$xorg_testset_save_CFLAGS"
8771 fi
8772
8773 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8774 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776 fi
8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8779 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8780 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8785 int i;
8786 _ACEOF
8787 if ac_fn_c_try_compile "$LINENO"; then :
8788 xorg_cv_cc_flag_unused_command_line_argument=yes
8789 else
8790 xorg_cv_cc_flag_unused_command_line_argument=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 fi
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8795 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8796 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8798 fi
8799
8800 found="no"
8801
8802 if test $found = "no" ; then
8803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805 fi
8806
8807 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8809 fi
8810
8811 CFLAGS="$CFLAGS -Wtrigraphs"
8812
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8814 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8815 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8816 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 int i;
8822 int
8823 main ()
8824 {
8825
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 if ac_fn_c_try_link "$LINENO"; then :
8831 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8832 else
8833 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8837 fi
8838
8839
8840 CFLAGS="$xorg_testset_save_CFLAGS"
8841
8842 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8844 $as_echo "$supported" >&6; }
8845 if test "$supported" = "yes" ; then
8846 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8847 found="yes"
8848 fi
8849 fi
8850
8851
8852
8853
8854
8855
8856
8857 xorg_testset_save_CFLAGS="$CFLAGS"
8858
8859 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 int i;
8869 _ACEOF
8870 if ac_fn_c_try_compile "$LINENO"; then :
8871 xorg_cv_cc_flag_unknown_warning_option=yes
8872 else
8873 xorg_cv_cc_flag_unknown_warning_option=no
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8879 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8880 CFLAGS="$xorg_testset_save_CFLAGS"
8881 fi
8882
8883 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8884 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 fi
8887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 int i;
8896 _ACEOF
8897 if ac_fn_c_try_compile "$LINENO"; then :
8898 xorg_cv_cc_flag_unused_command_line_argument=yes
8899 else
8900 xorg_cv_cc_flag_unused_command_line_argument=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 fi
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8906 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8907 CFLAGS="$xorg_testset_save_CFLAGS"
8908 fi
8909
8910 found="no"
8911
8912 if test $found = "no" ; then
8913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915 fi
8916
8917 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8919 fi
8920
8921 CFLAGS="$CFLAGS -Warray-bounds"
8922
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8924 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8925 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
8926 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 int i;
8932 int
8933 main ()
8934 {
8935
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8941 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8942 else
8943 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 fi
8948
8949
8950 CFLAGS="$xorg_testset_save_CFLAGS"
8951
8952 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8954 $as_echo "$supported" >&6; }
8955 if test "$supported" = "yes" ; then
8956 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8957 found="yes"
8958 fi
8959 fi
8960
8961
8962
8963
8964
8965
8966
8967 xorg_testset_save_CFLAGS="$CFLAGS"
8968
8969 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 _ACEOF
8980 if ac_fn_c_try_compile "$LINENO"; then :
8981 xorg_cv_cc_flag_unknown_warning_option=yes
8982 else
8983 xorg_cv_cc_flag_unknown_warning_option=no
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990 CFLAGS="$xorg_testset_save_CFLAGS"
8991 fi
8992
8993 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8994 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996 fi
8997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 int i;
9006 _ACEOF
9007 if ac_fn_c_try_compile "$LINENO"; then :
9008 xorg_cv_cc_flag_unused_command_line_argument=yes
9009 else
9010 xorg_cv_cc_flag_unused_command_line_argument=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018 fi
9019
9020 found="no"
9021
9022 if test $found = "no" ; then
9023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025 fi
9026
9027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029 fi
9030
9031 CFLAGS="$CFLAGS -Wwrite-strings"
9032
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9034 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9035 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9036 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 int i;
9042 int
9043 main ()
9044 {
9045
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 if ac_fn_c_try_link "$LINENO"; then :
9051 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9052 else
9053 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 fi
9058
9059
9060 CFLAGS="$xorg_testset_save_CFLAGS"
9061
9062 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9064 $as_echo "$supported" >&6; }
9065 if test "$supported" = "yes" ; then
9066 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9067 found="yes"
9068 fi
9069 fi
9070
9071
9072
9073
9074
9075
9076
9077 xorg_testset_save_CFLAGS="$CFLAGS"
9078
9079 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 int i;
9089 _ACEOF
9090 if ac_fn_c_try_compile "$LINENO"; then :
9091 xorg_cv_cc_flag_unknown_warning_option=yes
9092 else
9093 xorg_cv_cc_flag_unknown_warning_option=no
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9099 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9100 CFLAGS="$xorg_testset_save_CFLAGS"
9101 fi
9102
9103 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9104 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106 fi
9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 int i;
9116 _ACEOF
9117 if ac_fn_c_try_compile "$LINENO"; then :
9118 xorg_cv_cc_flag_unused_command_line_argument=yes
9119 else
9120 xorg_cv_cc_flag_unused_command_line_argument=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9126 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9128 fi
9129
9130 found="no"
9131
9132 if test $found = "no" ; then
9133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135 fi
9136
9137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9139 fi
9140
9141 CFLAGS="$CFLAGS -Waddress"
9142
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9144 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9145 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9146 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9147 $as_echo_n "(cached) " >&6
9148 else
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 int i;
9152 int
9153 main ()
9154 {
9155
9156 ;
9157 return 0;
9158 }
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9162 else
9163 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9164 fi
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9167 fi
9168
9169
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9171
9172 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174 $as_echo "$supported" >&6; }
9175 if test "$supported" = "yes" ; then
9176 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9177 found="yes"
9178 fi
9179 fi
9180
9181
9182
9183
9184
9185
9186
9187 xorg_testset_save_CFLAGS="$CFLAGS"
9188
9189 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 int i;
9199 _ACEOF
9200 if ac_fn_c_try_compile "$LINENO"; then :
9201 xorg_cv_cc_flag_unknown_warning_option=yes
9202 else
9203 xorg_cv_cc_flag_unknown_warning_option=no
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206 fi
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9209 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9210 CFLAGS="$xorg_testset_save_CFLAGS"
9211 fi
9212
9213 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216 fi
9217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 int i;
9226 _ACEOF
9227 if ac_fn_c_try_compile "$LINENO"; then :
9228 xorg_cv_cc_flag_unused_command_line_argument=yes
9229 else
9230 xorg_cv_cc_flag_unused_command_line_argument=no
9231 fi
9232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9233 fi
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9236 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9237 CFLAGS="$xorg_testset_save_CFLAGS"
9238 fi
9239
9240 found="no"
9241
9242 if test $found = "no" ; then
9243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9245 fi
9246
9247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9249 fi
9250
9251 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9252
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9254 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9255 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9256 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 int i;
9262 int
9263 main ()
9264 {
9265
9266 ;
9267 return 0;
9268 }
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9272 else
9273 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 fi
9278
9279
9280 CFLAGS="$xorg_testset_save_CFLAGS"
9281
9282 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9284 $as_echo "$supported" >&6; }
9285 if test "$supported" = "yes" ; then
9286 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9287 found="yes"
9288 fi
9289 fi
9290
9291
9292
9293
9294
9295
9296
9297 xorg_testset_save_CFLAGS="$CFLAGS"
9298
9299 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9302 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9303 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 int i;
9309 _ACEOF
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 xorg_cv_cc_flag_unknown_warning_option=yes
9312 else
9313 xorg_cv_cc_flag_unknown_warning_option=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 fi
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9318 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9319 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9320 CFLAGS="$xorg_testset_save_CFLAGS"
9321 fi
9322
9323 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9326 fi
9327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9329 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9330 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 int i;
9336 _ACEOF
9337 if ac_fn_c_try_compile "$LINENO"; then :
9338 xorg_cv_cc_flag_unused_command_line_argument=yes
9339 else
9340 xorg_cv_cc_flag_unused_command_line_argument=no
9341 fi
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9345 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9346 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9347 CFLAGS="$xorg_testset_save_CFLAGS"
9348 fi
9349
9350 found="no"
9351
9352 if test $found = "no" ; then
9353 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355 fi
9356
9357 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9359 fi
9360
9361 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9362
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9364 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9365 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9366 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 int i;
9372 int
9373 main ()
9374 {
9375
9376 ;
9377 return 0;
9378 }
9379 _ACEOF
9380 if ac_fn_c_try_link "$LINENO"; then :
9381 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9382 else
9383 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 fi
9388
9389
9390 CFLAGS="$xorg_testset_save_CFLAGS"
9391
9392 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9394 $as_echo "$supported" >&6; }
9395 if test "$supported" = "yes" ; then
9396 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9397 found="yes"
9398 fi
9399 fi
9400
9401
9402 fi
9403
9404
9405
9406
9407
9408
9409 CWARNFLAGS="$BASE_CFLAGS"
9410 if test "x$GCC" = xyes ; then
9411 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9412 fi
9413
9414
9415
9416
9417
9418
9419 # Check whether --enable-strict-compilation was given.
9420 if test "${enable_strict_compilation+set}" = set; then :
9421 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9422 else
9423 STRICT_COMPILE=no
9424 fi
9425
9426
9427 STRICT_CFLAGS=""
9428
9429
9430
9431
9432
9433 xorg_testset_save_CFLAGS="$CFLAGS"
9434
9435 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 int i;
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 xorg_cv_cc_flag_unknown_warning_option=yes
9448 else
9449 xorg_cv_cc_flag_unknown_warning_option=no
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 fi
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9455 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9456 CFLAGS="$xorg_testset_save_CFLAGS"
9457 fi
9458
9459 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 fi
9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"; then :
9474 xorg_cv_cc_flag_unused_command_line_argument=yes
9475 else
9476 xorg_cv_cc_flag_unused_command_line_argument=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9482 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9484 fi
9485
9486 found="no"
9487
9488 if test $found = "no" ; then
9489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491 fi
9492
9493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9495 fi
9496
9497 CFLAGS="$CFLAGS -pedantic"
9498
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9500 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9501 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9502 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507 int i;
9508 int
9509 main ()
9510 {
9511
9512 ;
9513 return 0;
9514 }
9515 _ACEOF
9516 if ac_fn_c_try_link "$LINENO"; then :
9517 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9518 else
9519 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 fi
9524
9525
9526 CFLAGS="$xorg_testset_save_CFLAGS"
9527
9528 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9530 $as_echo "$supported" >&6; }
9531 if test "$supported" = "yes" ; then
9532 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9533 found="yes"
9534 fi
9535 fi
9536
9537
9538
9539
9540
9541
9542
9543 xorg_testset_save_CFLAGS="$CFLAGS"
9544
9545 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 int i;
9555 _ACEOF
9556 if ac_fn_c_try_compile "$LINENO"; then :
9557 xorg_cv_cc_flag_unknown_warning_option=yes
9558 else
9559 xorg_cv_cc_flag_unknown_warning_option=no
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9565 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9566 CFLAGS="$xorg_testset_save_CFLAGS"
9567 fi
9568
9569 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9570 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572 fi
9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int i;
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 xorg_cv_cc_flag_unused_command_line_argument=yes
9585 else
9586 xorg_cv_cc_flag_unused_command_line_argument=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9592 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594 fi
9595
9596 found="no"
9597
9598 if test $found = "no" ; then
9599 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9601 fi
9602
9603 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9605 fi
9606
9607 CFLAGS="$CFLAGS -Werror"
9608
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9610 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9611 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9612 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 int
9619 main ()
9620 {
9621
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_link "$LINENO"; then :
9627 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9628 else
9629 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 fi
9634
9635
9636 CFLAGS="$xorg_testset_save_CFLAGS"
9637
9638 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9640 $as_echo "$supported" >&6; }
9641 if test "$supported" = "yes" ; then
9642 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9643 found="yes"
9644 fi
9645 fi
9646
9647 if test $found = "no" ; then
9648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9650 fi
9651
9652 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654 fi
9655
9656 CFLAGS="$CFLAGS -errwarn"
9657
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9659 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9660 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9661 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 int i;
9667 int
9668 main ()
9669 {
9670
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"; then :
9676 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9677 else
9678 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 fi
9683
9684
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9686
9687 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9689 $as_echo "$supported" >&6; }
9690 if test "$supported" = "yes" ; then
9691 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9692 found="yes"
9693 fi
9694 fi
9695
9696
9697
9698 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9699 # activate it with -Werror, so we add it here explicitly.
9700
9701
9702
9703
9704
9705 xorg_testset_save_CFLAGS="$CFLAGS"
9706
9707 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9710 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9711 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 int i;
9717 _ACEOF
9718 if ac_fn_c_try_compile "$LINENO"; then :
9719 xorg_cv_cc_flag_unknown_warning_option=yes
9720 else
9721 xorg_cv_cc_flag_unknown_warning_option=no
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9726 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9727 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9728 CFLAGS="$xorg_testset_save_CFLAGS"
9729 fi
9730
9731 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9734 fi
9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9737 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9738 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 int i;
9744 _ACEOF
9745 if ac_fn_c_try_compile "$LINENO"; then :
9746 xorg_cv_cc_flag_unused_command_line_argument=yes
9747 else
9748 xorg_cv_cc_flag_unused_command_line_argument=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 fi
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9753 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9754 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9755 CFLAGS="$xorg_testset_save_CFLAGS"
9756 fi
9757
9758 found="no"
9759
9760 if test $found = "no" ; then
9761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763 fi
9764
9765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767 fi
9768
9769 CFLAGS="$CFLAGS -Werror=attributes"
9770
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9772 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9773 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9774 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int i;
9780 int
9781 main ()
9782 {
9783
9784 ;
9785 return 0;
9786 }
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9789 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9790 else
9791 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 fi
9796
9797
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9799
9800 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9802 $as_echo "$supported" >&6; }
9803 if test "$supported" = "yes" ; then
9804 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9805 found="yes"
9806 fi
9807 fi
9808
9809
9810
9811 if test "x$STRICT_COMPILE" = "xyes"; then
9812 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9813 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9814 fi
9815
9816
9817
9818
9819
9820
9821 cat >>confdefs.h <<_ACEOF
9822 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9823 _ACEOF
9824
9825 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9826 if test "x$PVM" = "x"; then
9827 PVM="0"
9828 fi
9829
9830 cat >>confdefs.h <<_ACEOF
9831 #define PACKAGE_VERSION_MINOR $PVM
9832 _ACEOF
9833
9834 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9835 if test "x$PVP" = "x"; then
9836 PVP="0"
9837 fi
9838
9839 cat >>confdefs.h <<_ACEOF
9840 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9841 _ACEOF
9842
9843
9844
9845 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9846 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9847 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9848 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9849
9850
9851
9852
9853 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9854 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9855 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9856 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9857 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9858
9859
9860
9861
9862
9863
9864 if test x$APP_MAN_SUFFIX = x ; then
9865 APP_MAN_SUFFIX=1
9866 fi
9867 if test x$APP_MAN_DIR = x ; then
9868 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9869 fi
9870
9871 if test x$LIB_MAN_SUFFIX = x ; then
9872 LIB_MAN_SUFFIX=3
9873 fi
9874 if test x$LIB_MAN_DIR = x ; then
9875 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9876 fi
9877
9878 if test x$FILE_MAN_SUFFIX = x ; then
9879 case $host_os in
9880 solaris*) FILE_MAN_SUFFIX=4 ;;
9881 *) FILE_MAN_SUFFIX=5 ;;
9882 esac
9883 fi
9884 if test x$FILE_MAN_DIR = x ; then
9885 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9886 fi
9887
9888 if test x$MISC_MAN_SUFFIX = x ; then
9889 case $host_os in
9890 solaris*) MISC_MAN_SUFFIX=5 ;;
9891 *) MISC_MAN_SUFFIX=7 ;;
9892 esac
9893 fi
9894 if test x$MISC_MAN_DIR = x ; then
9895 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9896 fi
9897
9898 if test x$DRIVER_MAN_SUFFIX = x ; then
9899 case $host_os in
9900 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9901 *) DRIVER_MAN_SUFFIX=4 ;;
9902 esac
9903 fi
9904 if test x$DRIVER_MAN_DIR = x ; then
9905 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9906 fi
9907
9908 if test x$ADMIN_MAN_SUFFIX = x ; then
9909 case $host_os in
9910 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9911 *) ADMIN_MAN_SUFFIX=8 ;;
9912 esac
9913 fi
9914 if test x$ADMIN_MAN_DIR = x ; then
9915 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9916 fi
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932 XORG_MAN_PAGE="X Version 11"
9933
9934 MAN_SUBSTS="\
9935 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9936 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9937 -e 's|__xservername__|Xorg|g' \
9938 -e 's|__xconfigfile__|xorg.conf|g' \
9939 -e 's|__projectroot__|\$(prefix)|g' \
9940 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9941 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9942 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9943 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9944 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9945 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9946 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9947
9948
9949
9950 # Check whether --enable-silent-rules was given.
9951 if test "${enable_silent_rules+set}" = set; then :
9952 enableval=$enable_silent_rules;
9953 fi
9954
9955 case $enable_silent_rules in
9956 yes) AM_DEFAULT_VERBOSITY=0;;
9957 no) AM_DEFAULT_VERBOSITY=1;;
9958 *) AM_DEFAULT_VERBOSITY=0;;
9959 esac
9960 AM_BACKSLASH='\'
9961
9962
9963
9964 ac_config_files="$ac_config_files Makefile man/Makefile"
9965
9966 cat >confcache <<\_ACEOF
9967 # This file is a shell script that caches the results of configure
9968 # tests run on this system so they can be shared between configure
9969 # scripts and configure runs, see configure's option --config-cache.
9970 # It is not useful on other systems. If it contains results you don't
9971 # want to keep, you may remove or edit it.
9972 #
9973 # config.status only pays attention to the cache file if you give it
9974 # the --recheck option to rerun configure.
9975 #
9976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9978 # following values.
9979
9980 _ACEOF
9981
9982 # The following way of writing the cache mishandles newlines in values,
9983 # but we know of no workaround that is simple, portable, and efficient.
9984 # So, we kill variables containing newlines.
9985 # Ultrix sh set writes to stderr and can't be redirected directly,
9986 # and sets the high bit in the cache file unless we assign to the vars.
9987 (
9988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9989 eval ac_val=\$$ac_var
9990 case $ac_val in #(
9991 *${as_nl}*)
9992 case $ac_var in #(
9993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9995 esac
9996 case $ac_var in #(
9997 _ | IFS | as_nl) ;; #(
9998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9999 *) { eval $ac_var=; unset $ac_var;} ;;
10000 esac ;;
10001 esac
10002 done
10003
10004 (set) 2>&1 |
10005 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10006 *${as_nl}ac_space=\ *)
10007 # `set' does not quote correctly, so add quotes: double-quote
10008 # substitution turns \\\\ into \\, and sed turns \\ into \.
10009 sed -n \
10010 "s/'/'\\\\''/g;
10011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10012 ;; #(
10013 *)
10014 # `set' quotes correctly as required by POSIX, so do not add quotes.
10015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10016 ;;
10017 esac |
10018 sort
10019 ) |
10020 sed '
10021 /^ac_cv_env_/b end
10022 t clear
10023 :clear
10024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10025 t end
10026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10027 :end' >>confcache
10028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10029 if test -w "$cache_file"; then
10030 if test "x$cache_file" != "x/dev/null"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10032 $as_echo "$as_me: updating cache $cache_file" >&6;}
10033 if test ! -f "$cache_file" || test -h "$cache_file"; then
10034 cat confcache >"$cache_file"
10035 else
10036 case $cache_file in #(
10037 */* | ?:*)
10038 mv -f confcache "$cache_file"$$ &&
10039 mv -f "$cache_file"$$ "$cache_file" ;; #(
10040 *)
10041 mv -f confcache "$cache_file" ;;
10042 esac
10043 fi
10044 fi
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10048 fi
10049 fi
10050 rm -f confcache
10051
10052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10053 # Let make expand exec_prefix.
10054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10055
10056 # Transform confdefs.h into DEFS.
10057 # Protect against shell expansion while executing Makefile rules.
10058 # Protect against Makefile macro expansion.
10059 #
10060 # If the first sed substitution is executed (which looks for macros that
10061 # take arguments), then branch to the quote section. Otherwise,
10062 # look for a macro that doesn't take arguments.
10063 ac_script='
10064 :mline
10065 /\\$/{
10066 N
10067 s,\\\n,,
10068 b mline
10069 }
10070 t clear
10071 :clear
10072 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10073 t quote
10074 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10075 t quote
10076 b any
10077 :quote
10078 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10079 s/\[/\\&/g
10080 s/\]/\\&/g
10081 s/\$/$$/g
10082 H
10083 :any
10084 ${
10085 g
10086 s/^\n//
10087 s/\n/ /g
10088 p
10089 }
10090 '
10091 DEFS=`sed -n "$ac_script" confdefs.h`
10092
10093
10094 ac_libobjs=
10095 ac_ltlibobjs=
10096 U=
10097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10098 # 1. Remove the extension, and $U if already installed.
10099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10102 # will be set to the directory where LIBOBJS objects are built.
10103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10105 done
10106 LIBOBJS=$ac_libobjs
10107
10108 LTLIBOBJS=$ac_ltlibobjs
10109
10110
10111 if test -n "$EXEEXT"; then
10112 am__EXEEXT_TRUE=
10113 am__EXEEXT_FALSE='#'
10114 else
10115 am__EXEEXT_TRUE='#'
10116 am__EXEEXT_FALSE=
10117 fi
10118
10119 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10120 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10122 fi
10123 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10124 as_fn_error $? "conditional \"AMDEP\" was never defined.
10125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10126 fi
10127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10128 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10130 fi
10131
10132 : "${CONFIG_STATUS=./config.status}"
10133 ac_write_fail=0
10134 ac_clean_files_save=$ac_clean_files
10135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10137 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10138 as_write_fail=0
10139 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10140 #! $SHELL
10141 # Generated by $as_me.
10142 # Run this file to recreate the current configuration.
10143 # Compiler output produced by configure, useful for debugging
10144 # configure, is in config.log if it exists.
10145
10146 debug=false
10147 ac_cs_recheck=false
10148 ac_cs_silent=false
10149
10150 SHELL=\${CONFIG_SHELL-$SHELL}
10151 export SHELL
10152 _ASEOF
10153 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10154 ## -------------------- ##
10155 ## M4sh Initialization. ##
10156 ## -------------------- ##
10157
10158 # Be more Bourne compatible
10159 DUALCASE=1; export DUALCASE # for MKS sh
10160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10161 emulate sh
10162 NULLCMD=:
10163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10164 # is contrary to our usage. Disable this feature.
10165 alias -g '${1+"$@"}'='"$@"'
10166 setopt NO_GLOB_SUBST
10167 else
10168 case `(set -o) 2>/dev/null` in #(
10169 *posix*) :
10170 set -o posix ;; #(
10171 *) :
10172 ;;
10173 esac
10174 fi
10175
10176
10177 as_nl='
10178 '
10179 export as_nl
10180 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10184 # Prefer a ksh shell builtin over an external printf program on Solaris,
10185 # but without wasting forks for bash or zsh.
10186 if test -z "$BASH_VERSION$ZSH_VERSION" \
10187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10188 as_echo='print -r --'
10189 as_echo_n='print -rn --'
10190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10191 as_echo='printf %s\n'
10192 as_echo_n='printf %s'
10193 else
10194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10196 as_echo_n='/usr/ucb/echo -n'
10197 else
10198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10199 as_echo_n_body='eval
10200 arg=$1;
10201 case $arg in #(
10202 *"$as_nl"*)
10203 expr "X$arg" : "X\\(.*\\)$as_nl";
10204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10205 esac;
10206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10207 '
10208 export as_echo_n_body
10209 as_echo_n='sh -c $as_echo_n_body as_echo'
10210 fi
10211 export as_echo_body
10212 as_echo='sh -c $as_echo_body as_echo'
10213 fi
10214
10215 # The user is always right.
10216 if test "${PATH_SEPARATOR+set}" != set; then
10217 PATH_SEPARATOR=:
10218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10220 PATH_SEPARATOR=';'
10221 }
10222 fi
10223
10224
10225 # IFS
10226 # We need space, tab and new line, in precisely that order. Quoting is
10227 # there to prevent editors from complaining about space-tab.
10228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10229 # splitting by setting IFS to empty value.)
10230 IFS=" "" $as_nl"
10231
10232 # Find who we are. Look in the path if we contain no directory separator.
10233 as_myself=
10234 case $0 in #((
10235 *[\\/]* ) as_myself=$0 ;;
10236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10238 do
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
10241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10242 done
10243 IFS=$as_save_IFS
10244
10245 ;;
10246 esac
10247 # We did not find ourselves, most probably we were run as `sh COMMAND'
10248 # in which case we are not to be found in the path.
10249 if test "x$as_myself" = x; then
10250 as_myself=$0
10251 fi
10252 if test ! -f "$as_myself"; then
10253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10254 exit 1
10255 fi
10256
10257 # Unset variables that we do not need and which cause bugs (e.g. in
10258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10259 # suppresses any "Segmentation fault" message there. '((' could
10260 # trigger a bug in pdksh 5.2.14.
10261 for as_var in BASH_ENV ENV MAIL MAILPATH
10262 do eval test x\${$as_var+set} = xset \
10263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10264 done
10265 PS1='$ '
10266 PS2='> '
10267 PS4='+ '
10268
10269 # NLS nuisances.
10270 LC_ALL=C
10271 export LC_ALL
10272 LANGUAGE=C
10273 export LANGUAGE
10274
10275 # CDPATH.
10276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10277
10278
10279 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10280 # ----------------------------------------
10281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10283 # script with STATUS, using 1 if that was 0.
10284 as_fn_error ()
10285 {
10286 as_status=$1; test $as_status -eq 0 && as_status=1
10287 if test "$4"; then
10288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10290 fi
10291 $as_echo "$as_me: error: $2" >&2
10292 as_fn_exit $as_status
10293 } # as_fn_error
10294
10295
10296 # as_fn_set_status STATUS
10297 # -----------------------
10298 # Set $? to STATUS, without forking.
10299 as_fn_set_status ()
10300 {
10301 return $1
10302 } # as_fn_set_status
10303
10304 # as_fn_exit STATUS
10305 # -----------------
10306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10307 as_fn_exit ()
10308 {
10309 set +e
10310 as_fn_set_status $1
10311 exit $1
10312 } # as_fn_exit
10313
10314 # as_fn_unset VAR
10315 # ---------------
10316 # Portably unset VAR.
10317 as_fn_unset ()
10318 {
10319 { eval $1=; unset $1;}
10320 }
10321 as_unset=as_fn_unset
10322 # as_fn_append VAR VALUE
10323 # ----------------------
10324 # Append the text in VALUE to the end of the definition contained in VAR. Take
10325 # advantage of any shell optimizations that allow amortized linear growth over
10326 # repeated appends, instead of the typical quadratic growth present in naive
10327 # implementations.
10328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10329 eval 'as_fn_append ()
10330 {
10331 eval $1+=\$2
10332 }'
10333 else
10334 as_fn_append ()
10335 {
10336 eval $1=\$$1\$2
10337 }
10338 fi # as_fn_append
10339
10340 # as_fn_arith ARG...
10341 # ------------------
10342 # Perform arithmetic evaluation on the ARGs, and store the result in the
10343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10344 # must be portable across $(()) and expr.
10345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10346 eval 'as_fn_arith ()
10347 {
10348 as_val=$(( $* ))
10349 }'
10350 else
10351 as_fn_arith ()
10352 {
10353 as_val=`expr "$@" || test $? -eq 1`
10354 }
10355 fi # as_fn_arith
10356
10357
10358 if expr a : '\(a\)' >/dev/null 2>&1 &&
10359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10360 as_expr=expr
10361 else
10362 as_expr=false
10363 fi
10364
10365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10366 as_basename=basename
10367 else
10368 as_basename=false
10369 fi
10370
10371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10372 as_dirname=dirname
10373 else
10374 as_dirname=false
10375 fi
10376
10377 as_me=`$as_basename -- "$0" ||
10378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10379 X"$0" : 'X\(//\)$' \| \
10380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10381 $as_echo X/"$0" |
10382 sed '/^.*\/\([^/][^/]*\)\/*$/{
10383 s//\1/
10384 q
10385 }
10386 /^X\/\(\/\/\)$/{
10387 s//\1/
10388 q
10389 }
10390 /^X\/\(\/\).*/{
10391 s//\1/
10392 q
10393 }
10394 s/.*/./; q'`
10395
10396 # Avoid depending upon Character Ranges.
10397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10400 as_cr_digits='0123456789'
10401 as_cr_alnum=$as_cr_Letters$as_cr_digits
10402
10403 ECHO_C= ECHO_N= ECHO_T=
10404 case `echo -n x` in #(((((
10405 -n*)
10406 case `echo 'xy\c'` in
10407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10408 xy) ECHO_C='\c';;
10409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10410 ECHO_T=' ';;
10411 esac;;
10412 *)
10413 ECHO_N='-n';;
10414 esac
10415
10416 rm -f conf$$ conf$$.exe conf$$.file
10417 if test -d conf$$.dir; then
10418 rm -f conf$$.dir/conf$$.file
10419 else
10420 rm -f conf$$.dir
10421 mkdir conf$$.dir 2>/dev/null
10422 fi
10423 if (echo >conf$$.file) 2>/dev/null; then
10424 if ln -s conf$$.file conf$$ 2>/dev/null; then
10425 as_ln_s='ln -s'
10426 # ... but there are two gotchas:
10427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10429 # In both cases, we have to default to `cp -p'.
10430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10431 as_ln_s='cp -p'
10432 elif ln conf$$.file conf$$ 2>/dev/null; then
10433 as_ln_s=ln
10434 else
10435 as_ln_s='cp -p'
10436 fi
10437 else
10438 as_ln_s='cp -p'
10439 fi
10440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10441 rmdir conf$$.dir 2>/dev/null
10442
10443
10444 # as_fn_mkdir_p
10445 # -------------
10446 # Create "$as_dir" as a directory, including parents if necessary.
10447 as_fn_mkdir_p ()
10448 {
10449
10450 case $as_dir in #(
10451 -*) as_dir=./$as_dir;;
10452 esac
10453 test -d "$as_dir" || eval $as_mkdir_p || {
10454 as_dirs=
10455 while :; do
10456 case $as_dir in #(
10457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10458 *) as_qdir=$as_dir;;
10459 esac
10460 as_dirs="'$as_qdir' $as_dirs"
10461 as_dir=`$as_dirname -- "$as_dir" ||
10462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10463 X"$as_dir" : 'X\(//\)[^/]' \| \
10464 X"$as_dir" : 'X\(//\)$' \| \
10465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10466 $as_echo X"$as_dir" |
10467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10468 s//\1/
10469 q
10470 }
10471 /^X\(\/\/\)[^/].*/{
10472 s//\1/
10473 q
10474 }
10475 /^X\(\/\/\)$/{
10476 s//\1/
10477 q
10478 }
10479 /^X\(\/\).*/{
10480 s//\1/
10481 q
10482 }
10483 s/.*/./; q'`
10484 test -d "$as_dir" && break
10485 done
10486 test -z "$as_dirs" || eval "mkdir $as_dirs"
10487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10488
10489
10490 } # as_fn_mkdir_p
10491 if mkdir -p . 2>/dev/null; then
10492 as_mkdir_p='mkdir -p "$as_dir"'
10493 else
10494 test -d ./-p && rmdir ./-p
10495 as_mkdir_p=false
10496 fi
10497
10498 if test -x / >/dev/null 2>&1; then
10499 as_test_x='test -x'
10500 else
10501 if ls -dL / >/dev/null 2>&1; then
10502 as_ls_L_option=L
10503 else
10504 as_ls_L_option=
10505 fi
10506 as_test_x='
10507 eval sh -c '\''
10508 if test -d "$1"; then
10509 test -d "$1/.";
10510 else
10511 case $1 in #(
10512 -*)set "./$1";;
10513 esac;
10514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10515 ???[sx]*):;;*)false;;esac;fi
10516 '\'' sh
10517 '
10518 fi
10519 as_executable_p=$as_test_x
10520
10521 # Sed expression to map a string onto a valid CPP name.
10522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10523
10524 # Sed expression to map a string onto a valid variable name.
10525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10526
10527
10528 exec 6>&1
10529 ## ----------------------------------- ##
10530 ## Main body of $CONFIG_STATUS script. ##
10531 ## ----------------------------------- ##
10532 _ASEOF
10533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10534
10535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10536 # Save the log message, to keep $0 and so on meaningful, and to
10537 # report actual input values of CONFIG_FILES etc. instead of their
10538 # values after options handling.
10539 ac_log="
10540 This file was extended by mkfontdir $as_me 1.0.7, which was
10541 generated by GNU Autoconf 2.68. Invocation command line was
10542
10543 CONFIG_FILES = $CONFIG_FILES
10544 CONFIG_HEADERS = $CONFIG_HEADERS
10545 CONFIG_LINKS = $CONFIG_LINKS
10546 CONFIG_COMMANDS = $CONFIG_COMMANDS
10547 $ $0 $@
10548
10549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10550 "
10551
10552 _ACEOF
10553
10554 case $ac_config_files in *"
10555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10556 esac
10557
10558
10559
10560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10561 # Files that config.status was made for.
10562 config_files="$ac_config_files"
10563 config_commands="$ac_config_commands"
10564
10565 _ACEOF
10566
10567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10568 ac_cs_usage="\
10569 \`$as_me' instantiates files and other configuration actions
10570 from templates according to the current configuration. Unless the files
10571 and actions are specified as TAGs, all are instantiated by default.
10572
10573 Usage: $0 [OPTION]... [TAG]...
10574
10575 -h, --help print this help, then exit
10576 -V, --version print version number and configuration settings, then exit
10577 --config print configuration, then exit
10578 -q, --quiet, --silent
10579 do not print progress messages
10580 -d, --debug don't remove temporary files
10581 --recheck update $as_me by reconfiguring in the same conditions
10582 --file=FILE[:TEMPLATE]
10583 instantiate the configuration file FILE
10584
10585 Configuration files:
10586 $config_files
10587
10588 Configuration commands:
10589 $config_commands
10590
10591 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10592
10593 _ACEOF
10594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10595 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10596 ac_cs_version="\\
10597 mkfontdir config.status 1.0.7
10598 configured by $0, generated by GNU Autoconf 2.68,
10599 with options \\"\$ac_cs_config\\"
10600
10601 Copyright (C) 2010 Free Software Foundation, Inc.
10602 This config.status script is free software; the Free Software Foundation
10603 gives unlimited permission to copy, distribute and modify it."
10604
10605 ac_pwd='$ac_pwd'
10606 srcdir='$srcdir'
10607 INSTALL='$INSTALL'
10608 MKDIR_P='$MKDIR_P'
10609 AWK='$AWK'
10610 test -n "\$AWK" || AWK=awk
10611 _ACEOF
10612
10613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10614 # The default lists apply if the user does not specify any file.
10615 ac_need_defaults=:
10616 while test $# != 0
10617 do
10618 case $1 in
10619 --*=?*)
10620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10622 ac_shift=:
10623 ;;
10624 --*=)
10625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10626 ac_optarg=
10627 ac_shift=:
10628 ;;
10629 *)
10630 ac_option=$1
10631 ac_optarg=$2
10632 ac_shift=shift
10633 ;;
10634 esac
10635
10636 case $ac_option in
10637 # Handling of the options.
10638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10639 ac_cs_recheck=: ;;
10640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10641 $as_echo "$ac_cs_version"; exit ;;
10642 --config | --confi | --conf | --con | --co | --c )
10643 $as_echo "$ac_cs_config"; exit ;;
10644 --debug | --debu | --deb | --de | --d | -d )
10645 debug=: ;;
10646 --file | --fil | --fi | --f )
10647 $ac_shift
10648 case $ac_optarg in
10649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10650 '') as_fn_error $? "missing file argument" ;;
10651 esac
10652 as_fn_append CONFIG_FILES " '$ac_optarg'"
10653 ac_need_defaults=false;;
10654 --he | --h | --help | --hel | -h )
10655 $as_echo "$ac_cs_usage"; exit ;;
10656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10658 ac_cs_silent=: ;;
10659
10660 # This is an error.
10661 -*) as_fn_error $? "unrecognized option: \`$1'
10662 Try \`$0 --help' for more information." ;;
10663
10664 *) as_fn_append ac_config_targets " $1"
10665 ac_need_defaults=false ;;
10666
10667 esac
10668 shift
10669 done
10670
10671 ac_configure_extra_args=
10672
10673 if $ac_cs_silent; then
10674 exec 6>/dev/null
10675 ac_configure_extra_args="$ac_configure_extra_args --silent"
10676 fi
10677
10678 _ACEOF
10679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10680 if \$ac_cs_recheck; then
10681 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10682 shift
10683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10684 CONFIG_SHELL='$SHELL'
10685 export CONFIG_SHELL
10686 exec "\$@"
10687 fi
10688
10689 _ACEOF
10690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10691 exec 5>>config.log
10692 {
10693 echo
10694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10695 ## Running $as_me. ##
10696 _ASBOX
10697 $as_echo "$ac_log"
10698 } >&5
10699
10700 _ACEOF
10701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10702 #
10703 # INIT-COMMANDS
10704 #
10705 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10706
10707 _ACEOF
10708
10709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10710
10711 # Handling of arguments.
10712 for ac_config_target in $ac_config_targets
10713 do
10714 case $ac_config_target in
10715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10717 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10718
10719 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10720 esac
10721 done
10722
10723
10724 # If the user did not use the arguments to specify the items to instantiate,
10725 # then the envvar interface is used. Set only those that are not.
10726 # We use the long form for the default assignment because of an extremely
10727 # bizarre bug on SunOS 4.1.3.
10728 if $ac_need_defaults; then
10729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10731 fi
10732
10733 # Have a temporary directory for convenience. Make it in the build tree
10734 # simply because there is no reason against having it here, and in addition,
10735 # creating and moving files from /tmp can sometimes cause problems.
10736 # Hook for its removal unless debugging.
10737 # Note that there is a small window in which the directory will not be cleaned:
10738 # after its creation but before its name has been assigned to `$tmp'.
10739 $debug ||
10740 {
10741 tmp= ac_tmp=
10742 trap 'exit_status=$?
10743 : "${ac_tmp:=$tmp}"
10744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10745 ' 0
10746 trap 'as_fn_exit 1' 1 2 13 15
10747 }
10748 # Create a (secure) tmp directory for tmp files.
10749
10750 {
10751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10752 test -d "$tmp"
10753 } ||
10754 {
10755 tmp=./conf$$-$RANDOM
10756 (umask 077 && mkdir "$tmp")
10757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10758 ac_tmp=$tmp
10759
10760 # Set up the scripts for CONFIG_FILES section.
10761 # No need to generate them if there are no CONFIG_FILES.
10762 # This happens for instance with `./config.status config.h'.
10763 if test -n "$CONFIG_FILES"; then
10764
10765
10766 ac_cr=`echo X | tr X '\015'`
10767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10768 # But we know of no other shell where ac_cr would be empty at this
10769 # point, so we can use a bashism as a fallback.
10770 if test "x$ac_cr" = x; then
10771 eval ac_cr=\$\'\\r\'
10772 fi
10773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10775 ac_cs_awk_cr='\\r'
10776 else
10777 ac_cs_awk_cr=$ac_cr
10778 fi
10779
10780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10781 _ACEOF
10782
10783
10784 {
10785 echo "cat >conf$$subs.awk <<_ACEOF" &&
10786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10787 echo "_ACEOF"
10788 } >conf$$subs.sh ||
10789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10791 ac_delim='%!_!# '
10792 for ac_last_try in false false false false false :; do
10793 . ./conf$$subs.sh ||
10794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10795
10796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10797 if test $ac_delim_n = $ac_delim_num; then
10798 break
10799 elif $ac_last_try; then
10800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10801 else
10802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10803 fi
10804 done
10805 rm -f conf$$subs.sh
10806
10807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10809 _ACEOF
10810 sed -n '
10811 h
10812 s/^/S["/; s/!.*/"]=/
10813 p
10814 g
10815 s/^[^!]*!//
10816 :repl
10817 t repl
10818 s/'"$ac_delim"'$//
10819 t delim
10820 :nl
10821 h
10822 s/\(.\{148\}\)..*/\1/
10823 t more1
10824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10825 p
10826 n
10827 b repl
10828 :more1
10829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10830 p
10831 g
10832 s/.\{148\}//
10833 t nl
10834 :delim
10835 h
10836 s/\(.\{148\}\)..*/\1/
10837 t more2
10838 s/["\\]/\\&/g; s/^/"/; s/$/"/
10839 p
10840 b
10841 :more2
10842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10843 p
10844 g
10845 s/.\{148\}//
10846 t delim
10847 ' <conf$$subs.awk | sed '
10848 /^[^""]/{
10849 N
10850 s/\n//
10851 }
10852 ' >>$CONFIG_STATUS || ac_write_fail=1
10853 rm -f conf$$subs.awk
10854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10855 _ACAWK
10856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10857 for (key in S) S_is_set[key] = 1
10858 FS = ""
10859
10860 }
10861 {
10862 line = $ 0
10863 nfields = split(line, field, "@")
10864 substed = 0
10865 len = length(field[1])
10866 for (i = 2; i < nfields; i++) {
10867 key = field[i]
10868 keylen = length(key)
10869 if (S_is_set[key]) {
10870 value = S[key]
10871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10872 len += length(value) + length(field[++i])
10873 substed = 1
10874 } else
10875 len += 1 + keylen
10876 }
10877
10878 print line
10879 }
10880
10881 _ACAWK
10882 _ACEOF
10883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10886 else
10887 cat
10888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10889 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10890 _ACEOF
10891
10892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10894 # trailing colons and then remove the whole line if VPATH becomes empty
10895 # (actually we leave an empty line to preserve line numbers).
10896 if test "x$srcdir" = x.; then
10897 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10898 h
10899 s///
10900 s/^/:/
10901 s/[ ]*$/:/
10902 s/:\$(srcdir):/:/g
10903 s/:\${srcdir}:/:/g
10904 s/:@srcdir@:/:/g
10905 s/^:*//
10906 s/:*$//
10907 x
10908 s/\(=[ ]*\).*/\1/
10909 G
10910 s/\n//
10911 s/^[^=]*=[ ]*$//
10912 }'
10913 fi
10914
10915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10916 fi # test -n "$CONFIG_FILES"
10917
10918
10919 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
10920 shift
10921 for ac_tag
10922 do
10923 case $ac_tag in
10924 :[FHLC]) ac_mode=$ac_tag; continue;;
10925 esac
10926 case $ac_mode$ac_tag in
10927 :[FHL]*:*);;
10928 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10929 :[FH]-) ac_tag=-:-;;
10930 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10931 esac
10932 ac_save_IFS=$IFS
10933 IFS=:
10934 set x $ac_tag
10935 IFS=$ac_save_IFS
10936 shift
10937 ac_file=$1
10938 shift
10939
10940 case $ac_mode in
10941 :L) ac_source=$1;;
10942 :[FH])
10943 ac_file_inputs=
10944 for ac_f
10945 do
10946 case $ac_f in
10947 -) ac_f="$ac_tmp/stdin";;
10948 *) # Look for the file first in the build tree, then in the source tree
10949 # (if the path is not absolute). The absolute path cannot be DOS-style,
10950 # because $ac_f cannot contain `:'.
10951 test -f "$ac_f" ||
10952 case $ac_f in
10953 [\\/$]*) false;;
10954 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10955 esac ||
10956 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10957 esac
10958 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10959 as_fn_append ac_file_inputs " '$ac_f'"
10960 done
10961
10962 # Let's still pretend it is `configure' which instantiates (i.e., don't
10963 # use $as_me), people would be surprised to read:
10964 # /* config.h. Generated by config.status. */
10965 configure_input='Generated from '`
10966 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10967 `' by configure.'
10968 if test x"$ac_file" != x-; then
10969 configure_input="$ac_file. $configure_input"
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10971 $as_echo "$as_me: creating $ac_file" >&6;}
10972 fi
10973 # Neutralize special characters interpreted by sed in replacement strings.
10974 case $configure_input in #(
10975 *\&* | *\|* | *\\* )
10976 ac_sed_conf_input=`$as_echo "$configure_input" |
10977 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10978 *) ac_sed_conf_input=$configure_input;;
10979 esac
10980
10981 case $ac_tag in
10982 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10984 esac
10985 ;;
10986 esac
10987
10988 ac_dir=`$as_dirname -- "$ac_file" ||
10989 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10990 X"$ac_file" : 'X\(//\)[^/]' \| \
10991 X"$ac_file" : 'X\(//\)$' \| \
10992 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10993 $as_echo X"$ac_file" |
10994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10995 s//\1/
10996 q
10997 }
10998 /^X\(\/\/\)[^/].*/{
10999 s//\1/
11000 q
11001 }
11002 /^X\(\/\/\)$/{
11003 s//\1/
11004 q
11005 }
11006 /^X\(\/\).*/{
11007 s//\1/
11008 q
11009 }
11010 s/.*/./; q'`
11011 as_dir="$ac_dir"; as_fn_mkdir_p
11012 ac_builddir=.
11013
11014 case "$ac_dir" in
11015 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11016 *)
11017 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11018 # A ".." for each directory in $ac_dir_suffix.
11019 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11020 case $ac_top_builddir_sub in
11021 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11022 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11023 esac ;;
11024 esac
11025 ac_abs_top_builddir=$ac_pwd
11026 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11027 # for backward compatibility:
11028 ac_top_builddir=$ac_top_build_prefix
11029
11030 case $srcdir in
11031 .) # We are building in place.
11032 ac_srcdir=.
11033 ac_top_srcdir=$ac_top_builddir_sub
11034 ac_abs_top_srcdir=$ac_pwd ;;
11035 [\\/]* | ?:[\\/]* ) # Absolute name.
11036 ac_srcdir=$srcdir$ac_dir_suffix;
11037 ac_top_srcdir=$srcdir
11038 ac_abs_top_srcdir=$srcdir ;;
11039 *) # Relative name.
11040 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11041 ac_top_srcdir=$ac_top_build_prefix$srcdir
11042 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11043 esac
11044 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11045
11046
11047 case $ac_mode in
11048 :F)
11049 #
11050 # CONFIG_FILE
11051 #
11052
11053 case $INSTALL in
11054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11055 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11056 esac
11057 ac_MKDIR_P=$MKDIR_P
11058 case $MKDIR_P in
11059 [\\/$]* | ?:[\\/]* ) ;;
11060 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11061 esac
11062 _ACEOF
11063
11064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11065 # If the template does not know about datarootdir, expand it.
11066 # FIXME: This hack should be removed a few years after 2.60.
11067 ac_datarootdir_hack=; ac_datarootdir_seen=
11068 ac_sed_dataroot='
11069 /datarootdir/ {
11070 p
11071 q
11072 }
11073 /@datadir@/p
11074 /@docdir@/p
11075 /@infodir@/p
11076 /@localedir@/p
11077 /@mandir@/p'
11078 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11079 *datarootdir*) ac_datarootdir_seen=yes;;
11080 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11082 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11083 _ACEOF
11084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11085 ac_datarootdir_hack='
11086 s&@datadir@&$datadir&g
11087 s&@docdir@&$docdir&g
11088 s&@infodir@&$infodir&g
11089 s&@localedir@&$localedir&g
11090 s&@mandir@&$mandir&g
11091 s&\\\${datarootdir}&$datarootdir&g' ;;
11092 esac
11093 _ACEOF
11094
11095 # Neutralize VPATH when `$srcdir' = `.'.
11096 # Shell code in configure.ac might set extrasub.
11097 # FIXME: do we really want to maintain this feature?
11098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11099 ac_sed_extra="$ac_vpsub
11100 $extrasub
11101 _ACEOF
11102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11103 :t
11104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11105 s|@configure_input@|$ac_sed_conf_input|;t t
11106 s&@top_builddir@&$ac_top_builddir_sub&;t t
11107 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11108 s&@srcdir@&$ac_srcdir&;t t
11109 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11110 s&@top_srcdir@&$ac_top_srcdir&;t t
11111 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11112 s&@builddir@&$ac_builddir&;t t
11113 s&@abs_builddir@&$ac_abs_builddir&;t t
11114 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11115 s&@INSTALL@&$ac_INSTALL&;t t
11116 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11117 $ac_datarootdir_hack
11118 "
11119 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11120 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11121
11122 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11123 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11125 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11127 which seems to be undefined. Please make sure it is defined" >&5
11128 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11129 which seems to be undefined. Please make sure it is defined" >&2;}
11130
11131 rm -f "$ac_tmp/stdin"
11132 case $ac_file in
11133 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11134 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11135 esac \
11136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11137 ;;
11138
11139
11140 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11141 $as_echo "$as_me: executing $ac_file commands" >&6;}
11142 ;;
11143 esac
11144
11145
11146 case $ac_file$ac_mode in
11147 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11148 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11149 # are listed without --file. Let's play safe and only enable the eval
11150 # if we detect the quoting.
11151 case $CONFIG_FILES in
11152 *\'*) eval set x "$CONFIG_FILES" ;;
11153 *) set x $CONFIG_FILES ;;
11154 esac
11155 shift
11156 for mf
11157 do
11158 # Strip MF so we end up with the name of the file.
11159 mf=`echo "$mf" | sed -e 's/:.*$//'`
11160 # Check whether this is an Automake generated Makefile or not.
11161 # We used to match only the files named `Makefile.in', but
11162 # some people rename them; so instead we look at the file content.
11163 # Grep'ing the first line is not enough: some people post-process
11164 # each Makefile.in and add a new line on top of each file to say so.
11165 # Grep'ing the whole file is not good either: AIX grep has a line
11166 # limit of 2048, but all sed's we know have understand at least 4000.
11167 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11168 dirpart=`$as_dirname -- "$mf" ||
11169 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11170 X"$mf" : 'X\(//\)[^/]' \| \
11171 X"$mf" : 'X\(//\)$' \| \
11172 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11173 $as_echo X"$mf" |
11174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11175 s//\1/
11176 q
11177 }
11178 /^X\(\/\/\)[^/].*/{
11179 s//\1/
11180 q
11181 }
11182 /^X\(\/\/\)$/{
11183 s//\1/
11184 q
11185 }
11186 /^X\(\/\).*/{
11187 s//\1/
11188 q
11189 }
11190 s/.*/./; q'`
11191 else
11192 continue
11193 fi
11194 # Extract the definition of DEPDIR, am__include, and am__quote
11195 # from the Makefile without running `make'.
11196 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11197 test -z "$DEPDIR" && continue
11198 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11199 test -z "am__include" && continue
11200 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11201 # When using ansi2knr, U may be empty or an underscore; expand it
11202 U=`sed -n 's/^U = //p' < "$mf"`
11203 # Find all dependency output files, they are included files with
11204 # $(DEPDIR) in their names. We invoke sed twice because it is the
11205 # simplest approach to changing $(DEPDIR) to its actual value in the
11206 # expansion.
11207 for file in `sed -n "
11208 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11209 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11210 # Make sure the directory exists.
11211 test -f "$dirpart/$file" && continue
11212 fdir=`$as_dirname -- "$file" ||
11213 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11214 X"$file" : 'X\(//\)[^/]' \| \
11215 X"$file" : 'X\(//\)$' \| \
11216 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11217 $as_echo X"$file" |
11218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11219 s//\1/
11220 q
11221 }
11222 /^X\(\/\/\)[^/].*/{
11223 s//\1/
11224 q
11225 }
11226 /^X\(\/\/\)$/{
11227 s//\1/
11228 q
11229 }
11230 /^X\(\/\).*/{
11231 s//\1/
11232 q
11233 }
11234 s/.*/./; q'`
11235 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11236 # echo "creating $dirpart/$file"
11237 echo '# dummy' > "$dirpart/$file"
11238 done
11239 done
11240 }
11241 ;;
11242
11243 esac
11244 done # for ac_tag
11245
11246
11247 as_fn_exit 0
11248 _ACEOF
11249 ac_clean_files=$ac_clean_files_save
11250
11251 test $ac_write_fail = 0 ||
11252 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11253
11254
11255 # configure is writing to config.log, and then calls config.status.
11256 # config.status does its own redirection, appending to config.log.
11257 # Unfortunately, on DOS this fails, as config.log is still kept open
11258 # by configure, so config.status won't be able to write to it; its
11259 # output is simply discarded. So we exec the FD to /dev/null,
11260 # effectively closing config.log, so it can be properly (re)opened and
11261 # appended to by config.status. When coming back to configure, we
11262 # need to make the FD available again.
11263 if test "$no_create" != yes; then
11264 ac_cs_success=:
11265 ac_config_status_args=
11266 test "$silent" = yes &&
11267 ac_config_status_args="$ac_config_status_args --quiet"
11268 exec 5>/dev/null
11269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11270 exec 5>>config.log
11271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11272 # would make configure fail if this is the last instruction.
11273 $ac_cs_success || as_fn_exit 1
11274 fi
11275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11277 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11278 fi
11279
11280