configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xfd 1.1.1.
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='xfd'
563 PACKAGE_TARNAME='xfd'
564 PACKAGE_VERSION='1.1.1'
565 PACKAGE_STRING='xfd 1.1.1'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 appdefaultdir
610 APPDEFS_LIBS
611 APPDEFS_CFLAGS
612 XFD_LIBS
613 XFD_CFLAGS
614 USE_GETTEXT_FALSE
615 USE_GETTEXT_TRUE
616 LOCALEDIR
617 AM_BACKSLASH
618 AM_DEFAULT_VERBOSITY
619 MAN_SUBSTS
620 XORG_MAN_PAGE
621 ADMIN_MAN_DIR
622 DRIVER_MAN_DIR
623 MISC_MAN_DIR
624 FILE_MAN_DIR
625 LIB_MAN_DIR
626 APP_MAN_DIR
627 ADMIN_MAN_SUFFIX
628 DRIVER_MAN_SUFFIX
629 MISC_MAN_SUFFIX
630 FILE_MAN_SUFFIX
631 LIB_MAN_SUFFIX
632 APP_MAN_SUFFIX
633 SED
634 host_os
635 host_vendor
636 host_cpu
637 host
638 build_os
639 build_vendor
640 build_cpu
641 build
642 INSTALL_CMD
643 PKG_CONFIG
644 CHANGELOG_CMD
645 STRICT_CFLAGS
646 CWARNFLAGS
647 BASE_CFLAGS
648 EGREP
649 GREP
650 CPP
651 am__fastdepCC_FALSE
652 am__fastdepCC_TRUE
653 CCDEPMODE
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
666 CC
667 MAINT
668 MAINTAINER_MODE_FALSE
669 MAINTAINER_MODE_TRUE
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_maintainer_mode
735 enable_dependency_tracking
736 enable_selective_werror
737 enable_strict_compilation
738 enable_silent_rules
739 with_localedir
740 with_appdefaultdir
741 '
742 ac_precious_vars='build_alias
743 host_alias
744 target_alias
745 CC
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
750 CPP
751 PKG_CONFIG
752 XFD_CFLAGS
753 XFD_LIBS
754 APPDEFS_CFLAGS
755 APPDEFS_LIBS'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
779
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
805
806 ac_prev=
807 ac_dashdash=
808 for ac_option
809 do
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\$ac_option
813 ac_prev=
814 continue
815 fi
816
817 case $ac_option in
818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 *=) ac_optarg= ;;
820 *) ac_optarg=yes ;;
821 esac
822
823 # Accept the important Cygnus configure options, so we can diagnose typos.
824
825 case $ac_dashdash$ac_option in
826 --)
827 ac_dashdash=yes ;;
828
829 -bindir | --bindir | --bindi | --bind | --bin | --bi)
830 ac_prev=bindir ;;
831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832 bindir=$ac_optarg ;;
833
834 -build | --build | --buil | --bui | --bu)
835 ac_prev=build_alias ;;
836 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837 build_alias=$ac_optarg ;;
838
839 -cache-file | --cache-file | --cache-fil | --cache-fi \
840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841 ac_prev=cache_file ;;
842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844 cache_file=$ac_optarg ;;
845
846 --config-cache | -C)
847 cache_file=config.cache ;;
848
849 -datadir | --datadir | --datadi | --datad)
850 ac_prev=datadir ;;
851 -datadir=* | --datadir=* | --datadi=* | --datad=*)
852 datadir=$ac_optarg ;;
853
854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855 | --dataroo | --dataro | --datar)
856 ac_prev=datarootdir ;;
857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859 datarootdir=$ac_optarg ;;
860
861 -disable-* | --disable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
869 *"
870 "enable_$ac_useropt"
871 "*) ;;
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
874 esac
875 eval enable_$ac_useropt=no ;;
876
877 -docdir | --docdir | --docdi | --doc | --do)
878 ac_prev=docdir ;;
879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880 docdir=$ac_optarg ;;
881
882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883 ac_prev=dvidir ;;
884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885 dvidir=$ac_optarg ;;
886
887 -enable-* | --enable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=\$ac_optarg ;;
902
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
911
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
914 with_gas=yes ;;
915
916 -help | --help | --hel | --he | -h)
917 ac_init_help=long ;;
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
922
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
927
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 ac_prev=htmldir ;;
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 | --ht=*)
932 htmldir=$ac_optarg ;;
933
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
940
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 ac_prev=infodir ;;
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
945
946 -libdir | --libdir | --libdi | --libd)
947 ac_prev=libdir ;;
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 libdir=$ac_optarg ;;
950
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
957
958 -localedir | --localedir | --localedi | --localed | --locale)
959 ac_prev=localedir ;;
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
962
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
969
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 ac_prev=mandir ;;
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 mandir=$ac_optarg ;;
974
975 -nfp | --nfp | --nf)
976 # Obsolete; use --without-fp.
977 with_fp=no ;;
978
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
981 no_create=yes ;;
982
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 no_recursion=yes ;;
986
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
995
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 ac_prev=prefix ;;
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 prefix=$ac_optarg ;;
1000
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1007
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1014
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1031
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 ac_prev=pdfdir ;;
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1036
1037 -psdir | --psdir | --psdi | --psd | --ps)
1038 ac_prev=psdir ;;
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 psdir=$ac_optarg ;;
1041
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 silent=yes ;;
1045
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 ac_prev=sbindir ;;
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 | --sbi=* | --sb=*)
1050 sbindir=$ac_optarg ;;
1051
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1055 | --sha | --sh)
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 | --sha=* | --sh=*)
1061 sharedstatedir=$ac_optarg ;;
1062
1063 -site | --site | --sit)
1064 ac_prev=site ;;
1065 -site=* | --site=* | --sit=*)
1066 site=$ac_optarg ;;
1067
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 ac_prev=srcdir ;;
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1072
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1079
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1084
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 verbose=yes ;;
1087
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1090
1091 -with-* | --with-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval with_$ac_useropt=\$ac_optarg ;;
1106
1107 -without-* | --without-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1115 *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval with_$ac_useropt=no ;;
1122
1123 --x)
1124 # Obsolete; use --with-x.
1125 with_x=yes ;;
1126
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1133
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1140
1141 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1143 ;;
1144
1145 *=*)
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 case $ac_envvar in #(
1149 '' | [0-9]* | *[!_$as_cr_alnum]* )
1150 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151 esac
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1154
1155 *)
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161 ;;
1162
1163 esac
1164 done
1165
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 as_fn_error $? "missing argument to $ac_option"
1169 fi
1170
1171 if test -n "$ac_unrecognized_opts"; then
1172 case $enable_option_checking in
1173 no) ;;
1174 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1184 do
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1187 case $ac_val in
1188 */ )
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1191 esac
1192 # Be sure to have absolute directory names.
1193 case $ac_val in
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196 esac
1197 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 done
1199
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1206
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212 If a cross compiler is detected then cross compile mode will be used" >&2
1213 elif test "x$build_alias" != "x$host_alias"; then
1214 cross_compiling=yes
1215 fi
1216 fi
1217
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221 test "$silent" = yes && exec 6>/dev/null
1222
1223
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\/\)[^/].*/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\).*/{
1255 s//\1/
1256 q
1257 }
1258 s/.*/./; q'`
1259 srcdir=$ac_confdir
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 srcdir=..
1262 fi
1263 else
1264 ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 fi
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1297 cat <<_ACEOF
1298 \`configure' configures xfd 1.1.1 to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/xfd]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1351 _ACEOF
1352
1353 cat <<\_ACEOF
1354
1355 Program names:
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1359
1360 System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 _ACEOF
1364 fi
1365
1366 if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of xfd 1.1.1:";;
1369 esac
1370 cat <<\_ACEOF
1371
1372 Optional Features:
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-maintainer-mode enable make rules and dependencies not useful
1377 (and sometimes confusing) to the casual installer
1378 --disable-dependency-tracking speeds up one-time build
1379 --enable-dependency-tracking do not reject slow dependency extractors
1380 --disable-selective-werror
1381 Turn off selective compiler errors. (default:
1382 enabled)
1383 --enable-strict-compilation
1384 Enable all warnings from compiler and make them
1385 errors (default: disabled)
1386 --enable-silent-rules less verbose build output (undo: `make V=1')
1387 --disable-silent-rules verbose build output (undo: `make V=0')
1388
1389 Optional Packages:
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --with-localedir=<path> Path to install message files in (default:
1393 datadir/locale)
1394 --with-appdefaultdir=<pathname>
1395 specify directory for app-defaults files (default is
1396 autodetected)
1397
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406 CPP C preprocessor
1407 PKG_CONFIG path to pkg-config utility
1408 XFD_CFLAGS C compiler flags for XFD, overriding pkg-config
1409 XFD_LIBS linker flags for XFD, overriding pkg-config
1410 APPDEFS_CFLAGS
1411 C compiler flags for APPDEFS, overriding pkg-config
1412 APPDEFS_LIBS
1413 linker flags for APPDEFS, overriding pkg-config
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1419 _ACEOF
1420 ac_status=$?
1421 fi
1422
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428 continue
1429 ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448 .) # We are building in place.
1449 ac_srcdir=.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1456 *) # Relative name.
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1471 else
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 fi || ac_status=$?
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1475 done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480 cat <<\_ACEOF
1481 xfd configure 1.1.1
1482 generated by GNU Autoconf 2.68
1483
1484 Copyright (C) 2010 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488 exit
1489 fi
1490
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1494
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1499 {
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526 ac_retval=1
1527 fi
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_compile
1532
1533 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1534 # ---------------------------------------------
1535 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1536 # accordingly.
1537 ac_fn_c_check_decl ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 as_decl_name=`echo $2|sed 's/ *(.*//'`
1541 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1543 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1544 if eval \${$3+:} false; then :
1545 $as_echo_n "(cached) " >&6
1546 else
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548 /* end confdefs.h. */
1549 $4
1550 int
1551 main ()
1552 {
1553 #ifndef $as_decl_name
1554 #ifdef __cplusplus
1555 (void) $as_decl_use;
1556 #else
1557 (void) $as_decl_name;
1558 #endif
1559 #endif
1560
1561 ;
1562 return 0;
1563 }
1564 _ACEOF
1565 if ac_fn_c_try_compile "$LINENO"; then :
1566 eval "$3=yes"
1567 else
1568 eval "$3=no"
1569 fi
1570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1571 fi
1572 eval ac_res=\$$3
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574 $as_echo "$ac_res" >&6; }
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576
1577 } # ac_fn_c_check_decl
1578
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_cpp ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_cpp
1615
1616 # ac_fn_c_try_run LINENO
1617 # ----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619 # that executables *can* be run.
1620 ac_fn_c_try_run ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_link"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>&5
1631 ac_status=$?
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634 { { case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_try") 2>&5
1641 ac_status=$?
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; }; }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: program exited with status $ac_status" >&5
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=$ac_status
1651 fi
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_run
1657
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677 else
1678 eval "$3=no"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_compile
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 $as_test_x conftest$ac_exeext
1717 }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724 fi
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734 cat >config.log <<_ACEOF
1735 This file contains any messages produced by compilers while
1736 running configure, to aid debugging if configure makes a mistake.
1737
1738 It was created by xfd $as_me 1.1.1, which was
1739 generated by GNU Autoconf 2.68. Invocation command line was
1740
1741 $ $0 $@
1742
1743 _ACEOF
1744 exec 5>>config.log
1745 {
1746 cat <<_ASUNAME
1747 ## --------- ##
1748 ## Platform. ##
1749 ## --------- ##
1750
1751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756
1757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759
1760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1763 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1767
1768 _ASUNAME
1769
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 $as_echo "PATH: $as_dir"
1776 done
1777 IFS=$as_save_IFS
1778
1779 } >&5
1780
1781 cat >&5 <<_ACEOF
1782
1783
1784 ## ----------- ##
1785 ## Core tests. ##
1786 ## ----------- ##
1787
1788 _ACEOF
1789
1790
1791 # Keep a trace of the command line.
1792 # Strip out --no-create and --no-recursion so they do not pile up.
1793 # Strip out --silent because we don't want to record it for future runs.
1794 # Also quote any args containing shell meta-characters.
1795 # Make two passes to allow for proper duplicate-argument suppression.
1796 ac_configure_args=
1797 ac_configure_args0=
1798 ac_configure_args1=
1799 ac_must_keep_next=false
1800 for ac_pass in 1 2
1801 do
1802 for ac_arg
1803 do
1804 case $ac_arg in
1805 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1807 | -silent | --silent | --silen | --sile | --sil)
1808 continue ;;
1809 *\'*)
1810 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1811 esac
1812 case $ac_pass in
1813 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1814 2)
1815 as_fn_append ac_configure_args1 " '$ac_arg'"
1816 if test $ac_must_keep_next = true; then
1817 ac_must_keep_next=false # Got value, back to normal.
1818 else
1819 case $ac_arg in
1820 *=* | --config-cache | -C | -disable-* | --disable-* \
1821 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1822 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1823 | -with-* | --with-* | -without-* | --without-* | --x)
1824 case "$ac_configure_args0 " in
1825 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1826 esac
1827 ;;
1828 -* ) ac_must_keep_next=true ;;
1829 esac
1830 fi
1831 as_fn_append ac_configure_args " '$ac_arg'"
1832 ;;
1833 esac
1834 done
1835 done
1836 { ac_configure_args0=; unset ac_configure_args0;}
1837 { ac_configure_args1=; unset ac_configure_args1;}
1838
1839 # When interrupted or exit'd, cleanup temporary files, and complete
1840 # config.log. We remove comments because anyway the quotes in there
1841 # would cause problems or look ugly.
1842 # WARNING: Use '\'' to represent an apostrophe within the trap.
1843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1844 trap 'exit_status=$?
1845 # Save into config.log some information that might help in debugging.
1846 {
1847 echo
1848
1849 $as_echo "## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##"
1852 echo
1853 # The following way of writing the cache mishandles newlines in values,
1854 (
1855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1856 eval ac_val=\$$ac_var
1857 case $ac_val in #(
1858 *${as_nl}*)
1859 case $ac_var in #(
1860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1862 esac
1863 case $ac_var in #(
1864 _ | IFS | as_nl) ;; #(
1865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1866 *) { eval $ac_var=; unset $ac_var;} ;;
1867 esac ;;
1868 esac
1869 done
1870 (set) 2>&1 |
1871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1872 *${as_nl}ac_space=\ *)
1873 sed -n \
1874 "s/'\''/'\''\\\\'\'''\''/g;
1875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1876 ;; #(
1877 *)
1878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1879 ;;
1880 esac |
1881 sort
1882 )
1883 echo
1884
1885 $as_echo "## ----------------- ##
1886 ## Output variables. ##
1887 ## ----------------- ##"
1888 echo
1889 for ac_var in $ac_subst_vars
1890 do
1891 eval ac_val=\$$ac_var
1892 case $ac_val in
1893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 esac
1895 $as_echo "$ac_var='\''$ac_val'\''"
1896 done | sort
1897 echo
1898
1899 if test -n "$ac_subst_files"; then
1900 $as_echo "## ------------------- ##
1901 ## File substitutions. ##
1902 ## ------------------- ##"
1903 echo
1904 for ac_var in $ac_subst_files
1905 do
1906 eval ac_val=\$$ac_var
1907 case $ac_val in
1908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909 esac
1910 $as_echo "$ac_var='\''$ac_val'\''"
1911 done | sort
1912 echo
1913 fi
1914
1915 if test -s confdefs.h; then
1916 $as_echo "## ----------- ##
1917 ## confdefs.h. ##
1918 ## ----------- ##"
1919 echo
1920 cat confdefs.h
1921 echo
1922 fi
1923 test "$ac_signal" != 0 &&
1924 $as_echo "$as_me: caught signal $ac_signal"
1925 $as_echo "$as_me: exit $exit_status"
1926 } >&5
1927 rm -f core *.core core.conftest.* &&
1928 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1929 exit $exit_status
1930 ' 0
1931 for ac_signal in 1 2 13 15; do
1932 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1933 done
1934 ac_signal=0
1935
1936 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1937 rm -f -r conftest* confdefs.h
1938
1939 $as_echo "/* confdefs.h */" > confdefs.h
1940
1941 # Predefined preprocessor variables.
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_NAME "$PACKAGE_NAME"
1945 _ACEOF
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1949 _ACEOF
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1953 _ACEOF
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_STRING "$PACKAGE_STRING"
1957 _ACEOF
1958
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1961 _ACEOF
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_URL "$PACKAGE_URL"
1965 _ACEOF
1966
1967
1968 # Let the site file select an alternate cache file if it wants to.
1969 # Prefer an explicitly selected file to automatically selected ones.
1970 ac_site_file1=NONE
1971 ac_site_file2=NONE
1972 if test -n "$CONFIG_SITE"; then
1973 # We do not want a PATH search for config.site.
1974 case $CONFIG_SITE in #((
1975 -*) ac_site_file1=./$CONFIG_SITE;;
1976 */*) ac_site_file1=$CONFIG_SITE;;
1977 *) ac_site_file1=./$CONFIG_SITE;;
1978 esac
1979 elif test "x$prefix" != xNONE; then
1980 ac_site_file1=$prefix/share/config.site
1981 ac_site_file2=$prefix/etc/config.site
1982 else
1983 ac_site_file1=$ac_default_prefix/share/config.site
1984 ac_site_file2=$ac_default_prefix/etc/config.site
1985 fi
1986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987 do
1988 test "x$ac_site_file" = xNONE && continue
1989 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
1993 . "$ac_site_file" \
1994 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1996 as_fn_error $? "failed to load site script $ac_site_file
1997 See \`config.log' for more details" "$LINENO" 5; }
1998 fi
1999 done
2000
2001 if test -r "$cache_file"; then
2002 # Some versions of bash will fail to source /dev/null (special files
2003 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2004 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2006 $as_echo "$as_me: loading cache $cache_file" >&6;}
2007 case $cache_file in
2008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2009 *) . "./$cache_file";;
2010 esac
2011 fi
2012 else
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2014 $as_echo "$as_me: creating cache $cache_file" >&6;}
2015 >$cache_file
2016 fi
2017
2018 # Check that the precious variables saved in the cache have kept the same
2019 # value.
2020 ac_cache_corrupted=false
2021 for ac_var in $ac_precious_vars; do
2022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2023 eval ac_new_set=\$ac_env_${ac_var}_set
2024 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2025 eval ac_new_val=\$ac_env_${ac_var}_value
2026 case $ac_old_set,$ac_new_set in
2027 set,)
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2031 ,set)
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2034 ac_cache_corrupted=: ;;
2035 ,);;
2036 *)
2037 if test "x$ac_old_val" != "x$ac_new_val"; then
2038 # differences in whitespace do not lead to failure.
2039 ac_old_val_w=`echo x $ac_old_val`
2040 ac_new_val_w=`echo x $ac_new_val`
2041 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2044 ac_cache_corrupted=:
2045 else
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2048 eval $ac_var=\$ac_old_val
2049 fi
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2051 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2053 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2054 fi;;
2055 esac
2056 # Pass precious variables to config.status.
2057 if test "$ac_new_set" = set; then
2058 case $ac_new_val in
2059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 *) ac_arg=$ac_var=$ac_new_val ;;
2061 esac
2062 case " $ac_configure_args " in
2063 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2064 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2065 esac
2066 fi
2067 done
2068 if $ac_cache_corrupted; then
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2073 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2074 fi
2075 ## -------------------- ##
2076 ## Main body of script. ##
2077 ## -------------------- ##
2078
2079 ac_ext=c
2080 ac_cpp='$CPP $CPPFLAGS'
2081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084
2085
2086 am__api_version='1.11'
2087
2088 ac_aux_dir=
2089 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090 if test -f "$ac_dir/install-sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 break
2094 elif test -f "$ac_dir/install.sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 break
2098 elif test -f "$ac_dir/shtool"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/shtool install -c"
2101 break
2102 fi
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2106 fi
2107
2108 # These three variables are undocumented and unsupported,
2109 # and are intended to be withdrawn in a future Autoconf release.
2110 # They can cause serious problems if a builder's source tree is in a directory
2111 # whose full name contains unusual characters.
2112 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2113 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2114 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2115
2116
2117 # Find a good install program. We prefer a C program (faster),
2118 # so one script is as good as another. But avoid the broken or
2119 # incompatible versions:
2120 # SysV /etc/install, /usr/sbin/install
2121 # SunOS /usr/etc/install
2122 # IRIX /sbin/install
2123 # AIX /bin/install
2124 # AmigaOS /C/install, which installs bootblocks on floppy discs
2125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2128 # OS/2's system install, which has a completely different semantic
2129 # ./install, which can be erroneously created by make from ./install.sh.
2130 # Reject install programs that cannot install multiple files.
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2132 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2133 if test -z "$INSTALL"; then
2134 if ${ac_cv_path_install+:} false; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 # Account for people who put trailing slashes in PATH elements.
2143 case $as_dir/ in #((
2144 ./ | .// | /[cC]/* | \
2145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2146 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2147 /usr/ucb/* ) ;;
2148 *)
2149 # OSF1 and SCO ODT 3.0 have their own names for install.
2150 # Don't use installbsd from OSF since it installs stuff as root
2151 # by default.
2152 for ac_prog in ginstall scoinst install; do
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2155 if test $ac_prog = install &&
2156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # AIX install. It has an incompatible calling convention.
2158 :
2159 elif test $ac_prog = install &&
2160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # program-specific install script used by HP pwplus--don't use.
2162 :
2163 else
2164 rm -rf conftest.one conftest.two conftest.dir
2165 echo one > conftest.one
2166 echo two > conftest.two
2167 mkdir conftest.dir
2168 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2169 test -s conftest.one && test -s conftest.two &&
2170 test -s conftest.dir/conftest.one &&
2171 test -s conftest.dir/conftest.two
2172 then
2173 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2174 break 3
2175 fi
2176 fi
2177 fi
2178 done
2179 done
2180 ;;
2181 esac
2182
2183 done
2184 IFS=$as_save_IFS
2185
2186 rm -rf conftest.one conftest.two conftest.dir
2187
2188 fi
2189 if test "${ac_cv_path_install+set}" = set; then
2190 INSTALL=$ac_cv_path_install
2191 else
2192 # As a last resort, use the slow shell script. Don't cache a
2193 # value for INSTALL within a source directory, because that will
2194 # break other packages using the cache if that directory is
2195 # removed, or if the value is a relative name.
2196 INSTALL=$ac_install_sh
2197 fi
2198 fi
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2200 $as_echo "$INSTALL" >&6; }
2201
2202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2203 # It thinks the first close brace ends the variable substitution.
2204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2205
2206 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2207
2208 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2209
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2211 $as_echo_n "checking whether build environment is sane... " >&6; }
2212 # Just in case
2213 sleep 1
2214 echo timestamp > conftest.file
2215 # Reject unsafe characters in $srcdir or the absolute working directory
2216 # name. Accept space and tab only in the latter.
2217 am_lf='
2218 '
2219 case `pwd` in
2220 *[\\\"\#\$\&\'\`$am_lf]*)
2221 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2222 esac
2223 case $srcdir in
2224 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2225 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2226 esac
2227
2228 # Do `set' in a subshell so we don't clobber the current shell's
2229 # arguments. Must try -L first in case configure is actually a
2230 # symlink; some systems play weird games with the mod time of symlinks
2231 # (eg FreeBSD returns the mod time of the symlink's containing
2232 # directory).
2233 if (
2234 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2235 if test "$*" = "X"; then
2236 # -L didn't work.
2237 set X `ls -t "$srcdir/configure" conftest.file`
2238 fi
2239 rm -f conftest.file
2240 if test "$*" != "X $srcdir/configure conftest.file" \
2241 && test "$*" != "X conftest.file $srcdir/configure"; then
2242
2243 # If neither matched, then we have a broken ls. This can happen
2244 # if, for instance, CONFIG_SHELL is bash and it inherits a
2245 # broken ls alias from the environment. This has actually
2246 # happened. Such a system could not be considered "sane".
2247 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2248 alias in your environment" "$LINENO" 5
2249 fi
2250
2251 test "$2" = conftest.file
2252 )
2253 then
2254 # Ok.
2255 :
2256 else
2257 as_fn_error $? "newly created file is older than distributed files!
2258 Check your system clock" "$LINENO" 5
2259 fi
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2261 $as_echo "yes" >&6; }
2262 test "$program_prefix" != NONE &&
2263 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2264 # Use a double $ so make ignores it.
2265 test "$program_suffix" != NONE &&
2266 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2267 # Double any \ or $.
2268 # By default was `s,x,x', remove it if useless.
2269 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2270 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2271
2272 # expand $ac_aux_dir to an absolute path
2273 am_aux_dir=`cd $ac_aux_dir && pwd`
2274
2275 if test x"${MISSING+set}" != xset; then
2276 case $am_aux_dir in
2277 *\ * | *\ *)
2278 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2279 *)
2280 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2281 esac
2282 fi
2283 # Use eval to expand $SHELL
2284 if eval "$MISSING --run true"; then
2285 am_missing_run="$MISSING --run "
2286 else
2287 am_missing_run=
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2289 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2290 fi
2291
2292 if test x"${install_sh}" != xset; then
2293 case $am_aux_dir in
2294 *\ * | *\ *)
2295 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2296 *)
2297 install_sh="\${SHELL} $am_aux_dir/install-sh"
2298 esac
2299 fi
2300
2301 # Installed binaries are usually stripped using `strip' when the user
2302 # run `make install-strip'. However `strip' might not be the right
2303 # tool to use in cross-compilation environments, therefore Automake
2304 # will honor the `STRIP' environment variable to overrule this program.
2305 if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}strip; ac_word=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if ${ac_cv_prog_STRIP+:} false; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 STRIP=$ac_cv_prog_STRIP
2335 if test -n "$STRIP"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2337 $as_echo "$STRIP" >&6; }
2338 else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2341 fi
2342
2343
2344 fi
2345 if test -z "$ac_cv_prog_STRIP"; then
2346 ac_ct_STRIP=$STRIP
2347 # Extract the first word of "strip", so it can be a program name with args.
2348 set dummy strip; ac_word=$2
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350 $as_echo_n "checking for $ac_word... " >&6; }
2351 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375 if test -n "$ac_ct_STRIP"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2377 $as_echo "$ac_ct_STRIP" >&6; }
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380 $as_echo "no" >&6; }
2381 fi
2382
2383 if test "x$ac_ct_STRIP" = x; then
2384 STRIP=":"
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387 yes:)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2390 ac_tool_warned=yes ;;
2391 esac
2392 STRIP=$ac_ct_STRIP
2393 fi
2394 else
2395 STRIP="$ac_cv_prog_STRIP"
2396 fi
2397
2398 fi
2399 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2402 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2403 if test -z "$MKDIR_P"; then
2404 if ${ac_cv_path_mkdir+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_prog in mkdir gmkdir; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2415 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2416 'mkdir (GNU coreutils) '* | \
2417 'mkdir (coreutils) '* | \
2418 'mkdir (fileutils) '4.1*)
2419 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2420 break 3;;
2421 esac
2422 done
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428
2429 test -d ./--version && rmdir ./--version
2430 if test "${ac_cv_path_mkdir+set}" = set; then
2431 MKDIR_P="$ac_cv_path_mkdir -p"
2432 else
2433 # As a last resort, use the slow shell script. Don't cache a
2434 # value for MKDIR_P within a source directory, because that will
2435 # break other packages using the cache if that directory is
2436 # removed, or if the value is a relative name.
2437 MKDIR_P="$ac_install_sh -d"
2438 fi
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2441 $as_echo "$MKDIR_P" >&6; }
2442
2443 mkdir_p="$MKDIR_P"
2444 case $mkdir_p in
2445 [\\/$]* | ?:[\\/]*) ;;
2446 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2447 esac
2448
2449 for ac_prog in gawk mawk nawk awk
2450 do
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_AWK+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test -n "$AWK"; then
2459 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_AWK="$ac_prog"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 AWK=$ac_cv_prog_AWK
2479 if test -n "$AWK"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2481 $as_echo "$AWK" >&6; }
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2485 fi
2486
2487
2488 test -n "$AWK" && break
2489 done
2490
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2492 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2493 set x ${MAKE-make}
2494 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2495 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 cat >conftest.make <<\_ACEOF
2499 SHELL = /bin/sh
2500 all:
2501 @echo '@@@%%%=$(MAKE)=@@@%%%'
2502 _ACEOF
2503 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2504 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2505 *@@@%%%=?*=@@@%%%*)
2506 eval ac_cv_prog_make_${ac_make}_set=yes;;
2507 *)
2508 eval ac_cv_prog_make_${ac_make}_set=no;;
2509 esac
2510 rm -f conftest.make
2511 fi
2512 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2514 $as_echo "yes" >&6; }
2515 SET_MAKE=
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 SET_MAKE="MAKE=${MAKE-make}"
2520 fi
2521
2522 rm -rf .tst 2>/dev/null
2523 mkdir .tst 2>/dev/null
2524 if test -d .tst; then
2525 am__leading_dot=.
2526 else
2527 am__leading_dot=_
2528 fi
2529 rmdir .tst 2>/dev/null
2530
2531 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2532 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2533 # is not polluted with repeated "-I."
2534 am__isrc=' -I$(srcdir)'
2535 # test to see if srcdir already configured
2536 if test -f $srcdir/config.status; then
2537 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2538 fi
2539 fi
2540
2541 # test whether we have cygpath
2542 if test -z "$CYGPATH_W"; then
2543 if (cygpath --version) >/dev/null 2>/dev/null; then
2544 CYGPATH_W='cygpath -w'
2545 else
2546 CYGPATH_W=echo
2547 fi
2548 fi
2549
2550
2551 # Define the identity of the package.
2552 PACKAGE='xfd'
2553 VERSION='1.1.1'
2554
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE "$PACKAGE"
2558 _ACEOF
2559
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define VERSION "$VERSION"
2563 _ACEOF
2564
2565 # Some tools Automake needs.
2566
2567 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2568
2569
2570 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2571
2572
2573 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2574
2575
2576 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2577
2578
2579 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2580
2581 # We need awk for the "check" target. The system "awk" is bad on
2582 # some platforms.
2583 # Always define AMTAR for backward compatibility.
2584
2585 AMTAR=${AMTAR-"${am_missing_run}tar"}
2586
2587 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2588
2589
2590
2591
2592
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2595 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2596 # Check whether --enable-maintainer-mode was given.
2597 if test "${enable_maintainer_mode+set}" = set; then :
2598 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2599 else
2600 USE_MAINTAINER_MODE=no
2601 fi
2602
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2604 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2605 if test $USE_MAINTAINER_MODE = yes; then
2606 MAINTAINER_MODE_TRUE=
2607 MAINTAINER_MODE_FALSE='#'
2608 else
2609 MAINTAINER_MODE_TRUE='#'
2610 MAINTAINER_MODE_FALSE=
2611 fi
2612
2613 MAINT=$MAINTAINER_MODE_TRUE
2614
2615
2616
2617 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629 DEPDIR="${am__leading_dot}deps"
2630
2631 ac_config_commands="$ac_config_commands depfiles"
2632
2633
2634 am_make=${MAKE-make}
2635 cat > confinc << 'END'
2636 am__doit:
2637 @echo this is the am__doit target
2638 .PHONY: am__doit
2639 END
2640 # If we don't find an include directive, just comment out the code.
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2642 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2643 am__include="#"
2644 am__quote=
2645 _am_result=none
2646 # First try GNU make style include.
2647 echo "include confinc" > confmf
2648 # Ignore all kinds of additional output from `make'.
2649 case `$am_make -s -f confmf 2> /dev/null` in #(
2650 *the\ am__doit\ target*)
2651 am__include=include
2652 am__quote=
2653 _am_result=GNU
2654 ;;
2655 esac
2656 # Now try BSD make style include.
2657 if test "$am__include" = "#"; then
2658 echo '.include "confinc"' > confmf
2659 case `$am_make -s -f confmf 2> /dev/null` in #(
2660 *the\ am__doit\ target*)
2661 am__include=.include
2662 am__quote="\""
2663 _am_result=BSD
2664 ;;
2665 esac
2666 fi
2667
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2670 $as_echo "$_am_result" >&6; }
2671 rm -f confinc confmf
2672
2673 # Check whether --enable-dependency-tracking was given.
2674 if test "${enable_dependency_tracking+set}" = set; then :
2675 enableval=$enable_dependency_tracking;
2676 fi
2677
2678 if test "x$enable_dependency_tracking" != xno; then
2679 am_depcomp="$ac_aux_dir/depcomp"
2680 AMDEPBACKSLASH='\'
2681 fi
2682 if test "x$enable_dependency_tracking" != xno; then
2683 AMDEP_TRUE=
2684 AMDEP_FALSE='#'
2685 else
2686 AMDEP_TRUE='#'
2687 AMDEP_FALSE=
2688 fi
2689
2690
2691 ac_ext=c
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 if test -n "$ac_tool_prefix"; then
2697 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_CC+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2717 fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723 fi
2724 CC=$ac_cv_prog_CC
2725 if test -n "$CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727 $as_echo "$CC" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733
2734 fi
2735 if test -z "$ac_cv_prog_CC"; then
2736 ac_ct_CC=$CC
2737 # Extract the first word of "gcc", so it can be a program name with args.
2738 set dummy gcc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$ac_ct_CC"; then
2745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_ac_ct_CC="gcc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2757 fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2767 $as_echo "$ac_ct_CC" >&6; }
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773 if test "x$ac_ct_CC" = x; then
2774 CC=""
2775 else
2776 case $cross_compiling:$ac_tool_warned in
2777 yes:)
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2780 ac_tool_warned=yes ;;
2781 esac
2782 CC=$ac_ct_CC
2783 fi
2784 else
2785 CC="$ac_cv_prog_CC"
2786 fi
2787
2788 if test -z "$CC"; then
2789 if test -n "$ac_tool_prefix"; then
2790 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}cc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CC="${ac_tool_prefix}cc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827 fi
2828 fi
2829 if test -z "$CC"; then
2830 # Extract the first word of "cc", so it can be a program name with args.
2831 set dummy cc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 ac_prog_rejected=no
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2849 ac_prog_rejected=yes
2850 continue
2851 fi
2852 ac_cv_prog_CC="cc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 if test $ac_prog_rejected = yes; then
2861 # We found a bogon in the path, so make sure we never use it.
2862 set dummy $ac_cv_prog_CC
2863 shift
2864 if test $# != 0; then
2865 # We chose a different compiler from the bogus one.
2866 # However, it has the same basename, so the bogon will be chosen
2867 # first if we set CC to just the basename; use the full file name.
2868 shift
2869 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2870 fi
2871 fi
2872 fi
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 $as_echo "$CC" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2881 fi
2882
2883
2884 fi
2885 if test -z "$CC"; then
2886 if test -n "$ac_tool_prefix"; then
2887 for ac_prog in cl.exe
2888 do
2889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 test -n "$CC" && break
2927 done
2928 fi
2929 if test -z "$CC"; then
2930 ac_ct_CC=$CC
2931 for ac_prog in cl.exe
2932 do
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_ac_ct_CC="$ac_prog"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963 $as_echo "$ac_ct_CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 test -n "$ac_ct_CC" && break
2971 done
2972
2973 if test "x$ac_ct_CC" = x; then
2974 CC=""
2975 else
2976 case $cross_compiling:$ac_tool_warned in
2977 yes:)
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2981 esac
2982 CC=$ac_ct_CC
2983 fi
2984 fi
2985
2986 fi
2987
2988
2989 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error $? "no acceptable C compiler found in \$PATH
2992 See \`config.log' for more details" "$LINENO" 5; }
2993
2994 # Provide some information about the compiler.
2995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2996 set X $ac_compile
2997 ac_compiler=$2
2998 for ac_option in --version -v -V -qversion; do
2999 { { ac_try="$ac_compiler $ac_option >&5"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3007 ac_status=$?
3008 if test -s conftest.err; then
3009 sed '10a\
3010 ... rest of stderr output deleted ...
3011 10q' conftest.err >conftest.er1
3012 cat conftest.er1 >&5
3013 fi
3014 rm -f conftest.er1 conftest.err
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }
3017 done
3018
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3021
3022 int
3023 main ()
3024 {
3025
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 ac_clean_files_save=$ac_clean_files
3031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3032 # Try to create an executable without -o first, disregard a.out.
3033 # It will help us diagnose broken compilers, and finding out an intuition
3034 # of exeext.
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3036 $as_echo_n "checking whether the C compiler works... " >&6; }
3037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3038
3039 # The possible output files:
3040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3041
3042 ac_rmfiles=
3043 for ac_file in $ac_files
3044 do
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3048 esac
3049 done
3050 rm -f $ac_rmfiles
3051
3052 if { { ac_try="$ac_link_default"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_link_default") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; then :
3063 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3065 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3066 # so that the user can short-circuit this test for compilers unknown to
3067 # Autoconf.
3068 for ac_file in $ac_files ''
3069 do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3073 ;;
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3080 then :; else
3081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 fi
3083 # We set ac_cv_exeext here because the later test for it is not
3084 # safe: cross compilers may not add the suffix if given an `-o'
3085 # argument, so we may need to know it at that point already.
3086 # Even if this section looks crufty: it has the advantage of
3087 # actually working.
3088 break;;
3089 * )
3090 break;;
3091 esac
3092 done
3093 test "$ac_cv_exeext" = no && ac_cv_exeext=
3094
3095 else
3096 ac_file=''
3097 fi
3098 if test -z "$ac_file"; then :
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 $as_echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error 77 "C compiler cannot create executables
3107 See \`config.log' for more details" "$LINENO" 5; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3113 $as_echo_n "checking for C compiler default output file name... " >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3115 $as_echo "$ac_file" >&6; }
3116 ac_exeext=$ac_cv_exeext
3117
3118 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3119 ac_clean_files=$ac_clean_files_save
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3121 $as_echo_n "checking for suffix of executables... " >&6; }
3122 if { { ac_try="$ac_link"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 $as_echo "$ac_try_echo"; } >&5
3129 (eval "$ac_link") 2>&5
3130 ac_status=$?
3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }; then :
3133 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3134 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3135 # work properly (i.e., refer to `conftest.exe'), while it won't with
3136 # `rm'.
3137 for ac_file in conftest.exe conftest conftest.*; do
3138 test -f "$ac_file" || continue
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 break;;
3143 * ) break;;
3144 esac
3145 done
3146 else
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3150 See \`config.log' for more details" "$LINENO" 5; }
3151 fi
3152 rm -f conftest conftest$ac_cv_exeext
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3154 $as_echo "$ac_cv_exeext" >&6; }
3155
3156 rm -f conftest.$ac_ext
3157 EXEEXT=$ac_cv_exeext
3158 ac_exeext=$EXEEXT
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161 #include <stdio.h>
3162 int
3163 main ()
3164 {
3165 FILE *f = fopen ("conftest.out", "w");
3166 return ferror (f) || fclose (f) != 0;
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 ac_clean_files="$ac_clean_files conftest.out"
3173 # Check that the compiler produces executables we can run. If not, either
3174 # the compiler is broken, or we cross compile.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3176 $as_echo_n "checking whether we are cross compiling... " >&6; }
3177 if test "$cross_compiling" != yes; then
3178 { { ac_try="$ac_link"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 if { ac_try='./conftest$ac_cv_exeext'
3190 { { case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_try") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; }; then
3200 cross_compiling=no
3201 else
3202 if test "$cross_compiling" = maybe; then
3203 cross_compiling=yes
3204 else
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details" "$LINENO" 5; }
3210 fi
3211 fi
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3214 $as_echo "$cross_compiling" >&6; }
3215
3216 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3217 ac_clean_files=$ac_clean_files_save
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3219 $as_echo_n "checking for suffix of object files... " >&6; }
3220 if ${ac_cv_objext+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225
3226 int
3227 main ()
3228 {
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.o conftest.obj
3235 if { { ac_try="$ac_compile"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_compile") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 for ac_file in conftest.o conftest.obj conftest.*; do
3247 test -f "$ac_file" || continue;
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251 break;;
3252 esac
3253 done
3254 else
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot compute suffix of object files: cannot compile
3261 See \`config.log' for more details" "$LINENO" 5; }
3262 fi
3263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3266 $as_echo "$ac_cv_objext" >&6; }
3267 OBJEXT=$ac_cv_objext
3268 ac_objext=$OBJEXT
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3271 if ${ac_cv_c_compiler_gnu+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3276
3277 int
3278 main ()
3279 {
3280 #ifndef __GNUC__
3281 choke me
3282 #endif
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_compiler_gnu=yes
3290 else
3291 ac_compiler_gnu=no
3292 fi
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3295
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3299 if test $ac_compiler_gnu = yes; then
3300 GCC=yes
3301 else
3302 GCC=
3303 fi
3304 ac_test_CFLAGS=${CFLAGS+set}
3305 ac_save_CFLAGS=$CFLAGS
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3308 if ${ac_cv_prog_cc_g+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_save_c_werror_flag=$ac_c_werror_flag
3312 ac_c_werror_flag=yes
3313 ac_cv_prog_cc_g=no
3314 CFLAGS="-g"
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main ()
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 if ac_fn_c_try_compile "$LINENO"; then :
3327 ac_cv_prog_cc_g=yes
3328 else
3329 CFLAGS=""
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3332
3333 int
3334 main ()
3335 {
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 if ac_fn_c_try_compile "$LINENO"; then :
3342
3343 else
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3345 CFLAGS="-g"
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348
3349 int
3350 main ()
3351 {
3352
3353 ;
3354 return 0;
3355 }
3356 _ACEOF
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358 ac_cv_prog_cc_g=yes
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 fi
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3368 $as_echo "$ac_cv_prog_cc_g" >&6; }
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3373 CFLAGS="-g -O2"
3374 else
3375 CFLAGS="-g"
3376 fi
3377 else
3378 if test "$GCC" = yes; then
3379 CFLAGS="-O2"
3380 else
3381 CFLAGS=
3382 fi
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3386 if ${ac_cv_prog_cc_c89+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 ac_cv_prog_cc_c89=no
3390 ac_save_CC=$CC
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3393 #include <stdarg.h>
3394 #include <stdio.h>
3395 #include <sys/types.h>
3396 #include <sys/stat.h>
3397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3398 struct buf { int x; };
3399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3400 static char *e (p, i)
3401 char **p;
3402 int i;
3403 {
3404 return p[i];
3405 }
3406 static char *f (char * (*g) (char **, int), char **p, ...)
3407 {
3408 char *s;
3409 va_list v;
3410 va_start (v,p);
3411 s = g (p, va_arg (v,int));
3412 va_end (v);
3413 return s;
3414 }
3415
3416 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3417 function prototypes and stuff, but not '\xHH' hex character constants.
3418 These don't provoke an error unfortunately, instead are silently treated
3419 as 'x'. The following induces an error, until -std is added to get
3420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3421 array size at least. It's necessary to write '\x00'==0 to get something
3422 that's true only with -std. */
3423 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3424
3425 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3426 inside strings and character constants. */
3427 #define FOO(x) 'x'
3428 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3429
3430 int test (int i, double x);
3431 struct s1 {int (*f) (int a);};
3432 struct s2 {int (*f) (double a);};
3433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434 int argc;
3435 char **argv;
3436 int
3437 main ()
3438 {
3439 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3445 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446 do
3447 CC="$ac_save_CC $ac_arg"
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_prog_cc_c89=$ac_arg
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext
3452 test "x$ac_cv_prog_cc_c89" != "xno" && break
3453 done
3454 rm -f conftest.$ac_ext
3455 CC=$ac_save_CC
3456
3457 fi
3458 # AC_CACHE_VAL
3459 case "x$ac_cv_prog_cc_c89" in
3460 x)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3462 $as_echo "none needed" >&6; } ;;
3463 xno)
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3465 $as_echo "unsupported" >&6; } ;;
3466 *)
3467 CC="$CC $ac_cv_prog_cc_c89"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3469 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3470 esac
3471 if test "x$ac_cv_prog_cc_c89" != xno; then :
3472
3473 fi
3474
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
3481 depcc="$CC" am_compiler_list=
3482
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3484 $as_echo_n "checking dependency style of $depcc... " >&6; }
3485 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3489 # We make a subdir and do the tests there. Otherwise we can end up
3490 # making bogus files that we don't know about and never remove. For
3491 # instance it was reported that on HP-UX the gcc test will end up
3492 # making a dummy file named `D' -- because `-MD' means `put the output
3493 # in D'.
3494 mkdir conftest.dir
3495 # Copy depcomp to subdir because otherwise we won't find it if we're
3496 # using a relative directory.
3497 cp "$am_depcomp" conftest.dir
3498 cd conftest.dir
3499 # We will build objects and dependencies in a subdirectory because
3500 # it helps to detect inapplicable dependency modes. For instance
3501 # both Tru64's cc and ICC support -MD to output dependencies as a
3502 # side effect of compilation, but ICC will put the dependencies in
3503 # the current directory while Tru64 will put them in the object
3504 # directory.
3505 mkdir sub
3506
3507 am_cv_CC_dependencies_compiler_type=none
3508 if test "$am_compiler_list" = ""; then
3509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3510 fi
3511 am__universal=false
3512 case " $depcc " in #(
3513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3514 esac
3515
3516 for depmode in $am_compiler_list; do
3517 # Setup a source with many dependencies, because some compilers
3518 # like to wrap large dependency lists on column 80 (with \), and
3519 # we should not choose a depcomp mode which is confused by this.
3520 #
3521 # We need to recreate these files for each test, as the compiler may
3522 # overwrite some of them when testing with obscure command lines.
3523 # This happens at least with the AIX C compiler.
3524 : > sub/conftest.c
3525 for i in 1 2 3 4 5 6; do
3526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3527 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3528 # Solaris 8's {/usr,}/bin/sh.
3529 touch sub/conftst$i.h
3530 done
3531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3532
3533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3534 # mode. It turns out that the SunPro C++ compiler does not properly
3535 # handle `-M -o', and we need to detect this. Also, some Intel
3536 # versions had trouble with output in subdirs
3537 am__obj=sub/conftest.${OBJEXT-o}
3538 am__minus_obj="-o $am__obj"
3539 case $depmode in
3540 gcc)
3541 # This depmode causes a compiler race in universal mode.
3542 test "$am__universal" = false || continue
3543 ;;
3544 nosideeffect)
3545 # after this tag, mechanisms are not by side-effect, so they'll
3546 # only be used when explicitly requested
3547 if test "x$enable_dependency_tracking" = xyes; then
3548 continue
3549 else
3550 break
3551 fi
3552 ;;
3553 msvisualcpp | msvcmsys)
3554 # This compiler won't grok `-c -o', but also, the minuso test has
3555 # not run yet. These depmodes are late enough in the game, and
3556 # so weak that their functioning should not be impacted.
3557 am__obj=conftest.${OBJEXT-o}
3558 am__minus_obj=
3559 ;;
3560 none) break ;;
3561 esac
3562 if depmode=$depmode \
3563 source=sub/conftest.c object=$am__obj \
3564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3566 >/dev/null 2>conftest.err &&
3567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3571 # icc doesn't choke on unknown options, it will just issue warnings
3572 # or remarks (even with -Werror). So we grep stderr for any message
3573 # that says an option was ignored or not supported.
3574 # When given -MP, icc 7.0 and 7.1 complain thusly:
3575 # icc: Command line warning: ignoring option '-M'; no argument required
3576 # The diagnosis changed in icc 8.0:
3577 # icc: Command line remark: option '-MP' not supported
3578 if (grep 'ignoring option' conftest.err ||
3579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3580 am_cv_CC_dependencies_compiler_type=$depmode
3581 break
3582 fi
3583 fi
3584 done
3585
3586 cd ..
3587 rm -rf conftest.dir
3588 else
3589 am_cv_CC_dependencies_compiler_type=none
3590 fi
3591
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3596
3597 if
3598 test "x$enable_dependency_tracking" != xno \
3599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3600 am__fastdepCC_TRUE=
3601 am__fastdepCC_FALSE='#'
3602 else
3603 am__fastdepCC_TRUE='#'
3604 am__fastdepCC_FALSE=
3605 fi
3606
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3610 if ${ac_cv_prog_cc_c99+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 ac_cv_prog_cc_c99=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617 #include <stdarg.h>
3618 #include <stdbool.h>
3619 #include <stdlib.h>
3620 #include <wchar.h>
3621 #include <stdio.h>
3622
3623 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3624 #define debug(...) fprintf (stderr, __VA_ARGS__)
3625 #define showlist(...) puts (#__VA_ARGS__)
3626 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3627 static void
3628 test_varargs_macros (void)
3629 {
3630 int x = 1234;
3631 int y = 5678;
3632 debug ("Flag");
3633 debug ("X = %d\n", x);
3634 showlist (The first, second, and third items.);
3635 report (x>y, "x is %d but y is %d", x, y);
3636 }
3637
3638 // Check long long types.
3639 #define BIG64 18446744073709551615ull
3640 #define BIG32 4294967295ul
3641 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3642 #if !BIG_OK
3643 your preprocessor is broken;
3644 #endif
3645 #if BIG_OK
3646 #else
3647 your preprocessor is broken;
3648 #endif
3649 static long long int bignum = -9223372036854775807LL;
3650 static unsigned long long int ubignum = BIG64;
3651
3652 struct incomplete_array
3653 {
3654 int datasize;
3655 double data[];
3656 };
3657
3658 struct named_init {
3659 int number;
3660 const wchar_t *name;
3661 double average;
3662 };
3663
3664 typedef const char *ccp;
3665
3666 static inline int
3667 test_restrict (ccp restrict text)
3668 {
3669 // See if C++-style comments work.
3670 // Iterate through items via the restricted pointer.
3671 // Also check for declarations in for loops.
3672 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3673 continue;
3674 return 0;
3675 }
3676
3677 // Check varargs and va_copy.
3678 static void
3679 test_varargs (const char *format, ...)
3680 {
3681 va_list args;
3682 va_start (args, format);
3683 va_list args_copy;
3684 va_copy (args_copy, args);
3685
3686 const char *str;
3687 int number;
3688 float fnumber;
3689
3690 while (*format)
3691 {
3692 switch (*format++)
3693 {
3694 case 's': // string
3695 str = va_arg (args_copy, const char *);
3696 break;
3697 case 'd': // int
3698 number = va_arg (args_copy, int);
3699 break;
3700 case 'f': // float
3701 fnumber = va_arg (args_copy, double);
3702 break;
3703 default:
3704 break;
3705 }
3706 }
3707 va_end (args_copy);
3708 va_end (args);
3709 }
3710
3711 int
3712 main ()
3713 {
3714
3715 // Check bool.
3716 _Bool success = false;
3717
3718 // Check restrict.
3719 if (test_restrict ("String literal") == 0)
3720 success = true;
3721 char *restrict newvar = "Another string";
3722
3723 // Check varargs.
3724 test_varargs ("s, d' f .", "string", 65, 34.234);
3725 test_varargs_macros ();
3726
3727 // Check flexible array members.
3728 struct incomplete_array *ia =
3729 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3730 ia->datasize = 10;
3731 for (int i = 0; i < ia->datasize; ++i)
3732 ia->data[i] = i * 1.234;
3733
3734 // Check named initializers.
3735 struct named_init ni = {
3736 .number = 34,
3737 .name = L"Test wide string",
3738 .average = 543.34343,
3739 };
3740
3741 ni.number = 58;
3742
3743 int dynamic_array[ni.number];
3744 dynamic_array[ni.number - 1] = 543;
3745
3746 // work around unused variable warnings
3747 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3748 || dynamic_array[ni.number - 1] != 543);
3749
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3755 do
3756 CC="$ac_save_CC $ac_arg"
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_cv_prog_cc_c99=$ac_arg
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext
3761 test "x$ac_cv_prog_cc_c99" != "xno" && break
3762 done
3763 rm -f conftest.$ac_ext
3764 CC=$ac_save_CC
3765
3766 fi
3767 # AC_CACHE_VAL
3768 case "x$ac_cv_prog_cc_c99" in
3769 x)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3771 $as_echo "none needed" >&6; } ;;
3772 xno)
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3774 $as_echo "unsupported" >&6; } ;;
3775 *)
3776 CC="$CC $ac_cv_prog_cc_c99"
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3778 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3779 esac
3780 if test "x$ac_cv_prog_cc_c99" != xno; then :
3781
3782 fi
3783
3784
3785
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3793 # On Suns, sometimes $CPP names a directory.
3794 if test -n "$CPP" && test -d "$CPP"; then
3795 CPP=
3796 fi
3797 if test -z "$CPP"; then
3798 if ${ac_cv_prog_CPP+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 # Double quotes because CPP needs to be expanded
3802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3803 do
3804 ac_preproc_ok=false
3805 for ac_c_preproc_warn_flag in '' yes
3806 do
3807 # Use a header file that comes with gcc, so configuring glibc
3808 # with a fresh cross-compiler works.
3809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3810 # <limits.h> exists even on freestanding compilers.
3811 # On the NeXT, cc -E runs the code through the compiler's parser,
3812 # not just through cpp. "Syntax error" is here to catch this case.
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815 #ifdef __STDC__
3816 # include <limits.h>
3817 #else
3818 # include <assert.h>
3819 #endif
3820 Syntax error
3821 _ACEOF
3822 if ac_fn_c_try_cpp "$LINENO"; then :
3823
3824 else
3825 # Broken: fails on valid input.
3826 continue
3827 fi
3828 rm -f conftest.err conftest.i conftest.$ac_ext
3829
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <ac_nonexistent.h>
3835 _ACEOF
3836 if ac_fn_c_try_cpp "$LINENO"; then :
3837 # Broken: success on invalid input.
3838 continue
3839 else
3840 # Passes both tests.
3841 ac_preproc_ok=:
3842 break
3843 fi
3844 rm -f conftest.err conftest.i conftest.$ac_ext
3845
3846 done
3847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3848 rm -f conftest.i conftest.err conftest.$ac_ext
3849 if $ac_preproc_ok; then :
3850 break
3851 fi
3852
3853 done
3854 ac_cv_prog_CPP=$CPP
3855
3856 fi
3857 CPP=$ac_cv_prog_CPP
3858 else
3859 ac_cv_prog_CPP=$CPP
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3862 $as_echo "$CPP" >&6; }
3863 ac_preproc_ok=false
3864 for ac_c_preproc_warn_flag in '' yes
3865 do
3866 # Use a header file that comes with gcc, so configuring glibc
3867 # with a fresh cross-compiler works.
3868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3869 # <limits.h> exists even on freestanding compilers.
3870 # On the NeXT, cc -E runs the code through the compiler's parser,
3871 # not just through cpp. "Syntax error" is here to catch this case.
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874 #ifdef __STDC__
3875 # include <limits.h>
3876 #else
3877 # include <assert.h>
3878 #endif
3879 Syntax error
3880 _ACEOF
3881 if ac_fn_c_try_cpp "$LINENO"; then :
3882
3883 else
3884 # Broken: fails on valid input.
3885 continue
3886 fi
3887 rm -f conftest.err conftest.i conftest.$ac_ext
3888
3889 # OK, works on sane cases. Now check whether nonexistent headers
3890 # can be detected and how.
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3893 #include <ac_nonexistent.h>
3894 _ACEOF
3895 if ac_fn_c_try_cpp "$LINENO"; then :
3896 # Broken: success on invalid input.
3897 continue
3898 else
3899 # Passes both tests.
3900 ac_preproc_ok=:
3901 break
3902 fi
3903 rm -f conftest.err conftest.i conftest.$ac_ext
3904
3905 done
3906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3907 rm -f conftest.i conftest.err conftest.$ac_ext
3908 if $ac_preproc_ok; then :
3909
3910 else
3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3914 See \`config.log' for more details" "$LINENO" 5; }
3915 fi
3916
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3925 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3926 if ${ac_cv_path_GREP+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if test -z "$GREP"; then
3930 ac_path_GREP_found=false
3931 # Loop through the user's path and test for each of PROGNAME-LIST
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934 do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_prog in grep ggrep; do
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3940 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3941 # Check for GNU ac_path_GREP and select it if it is found.
3942 # Check for GNU $ac_path_GREP
3943 case `"$ac_path_GREP" --version 2>&1` in
3944 *GNU*)
3945 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3946 *)
3947 ac_count=0
3948 $as_echo_n 0123456789 >"conftest.in"
3949 while :
3950 do
3951 cat "conftest.in" "conftest.in" >"conftest.tmp"
3952 mv "conftest.tmp" "conftest.in"
3953 cp "conftest.in" "conftest.nl"
3954 $as_echo 'GREP' >> "conftest.nl"
3955 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3957 as_fn_arith $ac_count + 1 && ac_count=$as_val
3958 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3959 # Best one so far, save it but keep looking for a better one
3960 ac_cv_path_GREP="$ac_path_GREP"
3961 ac_path_GREP_max=$ac_count
3962 fi
3963 # 10*(2^10) chars as input seems more than enough
3964 test $ac_count -gt 10 && break
3965 done
3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967 esac
3968
3969 $ac_path_GREP_found && break 3
3970 done
3971 done
3972 done
3973 IFS=$as_save_IFS
3974 if test -z "$ac_cv_path_GREP"; then
3975 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3976 fi
3977 else
3978 ac_cv_path_GREP=$GREP
3979 fi
3980
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3983 $as_echo "$ac_cv_path_GREP" >&6; }
3984 GREP="$ac_cv_path_GREP"
3985
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3988 $as_echo_n "checking for egrep... " >&6; }
3989 if ${ac_cv_path_EGREP+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3994 else
3995 if test -z "$EGREP"; then
3996 ac_path_EGREP_found=false
3997 # Loop through the user's path and test for each of PROGNAME-LIST
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_prog in egrep; do
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4007 # Check for GNU ac_path_EGREP and select it if it is found.
4008 # Check for GNU $ac_path_EGREP
4009 case `"$ac_path_EGREP" --version 2>&1` in
4010 *GNU*)
4011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4012 *)
4013 ac_count=0
4014 $as_echo_n 0123456789 >"conftest.in"
4015 while :
4016 do
4017 cat "conftest.in" "conftest.in" >"conftest.tmp"
4018 mv "conftest.tmp" "conftest.in"
4019 cp "conftest.in" "conftest.nl"
4020 $as_echo 'EGREP' >> "conftest.nl"
4021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023 as_fn_arith $ac_count + 1 && ac_count=$as_val
4024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4025 # Best one so far, save it but keep looking for a better one
4026 ac_cv_path_EGREP="$ac_path_EGREP"
4027 ac_path_EGREP_max=$ac_count
4028 fi
4029 # 10*(2^10) chars as input seems more than enough
4030 test $ac_count -gt 10 && break
4031 done
4032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033 esac
4034
4035 $ac_path_EGREP_found && break 3
4036 done
4037 done
4038 done
4039 IFS=$as_save_IFS
4040 if test -z "$ac_cv_path_EGREP"; then
4041 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4042 fi
4043 else
4044 ac_cv_path_EGREP=$EGREP
4045 fi
4046
4047 fi
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4050 $as_echo "$ac_cv_path_EGREP" >&6; }
4051 EGREP="$ac_cv_path_EGREP"
4052
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4055 $as_echo_n "checking for ANSI C header files... " >&6; }
4056 if ${ac_cv_header_stdc+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <stdlib.h>
4062 #include <stdarg.h>
4063 #include <string.h>
4064 #include <float.h>
4065
4066 int
4067 main ()
4068 {
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_header_stdc=yes
4076 else
4077 ac_cv_header_stdc=no
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080
4081 if test $ac_cv_header_stdc = yes; then
4082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <string.h>
4086
4087 _ACEOF
4088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4089 $EGREP "memchr" >/dev/null 2>&1; then :
4090
4091 else
4092 ac_cv_header_stdc=no
4093 fi
4094 rm -f conftest*
4095
4096 fi
4097
4098 if test $ac_cv_header_stdc = yes; then
4099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <stdlib.h>
4103
4104 _ACEOF
4105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4106 $EGREP "free" >/dev/null 2>&1; then :
4107
4108 else
4109 ac_cv_header_stdc=no
4110 fi
4111 rm -f conftest*
4112
4113 fi
4114
4115 if test $ac_cv_header_stdc = yes; then
4116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4117 if test "$cross_compiling" = yes; then :
4118 :
4119 else
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <ctype.h>
4123 #include <stdlib.h>
4124 #if ((' ' & 0x0FF) == 0x020)
4125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4127 #else
4128 # define ISLOWER(c) \
4129 (('a' <= (c) && (c) <= 'i') \
4130 || ('j' <= (c) && (c) <= 'r') \
4131 || ('s' <= (c) && (c) <= 'z'))
4132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4133 #endif
4134
4135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4136 int
4137 main ()
4138 {
4139 int i;
4140 for (i = 0; i < 256; i++)
4141 if (XOR (islower (i), ISLOWER (i))
4142 || toupper (i) != TOUPPER (i))
4143 return 2;
4144 return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_run "$LINENO"; then :
4148
4149 else
4150 ac_cv_header_stdc=no
4151 fi
4152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4153 conftest.$ac_objext conftest.beam conftest.$ac_ext
4154 fi
4155
4156 fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4159 $as_echo "$ac_cv_header_stdc" >&6; }
4160 if test $ac_cv_header_stdc = yes; then
4161
4162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4163
4164 fi
4165
4166 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4167 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4168 inttypes.h stdint.h unistd.h
4169 do :
4170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4171 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4172 "
4173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4174 cat >>confdefs.h <<_ACEOF
4175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4176 _ACEOF
4177
4178 fi
4179
4180 done
4181
4182
4183
4184
4185 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4186 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4187 CLANGCC="yes"
4188 else
4189 CLANGCC="no"
4190 fi
4191
4192 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4193 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4194 INTELCC="yes"
4195 else
4196 INTELCC="no"
4197 fi
4198
4199 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4200 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4201 SUNCC="yes"
4202 else
4203 SUNCC="no"
4204 fi
4205
4206
4207
4208
4209 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4210 if test -n "$ac_tool_prefix"; then
4211 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4212 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 case $PKG_CONFIG in
4219 [\\/]* | ?:[\\/]*)
4220 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4221 ;;
4222 *)
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 ;;
4239 esac
4240 fi
4241 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4242 if test -n "$PKG_CONFIG"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4244 $as_echo "$PKG_CONFIG" >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249
4250
4251 fi
4252 if test -z "$ac_cv_path_PKG_CONFIG"; then
4253 ac_pt_PKG_CONFIG=$PKG_CONFIG
4254 # Extract the first word of "pkg-config", so it can be a program name with args.
4255 set dummy pkg-config; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 case $ac_pt_PKG_CONFIG in
4262 [\\/]* | ?:[\\/]*)
4263 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4264 ;;
4265 *)
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277 done
4278 done
4279 IFS=$as_save_IFS
4280
4281 ;;
4282 esac
4283 fi
4284 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4285 if test -n "$ac_pt_PKG_CONFIG"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4287 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4291 fi
4292
4293 if test "x$ac_pt_PKG_CONFIG" = x; then
4294 PKG_CONFIG=""
4295 else
4296 case $cross_compiling:$ac_tool_warned in
4297 yes:)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300 ac_tool_warned=yes ;;
4301 esac
4302 PKG_CONFIG=$ac_pt_PKG_CONFIG
4303 fi
4304 else
4305 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4306 fi
4307
4308 fi
4309 if test -n "$PKG_CONFIG"; then
4310 _pkg_min_version=0.9.0
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4312 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4313 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315 $as_echo "yes" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319 PKG_CONFIG=""
4320 fi
4321
4322 fi
4323 # Make sure we can run config.sub.
4324 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4325 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4326
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4328 $as_echo_n "checking build system type... " >&6; }
4329 if ${ac_cv_build+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 ac_build_alias=$build_alias
4333 test "x$ac_build_alias" = x &&
4334 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4335 test "x$ac_build_alias" = x &&
4336 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4337 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4338 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4339
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4342 $as_echo "$ac_cv_build" >&6; }
4343 case $ac_cv_build in
4344 *-*-*) ;;
4345 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4346 esac
4347 build=$ac_cv_build
4348 ac_save_IFS=$IFS; IFS='-'
4349 set x $ac_cv_build
4350 shift
4351 build_cpu=$1
4352 build_vendor=$2
4353 shift; shift
4354 # Remember, the first character of IFS is used to create $*,
4355 # except with old shells:
4356 build_os=$*
4357 IFS=$ac_save_IFS
4358 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4359
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4362 $as_echo_n "checking host system type... " >&6; }
4363 if ${ac_cv_host+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test "x$host_alias" = x; then
4367 ac_cv_host=$ac_cv_build
4368 else
4369 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4370 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4371 fi
4372
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4375 $as_echo "$ac_cv_host" >&6; }
4376 case $ac_cv_host in
4377 *-*-*) ;;
4378 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4379 esac
4380 host=$ac_cv_host
4381 ac_save_IFS=$IFS; IFS='-'
4382 set x $ac_cv_host
4383 shift
4384 host_cpu=$1
4385 host_vendor=$2
4386 shift; shift
4387 # Remember, the first character of IFS is used to create $*,
4388 # except with old shells:
4389 host_os=$*
4390 IFS=$ac_save_IFS
4391 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4392
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4395 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4396 if ${ac_cv_path_SED+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4400 for ac_i in 1 2 3 4 5 6 7; do
4401 ac_script="$ac_script$as_nl$ac_script"
4402 done
4403 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4404 { ac_script=; unset ac_script;}
4405 if test -z "$SED"; then
4406 ac_path_SED_found=false
4407 # Loop through the user's path and test for each of PROGNAME-LIST
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_prog in sed gsed; do
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4416 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4417 # Check for GNU ac_path_SED and select it if it is found.
4418 # Check for GNU $ac_path_SED
4419 case `"$ac_path_SED" --version 2>&1` in
4420 *GNU*)
4421 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4422 *)
4423 ac_count=0
4424 $as_echo_n 0123456789 >"conftest.in"
4425 while :
4426 do
4427 cat "conftest.in" "conftest.in" >"conftest.tmp"
4428 mv "conftest.tmp" "conftest.in"
4429 cp "conftest.in" "conftest.nl"
4430 $as_echo '' >> "conftest.nl"
4431 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433 as_fn_arith $ac_count + 1 && ac_count=$as_val
4434 if test $ac_count -gt ${ac_path_SED_max-0}; then
4435 # Best one so far, save it but keep looking for a better one
4436 ac_cv_path_SED="$ac_path_SED"
4437 ac_path_SED_max=$ac_count
4438 fi
4439 # 10*(2^10) chars as input seems more than enough
4440 test $ac_count -gt 10 && break
4441 done
4442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443 esac
4444
4445 $ac_path_SED_found && break 3
4446 done
4447 done
4448 done
4449 IFS=$as_save_IFS
4450 if test -z "$ac_cv_path_SED"; then
4451 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4452 fi
4453 else
4454 ac_cv_path_SED=$SED
4455 fi
4456
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4459 $as_echo "$ac_cv_path_SED" >&6; }
4460 SED="$ac_cv_path_SED"
4461 rm -f conftest.sed
4462
4463
4464
4465
4466
4467
4468 # Check whether --enable-selective-werror was given.
4469 if test "${enable_selective_werror+set}" = set; then :
4470 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4471 else
4472 SELECTIVE_WERROR=yes
4473 fi
4474
4475
4476 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4477 if test "x$SUNCC" = "xyes"; then
4478 BASE_CFLAGS="-v"
4479 else
4480 BASE_CFLAGS=""
4481 fi
4482
4483 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4484
4485
4486
4487
4488
4489 xorg_testset_save_CFLAGS="$CFLAGS"
4490
4491 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 int i;
4501 _ACEOF
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 xorg_cv_cc_flag_unknown_warning_option=yes
4504 else
4505 xorg_cv_cc_flag_unknown_warning_option=no
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4511 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4512 CFLAGS="$xorg_testset_save_CFLAGS"
4513 fi
4514
4515 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4518 fi
4519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 int i;
4528 _ACEOF
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530 xorg_cv_cc_flag_unused_command_line_argument=yes
4531 else
4532 xorg_cv_cc_flag_unused_command_line_argument=no
4533 fi
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4538 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4539 CFLAGS="$xorg_testset_save_CFLAGS"
4540 fi
4541
4542 found="no"
4543
4544 if test $found = "no" ; then
4545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4547 fi
4548
4549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4551 fi
4552
4553 CFLAGS="$CFLAGS -Wall"
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4556 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4557 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4558 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 int i;
4564 int
4565 main ()
4566 {
4567
4568 ;
4569 return 0;
4570 }
4571 _ACEOF
4572 if ac_fn_c_try_link "$LINENO"; then :
4573 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4574 else
4575 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext \
4578 conftest$ac_exeext conftest.$ac_ext
4579 fi
4580
4581
4582 CFLAGS="$xorg_testset_save_CFLAGS"
4583
4584 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4586 $as_echo "$supported" >&6; }
4587 if test "$supported" = "yes" ; then
4588 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4589 found="yes"
4590 fi
4591 fi
4592
4593
4594
4595
4596
4597
4598
4599 xorg_testset_save_CFLAGS="$CFLAGS"
4600
4601 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610 int i;
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 xorg_cv_cc_flag_unknown_warning_option=yes
4614 else
4615 xorg_cv_cc_flag_unknown_warning_option=no
4616 fi
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4620 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4621 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4622 CFLAGS="$xorg_testset_save_CFLAGS"
4623 fi
4624
4625 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4626 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4628 fi
4629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 int i;
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 xorg_cv_cc_flag_unused_command_line_argument=yes
4641 else
4642 xorg_cv_cc_flag_unused_command_line_argument=no
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4648 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4649 CFLAGS="$xorg_testset_save_CFLAGS"
4650 fi
4651
4652 found="no"
4653
4654 if test $found = "no" ; then
4655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4657 fi
4658
4659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4661 fi
4662
4663 CFLAGS="$CFLAGS -Wpointer-arith"
4664
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4666 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4667 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4668 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 int i;
4674 int
4675 main ()
4676 {
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_link "$LINENO"; then :
4683 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4684 else
4685 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext \
4688 conftest$ac_exeext conftest.$ac_ext
4689 fi
4690
4691
4692 CFLAGS="$xorg_testset_save_CFLAGS"
4693
4694 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4696 $as_echo "$supported" >&6; }
4697 if test "$supported" = "yes" ; then
4698 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4699 found="yes"
4700 fi
4701 fi
4702
4703
4704
4705
4706
4707
4708
4709 xorg_testset_save_CFLAGS="$CFLAGS"
4710
4711 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4714 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4715 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 int i;
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 xorg_cv_cc_flag_unknown_warning_option=yes
4724 else
4725 xorg_cv_cc_flag_unknown_warning_option=no
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4730 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4731 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4732 CFLAGS="$xorg_testset_save_CFLAGS"
4733 fi
4734
4735 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4738 fi
4739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4741 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4742 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 int i;
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 xorg_cv_cc_flag_unused_command_line_argument=yes
4751 else
4752 xorg_cv_cc_flag_unused_command_line_argument=no
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4757 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4758 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4759 CFLAGS="$xorg_testset_save_CFLAGS"
4760 fi
4761
4762 found="no"
4763
4764 if test $found = "no" ; then
4765 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4767 fi
4768
4769 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4771 fi
4772
4773 CFLAGS="$CFLAGS -Wstrict-prototypes"
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4776 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4777 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4778 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783 int i;
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_link "$LINENO"; then :
4793 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4794 else
4795 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext \
4798 conftest$ac_exeext conftest.$ac_ext
4799 fi
4800
4801
4802 CFLAGS="$xorg_testset_save_CFLAGS"
4803
4804 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4806 $as_echo "$supported" >&6; }
4807 if test "$supported" = "yes" ; then
4808 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4809 found="yes"
4810 fi
4811 fi
4812
4813
4814
4815
4816
4817
4818
4819 xorg_testset_save_CFLAGS="$CFLAGS"
4820
4821 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 int i;
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 xorg_cv_cc_flag_unknown_warning_option=yes
4834 else
4835 xorg_cv_cc_flag_unknown_warning_option=no
4836 fi
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4841 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4842 CFLAGS="$xorg_testset_save_CFLAGS"
4843 fi
4844
4845 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4846 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4848 fi
4849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 int i;
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 xorg_cv_cc_flag_unused_command_line_argument=yes
4861 else
4862 xorg_cv_cc_flag_unused_command_line_argument=no
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4868 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4869 CFLAGS="$xorg_testset_save_CFLAGS"
4870 fi
4871
4872 found="no"
4873
4874 if test $found = "no" ; then
4875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877 fi
4878
4879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4881 fi
4882
4883 CFLAGS="$CFLAGS -Wmissing-prototypes"
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4886 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4887 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4888 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 int i;
4894 int
4895 main ()
4896 {
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_link "$LINENO"; then :
4903 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4904 else
4905 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext \
4908 conftest$ac_exeext conftest.$ac_ext
4909 fi
4910
4911
4912 CFLAGS="$xorg_testset_save_CFLAGS"
4913
4914 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4916 $as_echo "$supported" >&6; }
4917 if test "$supported" = "yes" ; then
4918 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4919 found="yes"
4920 fi
4921 fi
4922
4923
4924
4925
4926
4927
4928
4929 xorg_testset_save_CFLAGS="$CFLAGS"
4930
4931 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4934 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4935 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 int i;
4941 _ACEOF
4942 if ac_fn_c_try_compile "$LINENO"; then :
4943 xorg_cv_cc_flag_unknown_warning_option=yes
4944 else
4945 xorg_cv_cc_flag_unknown_warning_option=no
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4950 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4951 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4952 CFLAGS="$xorg_testset_save_CFLAGS"
4953 fi
4954
4955 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4956 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4958 fi
4959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4961 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4962 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 int i;
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 xorg_cv_cc_flag_unused_command_line_argument=yes
4971 else
4972 xorg_cv_cc_flag_unused_command_line_argument=no
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4977 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4978 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4979 CFLAGS="$xorg_testset_save_CFLAGS"
4980 fi
4981
4982 found="no"
4983
4984 if test $found = "no" ; then
4985 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4987 fi
4988
4989 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4991 fi
4992
4993 CFLAGS="$CFLAGS -Wmissing-declarations"
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4996 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4997 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
4998 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 int i;
5004 int
5005 main ()
5006 {
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_link "$LINENO"; then :
5013 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5014 else
5015 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext \
5018 conftest$ac_exeext conftest.$ac_ext
5019 fi
5020
5021
5022 CFLAGS="$xorg_testset_save_CFLAGS"
5023
5024 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5026 $as_echo "$supported" >&6; }
5027 if test "$supported" = "yes" ; then
5028 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5029 found="yes"
5030 fi
5031 fi
5032
5033
5034
5035
5036
5037
5038
5039 xorg_testset_save_CFLAGS="$CFLAGS"
5040
5041 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5044 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5045 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 int i;
5051 _ACEOF
5052 if ac_fn_c_try_compile "$LINENO"; then :
5053 xorg_cv_cc_flag_unknown_warning_option=yes
5054 else
5055 xorg_cv_cc_flag_unknown_warning_option=no
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5060 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5061 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5062 CFLAGS="$xorg_testset_save_CFLAGS"
5063 fi
5064
5065 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5068 fi
5069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5071 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5072 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 int i;
5078 _ACEOF
5079 if ac_fn_c_try_compile "$LINENO"; then :
5080 xorg_cv_cc_flag_unused_command_line_argument=yes
5081 else
5082 xorg_cv_cc_flag_unused_command_line_argument=no
5083 fi
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5087 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5088 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5089 CFLAGS="$xorg_testset_save_CFLAGS"
5090 fi
5091
5092 found="no"
5093
5094 if test $found = "no" ; then
5095 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5097 fi
5098
5099 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5101 fi
5102
5103 CFLAGS="$CFLAGS -Wnested-externs"
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5106 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5107 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5108 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 int i;
5114 int
5115 main ()
5116 {
5117
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_c_try_link "$LINENO"; then :
5123 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5124 else
5125 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext \
5128 conftest$ac_exeext conftest.$ac_ext
5129 fi
5130
5131
5132 CFLAGS="$xorg_testset_save_CFLAGS"
5133
5134 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5136 $as_echo "$supported" >&6; }
5137 if test "$supported" = "yes" ; then
5138 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5139 found="yes"
5140 fi
5141 fi
5142
5143
5144
5145
5146
5147
5148
5149 xorg_testset_save_CFLAGS="$CFLAGS"
5150
5151 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5154 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5155 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 int i;
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 xorg_cv_cc_flag_unknown_warning_option=yes
5164 else
5165 xorg_cv_cc_flag_unknown_warning_option=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5170 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5171 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5173 fi
5174
5175 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5178 fi
5179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5181 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5182 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 int i;
5188 _ACEOF
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190 xorg_cv_cc_flag_unused_command_line_argument=yes
5191 else
5192 xorg_cv_cc_flag_unused_command_line_argument=no
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5197 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5198 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5199 CFLAGS="$xorg_testset_save_CFLAGS"
5200 fi
5201
5202 found="no"
5203
5204 if test $found = "no" ; then
5205 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207 fi
5208
5209 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211 fi
5212
5213 CFLAGS="$CFLAGS -Wbad-function-cast"
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5216 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5217 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5218 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 int i;
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_link "$LINENO"; then :
5233 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5234 else
5235 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 fi
5240
5241
5242 CFLAGS="$xorg_testset_save_CFLAGS"
5243
5244 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5246 $as_echo "$supported" >&6; }
5247 if test "$supported" = "yes" ; then
5248 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5249 found="yes"
5250 fi
5251 fi
5252
5253
5254
5255
5256
5257
5258
5259 xorg_testset_save_CFLAGS="$CFLAGS"
5260
5261 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5264 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5265 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 int i;
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 xorg_cv_cc_flag_unknown_warning_option=yes
5274 else
5275 xorg_cv_cc_flag_unknown_warning_option=no
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5280 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5281 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5282 CFLAGS="$xorg_testset_save_CFLAGS"
5283 fi
5284
5285 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5288 fi
5289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5291 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5292 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297 int i;
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 xorg_cv_cc_flag_unused_command_line_argument=yes
5301 else
5302 xorg_cv_cc_flag_unused_command_line_argument=no
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5307 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5308 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5309 CFLAGS="$xorg_testset_save_CFLAGS"
5310 fi
5311
5312 found="no"
5313
5314 if test $found = "no" ; then
5315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317 fi
5318
5319 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5321 fi
5322
5323 CFLAGS="$CFLAGS -Wformat=2"
5324
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5326 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5327 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5328 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 int i;
5334 int
5335 main ()
5336 {
5337
5338 ;
5339 return 0;
5340 }
5341 _ACEOF
5342 if ac_fn_c_try_link "$LINENO"; then :
5343 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5344 else
5345 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext \
5348 conftest$ac_exeext conftest.$ac_ext
5349 fi
5350
5351
5352 CFLAGS="$xorg_testset_save_CFLAGS"
5353
5354 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5356 $as_echo "$supported" >&6; }
5357 if test "$supported" = "yes" ; then
5358 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5359 found="yes"
5360 fi
5361 fi
5362
5363 if test $found = "no" ; then
5364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5366 fi
5367
5368 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5370 fi
5371
5372 CFLAGS="$CFLAGS -Wformat"
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5375 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5376 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5377 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382 int i;
5383 int
5384 main ()
5385 {
5386
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_link "$LINENO"; then :
5392 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5393 else
5394 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext \
5397 conftest$ac_exeext conftest.$ac_ext
5398 fi
5399
5400
5401 CFLAGS="$xorg_testset_save_CFLAGS"
5402
5403 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5405 $as_echo "$supported" >&6; }
5406 if test "$supported" = "yes" ; then
5407 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5408 found="yes"
5409 fi
5410 fi
5411
5412
5413
5414
5415
5416
5417
5418 xorg_testset_save_CFLAGS="$CFLAGS"
5419
5420 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 int i;
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 xorg_cv_cc_flag_unknown_warning_option=yes
5433 else
5434 xorg_cv_cc_flag_unknown_warning_option=no
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5440 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5441 CFLAGS="$xorg_testset_save_CFLAGS"
5442 fi
5443
5444 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5445 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447 fi
5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 int i;
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459 xorg_cv_cc_flag_unused_command_line_argument=yes
5460 else
5461 xorg_cv_cc_flag_unused_command_line_argument=no
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5467 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5468 CFLAGS="$xorg_testset_save_CFLAGS"
5469 fi
5470
5471 found="no"
5472
5473 if test $found = "no" ; then
5474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5476 fi
5477
5478 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5480 fi
5481
5482 CFLAGS="$CFLAGS -Wold-style-definition"
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5485 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5486 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5487 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492 int i;
5493 int
5494 main ()
5495 {
5496
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 if ac_fn_c_try_link "$LINENO"; then :
5502 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5503 else
5504 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext \
5507 conftest$ac_exeext conftest.$ac_ext
5508 fi
5509
5510
5511 CFLAGS="$xorg_testset_save_CFLAGS"
5512
5513 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5515 $as_echo "$supported" >&6; }
5516 if test "$supported" = "yes" ; then
5517 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5518 found="yes"
5519 fi
5520 fi
5521
5522
5523
5524
5525
5526
5527
5528 xorg_testset_save_CFLAGS="$CFLAGS"
5529
5530 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5533 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5534 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 int i;
5540 _ACEOF
5541 if ac_fn_c_try_compile "$LINENO"; then :
5542 xorg_cv_cc_flag_unknown_warning_option=yes
5543 else
5544 xorg_cv_cc_flag_unknown_warning_option=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5549 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5550 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5551 CFLAGS="$xorg_testset_save_CFLAGS"
5552 fi
5553
5554 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557 fi
5558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5560 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5561 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 int i;
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 xorg_cv_cc_flag_unused_command_line_argument=yes
5570 else
5571 xorg_cv_cc_flag_unused_command_line_argument=no
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5576 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5577 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5578 CFLAGS="$xorg_testset_save_CFLAGS"
5579 fi
5580
5581 found="no"
5582
5583 if test $found = "no" ; then
5584 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5586 fi
5587
5588 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5590 fi
5591
5592 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5595 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5596 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5597 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 int i;
5603 int
5604 main ()
5605 {
5606
5607 ;
5608 return 0;
5609 }
5610 _ACEOF
5611 if ac_fn_c_try_link "$LINENO"; then :
5612 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5613 else
5614 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5615 fi
5616 rm -f core conftest.err conftest.$ac_objext \
5617 conftest$ac_exeext conftest.$ac_ext
5618 fi
5619
5620
5621 CFLAGS="$xorg_testset_save_CFLAGS"
5622
5623 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5625 $as_echo "$supported" >&6; }
5626 if test "$supported" = "yes" ; then
5627 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5628 found="yes"
5629 fi
5630 fi
5631
5632
5633
5634 # This chunk adds additional warnings that could catch undesired effects.
5635
5636
5637
5638
5639
5640 xorg_testset_save_CFLAGS="$CFLAGS"
5641
5642 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int i;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 xorg_cv_cc_flag_unknown_warning_option=yes
5655 else
5656 xorg_cv_cc_flag_unknown_warning_option=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5662 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5663 CFLAGS="$xorg_testset_save_CFLAGS"
5664 fi
5665
5666 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669 fi
5670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 int i;
5679 _ACEOF
5680 if ac_fn_c_try_compile "$LINENO"; then :
5681 xorg_cv_cc_flag_unused_command_line_argument=yes
5682 else
5683 xorg_cv_cc_flag_unused_command_line_argument=no
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 fi
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5689 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5690 CFLAGS="$xorg_testset_save_CFLAGS"
5691 fi
5692
5693 found="no"
5694
5695 if test $found = "no" ; then
5696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698 fi
5699
5700 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702 fi
5703
5704 CFLAGS="$CFLAGS -Wunused"
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5707 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5708 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5709 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 int i;
5715 int
5716 main ()
5717 {
5718
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_link "$LINENO"; then :
5724 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5725 else
5726 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext \
5729 conftest$ac_exeext conftest.$ac_ext
5730 fi
5731
5732
5733 CFLAGS="$xorg_testset_save_CFLAGS"
5734
5735 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5737 $as_echo "$supported" >&6; }
5738 if test "$supported" = "yes" ; then
5739 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5740 found="yes"
5741 fi
5742 fi
5743
5744
5745
5746
5747
5748
5749
5750 xorg_testset_save_CFLAGS="$CFLAGS"
5751
5752 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5755 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5756 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 int i;
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 xorg_cv_cc_flag_unknown_warning_option=yes
5765 else
5766 xorg_cv_cc_flag_unknown_warning_option=no
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773 CFLAGS="$xorg_testset_save_CFLAGS"
5774 fi
5775
5776 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779 fi
5780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 int i;
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791 xorg_cv_cc_flag_unused_command_line_argument=yes
5792 else
5793 xorg_cv_cc_flag_unused_command_line_argument=no
5794 fi
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5798 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5799 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5800 CFLAGS="$xorg_testset_save_CFLAGS"
5801 fi
5802
5803 found="no"
5804
5805 if test $found = "no" ; then
5806 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808 fi
5809
5810 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5812 fi
5813
5814 CFLAGS="$CFLAGS -Wuninitialized"
5815
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5817 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5818 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5819 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 int i;
5825 int
5826 main ()
5827 {
5828
5829 ;
5830 return 0;
5831 }
5832 _ACEOF
5833 if ac_fn_c_try_link "$LINENO"; then :
5834 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5835 else
5836 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5837 fi
5838 rm -f core conftest.err conftest.$ac_objext \
5839 conftest$ac_exeext conftest.$ac_ext
5840 fi
5841
5842
5843 CFLAGS="$xorg_testset_save_CFLAGS"
5844
5845 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847 $as_echo "$supported" >&6; }
5848 if test "$supported" = "yes" ; then
5849 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5850 found="yes"
5851 fi
5852 fi
5853
5854
5855
5856
5857
5858
5859
5860 xorg_testset_save_CFLAGS="$CFLAGS"
5861
5862 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 int i;
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 xorg_cv_cc_flag_unknown_warning_option=yes
5875 else
5876 xorg_cv_cc_flag_unknown_warning_option=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5882 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5883 CFLAGS="$xorg_testset_save_CFLAGS"
5884 fi
5885
5886 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5887 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889 fi
5890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 int i;
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 xorg_cv_cc_flag_unused_command_line_argument=yes
5902 else
5903 xorg_cv_cc_flag_unused_command_line_argument=no
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5909 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5910 CFLAGS="$xorg_testset_save_CFLAGS"
5911 fi
5912
5913 found="no"
5914
5915 if test $found = "no" ; then
5916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918 fi
5919
5920 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5922 fi
5923
5924 CFLAGS="$CFLAGS -Wshadow"
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5927 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5928 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
5929 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 int i;
5935 int
5936 main ()
5937 {
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 if ac_fn_c_try_link "$LINENO"; then :
5944 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5945 else
5946 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5947 fi
5948 rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
5950 fi
5951
5952
5953 CFLAGS="$xorg_testset_save_CFLAGS"
5954
5955 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5957 $as_echo "$supported" >&6; }
5958 if test "$supported" = "yes" ; then
5959 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5960 found="yes"
5961 fi
5962 fi
5963
5964
5965
5966
5967
5968
5969
5970 xorg_testset_save_CFLAGS="$CFLAGS"
5971
5972 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 int i;
5982 _ACEOF
5983 if ac_fn_c_try_compile "$LINENO"; then :
5984 xorg_cv_cc_flag_unknown_warning_option=yes
5985 else
5986 xorg_cv_cc_flag_unknown_warning_option=no
5987 fi
5988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5992 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5993 CFLAGS="$xorg_testset_save_CFLAGS"
5994 fi
5995
5996 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5997 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5999 fi
6000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 int i;
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"; then :
6011 xorg_cv_cc_flag_unused_command_line_argument=yes
6012 else
6013 xorg_cv_cc_flag_unused_command_line_argument=no
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6019 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6020 CFLAGS="$xorg_testset_save_CFLAGS"
6021 fi
6022
6023 found="no"
6024
6025 if test $found = "no" ; then
6026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028 fi
6029
6030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6032 fi
6033
6034 CFLAGS="$CFLAGS -Wcast-qual"
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6037 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6038 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6039 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 int i;
6045 int
6046 main ()
6047 {
6048
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_link "$LINENO"; then :
6054 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6055 else
6056 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6057 fi
6058 rm -f core conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6060 fi
6061
6062
6063 CFLAGS="$xorg_testset_save_CFLAGS"
6064
6065 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6067 $as_echo "$supported" >&6; }
6068 if test "$supported" = "yes" ; then
6069 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6070 found="yes"
6071 fi
6072 fi
6073
6074
6075
6076
6077
6078
6079
6080 xorg_testset_save_CFLAGS="$CFLAGS"
6081
6082 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"; then :
6094 xorg_cv_cc_flag_unknown_warning_option=yes
6095 else
6096 xorg_cv_cc_flag_unknown_warning_option=no
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6102 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6103 CFLAGS="$xorg_testset_save_CFLAGS"
6104 fi
6105
6106 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109 fi
6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 int i;
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121 xorg_cv_cc_flag_unused_command_line_argument=yes
6122 else
6123 xorg_cv_cc_flag_unused_command_line_argument=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6129 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6130 CFLAGS="$xorg_testset_save_CFLAGS"
6131 fi
6132
6133 found="no"
6134
6135 if test $found = "no" ; then
6136 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138 fi
6139
6140 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142 fi
6143
6144 CFLAGS="$CFLAGS -Wmissing-noreturn"
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6147 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6148 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6149 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 int i;
6155 int
6156 main ()
6157 {
6158
6159 ;
6160 return 0;
6161 }
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"; then :
6164 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6165 else
6166 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
6170 fi
6171
6172
6173 CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177 $as_echo "$supported" >&6; }
6178 if test "$supported" = "yes" ; then
6179 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6180 found="yes"
6181 fi
6182 fi
6183
6184
6185
6186
6187
6188
6189
6190 xorg_testset_save_CFLAGS="$CFLAGS"
6191
6192 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 int i;
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204 xorg_cv_cc_flag_unknown_warning_option=yes
6205 else
6206 xorg_cv_cc_flag_unknown_warning_option=no
6207 fi
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6212 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6213 CFLAGS="$xorg_testset_save_CFLAGS"
6214 fi
6215
6216 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6217 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 fi
6220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"; then :
6231 xorg_cv_cc_flag_unused_command_line_argument=yes
6232 else
6233 xorg_cv_cc_flag_unused_command_line_argument=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6239 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6240 CFLAGS="$xorg_testset_save_CFLAGS"
6241 fi
6242
6243 found="no"
6244
6245 if test $found = "no" ; then
6246 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 fi
6249
6250 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252 fi
6253
6254 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6255
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6257 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6258 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6259 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 int i;
6265 int
6266 main ()
6267 {
6268
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 if ac_fn_c_try_link "$LINENO"; then :
6274 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6275 else
6276 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6277 fi
6278 rm -f core conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
6280 fi
6281
6282
6283 CFLAGS="$xorg_testset_save_CFLAGS"
6284
6285 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6287 $as_echo "$supported" >&6; }
6288 if test "$supported" = "yes" ; then
6289 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6290 found="yes"
6291 fi
6292 fi
6293
6294
6295
6296
6297
6298
6299
6300 xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 int i;
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 xorg_cv_cc_flag_unknown_warning_option=yes
6315 else
6316 xorg_cv_cc_flag_unknown_warning_option=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6322 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6323 CFLAGS="$xorg_testset_save_CFLAGS"
6324 fi
6325
6326 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329 fi
6330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 int i;
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341 xorg_cv_cc_flag_unused_command_line_argument=yes
6342 else
6343 xorg_cv_cc_flag_unused_command_line_argument=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6349 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6350 CFLAGS="$xorg_testset_save_CFLAGS"
6351 fi
6352
6353 found="no"
6354
6355 if test $found = "no" ; then
6356 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 fi
6359
6360 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362 fi
6363
6364 CFLAGS="$CFLAGS -Wredundant-decls"
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6367 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6368 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6369 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 int i;
6375 int
6376 main ()
6377 {
6378
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6385 else
6386 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 fi
6391
6392
6393 CFLAGS="$xorg_testset_save_CFLAGS"
6394
6395 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6397 $as_echo "$supported" >&6; }
6398 if test "$supported" = "yes" ; then
6399 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6400 found="yes"
6401 fi
6402 fi
6403
6404
6405
6406 # These are currently disabled because they are noisy. They will be enabled
6407 # in the future once the codebase is sufficiently modernized to silence
6408 # them. For now, I don't want them to drown out the other warnings.
6409 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6410 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6411 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6412
6413 # Turn some warnings into errors, so we don't accidently get successful builds
6414 # when there are problems that should be fixed.
6415
6416 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6417
6418
6419
6420
6421
6422 xorg_testset_save_CFLAGS="$CFLAGS"
6423
6424 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6427 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6428 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433 int i;
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 xorg_cv_cc_flag_unknown_warning_option=yes
6437 else
6438 xorg_cv_cc_flag_unknown_warning_option=no
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6443 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6444 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6445 CFLAGS="$xorg_testset_save_CFLAGS"
6446 fi
6447
6448 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451 fi
6452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6454 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6455 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 int i;
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463 xorg_cv_cc_flag_unused_command_line_argument=yes
6464 else
6465 xorg_cv_cc_flag_unused_command_line_argument=no
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6470 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6471 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6472 CFLAGS="$xorg_testset_save_CFLAGS"
6473 fi
6474
6475 found="no"
6476
6477 if test $found = "no" ; then
6478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480 fi
6481
6482 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6484 fi
6485
6486 CFLAGS="$CFLAGS -Werror=implicit"
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6489 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6490 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6491 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 int i;
6497 int
6498 main ()
6499 {
6500
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_link "$LINENO"; then :
6506 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6507 else
6508 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext \
6511 conftest$ac_exeext conftest.$ac_ext
6512 fi
6513
6514
6515 CFLAGS="$xorg_testset_save_CFLAGS"
6516
6517 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6519 $as_echo "$supported" >&6; }
6520 if test "$supported" = "yes" ; then
6521 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6522 found="yes"
6523 fi
6524 fi
6525
6526 if test $found = "no" ; then
6527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529 fi
6530
6531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6533 fi
6534
6535 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6538 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6539 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6540 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 int i;
6546 int
6547 main ()
6548 {
6549
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 if ac_fn_c_try_link "$LINENO"; then :
6555 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6556 else
6557 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
6561 fi
6562
6563
6564 CFLAGS="$xorg_testset_save_CFLAGS"
6565
6566 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6568 $as_echo "$supported" >&6; }
6569 if test "$supported" = "yes" ; then
6570 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6571 found="yes"
6572 fi
6573 fi
6574
6575
6576
6577
6578
6579
6580
6581 xorg_testset_save_CFLAGS="$CFLAGS"
6582
6583 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 int i;
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 xorg_cv_cc_flag_unknown_warning_option=yes
6596 else
6597 xorg_cv_cc_flag_unknown_warning_option=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6603 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6604 CFLAGS="$xorg_testset_save_CFLAGS"
6605 fi
6606
6607 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610 fi
6611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 int i;
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"; then :
6622 xorg_cv_cc_flag_unused_command_line_argument=yes
6623 else
6624 xorg_cv_cc_flag_unused_command_line_argument=no
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6630 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6631 CFLAGS="$xorg_testset_save_CFLAGS"
6632 fi
6633
6634 found="no"
6635
6636 if test $found = "no" ; then
6637 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6639 fi
6640
6641 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6643 fi
6644
6645 CFLAGS="$CFLAGS -Werror=nonnull"
6646
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6648 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6649 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6650 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 int i;
6656 int
6657 main ()
6658 {
6659
6660 ;
6661 return 0;
6662 }
6663 _ACEOF
6664 if ac_fn_c_try_link "$LINENO"; then :
6665 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6666 else
6667 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6668 fi
6669 rm -f core conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
6671 fi
6672
6673
6674 CFLAGS="$xorg_testset_save_CFLAGS"
6675
6676 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6678 $as_echo "$supported" >&6; }
6679 if test "$supported" = "yes" ; then
6680 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6681 found="yes"
6682 fi
6683 fi
6684
6685
6686
6687
6688
6689
6690
6691 xorg_testset_save_CFLAGS="$CFLAGS"
6692
6693 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6696 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6697 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 int i;
6703 _ACEOF
6704 if ac_fn_c_try_compile "$LINENO"; then :
6705 xorg_cv_cc_flag_unknown_warning_option=yes
6706 else
6707 xorg_cv_cc_flag_unknown_warning_option=no
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 fi
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6712 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6713 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6714 CFLAGS="$xorg_testset_save_CFLAGS"
6715 fi
6716
6717 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6720 fi
6721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6723 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6724 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 int i;
6730 _ACEOF
6731 if ac_fn_c_try_compile "$LINENO"; then :
6732 xorg_cv_cc_flag_unused_command_line_argument=yes
6733 else
6734 xorg_cv_cc_flag_unused_command_line_argument=no
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6739 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6740 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6741 CFLAGS="$xorg_testset_save_CFLAGS"
6742 fi
6743
6744 found="no"
6745
6746 if test $found = "no" ; then
6747 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749 fi
6750
6751 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753 fi
6754
6755 CFLAGS="$CFLAGS -Werror=init-self"
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6758 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6759 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6760 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 int i;
6766 int
6767 main ()
6768 {
6769
6770 ;
6771 return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6776 else
6777 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 fi
6782
6783
6784 CFLAGS="$xorg_testset_save_CFLAGS"
6785
6786 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788 $as_echo "$supported" >&6; }
6789 if test "$supported" = "yes" ; then
6790 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6791 found="yes"
6792 fi
6793 fi
6794
6795
6796
6797
6798
6799
6800
6801 xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int i;
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815 xorg_cv_cc_flag_unknown_warning_option=yes
6816 else
6817 xorg_cv_cc_flag_unknown_warning_option=no
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6823 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6824 CFLAGS="$xorg_testset_save_CFLAGS"
6825 fi
6826
6827 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830 fi
6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 int i;
6840 _ACEOF
6841 if ac_fn_c_try_compile "$LINENO"; then :
6842 xorg_cv_cc_flag_unused_command_line_argument=yes
6843 else
6844 xorg_cv_cc_flag_unused_command_line_argument=no
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6850 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6851 CFLAGS="$xorg_testset_save_CFLAGS"
6852 fi
6853
6854 found="no"
6855
6856 if test $found = "no" ; then
6857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859 fi
6860
6861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863 fi
6864
6865 CFLAGS="$CFLAGS -Werror=main"
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6868 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6869 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6870 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 int i;
6876 int
6877 main ()
6878 {
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"; then :
6885 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6886 else
6887 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 fi
6892
6893
6894 CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898 $as_echo "$supported" >&6; }
6899 if test "$supported" = "yes" ; then
6900 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6901 found="yes"
6902 fi
6903 fi
6904
6905
6906
6907
6908
6909
6910
6911 xorg_testset_save_CFLAGS="$CFLAGS"
6912
6913 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922 int i;
6923 _ACEOF
6924 if ac_fn_c_try_compile "$LINENO"; then :
6925 xorg_cv_cc_flag_unknown_warning_option=yes
6926 else
6927 xorg_cv_cc_flag_unknown_warning_option=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6933 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6934 CFLAGS="$xorg_testset_save_CFLAGS"
6935 fi
6936
6937 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6938 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940 fi
6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 int i;
6950 _ACEOF
6951 if ac_fn_c_try_compile "$LINENO"; then :
6952 xorg_cv_cc_flag_unused_command_line_argument=yes
6953 else
6954 xorg_cv_cc_flag_unused_command_line_argument=no
6955 fi
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 fi
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6960 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6961 CFLAGS="$xorg_testset_save_CFLAGS"
6962 fi
6963
6964 found="no"
6965
6966 if test $found = "no" ; then
6967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969 fi
6970
6971 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973 fi
6974
6975 CFLAGS="$CFLAGS -Werror=missing-braces"
6976
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6978 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6979 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
6980 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 int i;
6986 int
6987 main ()
6988 {
6989
6990 ;
6991 return 0;
6992 }
6993 _ACEOF
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6996 else
6997 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 fi
7002
7003
7004 CFLAGS="$xorg_testset_save_CFLAGS"
7005
7006 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7008 $as_echo "$supported" >&6; }
7009 if test "$supported" = "yes" ; then
7010 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7011 found="yes"
7012 fi
7013 fi
7014
7015
7016
7017
7018
7019
7020
7021 xorg_testset_save_CFLAGS="$CFLAGS"
7022
7023 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7026 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7027 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032 int i;
7033 _ACEOF
7034 if ac_fn_c_try_compile "$LINENO"; then :
7035 xorg_cv_cc_flag_unknown_warning_option=yes
7036 else
7037 xorg_cv_cc_flag_unknown_warning_option=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 fi
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7042 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7043 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7044 CFLAGS="$xorg_testset_save_CFLAGS"
7045 fi
7046
7047 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7050 fi
7051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7053 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7054 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 int i;
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 xorg_cv_cc_flag_unused_command_line_argument=yes
7063 else
7064 xorg_cv_cc_flag_unused_command_line_argument=no
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7069 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7070 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7071 CFLAGS="$xorg_testset_save_CFLAGS"
7072 fi
7073
7074 found="no"
7075
7076 if test $found = "no" ; then
7077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079 fi
7080
7081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7083 fi
7084
7085 CFLAGS="$CFLAGS -Werror=sequence-point"
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7088 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7089 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7090 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 int i;
7096 int
7097 main ()
7098 {
7099
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 if ac_fn_c_try_link "$LINENO"; then :
7105 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7106 else
7107 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 fi
7112
7113
7114 CFLAGS="$xorg_testset_save_CFLAGS"
7115
7116 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7118 $as_echo "$supported" >&6; }
7119 if test "$supported" = "yes" ; then
7120 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7121 found="yes"
7122 fi
7123 fi
7124
7125
7126
7127
7128
7129
7130
7131 xorg_testset_save_CFLAGS="$CFLAGS"
7132
7133 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 int i;
7143 _ACEOF
7144 if ac_fn_c_try_compile "$LINENO"; then :
7145 xorg_cv_cc_flag_unknown_warning_option=yes
7146 else
7147 xorg_cv_cc_flag_unknown_warning_option=no
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7152 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7153 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7154 CFLAGS="$xorg_testset_save_CFLAGS"
7155 fi
7156
7157 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7160 fi
7161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7163 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7164 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 int i;
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 xorg_cv_cc_flag_unused_command_line_argument=yes
7173 else
7174 xorg_cv_cc_flag_unused_command_line_argument=no
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7179 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7180 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7181 CFLAGS="$xorg_testset_save_CFLAGS"
7182 fi
7183
7184 found="no"
7185
7186 if test $found = "no" ; then
7187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189 fi
7190
7191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193 fi
7194
7195 CFLAGS="$CFLAGS -Werror=return-type"
7196
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7198 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7199 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7200 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205 int i;
7206 int
7207 main ()
7208 {
7209
7210 ;
7211 return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_link "$LINENO"; then :
7215 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7216 else
7217 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7221 fi
7222
7223
7224 CFLAGS="$xorg_testset_save_CFLAGS"
7225
7226 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7228 $as_echo "$supported" >&6; }
7229 if test "$supported" = "yes" ; then
7230 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7231 found="yes"
7232 fi
7233 fi
7234
7235 if test $found = "no" ; then
7236 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238 fi
7239
7240 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242 fi
7243
7244 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7247 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7248 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7249 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254 int i;
7255 int
7256 main ()
7257 {
7258
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_c_try_link "$LINENO"; then :
7264 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7265 else
7266 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7267 fi
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 fi
7271
7272
7273 CFLAGS="$xorg_testset_save_CFLAGS"
7274
7275 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7277 $as_echo "$supported" >&6; }
7278 if test "$supported" = "yes" ; then
7279 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7280 found="yes"
7281 fi
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290 xorg_testset_save_CFLAGS="$CFLAGS"
7291
7292 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7295 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7296 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 int i;
7302 _ACEOF
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304 xorg_cv_cc_flag_unknown_warning_option=yes
7305 else
7306 xorg_cv_cc_flag_unknown_warning_option=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7311 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7312 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7313 CFLAGS="$xorg_testset_save_CFLAGS"
7314 fi
7315
7316 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7319 fi
7320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7322 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7323 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7328 int i;
7329 _ACEOF
7330 if ac_fn_c_try_compile "$LINENO"; then :
7331 xorg_cv_cc_flag_unused_command_line_argument=yes
7332 else
7333 xorg_cv_cc_flag_unused_command_line_argument=no
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 fi
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7338 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7339 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7340 CFLAGS="$xorg_testset_save_CFLAGS"
7341 fi
7342
7343 found="no"
7344
7345 if test $found = "no" ; then
7346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348 fi
7349
7350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7352 fi
7353
7354 CFLAGS="$CFLAGS -Werror=trigraphs"
7355
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7357 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7358 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7359 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 int i;
7365 int
7366 main ()
7367 {
7368
7369 ;
7370 return 0;
7371 }
7372 _ACEOF
7373 if ac_fn_c_try_link "$LINENO"; then :
7374 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7375 else
7376 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7377 fi
7378 rm -f core conftest.err conftest.$ac_objext \
7379 conftest$ac_exeext conftest.$ac_ext
7380 fi
7381
7382
7383 CFLAGS="$xorg_testset_save_CFLAGS"
7384
7385 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7387 $as_echo "$supported" >&6; }
7388 if test "$supported" = "yes" ; then
7389 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7390 found="yes"
7391 fi
7392 fi
7393
7394
7395
7396
7397
7398
7399
7400 xorg_testset_save_CFLAGS="$CFLAGS"
7401
7402 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 int i;
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414 xorg_cv_cc_flag_unknown_warning_option=yes
7415 else
7416 xorg_cv_cc_flag_unknown_warning_option=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7422 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7423 CFLAGS="$xorg_testset_save_CFLAGS"
7424 fi
7425
7426 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429 fi
7430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 int i;
7439 _ACEOF
7440 if ac_fn_c_try_compile "$LINENO"; then :
7441 xorg_cv_cc_flag_unused_command_line_argument=yes
7442 else
7443 xorg_cv_cc_flag_unused_command_line_argument=no
7444 fi
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 fi
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7449 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7450 CFLAGS="$xorg_testset_save_CFLAGS"
7451 fi
7452
7453 found="no"
7454
7455 if test $found = "no" ; then
7456 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458 fi
7459
7460 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462 fi
7463
7464 CFLAGS="$CFLAGS -Werror=array-bounds"
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7467 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7468 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7469 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 int i;
7475 int
7476 main ()
7477 {
7478
7479 ;
7480 return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_c_try_link "$LINENO"; then :
7484 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7485 else
7486 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 fi
7491
7492
7493 CFLAGS="$xorg_testset_save_CFLAGS"
7494
7495 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7497 $as_echo "$supported" >&6; }
7498 if test "$supported" = "yes" ; then
7499 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7500 found="yes"
7501 fi
7502 fi
7503
7504
7505
7506
7507
7508
7509
7510 xorg_testset_save_CFLAGS="$CFLAGS"
7511
7512 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7516 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521 int i;
7522 _ACEOF
7523 if ac_fn_c_try_compile "$LINENO"; then :
7524 xorg_cv_cc_flag_unknown_warning_option=yes
7525 else
7526 xorg_cv_cc_flag_unknown_warning_option=no
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7531 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7532 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7533 CFLAGS="$xorg_testset_save_CFLAGS"
7534 fi
7535
7536 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539 fi
7540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7542 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7543 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 int i;
7549 _ACEOF
7550 if ac_fn_c_try_compile "$LINENO"; then :
7551 xorg_cv_cc_flag_unused_command_line_argument=yes
7552 else
7553 xorg_cv_cc_flag_unused_command_line_argument=no
7554 fi
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7558 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7559 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7560 CFLAGS="$xorg_testset_save_CFLAGS"
7561 fi
7562
7563 found="no"
7564
7565 if test $found = "no" ; then
7566 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568 fi
7569
7570 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572 fi
7573
7574 CFLAGS="$CFLAGS -Werror=write-strings"
7575
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7577 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7578 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7579 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584 int i;
7585 int
7586 main ()
7587 {
7588
7589 ;
7590 return 0;
7591 }
7592 _ACEOF
7593 if ac_fn_c_try_link "$LINENO"; then :
7594 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7595 else
7596 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7597 fi
7598 rm -f core conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
7600 fi
7601
7602
7603 CFLAGS="$xorg_testset_save_CFLAGS"
7604
7605 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7607 $as_echo "$supported" >&6; }
7608 if test "$supported" = "yes" ; then
7609 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7610 found="yes"
7611 fi
7612 fi
7613
7614
7615
7616
7617
7618
7619
7620 xorg_testset_save_CFLAGS="$CFLAGS"
7621
7622 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 int i;
7632 _ACEOF
7633 if ac_fn_c_try_compile "$LINENO"; then :
7634 xorg_cv_cc_flag_unknown_warning_option=yes
7635 else
7636 xorg_cv_cc_flag_unknown_warning_option=no
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7642 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7643 CFLAGS="$xorg_testset_save_CFLAGS"
7644 fi
7645
7646 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7647 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649 fi
7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 int i;
7659 _ACEOF
7660 if ac_fn_c_try_compile "$LINENO"; then :
7661 xorg_cv_cc_flag_unused_command_line_argument=yes
7662 else
7663 xorg_cv_cc_flag_unused_command_line_argument=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 fi
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7669 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7670 CFLAGS="$xorg_testset_save_CFLAGS"
7671 fi
7672
7673 found="no"
7674
7675 if test $found = "no" ; then
7676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678 fi
7679
7680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682 fi
7683
7684 CFLAGS="$CFLAGS -Werror=address"
7685
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7687 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7688 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7689 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 int i;
7695 int
7696 main ()
7697 {
7698
7699 ;
7700 return 0;
7701 }
7702 _ACEOF
7703 if ac_fn_c_try_link "$LINENO"; then :
7704 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7705 else
7706 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710 fi
7711
7712
7713 CFLAGS="$xorg_testset_save_CFLAGS"
7714
7715 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7717 $as_echo "$supported" >&6; }
7718 if test "$supported" = "yes" ; then
7719 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7720 found="yes"
7721 fi
7722 fi
7723
7724
7725
7726
7727
7728
7729
7730 xorg_testset_save_CFLAGS="$CFLAGS"
7731
7732 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741 int i;
7742 _ACEOF
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744 xorg_cv_cc_flag_unknown_warning_option=yes
7745 else
7746 xorg_cv_cc_flag_unknown_warning_option=no
7747 fi
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7752 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7753 CFLAGS="$xorg_testset_save_CFLAGS"
7754 fi
7755
7756 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7757 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759 fi
7760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 int i;
7769 _ACEOF
7770 if ac_fn_c_try_compile "$LINENO"; then :
7771 xorg_cv_cc_flag_unused_command_line_argument=yes
7772 else
7773 xorg_cv_cc_flag_unused_command_line_argument=no
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776 fi
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7779 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7780 CFLAGS="$xorg_testset_save_CFLAGS"
7781 fi
7782
7783 found="no"
7784
7785 if test $found = "no" ; then
7786 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788 fi
7789
7790 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7792 fi
7793
7794 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7795
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7797 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7798 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7799 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 int i;
7805 int
7806 main ()
7807 {
7808
7809 ;
7810 return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_link "$LINENO"; then :
7814 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7815 else
7816 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 fi
7821
7822
7823 CFLAGS="$xorg_testset_save_CFLAGS"
7824
7825 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7827 $as_echo "$supported" >&6; }
7828 if test "$supported" = "yes" ; then
7829 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7830 found="yes"
7831 fi
7832 fi
7833
7834 if test $found = "no" ; then
7835 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7837 fi
7838
7839 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7841 fi
7842
7843 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7844
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7846 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7847 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7848 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 int i;
7854 int
7855 main ()
7856 {
7857
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_link "$LINENO"; then :
7863 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7864 else
7865 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 fi
7870
7871
7872 CFLAGS="$xorg_testset_save_CFLAGS"
7873
7874 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7876 $as_echo "$supported" >&6; }
7877 if test "$supported" = "yes" ; then
7878 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7879 found="yes"
7880 fi
7881 fi
7882
7883
7884
7885
7886
7887
7888
7889 xorg_testset_save_CFLAGS="$CFLAGS"
7890
7891 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int i;
7901 _ACEOF
7902 if ac_fn_c_try_compile "$LINENO"; then :
7903 xorg_cv_cc_flag_unknown_warning_option=yes
7904 else
7905 xorg_cv_cc_flag_unknown_warning_option=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7911 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7912 CFLAGS="$xorg_testset_save_CFLAGS"
7913 fi
7914
7915 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918 fi
7919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 int i;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7930 xorg_cv_cc_flag_unused_command_line_argument=yes
7931 else
7932 xorg_cv_cc_flag_unused_command_line_argument=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7938 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7939 CFLAGS="$xorg_testset_save_CFLAGS"
7940 fi
7941
7942 found="no"
7943
7944 if test $found = "no" ; then
7945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947 fi
7948
7949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951 fi
7952
7953 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7956 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7957 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7958 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 int i;
7964 int
7965 main ()
7966 {
7967
7968 ;
7969 return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_link "$LINENO"; then :
7973 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7974 else
7975 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979 fi
7980
7981
7982 CFLAGS="$xorg_testset_save_CFLAGS"
7983
7984 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7986 $as_echo "$supported" >&6; }
7987 if test "$supported" = "yes" ; then
7988 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7989 found="yes"
7990 fi
7991 fi
7992
7993 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7994 else
7995 { $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
7996 $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;}
7997
7998
7999
8000
8001
8002 xorg_testset_save_CFLAGS="$CFLAGS"
8003
8004 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8007 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8008 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 int i;
8014 _ACEOF
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 xorg_cv_cc_flag_unknown_warning_option=yes
8017 else
8018 xorg_cv_cc_flag_unknown_warning_option=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8023 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8024 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8025 CFLAGS="$xorg_testset_save_CFLAGS"
8026 fi
8027
8028 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8029 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8031 fi
8032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8034 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8035 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 int i;
8041 _ACEOF
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043 xorg_cv_cc_flag_unused_command_line_argument=yes
8044 else
8045 xorg_cv_cc_flag_unused_command_line_argument=no
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8050 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8051 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8052 CFLAGS="$xorg_testset_save_CFLAGS"
8053 fi
8054
8055 found="no"
8056
8057 if test $found = "no" ; then
8058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8060 fi
8061
8062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064 fi
8065
8066 CFLAGS="$CFLAGS -Wimplicit"
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8069 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8070 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8071 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 int i;
8077 int
8078 main ()
8079 {
8080
8081 ;
8082 return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_link "$LINENO"; then :
8086 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8087 else
8088 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8089 fi
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 fi
8093
8094
8095 CFLAGS="$xorg_testset_save_CFLAGS"
8096
8097 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8099 $as_echo "$supported" >&6; }
8100 if test "$supported" = "yes" ; then
8101 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8102 found="yes"
8103 fi
8104 fi
8105
8106
8107
8108
8109
8110
8111
8112 xorg_testset_save_CFLAGS="$CFLAGS"
8113
8114 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8123 int i;
8124 _ACEOF
8125 if ac_fn_c_try_compile "$LINENO"; then :
8126 xorg_cv_cc_flag_unknown_warning_option=yes
8127 else
8128 xorg_cv_cc_flag_unknown_warning_option=no
8129 fi
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 fi
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8134 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8135 CFLAGS="$xorg_testset_save_CFLAGS"
8136 fi
8137
8138 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141 fi
8142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 int i;
8151 _ACEOF
8152 if ac_fn_c_try_compile "$LINENO"; then :
8153 xorg_cv_cc_flag_unused_command_line_argument=yes
8154 else
8155 xorg_cv_cc_flag_unused_command_line_argument=no
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 fi
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8161 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8162 CFLAGS="$xorg_testset_save_CFLAGS"
8163 fi
8164
8165 found="no"
8166
8167 if test $found = "no" ; then
8168 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8170 fi
8171
8172 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174 fi
8175
8176 CFLAGS="$CFLAGS -Wnonnull"
8177
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8179 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8180 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8181 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 int i;
8187 int
8188 main ()
8189 {
8190
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_link "$LINENO"; then :
8196 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8197 else
8198 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 fi
8203
8204
8205 CFLAGS="$xorg_testset_save_CFLAGS"
8206
8207 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8209 $as_echo "$supported" >&6; }
8210 if test "$supported" = "yes" ; then
8211 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8212 found="yes"
8213 fi
8214 fi
8215
8216
8217
8218
8219
8220
8221
8222 xorg_testset_save_CFLAGS="$CFLAGS"
8223
8224 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8227 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8228 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int i;
8234 _ACEOF
8235 if ac_fn_c_try_compile "$LINENO"; then :
8236 xorg_cv_cc_flag_unknown_warning_option=yes
8237 else
8238 xorg_cv_cc_flag_unknown_warning_option=no
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8243 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8244 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8245 CFLAGS="$xorg_testset_save_CFLAGS"
8246 fi
8247
8248 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8251 fi
8252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8254 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8255 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 int i;
8261 _ACEOF
8262 if ac_fn_c_try_compile "$LINENO"; then :
8263 xorg_cv_cc_flag_unused_command_line_argument=yes
8264 else
8265 xorg_cv_cc_flag_unused_command_line_argument=no
8266 fi
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8270 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8271 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8272 CFLAGS="$xorg_testset_save_CFLAGS"
8273 fi
8274
8275 found="no"
8276
8277 if test $found = "no" ; then
8278 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8280 fi
8281
8282 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8284 fi
8285
8286 CFLAGS="$CFLAGS -Winit-self"
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8289 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8290 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8291 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 int i;
8297 int
8298 main ()
8299 {
8300
8301 ;
8302 return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"; then :
8306 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8307 else
8308 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 fi
8313
8314
8315 CFLAGS="$xorg_testset_save_CFLAGS"
8316
8317 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8319 $as_echo "$supported" >&6; }
8320 if test "$supported" = "yes" ; then
8321 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8322 found="yes"
8323 fi
8324 fi
8325
8326
8327
8328
8329
8330
8331
8332 xorg_testset_save_CFLAGS="$CFLAGS"
8333
8334 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8337 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8338 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 int i;
8344 _ACEOF
8345 if ac_fn_c_try_compile "$LINENO"; then :
8346 xorg_cv_cc_flag_unknown_warning_option=yes
8347 else
8348 xorg_cv_cc_flag_unknown_warning_option=no
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8353 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8354 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8355 CFLAGS="$xorg_testset_save_CFLAGS"
8356 fi
8357
8358 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361 fi
8362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8364 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8365 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 int i;
8371 _ACEOF
8372 if ac_fn_c_try_compile "$LINENO"; then :
8373 xorg_cv_cc_flag_unused_command_line_argument=yes
8374 else
8375 xorg_cv_cc_flag_unused_command_line_argument=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8380 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8381 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8382 CFLAGS="$xorg_testset_save_CFLAGS"
8383 fi
8384
8385 found="no"
8386
8387 if test $found = "no" ; then
8388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390 fi
8391
8392 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394 fi
8395
8396 CFLAGS="$CFLAGS -Wmain"
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8399 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8400 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8401 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406 int i;
8407 int
8408 main ()
8409 {
8410
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"; then :
8416 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8417 else
8418 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8419 fi
8420 rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 fi
8423
8424
8425 CFLAGS="$xorg_testset_save_CFLAGS"
8426
8427 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8429 $as_echo "$supported" >&6; }
8430 if test "$supported" = "yes" ; then
8431 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8432 found="yes"
8433 fi
8434 fi
8435
8436
8437
8438
8439
8440
8441
8442 xorg_testset_save_CFLAGS="$CFLAGS"
8443
8444 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 int i;
8454 _ACEOF
8455 if ac_fn_c_try_compile "$LINENO"; then :
8456 xorg_cv_cc_flag_unknown_warning_option=yes
8457 else
8458 xorg_cv_cc_flag_unknown_warning_option=no
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 fi
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465 CFLAGS="$xorg_testset_save_CFLAGS"
8466 fi
8467
8468 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8469 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471 fi
8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 int i;
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483 xorg_cv_cc_flag_unused_command_line_argument=yes
8484 else
8485 xorg_cv_cc_flag_unused_command_line_argument=no
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8491 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8492 CFLAGS="$xorg_testset_save_CFLAGS"
8493 fi
8494
8495 found="no"
8496
8497 if test $found = "no" ; then
8498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500 fi
8501
8502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504 fi
8505
8506 CFLAGS="$CFLAGS -Wmissing-braces"
8507
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8509 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8510 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8511 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 int i;
8517 int
8518 main ()
8519 {
8520
8521 ;
8522 return 0;
8523 }
8524 _ACEOF
8525 if ac_fn_c_try_link "$LINENO"; then :
8526 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8527 else
8528 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 fi
8533
8534
8535 CFLAGS="$xorg_testset_save_CFLAGS"
8536
8537 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8539 $as_echo "$supported" >&6; }
8540 if test "$supported" = "yes" ; then
8541 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8542 found="yes"
8543 fi
8544 fi
8545
8546
8547
8548
8549
8550
8551
8552 xorg_testset_save_CFLAGS="$CFLAGS"
8553
8554 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8557 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8558 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 int i;
8564 _ACEOF
8565 if ac_fn_c_try_compile "$LINENO"; then :
8566 xorg_cv_cc_flag_unknown_warning_option=yes
8567 else
8568 xorg_cv_cc_flag_unknown_warning_option=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8573 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8574 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8575 CFLAGS="$xorg_testset_save_CFLAGS"
8576 fi
8577
8578 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8579 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8581 fi
8582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8584 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8585 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 int i;
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"; then :
8593 xorg_cv_cc_flag_unused_command_line_argument=yes
8594 else
8595 xorg_cv_cc_flag_unused_command_line_argument=no
8596 fi
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8600 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8601 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8602 CFLAGS="$xorg_testset_save_CFLAGS"
8603 fi
8604
8605 found="no"
8606
8607 if test $found = "no" ; then
8608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610 fi
8611
8612 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8614 fi
8615
8616 CFLAGS="$CFLAGS -Wsequence-point"
8617
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8619 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8620 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8621 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 int i;
8627 int
8628 main ()
8629 {
8630
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"; then :
8636 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8637 else
8638 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 fi
8643
8644
8645 CFLAGS="$xorg_testset_save_CFLAGS"
8646
8647 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8649 $as_echo "$supported" >&6; }
8650 if test "$supported" = "yes" ; then
8651 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8652 found="yes"
8653 fi
8654 fi
8655
8656
8657
8658
8659
8660
8661
8662 xorg_testset_save_CFLAGS="$CFLAGS"
8663
8664 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 int i;
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"; then :
8676 xorg_cv_cc_flag_unknown_warning_option=yes
8677 else
8678 xorg_cv_cc_flag_unknown_warning_option=no
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 fi
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8684 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8685 CFLAGS="$xorg_testset_save_CFLAGS"
8686 fi
8687
8688 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8689 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8691 fi
8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 int i;
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"; then :
8703 xorg_cv_cc_flag_unused_command_line_argument=yes
8704 else
8705 xorg_cv_cc_flag_unused_command_line_argument=no
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8711 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8712 CFLAGS="$xorg_testset_save_CFLAGS"
8713 fi
8714
8715 found="no"
8716
8717 if test $found = "no" ; then
8718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8720 fi
8721
8722 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8724 fi
8725
8726 CFLAGS="$CFLAGS -Wreturn-type"
8727
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8729 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8730 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8731 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 int
8738 main ()
8739 {
8740
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 if ac_fn_c_try_link "$LINENO"; then :
8746 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8747 else
8748 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext \
8751 conftest$ac_exeext conftest.$ac_ext
8752 fi
8753
8754
8755 CFLAGS="$xorg_testset_save_CFLAGS"
8756
8757 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8759 $as_echo "$supported" >&6; }
8760 if test "$supported" = "yes" ; then
8761 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8762 found="yes"
8763 fi
8764 fi
8765
8766
8767
8768
8769
8770
8771
8772 xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 int i;
8784 _ACEOF
8785 if ac_fn_c_try_compile "$LINENO"; then :
8786 xorg_cv_cc_flag_unknown_warning_option=yes
8787 else
8788 xorg_cv_cc_flag_unknown_warning_option=no
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8793 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8794 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8795 CFLAGS="$xorg_testset_save_CFLAGS"
8796 fi
8797
8798 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8799 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801 fi
8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8804 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8805 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 int i;
8811 _ACEOF
8812 if ac_fn_c_try_compile "$LINENO"; then :
8813 xorg_cv_cc_flag_unused_command_line_argument=yes
8814 else
8815 xorg_cv_cc_flag_unused_command_line_argument=no
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 fi
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8820 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8821 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8822 CFLAGS="$xorg_testset_save_CFLAGS"
8823 fi
8824
8825 found="no"
8826
8827 if test $found = "no" ; then
8828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8830 fi
8831
8832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8834 fi
8835
8836 CFLAGS="$CFLAGS -Wtrigraphs"
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8839 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8840 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8841 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 int i;
8847 int
8848 main ()
8849 {
8850
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_c_try_link "$LINENO"; then :
8856 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8857 else
8858 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8862 fi
8863
8864
8865 CFLAGS="$xorg_testset_save_CFLAGS"
8866
8867 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8869 $as_echo "$supported" >&6; }
8870 if test "$supported" = "yes" ; then
8871 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8872 found="yes"
8873 fi
8874 fi
8875
8876
8877
8878
8879
8880
8881
8882 xorg_testset_save_CFLAGS="$CFLAGS"
8883
8884 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 int i;
8894 _ACEOF
8895 if ac_fn_c_try_compile "$LINENO"; then :
8896 xorg_cv_cc_flag_unknown_warning_option=yes
8897 else
8898 xorg_cv_cc_flag_unknown_warning_option=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8904 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8905 CFLAGS="$xorg_testset_save_CFLAGS"
8906 fi
8907
8908 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911 fi
8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 int i;
8921 _ACEOF
8922 if ac_fn_c_try_compile "$LINENO"; then :
8923 xorg_cv_cc_flag_unused_command_line_argument=yes
8924 else
8925 xorg_cv_cc_flag_unused_command_line_argument=no
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 fi
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8931 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8932 CFLAGS="$xorg_testset_save_CFLAGS"
8933 fi
8934
8935 found="no"
8936
8937 if test $found = "no" ; then
8938 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940 fi
8941
8942 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8944 fi
8945
8946 CFLAGS="$CFLAGS -Warray-bounds"
8947
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8949 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8950 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
8951 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 int i;
8957 int
8958 main ()
8959 {
8960
8961 ;
8962 return 0;
8963 }
8964 _ACEOF
8965 if ac_fn_c_try_link "$LINENO"; then :
8966 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8967 else
8968 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8969 fi
8970 rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8972 fi
8973
8974
8975 CFLAGS="$xorg_testset_save_CFLAGS"
8976
8977 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8979 $as_echo "$supported" >&6; }
8980 if test "$supported" = "yes" ; then
8981 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8982 found="yes"
8983 fi
8984 fi
8985
8986
8987
8988
8989
8990
8991
8992 xorg_testset_save_CFLAGS="$CFLAGS"
8993
8994 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9003 int i;
9004 _ACEOF
9005 if ac_fn_c_try_compile "$LINENO"; then :
9006 xorg_cv_cc_flag_unknown_warning_option=yes
9007 else
9008 xorg_cv_cc_flag_unknown_warning_option=no
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9014 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9015 CFLAGS="$xorg_testset_save_CFLAGS"
9016 fi
9017
9018 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021 fi
9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030 int i;
9031 _ACEOF
9032 if ac_fn_c_try_compile "$LINENO"; then :
9033 xorg_cv_cc_flag_unused_command_line_argument=yes
9034 else
9035 xorg_cv_cc_flag_unused_command_line_argument=no
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9041 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9042 CFLAGS="$xorg_testset_save_CFLAGS"
9043 fi
9044
9045 found="no"
9046
9047 if test $found = "no" ; then
9048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050 fi
9051
9052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9054 fi
9055
9056 CFLAGS="$CFLAGS -Wwrite-strings"
9057
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9059 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9060 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9061 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066 int i;
9067 int
9068 main ()
9069 {
9070
9071 ;
9072 return 0;
9073 }
9074 _ACEOF
9075 if ac_fn_c_try_link "$LINENO"; then :
9076 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9077 else
9078 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9079 fi
9080 rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082 fi
9083
9084
9085 CFLAGS="$xorg_testset_save_CFLAGS"
9086
9087 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9089 $as_echo "$supported" >&6; }
9090 if test "$supported" = "yes" ; then
9091 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9092 found="yes"
9093 fi
9094 fi
9095
9096
9097
9098
9099
9100
9101
9102 xorg_testset_save_CFLAGS="$CFLAGS"
9103
9104 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9107 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9108 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 int i;
9114 _ACEOF
9115 if ac_fn_c_try_compile "$LINENO"; then :
9116 xorg_cv_cc_flag_unknown_warning_option=yes
9117 else
9118 xorg_cv_cc_flag_unknown_warning_option=no
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9123 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9124 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9125 CFLAGS="$xorg_testset_save_CFLAGS"
9126 fi
9127
9128 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9131 fi
9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9134 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9135 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 int i;
9141 _ACEOF
9142 if ac_fn_c_try_compile "$LINENO"; then :
9143 xorg_cv_cc_flag_unused_command_line_argument=yes
9144 else
9145 xorg_cv_cc_flag_unused_command_line_argument=no
9146 fi
9147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9148 fi
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9150 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9151 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9152 CFLAGS="$xorg_testset_save_CFLAGS"
9153 fi
9154
9155 found="no"
9156
9157 if test $found = "no" ; then
9158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9160 fi
9161
9162 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9164 fi
9165
9166 CFLAGS="$CFLAGS -Waddress"
9167
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9169 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9170 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9171 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9176 int i;
9177 int
9178 main ()
9179 {
9180
9181 ;
9182 return 0;
9183 }
9184 _ACEOF
9185 if ac_fn_c_try_link "$LINENO"; then :
9186 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9187 else
9188 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9189 fi
9190 rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 fi
9193
9194
9195 CFLAGS="$xorg_testset_save_CFLAGS"
9196
9197 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9199 $as_echo "$supported" >&6; }
9200 if test "$supported" = "yes" ; then
9201 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9202 found="yes"
9203 fi
9204 fi
9205
9206
9207
9208
9209
9210
9211
9212 xorg_testset_save_CFLAGS="$CFLAGS"
9213
9214 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9217 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9218 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 int i;
9224 _ACEOF
9225 if ac_fn_c_try_compile "$LINENO"; then :
9226 xorg_cv_cc_flag_unknown_warning_option=yes
9227 else
9228 xorg_cv_cc_flag_unknown_warning_option=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9233 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9234 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9235 CFLAGS="$xorg_testset_save_CFLAGS"
9236 fi
9237
9238 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241 fi
9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9244 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9245 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int i;
9251 _ACEOF
9252 if ac_fn_c_try_compile "$LINENO"; then :
9253 xorg_cv_cc_flag_unused_command_line_argument=yes
9254 else
9255 xorg_cv_cc_flag_unused_command_line_argument=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 fi
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9260 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9261 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9262 CFLAGS="$xorg_testset_save_CFLAGS"
9263 fi
9264
9265 found="no"
9266
9267 if test $found = "no" ; then
9268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270 fi
9271
9272 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9274 fi
9275
9276 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9277
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9279 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9280 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9281 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9282 $as_echo_n "(cached) " >&6
9283 else
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 int i;
9287 int
9288 main ()
9289 {
9290
9291 ;
9292 return 0;
9293 }
9294 _ACEOF
9295 if ac_fn_c_try_link "$LINENO"; then :
9296 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9297 else
9298 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9299 fi
9300 rm -f core conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext conftest.$ac_ext
9302 fi
9303
9304
9305 CFLAGS="$xorg_testset_save_CFLAGS"
9306
9307 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9309 $as_echo "$supported" >&6; }
9310 if test "$supported" = "yes" ; then
9311 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9312 found="yes"
9313 fi
9314 fi
9315
9316
9317
9318
9319
9320
9321
9322 xorg_testset_save_CFLAGS="$CFLAGS"
9323
9324 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9327 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9328 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 int i;
9334 _ACEOF
9335 if ac_fn_c_try_compile "$LINENO"; then :
9336 xorg_cv_cc_flag_unknown_warning_option=yes
9337 else
9338 xorg_cv_cc_flag_unknown_warning_option=no
9339 fi
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9343 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9344 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9345 CFLAGS="$xorg_testset_save_CFLAGS"
9346 fi
9347
9348 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9349 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9351 fi
9352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9354 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9355 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 int i;
9361 _ACEOF
9362 if ac_fn_c_try_compile "$LINENO"; then :
9363 xorg_cv_cc_flag_unused_command_line_argument=yes
9364 else
9365 xorg_cv_cc_flag_unused_command_line_argument=no
9366 fi
9367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9370 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9371 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9372 CFLAGS="$xorg_testset_save_CFLAGS"
9373 fi
9374
9375 found="no"
9376
9377 if test $found = "no" ; then
9378 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380 fi
9381
9382 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9384 fi
9385
9386 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9387
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9389 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9390 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9391 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9396 int i;
9397 int
9398 main ()
9399 {
9400
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 if ac_fn_c_try_link "$LINENO"; then :
9406 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9407 else
9408 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 fi
9413
9414
9415 CFLAGS="$xorg_testset_save_CFLAGS"
9416
9417 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9419 $as_echo "$supported" >&6; }
9420 if test "$supported" = "yes" ; then
9421 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9422 found="yes"
9423 fi
9424 fi
9425
9426
9427 fi
9428
9429
9430
9431
9432
9433
9434 CWARNFLAGS="$BASE_CFLAGS"
9435 if test "x$GCC" = xyes ; then
9436 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9437 fi
9438
9439
9440
9441
9442
9443
9444 # Check whether --enable-strict-compilation was given.
9445 if test "${enable_strict_compilation+set}" = set; then :
9446 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9447 else
9448 STRICT_COMPILE=no
9449 fi
9450
9451
9452 STRICT_CFLAGS=""
9453
9454
9455
9456
9457
9458 xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9463 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9464 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469 int i;
9470 _ACEOF
9471 if ac_fn_c_try_compile "$LINENO"; then :
9472 xorg_cv_cc_flag_unknown_warning_option=yes
9473 else
9474 xorg_cv_cc_flag_unknown_warning_option=no
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477 fi
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9479 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9480 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9481 CFLAGS="$xorg_testset_save_CFLAGS"
9482 fi
9483
9484 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9485 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487 fi
9488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9491 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 int i;
9497 _ACEOF
9498 if ac_fn_c_try_compile "$LINENO"; then :
9499 xorg_cv_cc_flag_unused_command_line_argument=yes
9500 else
9501 xorg_cv_cc_flag_unused_command_line_argument=no
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9506 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9507 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9508 CFLAGS="$xorg_testset_save_CFLAGS"
9509 fi
9510
9511 found="no"
9512
9513 if test $found = "no" ; then
9514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516 fi
9517
9518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9520 fi
9521
9522 CFLAGS="$CFLAGS -pedantic"
9523
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9525 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9526 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9527 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532 int i;
9533 int
9534 main ()
9535 {
9536
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9543 else
9544 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 fi
9549
9550
9551 CFLAGS="$xorg_testset_save_CFLAGS"
9552
9553 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9555 $as_echo "$supported" >&6; }
9556 if test "$supported" = "yes" ; then
9557 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9558 found="yes"
9559 fi
9560 fi
9561
9562
9563
9564
9565
9566
9567
9568 xorg_testset_save_CFLAGS="$CFLAGS"
9569
9570 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579 int i;
9580 _ACEOF
9581 if ac_fn_c_try_compile "$LINENO"; then :
9582 xorg_cv_cc_flag_unknown_warning_option=yes
9583 else
9584 xorg_cv_cc_flag_unknown_warning_option=no
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587 fi
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9590 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9591 CFLAGS="$xorg_testset_save_CFLAGS"
9592 fi
9593
9594 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9595 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9597 fi
9598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606 int i;
9607 _ACEOF
9608 if ac_fn_c_try_compile "$LINENO"; then :
9609 xorg_cv_cc_flag_unused_command_line_argument=yes
9610 else
9611 xorg_cv_cc_flag_unused_command_line_argument=no
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9617 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9618 CFLAGS="$xorg_testset_save_CFLAGS"
9619 fi
9620
9621 found="no"
9622
9623 if test $found = "no" ; then
9624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626 fi
9627
9628 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9630 fi
9631
9632 CFLAGS="$CFLAGS -Werror"
9633
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9635 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9636 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9637 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 int i;
9643 int
9644 main ()
9645 {
9646
9647 ;
9648 return 0;
9649 }
9650 _ACEOF
9651 if ac_fn_c_try_link "$LINENO"; then :
9652 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9653 else
9654 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9655 fi
9656 rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658 fi
9659
9660
9661 CFLAGS="$xorg_testset_save_CFLAGS"
9662
9663 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9665 $as_echo "$supported" >&6; }
9666 if test "$supported" = "yes" ; then
9667 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9668 found="yes"
9669 fi
9670 fi
9671
9672 if test $found = "no" ; then
9673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9675 fi
9676
9677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679 fi
9680
9681 CFLAGS="$CFLAGS -errwarn"
9682
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9684 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9685 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9686 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691 int i;
9692 int
9693 main ()
9694 {
9695
9696 ;
9697 return 0;
9698 }
9699 _ACEOF
9700 if ac_fn_c_try_link "$LINENO"; then :
9701 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9702 else
9703 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9704 fi
9705 rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707 fi
9708
9709
9710 CFLAGS="$xorg_testset_save_CFLAGS"
9711
9712 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9714 $as_echo "$supported" >&6; }
9715 if test "$supported" = "yes" ; then
9716 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9717 found="yes"
9718 fi
9719 fi
9720
9721
9722
9723 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9724 # activate it with -Werror, so we add it here explicitly.
9725
9726
9727
9728
9729
9730 xorg_testset_save_CFLAGS="$CFLAGS"
9731
9732 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 int i;
9742 _ACEOF
9743 if ac_fn_c_try_compile "$LINENO"; then :
9744 xorg_cv_cc_flag_unknown_warning_option=yes
9745 else
9746 xorg_cv_cc_flag_unknown_warning_option=no
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 fi
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9752 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9753 CFLAGS="$xorg_testset_save_CFLAGS"
9754 fi
9755
9756 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9757 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759 fi
9760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768 int i;
9769 _ACEOF
9770 if ac_fn_c_try_compile "$LINENO"; then :
9771 xorg_cv_cc_flag_unused_command_line_argument=yes
9772 else
9773 xorg_cv_cc_flag_unused_command_line_argument=no
9774 fi
9775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776 fi
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9779 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9780 CFLAGS="$xorg_testset_save_CFLAGS"
9781 fi
9782
9783 found="no"
9784
9785 if test $found = "no" ; then
9786 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 fi
9789
9790 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9792 fi
9793
9794 CFLAGS="$CFLAGS -Werror=attributes"
9795
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9797 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9798 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9799 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 int i;
9805 int
9806 main ()
9807 {
9808
9809 ;
9810 return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_link "$LINENO"; then :
9814 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9815 else
9816 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 fi
9821
9822
9823 CFLAGS="$xorg_testset_save_CFLAGS"
9824
9825 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9827 $as_echo "$supported" >&6; }
9828 if test "$supported" = "yes" ; then
9829 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9830 found="yes"
9831 fi
9832 fi
9833
9834
9835
9836 if test "x$STRICT_COMPILE" = "xyes"; then
9837 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9838 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9839 fi
9840
9841
9842
9843
9844
9845
9846 cat >>confdefs.h <<_ACEOF
9847 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9848 _ACEOF
9849
9850 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9851 if test "x$PVM" = "x"; then
9852 PVM="0"
9853 fi
9854
9855 cat >>confdefs.h <<_ACEOF
9856 #define PACKAGE_VERSION_MINOR $PVM
9857 _ACEOF
9858
9859 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9860 if test "x$PVP" = "x"; then
9861 PVP="0"
9862 fi
9863
9864 cat >>confdefs.h <<_ACEOF
9865 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9866 _ACEOF
9867
9868
9869
9870 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9871 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9872 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9873 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9874
9875
9876
9877
9878 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9879 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9880 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9881 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9882 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9883
9884
9885
9886
9887
9888
9889 if test x$APP_MAN_SUFFIX = x ; then
9890 APP_MAN_SUFFIX=1
9891 fi
9892 if test x$APP_MAN_DIR = x ; then
9893 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9894 fi
9895
9896 if test x$LIB_MAN_SUFFIX = x ; then
9897 LIB_MAN_SUFFIX=3
9898 fi
9899 if test x$LIB_MAN_DIR = x ; then
9900 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9901 fi
9902
9903 if test x$FILE_MAN_SUFFIX = x ; then
9904 case $host_os in
9905 solaris*) FILE_MAN_SUFFIX=4 ;;
9906 *) FILE_MAN_SUFFIX=5 ;;
9907 esac
9908 fi
9909 if test x$FILE_MAN_DIR = x ; then
9910 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9911 fi
9912
9913 if test x$MISC_MAN_SUFFIX = x ; then
9914 case $host_os in
9915 solaris*) MISC_MAN_SUFFIX=5 ;;
9916 *) MISC_MAN_SUFFIX=7 ;;
9917 esac
9918 fi
9919 if test x$MISC_MAN_DIR = x ; then
9920 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9921 fi
9922
9923 if test x$DRIVER_MAN_SUFFIX = x ; then
9924 case $host_os in
9925 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9926 *) DRIVER_MAN_SUFFIX=4 ;;
9927 esac
9928 fi
9929 if test x$DRIVER_MAN_DIR = x ; then
9930 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9931 fi
9932
9933 if test x$ADMIN_MAN_SUFFIX = x ; then
9934 case $host_os in
9935 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9936 *) ADMIN_MAN_SUFFIX=8 ;;
9937 esac
9938 fi
9939 if test x$ADMIN_MAN_DIR = x ; then
9940 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9941 fi
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957 XORG_MAN_PAGE="X Version 11"
9958
9959 MAN_SUBSTS="\
9960 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9961 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9962 -e 's|__xservername__|Xorg|g' \
9963 -e 's|__xconfigfile__|xorg.conf|g' \
9964 -e 's|__projectroot__|\$(prefix)|g' \
9965 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9966 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9967 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9968 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9969 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9970 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9971 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9972
9973
9974
9975 # Check whether --enable-silent-rules was given.
9976 if test "${enable_silent_rules+set}" = set; then :
9977 enableval=$enable_silent_rules;
9978 fi
9979
9980 case $enable_silent_rules in
9981 yes) AM_DEFAULT_VERBOSITY=0;;
9982 no) AM_DEFAULT_VERBOSITY=1;;
9983 *) AM_DEFAULT_VERBOSITY=0;;
9984 esac
9985 AM_BACKSLASH='\'
9986
9987
9988
9989 ac_config_headers="$ac_config_headers config.h"
9990
9991
9992
9993 # Internationalization & localization support
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
9995 $as_echo_n "checking for library containing gettext... " >&6; }
9996 if ${ac_cv_search_gettext+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 ac_func_search_save_LIBS=$LIBS
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10002
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char gettext ();
10010 int
10011 main ()
10012 {
10013 return gettext ();
10014 ;
10015 return 0;
10016 }
10017 _ACEOF
10018 for ac_lib in '' intl; do
10019 if test -z "$ac_lib"; then
10020 ac_res="none required"
10021 else
10022 ac_res=-l$ac_lib
10023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10024 fi
10025 if ac_fn_c_try_link "$LINENO"; then :
10026 ac_cv_search_gettext=$ac_res
10027 fi
10028 rm -f core conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext
10030 if ${ac_cv_search_gettext+:} false; then :
10031 break
10032 fi
10033 done
10034 if ${ac_cv_search_gettext+:} false; then :
10035
10036 else
10037 ac_cv_search_gettext=no
10038 fi
10039 rm conftest.$ac_ext
10040 LIBS=$ac_func_search_save_LIBS
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
10043 $as_echo "$ac_cv_search_gettext" >&6; }
10044 ac_res=$ac_cv_search_gettext
10045 if test "$ac_res" != no; then :
10046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10047 USE_GETTEXT="yes"
10048 else
10049 USE_GETTEXT="no"
10050 fi
10051
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
10053 $as_echo_n "checking where to install localized messages... " >&6; }
10054
10055 # Check whether --with-localedir was given.
10056 if test "${with_localedir+set}" = set; then :
10057 withval=$with_localedir; LOCALEDIR=${withval}
10058 else
10059 LOCALEDIR=${datadir}/locale
10060 fi
10061
10062
10063 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
10065 $as_echo "nowhere" >&6; }
10066 USE_GETTEXT="no"
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
10069 $as_echo "$LOCALEDIR" >&6; }
10070 fi
10071
10072 if test "x$USE_GETTEXT" = "xyes" ; then
10073
10074 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
10075
10076 fi
10077 if test "x$USE_GETTEXT" = "xyes"; then
10078 USE_GETTEXT_TRUE=
10079 USE_GETTEXT_FALSE='#'
10080 else
10081 USE_GETTEXT_TRUE='#'
10082 USE_GETTEXT_FALSE=
10083 fi
10084
10085
10086 # Checks for pkg-config packages
10087
10088 pkg_failed=no
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFD" >&5
10090 $as_echo_n "checking for XFD... " >&6; }
10091
10092 if test -n "$XFD_CFLAGS"; then
10093 pkg_cv_XFD_CFLAGS="$XFD_CFLAGS"
10094 elif test -n "$PKG_CONFIG"; then
10095 if test -n "$PKG_CONFIG" && \
10096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu\""; } >&5
10097 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu") 2>&5
10098 ac_status=$?
10099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10100 test $ac_status = 0; }; then
10101 pkg_cv_XFD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 fontconfig xft xrender xmu" 2>/dev/null`
10102 else
10103 pkg_failed=yes
10104 fi
10105 else
10106 pkg_failed=untried
10107 fi
10108 if test -n "$XFD_LIBS"; then
10109 pkg_cv_XFD_LIBS="$XFD_LIBS"
10110 elif test -n "$PKG_CONFIG"; then
10111 if test -n "$PKG_CONFIG" && \
10112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu\""; } >&5
10113 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu") 2>&5
10114 ac_status=$?
10115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116 test $ac_status = 0; }; then
10117 pkg_cv_XFD_LIBS=`$PKG_CONFIG --libs "xaw7 fontconfig xft xrender xmu" 2>/dev/null`
10118 else
10119 pkg_failed=yes
10120 fi
10121 else
10122 pkg_failed=untried
10123 fi
10124
10125
10126
10127 if test $pkg_failed = yes; then
10128
10129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10130 _pkg_short_errors_supported=yes
10131 else
10132 _pkg_short_errors_supported=no
10133 fi
10134 if test $_pkg_short_errors_supported = yes; then
10135 XFD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 fontconfig xft xrender xmu" 2>&1`
10136 else
10137 XFD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 fontconfig xft xrender xmu" 2>&1`
10138 fi
10139 # Put the nasty error message in config.log where it belongs
10140 echo "$XFD_PKG_ERRORS" >&5
10141
10142 as_fn_error $? "Package requirements (xaw7 fontconfig xft xrender xmu) were not met:
10143
10144 $XFD_PKG_ERRORS
10145
10146 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10147 installed software in a non-standard prefix.
10148
10149 Alternatively, you may set the environment variables XFD_CFLAGS
10150 and XFD_LIBS to avoid the need to call pkg-config.
10151 See the pkg-config man page for more details.
10152 " "$LINENO" 5
10153 elif test $pkg_failed = untried; then
10154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10156 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10157 is in your PATH or set the PKG_CONFIG environment variable to the full
10158 path to pkg-config.
10159
10160 Alternatively, you may set the environment variables XFD_CFLAGS
10161 and XFD_LIBS to avoid the need to call pkg-config.
10162 See the pkg-config man page for more details.
10163
10164 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10165 See \`config.log' for more details" "$LINENO" 5; }
10166 else
10167 XFD_CFLAGS=$pkg_cv_XFD_CFLAGS
10168 XFD_LIBS=$pkg_cv_XFD_LIBS
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 $as_echo "yes" >&6; }
10171 :
10172 fi
10173
10174
10175 pkg_failed=no
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10177 $as_echo_n "checking for APPDEFS... " >&6; }
10178
10179 if test -n "$APPDEFS_CFLAGS"; then
10180 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10181 elif test -n "$PKG_CONFIG"; then
10182 if test -n "$PKG_CONFIG" && \
10183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10184 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10185 ac_status=$?
10186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10187 test $ac_status = 0; }; then
10188 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10189 else
10190 pkg_failed=yes
10191 fi
10192 else
10193 pkg_failed=untried
10194 fi
10195 if test -n "$APPDEFS_LIBS"; then
10196 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10197 elif test -n "$PKG_CONFIG"; then
10198 if test -n "$PKG_CONFIG" && \
10199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10200 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10201 ac_status=$?
10202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10203 test $ac_status = 0; }; then
10204 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10205 else
10206 pkg_failed=yes
10207 fi
10208 else
10209 pkg_failed=untried
10210 fi
10211
10212
10213
10214 if test $pkg_failed = yes; then
10215
10216 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10217 _pkg_short_errors_supported=yes
10218 else
10219 _pkg_short_errors_supported=no
10220 fi
10221 if test $_pkg_short_errors_supported = yes; then
10222 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10223 else
10224 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10225 fi
10226 # Put the nasty error message in config.log where it belongs
10227 echo "$APPDEFS_PKG_ERRORS" >&5
10228
10229 as_fn_error $? "Package requirements (xt) were not met:
10230
10231 $APPDEFS_PKG_ERRORS
10232
10233 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10234 installed software in a non-standard prefix.
10235
10236 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10237 and APPDEFS_LIBS to avoid the need to call pkg-config.
10238 See the pkg-config man page for more details.
10239 " "$LINENO" 5
10240 elif test $pkg_failed = untried; then
10241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10243 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10244 is in your PATH or set the PKG_CONFIG environment variable to the full
10245 path to pkg-config.
10246
10247 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10248 and APPDEFS_LIBS to avoid the need to call pkg-config.
10249 See the pkg-config man page for more details.
10250
10251 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10252 See \`config.log' for more details" "$LINENO" 5; }
10253 else
10254 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10255 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10257 $as_echo "yes" >&6; }
10258 :
10259 fi
10260 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10261
10262 # Check whether --with-appdefaultdir was given.
10263 if test "${with_appdefaultdir+set}" = set; then :
10264 withval=$with_appdefaultdir; appdefaultdir="$withval"
10265 else
10266 appdefaultdir="${xt_appdefaultdir}"
10267 fi
10268
10269
10270
10271
10272 ac_config_files="$ac_config_files Makefile man/Makefile"
10273
10274 cat >confcache <<\_ACEOF
10275 # This file is a shell script that caches the results of configure
10276 # tests run on this system so they can be shared between configure
10277 # scripts and configure runs, see configure's option --config-cache.
10278 # It is not useful on other systems. If it contains results you don't
10279 # want to keep, you may remove or edit it.
10280 #
10281 # config.status only pays attention to the cache file if you give it
10282 # the --recheck option to rerun configure.
10283 #
10284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10286 # following values.
10287
10288 _ACEOF
10289
10290 # The following way of writing the cache mishandles newlines in values,
10291 # but we know of no workaround that is simple, portable, and efficient.
10292 # So, we kill variables containing newlines.
10293 # Ultrix sh set writes to stderr and can't be redirected directly,
10294 # and sets the high bit in the cache file unless we assign to the vars.
10295 (
10296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10297 eval ac_val=\$$ac_var
10298 case $ac_val in #(
10299 *${as_nl}*)
10300 case $ac_var in #(
10301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10303 esac
10304 case $ac_var in #(
10305 _ | IFS | as_nl) ;; #(
10306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10307 *) { eval $ac_var=; unset $ac_var;} ;;
10308 esac ;;
10309 esac
10310 done
10311
10312 (set) 2>&1 |
10313 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10314 *${as_nl}ac_space=\ *)
10315 # `set' does not quote correctly, so add quotes: double-quote
10316 # substitution turns \\\\ into \\, and sed turns \\ into \.
10317 sed -n \
10318 "s/'/'\\\\''/g;
10319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10320 ;; #(
10321 *)
10322 # `set' quotes correctly as required by POSIX, so do not add quotes.
10323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10324 ;;
10325 esac |
10326 sort
10327 ) |
10328 sed '
10329 /^ac_cv_env_/b end
10330 t clear
10331 :clear
10332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10333 t end
10334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10335 :end' >>confcache
10336 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10337 if test -w "$cache_file"; then
10338 if test "x$cache_file" != "x/dev/null"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10340 $as_echo "$as_me: updating cache $cache_file" >&6;}
10341 if test ! -f "$cache_file" || test -h "$cache_file"; then
10342 cat confcache >"$cache_file"
10343 else
10344 case $cache_file in #(
10345 */* | ?:*)
10346 mv -f confcache "$cache_file"$$ &&
10347 mv -f "$cache_file"$$ "$cache_file" ;; #(
10348 *)
10349 mv -f confcache "$cache_file" ;;
10350 esac
10351 fi
10352 fi
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10355 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10356 fi
10357 fi
10358 rm -f confcache
10359
10360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10361 # Let make expand exec_prefix.
10362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10363
10364 DEFS=-DHAVE_CONFIG_H
10365
10366 ac_libobjs=
10367 ac_ltlibobjs=
10368 U=
10369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10370 # 1. Remove the extension, and $U if already installed.
10371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10372 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10374 # will be set to the directory where LIBOBJS objects are built.
10375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10377 done
10378 LIBOBJS=$ac_libobjs
10379
10380 LTLIBOBJS=$ac_ltlibobjs
10381
10382
10383 if test -n "$EXEEXT"; then
10384 am__EXEEXT_TRUE=
10385 am__EXEEXT_FALSE='#'
10386 else
10387 am__EXEEXT_TRUE='#'
10388 am__EXEEXT_FALSE=
10389 fi
10390
10391 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10392 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10394 fi
10395 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10396 as_fn_error $? "conditional \"AMDEP\" was never defined.
10397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10398 fi
10399 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10400 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10402 fi
10403 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
10404 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
10405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10406 fi
10407
10408 : "${CONFIG_STATUS=./config.status}"
10409 ac_write_fail=0
10410 ac_clean_files_save=$ac_clean_files
10411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10414 as_write_fail=0
10415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10416 #! $SHELL
10417 # Generated by $as_me.
10418 # Run this file to recreate the current configuration.
10419 # Compiler output produced by configure, useful for debugging
10420 # configure, is in config.log if it exists.
10421
10422 debug=false
10423 ac_cs_recheck=false
10424 ac_cs_silent=false
10425
10426 SHELL=\${CONFIG_SHELL-$SHELL}
10427 export SHELL
10428 _ASEOF
10429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10430 ## -------------------- ##
10431 ## M4sh Initialization. ##
10432 ## -------------------- ##
10433
10434 # Be more Bourne compatible
10435 DUALCASE=1; export DUALCASE # for MKS sh
10436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10437 emulate sh
10438 NULLCMD=:
10439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10440 # is contrary to our usage. Disable this feature.
10441 alias -g '${1+"$@"}'='"$@"'
10442 setopt NO_GLOB_SUBST
10443 else
10444 case `(set -o) 2>/dev/null` in #(
10445 *posix*) :
10446 set -o posix ;; #(
10447 *) :
10448 ;;
10449 esac
10450 fi
10451
10452
10453 as_nl='
10454 '
10455 export as_nl
10456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10460 # Prefer a ksh shell builtin over an external printf program on Solaris,
10461 # but without wasting forks for bash or zsh.
10462 if test -z "$BASH_VERSION$ZSH_VERSION" \
10463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10464 as_echo='print -r --'
10465 as_echo_n='print -rn --'
10466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10467 as_echo='printf %s\n'
10468 as_echo_n='printf %s'
10469 else
10470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10472 as_echo_n='/usr/ucb/echo -n'
10473 else
10474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10475 as_echo_n_body='eval
10476 arg=$1;
10477 case $arg in #(
10478 *"$as_nl"*)
10479 expr "X$arg" : "X\\(.*\\)$as_nl";
10480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10481 esac;
10482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10483 '
10484 export as_echo_n_body
10485 as_echo_n='sh -c $as_echo_n_body as_echo'
10486 fi
10487 export as_echo_body
10488 as_echo='sh -c $as_echo_body as_echo'
10489 fi
10490
10491 # The user is always right.
10492 if test "${PATH_SEPARATOR+set}" != set; then
10493 PATH_SEPARATOR=:
10494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10496 PATH_SEPARATOR=';'
10497 }
10498 fi
10499
10500
10501 # IFS
10502 # We need space, tab and new line, in precisely that order. Quoting is
10503 # there to prevent editors from complaining about space-tab.
10504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10505 # splitting by setting IFS to empty value.)
10506 IFS=" "" $as_nl"
10507
10508 # Find who we are. Look in the path if we contain no directory separator.
10509 as_myself=
10510 case $0 in #((
10511 *[\\/]* ) as_myself=$0 ;;
10512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10514 do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10518 done
10519 IFS=$as_save_IFS
10520
10521 ;;
10522 esac
10523 # We did not find ourselves, most probably we were run as `sh COMMAND'
10524 # in which case we are not to be found in the path.
10525 if test "x$as_myself" = x; then
10526 as_myself=$0
10527 fi
10528 if test ! -f "$as_myself"; then
10529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10530 exit 1
10531 fi
10532
10533 # Unset variables that we do not need and which cause bugs (e.g. in
10534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10535 # suppresses any "Segmentation fault" message there. '((' could
10536 # trigger a bug in pdksh 5.2.14.
10537 for as_var in BASH_ENV ENV MAIL MAILPATH
10538 do eval test x\${$as_var+set} = xset \
10539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10540 done
10541 PS1='$ '
10542 PS2='> '
10543 PS4='+ '
10544
10545 # NLS nuisances.
10546 LC_ALL=C
10547 export LC_ALL
10548 LANGUAGE=C
10549 export LANGUAGE
10550
10551 # CDPATH.
10552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10553
10554
10555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10556 # ----------------------------------------
10557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10559 # script with STATUS, using 1 if that was 0.
10560 as_fn_error ()
10561 {
10562 as_status=$1; test $as_status -eq 0 && as_status=1
10563 if test "$4"; then
10564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10566 fi
10567 $as_echo "$as_me: error: $2" >&2
10568 as_fn_exit $as_status
10569 } # as_fn_error
10570
10571
10572 # as_fn_set_status STATUS
10573 # -----------------------
10574 # Set $? to STATUS, without forking.
10575 as_fn_set_status ()
10576 {
10577 return $1
10578 } # as_fn_set_status
10579
10580 # as_fn_exit STATUS
10581 # -----------------
10582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10583 as_fn_exit ()
10584 {
10585 set +e
10586 as_fn_set_status $1
10587 exit $1
10588 } # as_fn_exit
10589
10590 # as_fn_unset VAR
10591 # ---------------
10592 # Portably unset VAR.
10593 as_fn_unset ()
10594 {
10595 { eval $1=; unset $1;}
10596 }
10597 as_unset=as_fn_unset
10598 # as_fn_append VAR VALUE
10599 # ----------------------
10600 # Append the text in VALUE to the end of the definition contained in VAR. Take
10601 # advantage of any shell optimizations that allow amortized linear growth over
10602 # repeated appends, instead of the typical quadratic growth present in naive
10603 # implementations.
10604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10605 eval 'as_fn_append ()
10606 {
10607 eval $1+=\$2
10608 }'
10609 else
10610 as_fn_append ()
10611 {
10612 eval $1=\$$1\$2
10613 }
10614 fi # as_fn_append
10615
10616 # as_fn_arith ARG...
10617 # ------------------
10618 # Perform arithmetic evaluation on the ARGs, and store the result in the
10619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10620 # must be portable across $(()) and expr.
10621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10622 eval 'as_fn_arith ()
10623 {
10624 as_val=$(( $* ))
10625 }'
10626 else
10627 as_fn_arith ()
10628 {
10629 as_val=`expr "$@" || test $? -eq 1`
10630 }
10631 fi # as_fn_arith
10632
10633
10634 if expr a : '\(a\)' >/dev/null 2>&1 &&
10635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10636 as_expr=expr
10637 else
10638 as_expr=false
10639 fi
10640
10641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10642 as_basename=basename
10643 else
10644 as_basename=false
10645 fi
10646
10647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10648 as_dirname=dirname
10649 else
10650 as_dirname=false
10651 fi
10652
10653 as_me=`$as_basename -- "$0" ||
10654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10655 X"$0" : 'X\(//\)$' \| \
10656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10657 $as_echo X/"$0" |
10658 sed '/^.*\/\([^/][^/]*\)\/*$/{
10659 s//\1/
10660 q
10661 }
10662 /^X\/\(\/\/\)$/{
10663 s//\1/
10664 q
10665 }
10666 /^X\/\(\/\).*/{
10667 s//\1/
10668 q
10669 }
10670 s/.*/./; q'`
10671
10672 # Avoid depending upon Character Ranges.
10673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10676 as_cr_digits='0123456789'
10677 as_cr_alnum=$as_cr_Letters$as_cr_digits
10678
10679 ECHO_C= ECHO_N= ECHO_T=
10680 case `echo -n x` in #(((((
10681 -n*)
10682 case `echo 'xy\c'` in
10683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10684 xy) ECHO_C='\c';;
10685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10686 ECHO_T=' ';;
10687 esac;;
10688 *)
10689 ECHO_N='-n';;
10690 esac
10691
10692 rm -f conf$$ conf$$.exe conf$$.file
10693 if test -d conf$$.dir; then
10694 rm -f conf$$.dir/conf$$.file
10695 else
10696 rm -f conf$$.dir
10697 mkdir conf$$.dir 2>/dev/null
10698 fi
10699 if (echo >conf$$.file) 2>/dev/null; then
10700 if ln -s conf$$.file conf$$ 2>/dev/null; then
10701 as_ln_s='ln -s'
10702 # ... but there are two gotchas:
10703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10705 # In both cases, we have to default to `cp -p'.
10706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10707 as_ln_s='cp -p'
10708 elif ln conf$$.file conf$$ 2>/dev/null; then
10709 as_ln_s=ln
10710 else
10711 as_ln_s='cp -p'
10712 fi
10713 else
10714 as_ln_s='cp -p'
10715 fi
10716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10717 rmdir conf$$.dir 2>/dev/null
10718
10719
10720 # as_fn_mkdir_p
10721 # -------------
10722 # Create "$as_dir" as a directory, including parents if necessary.
10723 as_fn_mkdir_p ()
10724 {
10725
10726 case $as_dir in #(
10727 -*) as_dir=./$as_dir;;
10728 esac
10729 test -d "$as_dir" || eval $as_mkdir_p || {
10730 as_dirs=
10731 while :; do
10732 case $as_dir in #(
10733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10734 *) as_qdir=$as_dir;;
10735 esac
10736 as_dirs="'$as_qdir' $as_dirs"
10737 as_dir=`$as_dirname -- "$as_dir" ||
10738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10739 X"$as_dir" : 'X\(//\)[^/]' \| \
10740 X"$as_dir" : 'X\(//\)$' \| \
10741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10742 $as_echo X"$as_dir" |
10743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10744 s//\1/
10745 q
10746 }
10747 /^X\(\/\/\)[^/].*/{
10748 s//\1/
10749 q
10750 }
10751 /^X\(\/\/\)$/{
10752 s//\1/
10753 q
10754 }
10755 /^X\(\/\).*/{
10756 s//\1/
10757 q
10758 }
10759 s/.*/./; q'`
10760 test -d "$as_dir" && break
10761 done
10762 test -z "$as_dirs" || eval "mkdir $as_dirs"
10763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10764
10765
10766 } # as_fn_mkdir_p
10767 if mkdir -p . 2>/dev/null; then
10768 as_mkdir_p='mkdir -p "$as_dir"'
10769 else
10770 test -d ./-p && rmdir ./-p
10771 as_mkdir_p=false
10772 fi
10773
10774 if test -x / >/dev/null 2>&1; then
10775 as_test_x='test -x'
10776 else
10777 if ls -dL / >/dev/null 2>&1; then
10778 as_ls_L_option=L
10779 else
10780 as_ls_L_option=
10781 fi
10782 as_test_x='
10783 eval sh -c '\''
10784 if test -d "$1"; then
10785 test -d "$1/.";
10786 else
10787 case $1 in #(
10788 -*)set "./$1";;
10789 esac;
10790 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10791 ???[sx]*):;;*)false;;esac;fi
10792 '\'' sh
10793 '
10794 fi
10795 as_executable_p=$as_test_x
10796
10797 # Sed expression to map a string onto a valid CPP name.
10798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10799
10800 # Sed expression to map a string onto a valid variable name.
10801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10802
10803
10804 exec 6>&1
10805 ## ----------------------------------- ##
10806 ## Main body of $CONFIG_STATUS script. ##
10807 ## ----------------------------------- ##
10808 _ASEOF
10809 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10810
10811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10812 # Save the log message, to keep $0 and so on meaningful, and to
10813 # report actual input values of CONFIG_FILES etc. instead of their
10814 # values after options handling.
10815 ac_log="
10816 This file was extended by xfd $as_me 1.1.1, which was
10817 generated by GNU Autoconf 2.68. Invocation command line was
10818
10819 CONFIG_FILES = $CONFIG_FILES
10820 CONFIG_HEADERS = $CONFIG_HEADERS
10821 CONFIG_LINKS = $CONFIG_LINKS
10822 CONFIG_COMMANDS = $CONFIG_COMMANDS
10823 $ $0 $@
10824
10825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10826 "
10827
10828 _ACEOF
10829
10830 case $ac_config_files in *"
10831 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10832 esac
10833
10834 case $ac_config_headers in *"
10835 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10836 esac
10837
10838
10839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10840 # Files that config.status was made for.
10841 config_files="$ac_config_files"
10842 config_headers="$ac_config_headers"
10843 config_commands="$ac_config_commands"
10844
10845 _ACEOF
10846
10847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10848 ac_cs_usage="\
10849 \`$as_me' instantiates files and other configuration actions
10850 from templates according to the current configuration. Unless the files
10851 and actions are specified as TAGs, all are instantiated by default.
10852
10853 Usage: $0 [OPTION]... [TAG]...
10854
10855 -h, --help print this help, then exit
10856 -V, --version print version number and configuration settings, then exit
10857 --config print configuration, then exit
10858 -q, --quiet, --silent
10859 do not print progress messages
10860 -d, --debug don't remove temporary files
10861 --recheck update $as_me by reconfiguring in the same conditions
10862 --file=FILE[:TEMPLATE]
10863 instantiate the configuration file FILE
10864 --header=FILE[:TEMPLATE]
10865 instantiate the configuration header FILE
10866
10867 Configuration files:
10868 $config_files
10869
10870 Configuration headers:
10871 $config_headers
10872
10873 Configuration commands:
10874 $config_commands
10875
10876 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10877
10878 _ACEOF
10879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10880 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10881 ac_cs_version="\\
10882 xfd config.status 1.1.1
10883 configured by $0, generated by GNU Autoconf 2.68,
10884 with options \\"\$ac_cs_config\\"
10885
10886 Copyright (C) 2010 Free Software Foundation, Inc.
10887 This config.status script is free software; the Free Software Foundation
10888 gives unlimited permission to copy, distribute and modify it."
10889
10890 ac_pwd='$ac_pwd'
10891 srcdir='$srcdir'
10892 INSTALL='$INSTALL'
10893 MKDIR_P='$MKDIR_P'
10894 AWK='$AWK'
10895 test -n "\$AWK" || AWK=awk
10896 _ACEOF
10897
10898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10899 # The default lists apply if the user does not specify any file.
10900 ac_need_defaults=:
10901 while test $# != 0
10902 do
10903 case $1 in
10904 --*=?*)
10905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10907 ac_shift=:
10908 ;;
10909 --*=)
10910 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10911 ac_optarg=
10912 ac_shift=:
10913 ;;
10914 *)
10915 ac_option=$1
10916 ac_optarg=$2
10917 ac_shift=shift
10918 ;;
10919 esac
10920
10921 case $ac_option in
10922 # Handling of the options.
10923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10924 ac_cs_recheck=: ;;
10925 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10926 $as_echo "$ac_cs_version"; exit ;;
10927 --config | --confi | --conf | --con | --co | --c )
10928 $as_echo "$ac_cs_config"; exit ;;
10929 --debug | --debu | --deb | --de | --d | -d )
10930 debug=: ;;
10931 --file | --fil | --fi | --f )
10932 $ac_shift
10933 case $ac_optarg in
10934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10935 '') as_fn_error $? "missing file argument" ;;
10936 esac
10937 as_fn_append CONFIG_FILES " '$ac_optarg'"
10938 ac_need_defaults=false;;
10939 --header | --heade | --head | --hea )
10940 $ac_shift
10941 case $ac_optarg in
10942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10943 esac
10944 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10945 ac_need_defaults=false;;
10946 --he | --h)
10947 # Conflict between --help and --header
10948 as_fn_error $? "ambiguous option: \`$1'
10949 Try \`$0 --help' for more information.";;
10950 --help | --hel | -h )
10951 $as_echo "$ac_cs_usage"; exit ;;
10952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10954 ac_cs_silent=: ;;
10955
10956 # This is an error.
10957 -*) as_fn_error $? "unrecognized option: \`$1'
10958 Try \`$0 --help' for more information." ;;
10959
10960 *) as_fn_append ac_config_targets " $1"
10961 ac_need_defaults=false ;;
10962
10963 esac
10964 shift
10965 done
10966
10967 ac_configure_extra_args=
10968
10969 if $ac_cs_silent; then
10970 exec 6>/dev/null
10971 ac_configure_extra_args="$ac_configure_extra_args --silent"
10972 fi
10973
10974 _ACEOF
10975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10976 if \$ac_cs_recheck; then
10977 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10978 shift
10979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10980 CONFIG_SHELL='$SHELL'
10981 export CONFIG_SHELL
10982 exec "\$@"
10983 fi
10984
10985 _ACEOF
10986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10987 exec 5>>config.log
10988 {
10989 echo
10990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10991 ## Running $as_me. ##
10992 _ASBOX
10993 $as_echo "$ac_log"
10994 } >&5
10995
10996 _ACEOF
10997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10998 #
10999 # INIT-COMMANDS
11000 #
11001 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11002
11003 _ACEOF
11004
11005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11006
11007 # Handling of arguments.
11008 for ac_config_target in $ac_config_targets
11009 do
11010 case $ac_config_target in
11011 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11013 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11014 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11015
11016 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11017 esac
11018 done
11019
11020
11021 # If the user did not use the arguments to specify the items to instantiate,
11022 # then the envvar interface is used. Set only those that are not.
11023 # We use the long form for the default assignment because of an extremely
11024 # bizarre bug on SunOS 4.1.3.
11025 if $ac_need_defaults; then
11026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11029 fi
11030
11031 # Have a temporary directory for convenience. Make it in the build tree
11032 # simply because there is no reason against having it here, and in addition,
11033 # creating and moving files from /tmp can sometimes cause problems.
11034 # Hook for its removal unless debugging.
11035 # Note that there is a small window in which the directory will not be cleaned:
11036 # after its creation but before its name has been assigned to `$tmp'.
11037 $debug ||
11038 {
11039 tmp= ac_tmp=
11040 trap 'exit_status=$?
11041 : "${ac_tmp:=$tmp}"
11042 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11043 ' 0
11044 trap 'as_fn_exit 1' 1 2 13 15
11045 }
11046 # Create a (secure) tmp directory for tmp files.
11047
11048 {
11049 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11050 test -d "$tmp"
11051 } ||
11052 {
11053 tmp=./conf$$-$RANDOM
11054 (umask 077 && mkdir "$tmp")
11055 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11056 ac_tmp=$tmp
11057
11058 # Set up the scripts for CONFIG_FILES section.
11059 # No need to generate them if there are no CONFIG_FILES.
11060 # This happens for instance with `./config.status config.h'.
11061 if test -n "$CONFIG_FILES"; then
11062
11063
11064 ac_cr=`echo X | tr X '\015'`
11065 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11066 # But we know of no other shell where ac_cr would be empty at this
11067 # point, so we can use a bashism as a fallback.
11068 if test "x$ac_cr" = x; then
11069 eval ac_cr=\$\'\\r\'
11070 fi
11071 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11072 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11073 ac_cs_awk_cr='\\r'
11074 else
11075 ac_cs_awk_cr=$ac_cr
11076 fi
11077
11078 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11079 _ACEOF
11080
11081
11082 {
11083 echo "cat >conf$$subs.awk <<_ACEOF" &&
11084 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11085 echo "_ACEOF"
11086 } >conf$$subs.sh ||
11087 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11088 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11089 ac_delim='%!_!# '
11090 for ac_last_try in false false false false false :; do
11091 . ./conf$$subs.sh ||
11092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11093
11094 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11095 if test $ac_delim_n = $ac_delim_num; then
11096 break
11097 elif $ac_last_try; then
11098 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11099 else
11100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11101 fi
11102 done
11103 rm -f conf$$subs.sh
11104
11105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11106 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11107 _ACEOF
11108 sed -n '
11109 h
11110 s/^/S["/; s/!.*/"]=/
11111 p
11112 g
11113 s/^[^!]*!//
11114 :repl
11115 t repl
11116 s/'"$ac_delim"'$//
11117 t delim
11118 :nl
11119 h
11120 s/\(.\{148\}\)..*/\1/
11121 t more1
11122 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11123 p
11124 n
11125 b repl
11126 :more1
11127 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11128 p
11129 g
11130 s/.\{148\}//
11131 t nl
11132 :delim
11133 h
11134 s/\(.\{148\}\)..*/\1/
11135 t more2
11136 s/["\\]/\\&/g; s/^/"/; s/$/"/
11137 p
11138 b
11139 :more2
11140 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11141 p
11142 g
11143 s/.\{148\}//
11144 t delim
11145 ' <conf$$subs.awk | sed '
11146 /^[^""]/{
11147 N
11148 s/\n//
11149 }
11150 ' >>$CONFIG_STATUS || ac_write_fail=1
11151 rm -f conf$$subs.awk
11152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11153 _ACAWK
11154 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11155 for (key in S) S_is_set[key] = 1
11156 FS = ""
11157
11158 }
11159 {
11160 line = $ 0
11161 nfields = split(line, field, "@")
11162 substed = 0
11163 len = length(field[1])
11164 for (i = 2; i < nfields; i++) {
11165 key = field[i]
11166 keylen = length(key)
11167 if (S_is_set[key]) {
11168 value = S[key]
11169 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11170 len += length(value) + length(field[++i])
11171 substed = 1
11172 } else
11173 len += 1 + keylen
11174 }
11175
11176 print line
11177 }
11178
11179 _ACAWK
11180 _ACEOF
11181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11182 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11183 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11184 else
11185 cat
11186 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11187 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11188 _ACEOF
11189
11190 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11191 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11192 # trailing colons and then remove the whole line if VPATH becomes empty
11193 # (actually we leave an empty line to preserve line numbers).
11194 if test "x$srcdir" = x.; then
11195 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11196 h
11197 s///
11198 s/^/:/
11199 s/[ ]*$/:/
11200 s/:\$(srcdir):/:/g
11201 s/:\${srcdir}:/:/g
11202 s/:@srcdir@:/:/g
11203 s/^:*//
11204 s/:*$//
11205 x
11206 s/\(=[ ]*\).*/\1/
11207 G
11208 s/\n//
11209 s/^[^=]*=[ ]*$//
11210 }'
11211 fi
11212
11213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11214 fi # test -n "$CONFIG_FILES"
11215
11216 # Set up the scripts for CONFIG_HEADERS section.
11217 # No need to generate them if there are no CONFIG_HEADERS.
11218 # This happens for instance with `./config.status Makefile'.
11219 if test -n "$CONFIG_HEADERS"; then
11220 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11221 BEGIN {
11222 _ACEOF
11223
11224 # Transform confdefs.h into an awk script `defines.awk', embedded as
11225 # here-document in config.status, that substitutes the proper values into
11226 # config.h.in to produce config.h.
11227
11228 # Create a delimiter string that does not exist in confdefs.h, to ease
11229 # handling of long lines.
11230 ac_delim='%!_!# '
11231 for ac_last_try in false false :; do
11232 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11233 if test -z "$ac_tt"; then
11234 break
11235 elif $ac_last_try; then
11236 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11237 else
11238 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11239 fi
11240 done
11241
11242 # For the awk script, D is an array of macro values keyed by name,
11243 # likewise P contains macro parameters if any. Preserve backslash
11244 # newline sequences.
11245
11246 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11247 sed -n '
11248 s/.\{148\}/&'"$ac_delim"'/g
11249 t rset
11250 :rset
11251 s/^[ ]*#[ ]*define[ ][ ]*/ /
11252 t def
11253 d
11254 :def
11255 s/\\$//
11256 t bsnl
11257 s/["\\]/\\&/g
11258 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11259 D["\1"]=" \3"/p
11260 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11261 d
11262 :bsnl
11263 s/["\\]/\\&/g
11264 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11265 D["\1"]=" \3\\\\\\n"\\/p
11266 t cont
11267 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11268 t cont
11269 d
11270 :cont
11271 n
11272 s/.\{148\}/&'"$ac_delim"'/g
11273 t clear
11274 :clear
11275 s/\\$//
11276 t bsnlc
11277 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11278 d
11279 :bsnlc
11280 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11281 b cont
11282 ' <confdefs.h | sed '
11283 s/'"$ac_delim"'/"\\\
11284 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11285
11286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11287 for (key in D) D_is_set[key] = 1
11288 FS = ""
11289 }
11290 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11291 line = \$ 0
11292 split(line, arg, " ")
11293 if (arg[1] == "#") {
11294 defundef = arg[2]
11295 mac1 = arg[3]
11296 } else {
11297 defundef = substr(arg[1], 2)
11298 mac1 = arg[2]
11299 }
11300 split(mac1, mac2, "(") #)
11301 macro = mac2[1]
11302 prefix = substr(line, 1, index(line, defundef) - 1)
11303 if (D_is_set[macro]) {
11304 # Preserve the white space surrounding the "#".
11305 print prefix "define", macro P[macro] D[macro]
11306 next
11307 } else {
11308 # Replace #undef with comments. This is necessary, for example,
11309 # in the case of _POSIX_SOURCE, which is predefined and required
11310 # on some systems where configure will not decide to define it.
11311 if (defundef == "undef") {
11312 print "/*", prefix defundef, macro, "*/"
11313 next
11314 }
11315 }
11316 }
11317 { print }
11318 _ACAWK
11319 _ACEOF
11320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11321 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11322 fi # test -n "$CONFIG_HEADERS"
11323
11324
11325 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11326 shift
11327 for ac_tag
11328 do
11329 case $ac_tag in
11330 :[FHLC]) ac_mode=$ac_tag; continue;;
11331 esac
11332 case $ac_mode$ac_tag in
11333 :[FHL]*:*);;
11334 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11335 :[FH]-) ac_tag=-:-;;
11336 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11337 esac
11338 ac_save_IFS=$IFS
11339 IFS=:
11340 set x $ac_tag
11341 IFS=$ac_save_IFS
11342 shift
11343 ac_file=$1
11344 shift
11345
11346 case $ac_mode in
11347 :L) ac_source=$1;;
11348 :[FH])
11349 ac_file_inputs=
11350 for ac_f
11351 do
11352 case $ac_f in
11353 -) ac_f="$ac_tmp/stdin";;
11354 *) # Look for the file first in the build tree, then in the source tree
11355 # (if the path is not absolute). The absolute path cannot be DOS-style,
11356 # because $ac_f cannot contain `:'.
11357 test -f "$ac_f" ||
11358 case $ac_f in
11359 [\\/$]*) false;;
11360 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11361 esac ||
11362 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11363 esac
11364 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11365 as_fn_append ac_file_inputs " '$ac_f'"
11366 done
11367
11368 # Let's still pretend it is `configure' which instantiates (i.e., don't
11369 # use $as_me), people would be surprised to read:
11370 # /* config.h. Generated by config.status. */
11371 configure_input='Generated from '`
11372 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11373 `' by configure.'
11374 if test x"$ac_file" != x-; then
11375 configure_input="$ac_file. $configure_input"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11377 $as_echo "$as_me: creating $ac_file" >&6;}
11378 fi
11379 # Neutralize special characters interpreted by sed in replacement strings.
11380 case $configure_input in #(
11381 *\&* | *\|* | *\\* )
11382 ac_sed_conf_input=`$as_echo "$configure_input" |
11383 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11384 *) ac_sed_conf_input=$configure_input;;
11385 esac
11386
11387 case $ac_tag in
11388 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11390 esac
11391 ;;
11392 esac
11393
11394 ac_dir=`$as_dirname -- "$ac_file" ||
11395 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11396 X"$ac_file" : 'X\(//\)[^/]' \| \
11397 X"$ac_file" : 'X\(//\)$' \| \
11398 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11399 $as_echo X"$ac_file" |
11400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11401 s//\1/
11402 q
11403 }
11404 /^X\(\/\/\)[^/].*/{
11405 s//\1/
11406 q
11407 }
11408 /^X\(\/\/\)$/{
11409 s//\1/
11410 q
11411 }
11412 /^X\(\/\).*/{
11413 s//\1/
11414 q
11415 }
11416 s/.*/./; q'`
11417 as_dir="$ac_dir"; as_fn_mkdir_p
11418 ac_builddir=.
11419
11420 case "$ac_dir" in
11421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11422 *)
11423 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11424 # A ".." for each directory in $ac_dir_suffix.
11425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11426 case $ac_top_builddir_sub in
11427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11429 esac ;;
11430 esac
11431 ac_abs_top_builddir=$ac_pwd
11432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11433 # for backward compatibility:
11434 ac_top_builddir=$ac_top_build_prefix
11435
11436 case $srcdir in
11437 .) # We are building in place.
11438 ac_srcdir=.
11439 ac_top_srcdir=$ac_top_builddir_sub
11440 ac_abs_top_srcdir=$ac_pwd ;;
11441 [\\/]* | ?:[\\/]* ) # Absolute name.
11442 ac_srcdir=$srcdir$ac_dir_suffix;
11443 ac_top_srcdir=$srcdir
11444 ac_abs_top_srcdir=$srcdir ;;
11445 *) # Relative name.
11446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11447 ac_top_srcdir=$ac_top_build_prefix$srcdir
11448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11449 esac
11450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11451
11452
11453 case $ac_mode in
11454 :F)
11455 #
11456 # CONFIG_FILE
11457 #
11458
11459 case $INSTALL in
11460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11461 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11462 esac
11463 ac_MKDIR_P=$MKDIR_P
11464 case $MKDIR_P in
11465 [\\/$]* | ?:[\\/]* ) ;;
11466 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11467 esac
11468 _ACEOF
11469
11470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11471 # If the template does not know about datarootdir, expand it.
11472 # FIXME: This hack should be removed a few years after 2.60.
11473 ac_datarootdir_hack=; ac_datarootdir_seen=
11474 ac_sed_dataroot='
11475 /datarootdir/ {
11476 p
11477 q
11478 }
11479 /@datadir@/p
11480 /@docdir@/p
11481 /@infodir@/p
11482 /@localedir@/p
11483 /@mandir@/p'
11484 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11485 *datarootdir*) ac_datarootdir_seen=yes;;
11486 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11488 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11489 _ACEOF
11490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11491 ac_datarootdir_hack='
11492 s&@datadir@&$datadir&g
11493 s&@docdir@&$docdir&g
11494 s&@infodir@&$infodir&g
11495 s&@localedir@&$localedir&g
11496 s&@mandir@&$mandir&g
11497 s&\\\${datarootdir}&$datarootdir&g' ;;
11498 esac
11499 _ACEOF
11500
11501 # Neutralize VPATH when `$srcdir' = `.'.
11502 # Shell code in configure.ac might set extrasub.
11503 # FIXME: do we really want to maintain this feature?
11504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11505 ac_sed_extra="$ac_vpsub
11506 $extrasub
11507 _ACEOF
11508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11509 :t
11510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11511 s|@configure_input@|$ac_sed_conf_input|;t t
11512 s&@top_builddir@&$ac_top_builddir_sub&;t t
11513 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11514 s&@srcdir@&$ac_srcdir&;t t
11515 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11516 s&@top_srcdir@&$ac_top_srcdir&;t t
11517 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11518 s&@builddir@&$ac_builddir&;t t
11519 s&@abs_builddir@&$ac_abs_builddir&;t t
11520 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11521 s&@INSTALL@&$ac_INSTALL&;t t
11522 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11523 $ac_datarootdir_hack
11524 "
11525 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11526 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11527
11528 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11529 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11530 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11531 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11533 which seems to be undefined. Please make sure it is defined" >&5
11534 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11535 which seems to be undefined. Please make sure it is defined" >&2;}
11536
11537 rm -f "$ac_tmp/stdin"
11538 case $ac_file in
11539 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11540 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11541 esac \
11542 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11543 ;;
11544 :H)
11545 #
11546 # CONFIG_HEADER
11547 #
11548 if test x"$ac_file" != x-; then
11549 {
11550 $as_echo "/* $configure_input */" \
11551 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11552 } >"$ac_tmp/config.h" \
11553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11554 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11556 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11557 else
11558 rm -f "$ac_file"
11559 mv "$ac_tmp/config.h" "$ac_file" \
11560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11561 fi
11562 else
11563 $as_echo "/* $configure_input */" \
11564 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11565 || as_fn_error $? "could not create -" "$LINENO" 5
11566 fi
11567 # Compute "$ac_file"'s index in $config_headers.
11568 _am_arg="$ac_file"
11569 _am_stamp_count=1
11570 for _am_header in $config_headers :; do
11571 case $_am_header in
11572 $_am_arg | $_am_arg:* )
11573 break ;;
11574 * )
11575 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11576 esac
11577 done
11578 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11579 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11580 X"$_am_arg" : 'X\(//\)[^/]' \| \
11581 X"$_am_arg" : 'X\(//\)$' \| \
11582 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11583 $as_echo X"$_am_arg" |
11584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11585 s//\1/
11586 q
11587 }
11588 /^X\(\/\/\)[^/].*/{
11589 s//\1/
11590 q
11591 }
11592 /^X\(\/\/\)$/{
11593 s//\1/
11594 q
11595 }
11596 /^X\(\/\).*/{
11597 s//\1/
11598 q
11599 }
11600 s/.*/./; q'`/stamp-h$_am_stamp_count
11601 ;;
11602
11603 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11604 $as_echo "$as_me: executing $ac_file commands" >&6;}
11605 ;;
11606 esac
11607
11608
11609 case $ac_file$ac_mode in
11610 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11611 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11612 # are listed without --file. Let's play safe and only enable the eval
11613 # if we detect the quoting.
11614 case $CONFIG_FILES in
11615 *\'*) eval set x "$CONFIG_FILES" ;;
11616 *) set x $CONFIG_FILES ;;
11617 esac
11618 shift
11619 for mf
11620 do
11621 # Strip MF so we end up with the name of the file.
11622 mf=`echo "$mf" | sed -e 's/:.*$//'`
11623 # Check whether this is an Automake generated Makefile or not.
11624 # We used to match only the files named `Makefile.in', but
11625 # some people rename them; so instead we look at the file content.
11626 # Grep'ing the first line is not enough: some people post-process
11627 # each Makefile.in and add a new line on top of each file to say so.
11628 # Grep'ing the whole file is not good either: AIX grep has a line
11629 # limit of 2048, but all sed's we know have understand at least 4000.
11630 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11631 dirpart=`$as_dirname -- "$mf" ||
11632 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11633 X"$mf" : 'X\(//\)[^/]' \| \
11634 X"$mf" : 'X\(//\)$' \| \
11635 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11636 $as_echo X"$mf" |
11637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11638 s//\1/
11639 q
11640 }
11641 /^X\(\/\/\)[^/].*/{
11642 s//\1/
11643 q
11644 }
11645 /^X\(\/\/\)$/{
11646 s//\1/
11647 q
11648 }
11649 /^X\(\/\).*/{
11650 s//\1/
11651 q
11652 }
11653 s/.*/./; q'`
11654 else
11655 continue
11656 fi
11657 # Extract the definition of DEPDIR, am__include, and am__quote
11658 # from the Makefile without running `make'.
11659 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11660 test -z "$DEPDIR" && continue
11661 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11662 test -z "am__include" && continue
11663 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11664 # When using ansi2knr, U may be empty or an underscore; expand it
11665 U=`sed -n 's/^U = //p' < "$mf"`
11666 # Find all dependency output files, they are included files with
11667 # $(DEPDIR) in their names. We invoke sed twice because it is the
11668 # simplest approach to changing $(DEPDIR) to its actual value in the
11669 # expansion.
11670 for file in `sed -n "
11671 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11672 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11673 # Make sure the directory exists.
11674 test -f "$dirpart/$file" && continue
11675 fdir=`$as_dirname -- "$file" ||
11676 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11677 X"$file" : 'X\(//\)[^/]' \| \
11678 X"$file" : 'X\(//\)$' \| \
11679 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11680 $as_echo X"$file" |
11681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11682 s//\1/
11683 q
11684 }
11685 /^X\(\/\/\)[^/].*/{
11686 s//\1/
11687 q
11688 }
11689 /^X\(\/\/\)$/{
11690 s//\1/
11691 q
11692 }
11693 /^X\(\/\).*/{
11694 s//\1/
11695 q
11696 }
11697 s/.*/./; q'`
11698 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11699 # echo "creating $dirpart/$file"
11700 echo '# dummy' > "$dirpart/$file"
11701 done
11702 done
11703 }
11704 ;;
11705
11706 esac
11707 done # for ac_tag
11708
11709
11710 as_fn_exit 0
11711 _ACEOF
11712 ac_clean_files=$ac_clean_files_save
11713
11714 test $ac_write_fail = 0 ||
11715 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11716
11717
11718 # configure is writing to config.log, and then calls config.status.
11719 # config.status does its own redirection, appending to config.log.
11720 # Unfortunately, on DOS this fails, as config.log is still kept open
11721 # by configure, so config.status won't be able to write to it; its
11722 # output is simply discarded. So we exec the FD to /dev/null,
11723 # effectively closing config.log, so it can be properly (re)opened and
11724 # appended to by config.status. When coming back to configure, we
11725 # need to make the FD available again.
11726 if test "$no_create" != yes; then
11727 ac_cs_success=:
11728 ac_config_status_args=
11729 test "$silent" = yes &&
11730 ac_config_status_args="$ac_config_status_args --quiet"
11731 exec 5>/dev/null
11732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11733 exec 5>>config.log
11734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11735 # would make configure fail if this is the last instruction.
11736 $ac_cs_success || as_fn_exit 1
11737 fi
11738 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11740 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11741 fi
11742
11743