configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xfd 1.1.2.
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.2'
565 PACKAGE_STRING='xfd 1.1.2'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 appdefaultdir
611 APPDEFS_LIBS
612 APPDEFS_CFLAGS
613 XFD_LIBS
614 XFD_CFLAGS
615 USE_GETTEXT_FALSE
616 USE_GETTEXT_TRUE
617 LOCALEDIR
618 MAN_SUBSTS
619 XORG_MAN_PAGE
620 ADMIN_MAN_DIR
621 DRIVER_MAN_DIR
622 MISC_MAN_DIR
623 FILE_MAN_DIR
624 LIB_MAN_DIR
625 APP_MAN_DIR
626 ADMIN_MAN_SUFFIX
627 DRIVER_MAN_SUFFIX
628 MISC_MAN_SUFFIX
629 FILE_MAN_SUFFIX
630 LIB_MAN_SUFFIX
631 APP_MAN_SUFFIX
632 SED
633 host_os
634 host_vendor
635 host_cpu
636 host
637 build_os
638 build_vendor
639 build_cpu
640 build
641 INSTALL_CMD
642 PKG_CONFIG
643 CHANGELOG_CMD
644 STRICT_CFLAGS
645 CWARNFLAGS
646 BASE_CFLAGS
647 EGREP
648 GREP
649 CPP
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 am__nodep
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_BACKSLASH
671 AM_DEFAULT_VERBOSITY
672 AM_DEFAULT_V
673 AM_V
674 am__untar
675 am__tar
676 AMTAR
677 am__leading_dot
678 SET_MAKE
679 AWK
680 mkdir_p
681 MKDIR_P
682 INSTALL_STRIP_PROGRAM
683 STRIP
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_silent_rules
739 enable_maintainer_mode
740 enable_dependency_tracking
741 enable_selective_werror
742 enable_strict_compilation
743 with_localedir
744 with_appdefaultdir
745 '
746 ac_precious_vars='build_alias
747 host_alias
748 target_alias
749 CC
750 CFLAGS
751 LDFLAGS
752 LIBS
753 CPPFLAGS
754 CPP
755 PKG_CONFIG
756 XFD_CFLAGS
757 XFD_LIBS
758 APPDEFS_CFLAGS
759 APPDEFS_LIBS'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
809
810 ac_prev=
811 ac_dashdash=
812 for ac_option
813 do
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
817 ac_prev=
818 continue
819 fi
820
821 case $ac_option in
822 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *=) ac_optarg= ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information"
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 ;;
1166
1167 esac
1168 done
1169
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error $? "missing argument to $ac_option"
1173 fi
1174
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181 fi
1182
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188 do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used" >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error $? "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error $? "pwd does not report name of working directory"
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267 else
1268 ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281 fi
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1294
1295 #
1296 # Report the --help message.
1297 #
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures xfd 1.1.2 to adapt to many kinds of systems.
1303
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309 Defaults for the options are specified in brackets.
1310
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking ...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1332
1333 For better control, use the options below.
1334
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/xfd]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1356
1357 cat <<\_ACEOF
1358
1359 Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 _ACEOF
1368 fi
1369
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of xfd 1.1.2:";;
1373 esac
1374 cat <<\_ACEOF
1375
1376 Optional Features:
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-silent-rules less verbose build output (undo: "make V=1")
1381 --disable-silent-rules verbose build output (undo: "make V=0")
1382 --enable-maintainer-mode
1383 enable make rules and dependencies not useful (and
1384 sometimes confusing) to the casual installer
1385 --enable-dependency-tracking
1386 do not reject slow dependency extractors
1387 --disable-dependency-tracking
1388 speeds up one-time build
1389 --disable-selective-werror
1390 Turn off selective compiler errors. (default:
1391 enabled)
1392 --enable-strict-compilation
1393 Enable all warnings from compiler and make them
1394 errors (default: disabled)
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-localedir=<path> Path to install message files in (default:
1400 datadir/locale)
1401 --with-appdefaultdir=<pathname>
1402 specify directory for app-defaults files (default is
1403 autodetected)
1404
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CPP C preprocessor
1414 PKG_CONFIG path to pkg-config utility
1415 XFD_CFLAGS C compiler flags for XFD, overriding pkg-config
1416 XFD_LIBS linker flags for XFD, overriding pkg-config
1417 APPDEFS_CFLAGS
1418 C compiler flags for APPDEFS, overriding pkg-config
1419 APPDEFS_LIBS
1420 linker flags for APPDEFS, overriding pkg-config
1421
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1424
1425 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1426 _ACEOF
1427 ac_status=$?
1428 fi
1429
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 continue
1436 ac_builddir=.
1437
1438 case "$ac_dir" in
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *)
1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 esac ;;
1448 esac
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1453
1454 case $srcdir in
1455 .) # We are building in place.
1456 ac_srcdir=.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1463 *) # Relative name.
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 esac
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1478 else
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 fi || ac_status=$?
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1482 done
1483 fi
1484
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1487 cat <<\_ACEOF
1488 xfd configure 1.1.2
1489 generated by GNU Autoconf 2.68
1490
1491 Copyright (C) 2010 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495 exit
1496 fi
1497
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1501
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1506 {
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1522 fi
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1532
1533 ac_retval=1
1534 fi
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1537
1538 } # ac_fn_c_try_compile
1539
1540 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1541 # ---------------------------------------------
1542 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1543 # accordingly.
1544 ac_fn_c_check_decl ()
1545 {
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 as_decl_name=`echo $2|sed 's/ *(.*//'`
1548 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1550 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1551 if eval \${$3+:} false; then :
1552 $as_echo_n "(cached) " >&6
1553 else
1554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555 /* end confdefs.h. */
1556 $4
1557 int
1558 main ()
1559 {
1560 #ifndef $as_decl_name
1561 #ifdef __cplusplus
1562 (void) $as_decl_use;
1563 #else
1564 (void) $as_decl_name;
1565 #endif
1566 #endif
1567
1568 ;
1569 return 0;
1570 }
1571 _ACEOF
1572 if ac_fn_c_try_compile "$LINENO"; then :
1573 eval "$3=yes"
1574 else
1575 eval "$3=no"
1576 fi
1577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1578 fi
1579 eval ac_res=\$$3
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581 $as_echo "$ac_res" >&6; }
1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583
1584 } # ac_fn_c_check_decl
1585
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_cpp ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } > conftest.i && {
1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_cpp
1622
1623 # ac_fn_c_try_run LINENO
1624 # ----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1626 # that executables *can* be run.
1627 ac_fn_c_try_run ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>&5
1638 ac_status=$?
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1641 { { case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_try") 2>&5
1648 ac_status=$?
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; }; }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: program exited with status $ac_status" >&5
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=$ac_status
1658 fi
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_run
1664
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1676 else
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683 eval "$3=yes"
1684 else
1685 eval "$3=no"
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 fi
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694 } # ac_fn_c_check_header_compile
1695
1696 # ac_fn_c_try_link LINENO
1697 # -----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_link ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext conftest$ac_exeext
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest$ac_exeext && {
1722 test "$cross_compiling" = yes ||
1723 $as_test_x conftest$ac_exeext
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734 # interfere with the next link command; also delete a directory that is
1735 # left behind by Apple's compiler. We do this before executing the actions.
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_link
1741 cat >config.log <<_ACEOF
1742 This file contains any messages produced by compilers while
1743 running configure, to aid debugging if configure makes a mistake.
1744
1745 It was created by xfd $as_me 1.1.2, which was
1746 generated by GNU Autoconf 2.68. Invocation command line was
1747
1748 $ $0 $@
1749
1750 _ACEOF
1751 exec 5>>config.log
1752 {
1753 cat <<_ASUNAME
1754 ## --------- ##
1755 ## Platform. ##
1756 ## --------- ##
1757
1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763
1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1766
1767 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1768 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1770 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1771 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1772 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1773 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1774
1775 _ASUNAME
1776
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 $as_echo "PATH: $as_dir"
1783 done
1784 IFS=$as_save_IFS
1785
1786 } >&5
1787
1788 cat >&5 <<_ACEOF
1789
1790
1791 ## ----------- ##
1792 ## Core tests. ##
1793 ## ----------- ##
1794
1795 _ACEOF
1796
1797
1798 # Keep a trace of the command line.
1799 # Strip out --no-create and --no-recursion so they do not pile up.
1800 # Strip out --silent because we don't want to record it for future runs.
1801 # Also quote any args containing shell meta-characters.
1802 # Make two passes to allow for proper duplicate-argument suppression.
1803 ac_configure_args=
1804 ac_configure_args0=
1805 ac_configure_args1=
1806 ac_must_keep_next=false
1807 for ac_pass in 1 2
1808 do
1809 for ac_arg
1810 do
1811 case $ac_arg in
1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814 | -silent | --silent | --silen | --sile | --sil)
1815 continue ;;
1816 *\'*)
1817 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818 esac
1819 case $ac_pass in
1820 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1821 2)
1822 as_fn_append ac_configure_args1 " '$ac_arg'"
1823 if test $ac_must_keep_next = true; then
1824 ac_must_keep_next=false # Got value, back to normal.
1825 else
1826 case $ac_arg in
1827 *=* | --config-cache | -C | -disable-* | --disable-* \
1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830 | -with-* | --with-* | -without-* | --without-* | --x)
1831 case "$ac_configure_args0 " in
1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833 esac
1834 ;;
1835 -* ) ac_must_keep_next=true ;;
1836 esac
1837 fi
1838 as_fn_append ac_configure_args " '$ac_arg'"
1839 ;;
1840 esac
1841 done
1842 done
1843 { ac_configure_args0=; unset ac_configure_args0;}
1844 { ac_configure_args1=; unset ac_configure_args1;}
1845
1846 # When interrupted or exit'd, cleanup temporary files, and complete
1847 # config.log. We remove comments because anyway the quotes in there
1848 # would cause problems or look ugly.
1849 # WARNING: Use '\'' to represent an apostrophe within the trap.
1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851 trap 'exit_status=$?
1852 # Save into config.log some information that might help in debugging.
1853 {
1854 echo
1855
1856 $as_echo "## ---------------- ##
1857 ## Cache variables. ##
1858 ## ---------------- ##"
1859 echo
1860 # The following way of writing the cache mishandles newlines in values,
1861 (
1862 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in #(
1865 *${as_nl}*)
1866 case $ac_var in #(
1867 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1868 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1869 esac
1870 case $ac_var in #(
1871 _ | IFS | as_nl) ;; #(
1872 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1873 *) { eval $ac_var=; unset $ac_var;} ;;
1874 esac ;;
1875 esac
1876 done
1877 (set) 2>&1 |
1878 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1879 *${as_nl}ac_space=\ *)
1880 sed -n \
1881 "s/'\''/'\''\\\\'\'''\''/g;
1882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1883 ;; #(
1884 *)
1885 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1886 ;;
1887 esac |
1888 sort
1889 )
1890 echo
1891
1892 $as_echo "## ----------------- ##
1893 ## Output variables. ##
1894 ## ----------------- ##"
1895 echo
1896 for ac_var in $ac_subst_vars
1897 do
1898 eval ac_val=\$$ac_var
1899 case $ac_val in
1900 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901 esac
1902 $as_echo "$ac_var='\''$ac_val'\''"
1903 done | sort
1904 echo
1905
1906 if test -n "$ac_subst_files"; then
1907 $as_echo "## ------------------- ##
1908 ## File substitutions. ##
1909 ## ------------------- ##"
1910 echo
1911 for ac_var in $ac_subst_files
1912 do
1913 eval ac_val=\$$ac_var
1914 case $ac_val in
1915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 esac
1917 $as_echo "$ac_var='\''$ac_val'\''"
1918 done | sort
1919 echo
1920 fi
1921
1922 if test -s confdefs.h; then
1923 $as_echo "## ----------- ##
1924 ## confdefs.h. ##
1925 ## ----------- ##"
1926 echo
1927 cat confdefs.h
1928 echo
1929 fi
1930 test "$ac_signal" != 0 &&
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
1933 } >&5
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 exit $exit_status
1937 ' 0
1938 for ac_signal in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1940 done
1941 ac_signal=0
1942
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1945
1946 $as_echo "/* confdefs.h */" > confdefs.h
1947
1948 # Predefined preprocessor variables.
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_NAME "$PACKAGE_NAME"
1952 _ACEOF
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1956 _ACEOF
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 _ACEOF
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_STRING "$PACKAGE_STRING"
1964 _ACEOF
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1968 _ACEOF
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_URL "$PACKAGE_URL"
1972 _ACEOF
1973
1974
1975 # Let the site file select an alternate cache file if it wants to.
1976 # Prefer an explicitly selected file to automatically selected ones.
1977 ac_site_file1=NONE
1978 ac_site_file2=NONE
1979 if test -n "$CONFIG_SITE"; then
1980 # We do not want a PATH search for config.site.
1981 case $CONFIG_SITE in #((
1982 -*) ac_site_file1=./$CONFIG_SITE;;
1983 */*) ac_site_file1=$CONFIG_SITE;;
1984 *) ac_site_file1=./$CONFIG_SITE;;
1985 esac
1986 elif test "x$prefix" != xNONE; then
1987 ac_site_file1=$prefix/share/config.site
1988 ac_site_file2=$prefix/etc/config.site
1989 else
1990 ac_site_file1=$ac_default_prefix/share/config.site
1991 ac_site_file2=$ac_default_prefix/etc/config.site
1992 fi
1993 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1994 do
1995 test "x$ac_site_file" = xNONE && continue
1996 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1998 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1999 sed 's/^/| /' "$ac_site_file" >&5
2000 . "$ac_site_file" \
2001 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 as_fn_error $? "failed to load site script $ac_site_file
2004 See \`config.log' for more details" "$LINENO" 5; }
2005 fi
2006 done
2007
2008 if test -r "$cache_file"; then
2009 # Some versions of bash will fail to source /dev/null (special files
2010 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2011 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2013 $as_echo "$as_me: loading cache $cache_file" >&6;}
2014 case $cache_file in
2015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2016 *) . "./$cache_file";;
2017 esac
2018 fi
2019 else
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2021 $as_echo "$as_me: creating cache $cache_file" >&6;}
2022 >$cache_file
2023 fi
2024
2025 # Check that the precious variables saved in the cache have kept the same
2026 # value.
2027 ac_cache_corrupted=false
2028 for ac_var in $ac_precious_vars; do
2029 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2030 eval ac_new_set=\$ac_env_${ac_var}_set
2031 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2032 eval ac_new_val=\$ac_env_${ac_var}_value
2033 case $ac_old_set,$ac_new_set in
2034 set,)
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2036 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2037 ac_cache_corrupted=: ;;
2038 ,set)
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2040 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2041 ac_cache_corrupted=: ;;
2042 ,);;
2043 *)
2044 if test "x$ac_old_val" != "x$ac_new_val"; then
2045 # differences in whitespace do not lead to failure.
2046 ac_old_val_w=`echo x $ac_old_val`
2047 ac_new_val_w=`echo x $ac_new_val`
2048 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2050 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2051 ac_cache_corrupted=:
2052 else
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2054 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2055 eval $ac_var=\$ac_old_val
2056 fi
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2058 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2060 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2061 fi;;
2062 esac
2063 # Pass precious variables to config.status.
2064 if test "$ac_new_set" = set; then
2065 case $ac_new_val in
2066 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2067 *) ac_arg=$ac_var=$ac_new_val ;;
2068 esac
2069 case " $ac_configure_args " in
2070 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2071 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2072 esac
2073 fi
2074 done
2075 if $ac_cache_corrupted; then
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2079 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2080 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2081 fi
2082 ## -------------------- ##
2083 ## Main body of script. ##
2084 ## -------------------- ##
2085
2086 ac_ext=c
2087 ac_cpp='$CPP $CPPFLAGS'
2088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091
2092
2093
2094 ac_config_headers="$ac_config_headers config.h"
2095
2096
2097 # Initialize Automake
2098 am__api_version='1.14'
2099
2100 ac_aux_dir=
2101 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2102 if test -f "$ac_dir/install-sh"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/install-sh -c"
2105 break
2106 elif test -f "$ac_dir/install.sh"; then
2107 ac_aux_dir=$ac_dir
2108 ac_install_sh="$ac_aux_dir/install.sh -c"
2109 break
2110 elif test -f "$ac_dir/shtool"; then
2111 ac_aux_dir=$ac_dir
2112 ac_install_sh="$ac_aux_dir/shtool install -c"
2113 break
2114 fi
2115 done
2116 if test -z "$ac_aux_dir"; then
2117 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2118 fi
2119
2120 # These three variables are undocumented and unsupported,
2121 # and are intended to be withdrawn in a future Autoconf release.
2122 # They can cause serious problems if a builder's source tree is in a directory
2123 # whose full name contains unusual characters.
2124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2127
2128
2129 # Find a good install program. We prefer a C program (faster),
2130 # so one script is as good as another. But avoid the broken or
2131 # incompatible versions:
2132 # SysV /etc/install, /usr/sbin/install
2133 # SunOS /usr/etc/install
2134 # IRIX /sbin/install
2135 # AIX /bin/install
2136 # AmigaOS /C/install, which installs bootblocks on floppy discs
2137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2140 # OS/2's system install, which has a completely different semantic
2141 # ./install, which can be erroneously created by make from ./install.sh.
2142 # Reject install programs that cannot install multiple files.
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2144 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2145 if test -z "$INSTALL"; then
2146 if ${ac_cv_path_install+:} false; then :
2147 $as_echo_n "(cached) " >&6
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 # Account for people who put trailing slashes in PATH elements.
2155 case $as_dir/ in #((
2156 ./ | .// | /[cC]/* | \
2157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2158 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2159 /usr/ucb/* ) ;;
2160 *)
2161 # OSF1 and SCO ODT 3.0 have their own names for install.
2162 # Don't use installbsd from OSF since it installs stuff as root
2163 # by default.
2164 for ac_prog in ginstall scoinst install; do
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2167 if test $ac_prog = install &&
2168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169 # AIX install. It has an incompatible calling convention.
2170 :
2171 elif test $ac_prog = install &&
2172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2173 # program-specific install script used by HP pwplus--don't use.
2174 :
2175 else
2176 rm -rf conftest.one conftest.two conftest.dir
2177 echo one > conftest.one
2178 echo two > conftest.two
2179 mkdir conftest.dir
2180 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2181 test -s conftest.one && test -s conftest.two &&
2182 test -s conftest.dir/conftest.one &&
2183 test -s conftest.dir/conftest.two
2184 then
2185 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2186 break 3
2187 fi
2188 fi
2189 fi
2190 done
2191 done
2192 ;;
2193 esac
2194
2195 done
2196 IFS=$as_save_IFS
2197
2198 rm -rf conftest.one conftest.two conftest.dir
2199
2200 fi
2201 if test "${ac_cv_path_install+set}" = set; then
2202 INSTALL=$ac_cv_path_install
2203 else
2204 # As a last resort, use the slow shell script. Don't cache a
2205 # value for INSTALL within a source directory, because that will
2206 # break other packages using the cache if that directory is
2207 # removed, or if the value is a relative name.
2208 INSTALL=$ac_install_sh
2209 fi
2210 fi
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2212 $as_echo "$INSTALL" >&6; }
2213
2214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2215 # It thinks the first close brace ends the variable substitution.
2216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2217
2218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2219
2220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2221
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2223 $as_echo_n "checking whether build environment is sane... " >&6; }
2224 # Reject unsafe characters in $srcdir or the absolute working directory
2225 # name. Accept space and tab only in the latter.
2226 am_lf='
2227 '
2228 case `pwd` in
2229 *[\\\"\#\$\&\'\`$am_lf]*)
2230 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2231 esac
2232 case $srcdir in
2233 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2234 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2235 esac
2236
2237 # Do 'set' in a subshell so we don't clobber the current shell's
2238 # arguments. Must try -L first in case configure is actually a
2239 # symlink; some systems play weird games with the mod time of symlinks
2240 # (eg FreeBSD returns the mod time of the symlink's containing
2241 # directory).
2242 if (
2243 am_has_slept=no
2244 for am_try in 1 2; do
2245 echo "timestamp, slept: $am_has_slept" > conftest.file
2246 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2247 if test "$*" = "X"; then
2248 # -L didn't work.
2249 set X `ls -t "$srcdir/configure" conftest.file`
2250 fi
2251 if test "$*" != "X $srcdir/configure conftest.file" \
2252 && test "$*" != "X conftest.file $srcdir/configure"; then
2253
2254 # If neither matched, then we have a broken ls. This can happen
2255 # if, for instance, CONFIG_SHELL is bash and it inherits a
2256 # broken ls alias from the environment. This has actually
2257 # happened. Such a system could not be considered "sane".
2258 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2259 alias in your environment" "$LINENO" 5
2260 fi
2261 if test "$2" = conftest.file || test $am_try -eq 2; then
2262 break
2263 fi
2264 # Just in case.
2265 sleep 1
2266 am_has_slept=yes
2267 done
2268 test "$2" = conftest.file
2269 )
2270 then
2271 # Ok.
2272 :
2273 else
2274 as_fn_error $? "newly created file is older than distributed files!
2275 Check your system clock" "$LINENO" 5
2276 fi
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2278 $as_echo "yes" >&6; }
2279 # If we didn't sleep, we still need to ensure time stamps of config.status and
2280 # generated files are strictly newer.
2281 am_sleep_pid=
2282 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2283 ( sleep 1 ) &
2284 am_sleep_pid=$!
2285 fi
2286
2287 rm -f conftest.file
2288
2289 test "$program_prefix" != NONE &&
2290 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2291 # Use a double $ so make ignores it.
2292 test "$program_suffix" != NONE &&
2293 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2294 # Double any \ or $.
2295 # By default was `s,x,x', remove it if useless.
2296 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2297 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2298
2299 # expand $ac_aux_dir to an absolute path
2300 am_aux_dir=`cd $ac_aux_dir && pwd`
2301
2302 if test x"${MISSING+set}" != xset; then
2303 case $am_aux_dir in
2304 *\ * | *\ *)
2305 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2306 *)
2307 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2308 esac
2309 fi
2310 # Use eval to expand $SHELL
2311 if eval "$MISSING --is-lightweight"; then
2312 am_missing_run="$MISSING "
2313 else
2314 am_missing_run=
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2316 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2317 fi
2318
2319 if test x"${install_sh}" != xset; then
2320 case $am_aux_dir in
2321 *\ * | *\ *)
2322 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2323 *)
2324 install_sh="\${SHELL} $am_aux_dir/install-sh"
2325 esac
2326 fi
2327
2328 # Installed binaries are usually stripped using 'strip' when the user
2329 # run "make install-strip". However 'strip' might not be the right
2330 # tool to use in cross-compilation environments, therefore Automake
2331 # will honor the 'STRIP' environment variable to overrule this program.
2332 if test "$cross_compiling" != no; then
2333 if test -n "$ac_tool_prefix"; then
2334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2335 set dummy ${ac_tool_prefix}strip; ac_word=$2
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2337 $as_echo_n "checking for $ac_word... " >&6; }
2338 if ${ac_cv_prog_STRIP+:} false; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 if test -n "$STRIP"; then
2342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355 done
2356 done
2357 IFS=$as_save_IFS
2358
2359 fi
2360 fi
2361 STRIP=$ac_cv_prog_STRIP
2362 if test -n "$STRIP"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2364 $as_echo "$STRIP" >&6; }
2365 else
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367 $as_echo "no" >&6; }
2368 fi
2369
2370
2371 fi
2372 if test -z "$ac_cv_prog_STRIP"; then
2373 ac_ct_STRIP=$STRIP
2374 # Extract the first word of "strip", so it can be a program name with args.
2375 set dummy strip; ac_word=$2
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2377 $as_echo_n "checking for $ac_word... " >&6; }
2378 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 if test -n "$ac_ct_STRIP"; then
2382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 ac_cv_prog_ac_ct_STRIP="strip"
2392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 break 2
2394 fi
2395 done
2396 done
2397 IFS=$as_save_IFS
2398
2399 fi
2400 fi
2401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2402 if test -n "$ac_ct_STRIP"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2404 $as_echo "$ac_ct_STRIP" >&6; }
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407 $as_echo "no" >&6; }
2408 fi
2409
2410 if test "x$ac_ct_STRIP" = x; then
2411 STRIP=":"
2412 else
2413 case $cross_compiling:$ac_tool_warned in
2414 yes:)
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2417 ac_tool_warned=yes ;;
2418 esac
2419 STRIP=$ac_ct_STRIP
2420 fi
2421 else
2422 STRIP="$ac_cv_prog_STRIP"
2423 fi
2424
2425 fi
2426 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2427
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2429 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2430 if test -z "$MKDIR_P"; then
2431 if ${ac_cv_path_mkdir+:} false; then :
2432 $as_echo_n "(cached) " >&6
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2436 do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_prog in mkdir gmkdir; do
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2443 'mkdir (GNU coreutils) '* | \
2444 'mkdir (coreutils) '* | \
2445 'mkdir (fileutils) '4.1*)
2446 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2447 break 3;;
2448 esac
2449 done
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455
2456 test -d ./--version && rmdir ./--version
2457 if test "${ac_cv_path_mkdir+set}" = set; then
2458 MKDIR_P="$ac_cv_path_mkdir -p"
2459 else
2460 # As a last resort, use the slow shell script. Don't cache a
2461 # value for MKDIR_P within a source directory, because that will
2462 # break other packages using the cache if that directory is
2463 # removed, or if the value is a relative name.
2464 MKDIR_P="$ac_install_sh -d"
2465 fi
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2468 $as_echo "$MKDIR_P" >&6; }
2469
2470 for ac_prog in gawk mawk nawk awk
2471 do
2472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if ${ac_cv_prog_AWK+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test -n "$AWK"; then
2480 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_AWK="$ac_prog"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 AWK=$ac_cv_prog_AWK
2500 if test -n "$AWK"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2502 $as_echo "$AWK" >&6; }
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508
2509 test -n "$AWK" && break
2510 done
2511
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2513 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2514 set x ${MAKE-make}
2515 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2516 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 cat >conftest.make <<\_ACEOF
2520 SHELL = /bin/sh
2521 all:
2522 @echo '@@@%%%=$(MAKE)=@@@%%%'
2523 _ACEOF
2524 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2526 *@@@%%%=?*=@@@%%%*)
2527 eval ac_cv_prog_make_${ac_make}_set=yes;;
2528 *)
2529 eval ac_cv_prog_make_${ac_make}_set=no;;
2530 esac
2531 rm -f conftest.make
2532 fi
2533 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2535 $as_echo "yes" >&6; }
2536 SET_MAKE=
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 SET_MAKE="MAKE=${MAKE-make}"
2541 fi
2542
2543 rm -rf .tst 2>/dev/null
2544 mkdir .tst 2>/dev/null
2545 if test -d .tst; then
2546 am__leading_dot=.
2547 else
2548 am__leading_dot=_
2549 fi
2550 rmdir .tst 2>/dev/null
2551
2552 # Check whether --enable-silent-rules was given.
2553 if test "${enable_silent_rules+set}" = set; then :
2554 enableval=$enable_silent_rules;
2555 fi
2556
2557 case $enable_silent_rules in # (((
2558 yes) AM_DEFAULT_VERBOSITY=0;;
2559 no) AM_DEFAULT_VERBOSITY=1;;
2560 *) AM_DEFAULT_VERBOSITY=1;;
2561 esac
2562 am_make=${MAKE-make}
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2564 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2565 if ${am_cv_make_support_nested_variables+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if $as_echo 'TRUE=$(BAR$(V))
2569 BAR0=false
2570 BAR1=true
2571 V=1
2572 am__doit:
2573 @$(TRUE)
2574 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2575 am_cv_make_support_nested_variables=yes
2576 else
2577 am_cv_make_support_nested_variables=no
2578 fi
2579 fi
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2581 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2582 if test $am_cv_make_support_nested_variables = yes; then
2583 AM_V='$(V)'
2584 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2585 else
2586 AM_V=$AM_DEFAULT_VERBOSITY
2587 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2588 fi
2589 AM_BACKSLASH='\'
2590
2591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2592 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2593 # is not polluted with repeated "-I."
2594 am__isrc=' -I$(srcdir)'
2595 # test to see if srcdir already configured
2596 if test -f $srcdir/config.status; then
2597 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2598 fi
2599 fi
2600
2601 # test whether we have cygpath
2602 if test -z "$CYGPATH_W"; then
2603 if (cygpath --version) >/dev/null 2>/dev/null; then
2604 CYGPATH_W='cygpath -w'
2605 else
2606 CYGPATH_W=echo
2607 fi
2608 fi
2609
2610
2611 # Define the identity of the package.
2612 PACKAGE='xfd'
2613 VERSION='1.1.2'
2614
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE "$PACKAGE"
2618 _ACEOF
2619
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define VERSION "$VERSION"
2623 _ACEOF
2624
2625 # Some tools Automake needs.
2626
2627 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2628
2629
2630 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2631
2632
2633 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2634
2635
2636 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2637
2638
2639 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2640
2641 # For better backward compatibility. To be removed once Automake 1.9.x
2642 # dies out for good. For more background, see:
2643 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2644 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2645 mkdir_p='$(MKDIR_P)'
2646
2647 # We need awk for the "check" target. The system "awk" is bad on
2648 # some platforms.
2649 # Always define AMTAR for backward compatibility. Yes, it's still used
2650 # in the wild :-( We should find a proper way to deprecate it ...
2651 AMTAR='$${TAR-tar}'
2652
2653
2654 # We'll loop over all known methods to create a tar archive until one works.
2655 _am_tools='gnutar pax cpio none'
2656
2657 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2658
2659
2660
2661
2662
2663
2664 # POSIX will say in a future version that running "rm -f" with no argument
2665 # is OK; and we want to be able to make that assumption in our Makefile
2666 # recipes. So use an aggressive probe to check that the usage we want is
2667 # actually supported "in the wild" to an acceptable degree.
2668 # See automake bug#10828.
2669 # To make any issue more visible, cause the running configure to be aborted
2670 # by default if the 'rm' program in use doesn't match our expectations; the
2671 # user can still override this though.
2672 if rm -f && rm -fr && rm -rf; then : OK; else
2673 cat >&2 <<'END'
2674 Oops!
2675
2676 Your 'rm' program seems unable to run without file operands specified
2677 on the command line, even when the '-f' option is present. This is contrary
2678 to the behaviour of most rm programs out there, and not conforming with
2679 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2680
2681 Please tell bug-automake@gnu.org about your system, including the value
2682 of your $PATH and any error possibly output before this message. This
2683 can help us improve future automake versions.
2684
2685 END
2686 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2687 echo 'Configuration will proceed anyway, since you have set the' >&2
2688 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2689 echo >&2
2690 else
2691 cat >&2 <<'END'
2692 Aborting the configuration process, to ensure you take notice of the issue.
2693
2694 You can download and install GNU coreutils to get an 'rm' implementation
2695 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2696
2697 If you want to complete the configuration process using your problematic
2698 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2699 to "yes", and re-run configure.
2700
2701 END
2702 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2703 fi
2704 fi
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2707 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2708 # Check whether --enable-maintainer-mode was given.
2709 if test "${enable_maintainer_mode+set}" = set; then :
2710 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2711 else
2712 USE_MAINTAINER_MODE=no
2713 fi
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2716 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2717 if test $USE_MAINTAINER_MODE = yes; then
2718 MAINTAINER_MODE_TRUE=
2719 MAINTAINER_MODE_FALSE='#'
2720 else
2721 MAINTAINER_MODE_TRUE='#'
2722 MAINTAINER_MODE_FALSE=
2723 fi
2724
2725 MAINT=$MAINTAINER_MODE_TRUE
2726
2727
2728
2729 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741 DEPDIR="${am__leading_dot}deps"
2742
2743 ac_config_commands="$ac_config_commands depfiles"
2744
2745
2746 am_make=${MAKE-make}
2747 cat > confinc << 'END'
2748 am__doit:
2749 @echo this is the am__doit target
2750 .PHONY: am__doit
2751 END
2752 # If we don't find an include directive, just comment out the code.
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2754 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2755 am__include="#"
2756 am__quote=
2757 _am_result=none
2758 # First try GNU make style include.
2759 echo "include confinc" > confmf
2760 # Ignore all kinds of additional output from 'make'.
2761 case `$am_make -s -f confmf 2> /dev/null` in #(
2762 *the\ am__doit\ target*)
2763 am__include=include
2764 am__quote=
2765 _am_result=GNU
2766 ;;
2767 esac
2768 # Now try BSD make style include.
2769 if test "$am__include" = "#"; then
2770 echo '.include "confinc"' > confmf
2771 case `$am_make -s -f confmf 2> /dev/null` in #(
2772 *the\ am__doit\ target*)
2773 am__include=.include
2774 am__quote="\""
2775 _am_result=BSD
2776 ;;
2777 esac
2778 fi
2779
2780
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2782 $as_echo "$_am_result" >&6; }
2783 rm -f confinc confmf
2784
2785 # Check whether --enable-dependency-tracking was given.
2786 if test "${enable_dependency_tracking+set}" = set; then :
2787 enableval=$enable_dependency_tracking;
2788 fi
2789
2790 if test "x$enable_dependency_tracking" != xno; then
2791 am_depcomp="$ac_aux_dir/depcomp"
2792 AMDEPBACKSLASH='\'
2793 am__nodep='_no'
2794 fi
2795 if test "x$enable_dependency_tracking" != xno; then
2796 AMDEP_TRUE=
2797 AMDEP_FALSE='#'
2798 else
2799 AMDEP_TRUE='#'
2800 AMDEP_FALSE=
2801 fi
2802
2803
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_CC+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CC=$ac_cv_prog_CC
2838 if test -n "$CC"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2840 $as_echo "$CC" >&6; }
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846
2847 fi
2848 if test -z "$ac_cv_prog_CC"; then
2849 ac_ct_CC=$CC
2850 # Extract the first word of "gcc", so it can be a program name with args.
2851 set dummy gcc; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_ac_ct_CC="gcc"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878 if test -n "$ac_ct_CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2880 $as_echo "$ac_ct_CC" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886 if test "x$ac_ct_CC" = x; then
2887 CC=""
2888 else
2889 case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893 ac_tool_warned=yes ;;
2894 esac
2895 CC=$ac_ct_CC
2896 fi
2897 else
2898 CC="$ac_cv_prog_CC"
2899 fi
2900
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}cc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_CC="${ac_tool_prefix}cc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 fi
2942 if test -z "$CC"; then
2943 # Extract the first word of "cc", so it can be a program name with args.
2944 set dummy cc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 ac_prog_rejected=no
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2962 ac_prog_rejected=yes
2963 continue
2964 fi
2965 ac_cv_prog_CC="cc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 if test $ac_prog_rejected = yes; then
2974 # We found a bogon in the path, so make sure we never use it.
2975 set dummy $ac_cv_prog_CC
2976 shift
2977 if test $# != 0; then
2978 # We chose a different compiler from the bogus one.
2979 # However, it has the same basename, so the bogon will be chosen
2980 # first if we set CC to just the basename; use the full file name.
2981 shift
2982 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2983 fi
2984 fi
2985 fi
2986 fi
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 fi
2998 if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 for ac_prog in cl.exe
3001 do
3002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 test -n "$CC" && break
3040 done
3041 fi
3042 if test -z "$CC"; then
3043 ac_ct_CC=$CC
3044 for ac_prog in cl.exe
3045 do
3046 # Extract the first word of "$ac_prog", so it can be a program name with args.
3047 set dummy $ac_prog; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$ac_ct_CC"; then
3054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_ac_ct_CC="$ac_prog"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074 if test -n "$ac_ct_CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3076 $as_echo "$ac_ct_CC" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083 test -n "$ac_ct_CC" && break
3084 done
3085
3086 if test "x$ac_ct_CC" = x; then
3087 CC=""
3088 else
3089 case $cross_compiling:$ac_tool_warned in
3090 yes:)
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095 CC=$ac_ct_CC
3096 fi
3097 fi
3098
3099 fi
3100
3101
3102 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error $? "no acceptable C compiler found in \$PATH
3105 See \`config.log' for more details" "$LINENO" 5; }
3106
3107 # Provide some information about the compiler.
3108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3109 set X $ac_compile
3110 ac_compiler=$2
3111 for ac_option in --version -v -V -qversion; do
3112 { { ac_try="$ac_compiler $ac_option >&5"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3120 ac_status=$?
3121 if test -s conftest.err; then
3122 sed '10a\
3123 ... rest of stderr output deleted ...
3124 10q' conftest.err >conftest.er1
3125 cat conftest.er1 >&5
3126 fi
3127 rm -f conftest.er1 conftest.err
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }
3130 done
3131
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3134
3135 int
3136 main ()
3137 {
3138
3139 ;
3140 return 0;
3141 }
3142 _ACEOF
3143 ac_clean_files_save=$ac_clean_files
3144 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3145 # Try to create an executable without -o first, disregard a.out.
3146 # It will help us diagnose broken compilers, and finding out an intuition
3147 # of exeext.
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3149 $as_echo_n "checking whether the C compiler works... " >&6; }
3150 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151
3152 # The possible output files:
3153 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154
3155 ac_rmfiles=
3156 for ac_file in $ac_files
3157 do
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161 esac
3162 done
3163 rm -f $ac_rmfiles
3164
3165 if { { ac_try="$ac_link_default"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_link_default") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; then :
3176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3179 # so that the user can short-circuit this test for compilers unknown to
3180 # Autoconf.
3181 for ac_file in $ac_files ''
3182 do
3183 test -f "$ac_file" || continue
3184 case $ac_file in
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3186 ;;
3187 [ab].out )
3188 # We found the default executable, but exeext='' is most
3189 # certainly right.
3190 break;;
3191 *.* )
3192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3193 then :; else
3194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 fi
3196 # We set ac_cv_exeext here because the later test for it is not
3197 # safe: cross compilers may not add the suffix if given an `-o'
3198 # argument, so we may need to know it at that point already.
3199 # Even if this section looks crufty: it has the advantage of
3200 # actually working.
3201 break;;
3202 * )
3203 break;;
3204 esac
3205 done
3206 test "$ac_cv_exeext" = no && ac_cv_exeext=
3207
3208 else
3209 ac_file=''
3210 fi
3211 if test -z "$ac_file"; then :
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 $as_echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error 77 "C compiler cannot create executables
3220 See \`config.log' for more details" "$LINENO" 5; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223 $as_echo "yes" >&6; }
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3226 $as_echo_n "checking for C compiler default output file name... " >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3228 $as_echo "$ac_file" >&6; }
3229 ac_exeext=$ac_cv_exeext
3230
3231 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3232 ac_clean_files=$ac_clean_files_save
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3234 $as_echo_n "checking for suffix of executables... " >&6; }
3235 if { { ac_try="$ac_link"
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_link") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3247 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3248 # work properly (i.e., refer to `conftest.exe'), while it won't with
3249 # `rm'.
3250 for ac_file in conftest.exe conftest conftest.*; do
3251 test -f "$ac_file" || continue
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 break;;
3256 * ) break;;
3257 esac
3258 done
3259 else
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3263 See \`config.log' for more details" "$LINENO" 5; }
3264 fi
3265 rm -f conftest conftest$ac_cv_exeext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3267 $as_echo "$ac_cv_exeext" >&6; }
3268
3269 rm -f conftest.$ac_ext
3270 EXEEXT=$ac_cv_exeext
3271 ac_exeext=$EXEEXT
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <stdio.h>
3275 int
3276 main ()
3277 {
3278 FILE *f = fopen ("conftest.out", "w");
3279 return ferror (f) || fclose (f) != 0;
3280
3281 ;
3282 return 0;
3283 }
3284 _ACEOF
3285 ac_clean_files="$ac_clean_files conftest.out"
3286 # Check that the compiler produces executables we can run. If not, either
3287 # the compiler is broken, or we cross compile.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3289 $as_echo_n "checking whether we are cross compiling... " >&6; }
3290 if test "$cross_compiling" != yes; then
3291 { { ac_try="$ac_link"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_link") 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302 if { ac_try='./conftest$ac_cv_exeext'
3303 { { case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_try") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; }; then
3313 cross_compiling=no
3314 else
3315 if test "$cross_compiling" = maybe; then
3316 cross_compiling=yes
3317 else
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot run C compiled programs.
3321 If you meant to cross compile, use \`--host'.
3322 See \`config.log' for more details" "$LINENO" 5; }
3323 fi
3324 fi
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3327 $as_echo "$cross_compiling" >&6; }
3328
3329 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3330 ac_clean_files=$ac_clean_files_save
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3332 $as_echo_n "checking for suffix of object files... " >&6; }
3333 if ${ac_cv_objext+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.o conftest.obj
3348 if { { ac_try="$ac_compile"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_compile") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 for ac_file in conftest.o conftest.obj conftest.*; do
3360 test -f "$ac_file" || continue;
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364 break;;
3365 esac
3366 done
3367 else
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of object files: cannot compile
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 fi
3376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3379 $as_echo "$ac_cv_objext" >&6; }
3380 OBJEXT=$ac_cv_objext
3381 ac_objext=$OBJEXT
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3383 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3384 if ${ac_cv_c_compiler_gnu+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393 #ifndef __GNUC__
3394 choke me
3395 #endif
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_compiler_gnu=yes
3403 else
3404 ac_compiler_gnu=no
3405 fi
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3408
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3412 if test $ac_compiler_gnu = yes; then
3413 GCC=yes
3414 else
3415 GCC=
3416 fi
3417 ac_test_CFLAGS=${CFLAGS+set}
3418 ac_save_CFLAGS=$CFLAGS
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3421 if ${ac_cv_prog_cc_g+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_save_c_werror_flag=$ac_c_werror_flag
3425 ac_c_werror_flag=yes
3426 ac_cv_prog_cc_g=no
3427 CFLAGS="-g"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main ()
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_cv_prog_cc_g=yes
3441 else
3442 CFLAGS=""
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455
3456 else
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 CFLAGS="-g"
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main ()
3464 {
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_cv_prog_cc_g=yes
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3481 $as_echo "$ac_cv_prog_cc_g" >&6; }
3482 if test "$ac_test_CFLAGS" = set; then
3483 CFLAGS=$ac_save_CFLAGS
3484 elif test $ac_cv_prog_cc_g = yes; then
3485 if test "$GCC" = yes; then
3486 CFLAGS="-g -O2"
3487 else
3488 CFLAGS="-g"
3489 fi
3490 else
3491 if test "$GCC" = yes; then
3492 CFLAGS="-O2"
3493 else
3494 CFLAGS=
3495 fi
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3498 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3499 if ${ac_cv_prog_cc_c89+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 ac_cv_prog_cc_c89=no
3503 ac_save_CC=$CC
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506 #include <stdarg.h>
3507 #include <stdio.h>
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3511 struct buf { int x; };
3512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513 static char *e (p, i)
3514 char **p;
3515 int i;
3516 {
3517 return p[i];
3518 }
3519 static char *f (char * (*g) (char **, int), char **p, ...)
3520 {
3521 char *s;
3522 va_list v;
3523 va_start (v,p);
3524 s = g (p, va_arg (v,int));
3525 va_end (v);
3526 return s;
3527 }
3528
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3530 function prototypes and stuff, but not '\xHH' hex character constants.
3531 These don't provoke an error unfortunately, instead are silently treated
3532 as 'x'. The following induces an error, until -std is added to get
3533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3534 array size at least. It's necessary to write '\x00'==0 to get something
3535 that's true only with -std. */
3536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539 inside strings and character constants. */
3540 #define FOO(x) 'x'
3541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3547 int argc;
3548 char **argv;
3549 int
3550 main ()
3551 {
3552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 do
3560 CC="$ac_save_CC $ac_arg"
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_c89=$ac_arg
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext
3565 test "x$ac_cv_prog_cc_c89" != "xno" && break
3566 done
3567 rm -f conftest.$ac_ext
3568 CC=$ac_save_CC
3569
3570 fi
3571 # AC_CACHE_VAL
3572 case "x$ac_cv_prog_cc_c89" in
3573 x)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3575 $as_echo "none needed" >&6; } ;;
3576 xno)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3578 $as_echo "unsupported" >&6; } ;;
3579 *)
3580 CC="$CC $ac_cv_prog_cc_c89"
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3582 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3583 esac
3584 if test "x$ac_cv_prog_cc_c89" != xno; then :
3585
3586 fi
3587
3588 ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594 ac_ext=c
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3600 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3601 if ${am_cv_prog_cc_c_o+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 # Make sure it works both with $CC and with simple cc.
3616 # Following AC_PROG_CC_C_O, we do the test twice because some
3617 # compilers refuse to overwrite an existing .o file with -o,
3618 # though they will create one.
3619 am_cv_prog_cc_c_o=yes
3620 for am_i in 1 2; do
3621 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3622 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } \
3626 && test -f conftest2.$ac_objext; then
3627 : OK
3628 else
3629 am_cv_prog_cc_c_o=no
3630 break
3631 fi
3632 done
3633 rm -f core conftest*
3634 unset am_i
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3637 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3638 if test "$am_cv_prog_cc_c_o" != yes; then
3639 # Losing compiler, so override with the script.
3640 # FIXME: It is wrong to rewrite CC.
3641 # But if we don't then we get into trouble of one sort or another.
3642 # A longer-term fix would be to have automake use am__CC in this case,
3643 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3644 CC="$am_aux_dir/compile $CC"
3645 fi
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653 depcc="$CC" am_compiler_list=
3654
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3656 $as_echo_n "checking dependency style of $depcc... " >&6; }
3657 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3661 # We make a subdir and do the tests there. Otherwise we can end up
3662 # making bogus files that we don't know about and never remove. For
3663 # instance it was reported that on HP-UX the gcc test will end up
3664 # making a dummy file named 'D' -- because '-MD' means "put the output
3665 # in D".
3666 rm -rf conftest.dir
3667 mkdir conftest.dir
3668 # Copy depcomp to subdir because otherwise we won't find it if we're
3669 # using a relative directory.
3670 cp "$am_depcomp" conftest.dir
3671 cd conftest.dir
3672 # We will build objects and dependencies in a subdirectory because
3673 # it helps to detect inapplicable dependency modes. For instance
3674 # both Tru64's cc and ICC support -MD to output dependencies as a
3675 # side effect of compilation, but ICC will put the dependencies in
3676 # the current directory while Tru64 will put them in the object
3677 # directory.
3678 mkdir sub
3679
3680 am_cv_CC_dependencies_compiler_type=none
3681 if test "$am_compiler_list" = ""; then
3682 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3683 fi
3684 am__universal=false
3685 case " $depcc " in #(
3686 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3687 esac
3688
3689 for depmode in $am_compiler_list; do
3690 # Setup a source with many dependencies, because some compilers
3691 # like to wrap large dependency lists on column 80 (with \), and
3692 # we should not choose a depcomp mode which is confused by this.
3693 #
3694 # We need to recreate these files for each test, as the compiler may
3695 # overwrite some of them when testing with obscure command lines.
3696 # This happens at least with the AIX C compiler.
3697 : > sub/conftest.c
3698 for i in 1 2 3 4 5 6; do
3699 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3700 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3701 # Solaris 10 /bin/sh.
3702 echo '/* dummy */' > sub/conftst$i.h
3703 done
3704 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3705
3706 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3707 # mode. It turns out that the SunPro C++ compiler does not properly
3708 # handle '-M -o', and we need to detect this. Also, some Intel
3709 # versions had trouble with output in subdirs.
3710 am__obj=sub/conftest.${OBJEXT-o}
3711 am__minus_obj="-o $am__obj"
3712 case $depmode in
3713 gcc)
3714 # This depmode causes a compiler race in universal mode.
3715 test "$am__universal" = false || continue
3716 ;;
3717 nosideeffect)
3718 # After this tag, mechanisms are not by side-effect, so they'll
3719 # only be used when explicitly requested.
3720 if test "x$enable_dependency_tracking" = xyes; then
3721 continue
3722 else
3723 break
3724 fi
3725 ;;
3726 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3727 # This compiler won't grok '-c -o', but also, the minuso test has
3728 # not run yet. These depmodes are late enough in the game, and
3729 # so weak that their functioning should not be impacted.
3730 am__obj=conftest.${OBJEXT-o}
3731 am__minus_obj=
3732 ;;
3733 none) break ;;
3734 esac
3735 if depmode=$depmode \
3736 source=sub/conftest.c object=$am__obj \
3737 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3738 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3739 >/dev/null 2>conftest.err &&
3740 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3741 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3742 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3743 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3744 # icc doesn't choke on unknown options, it will just issue warnings
3745 # or remarks (even with -Werror). So we grep stderr for any message
3746 # that says an option was ignored or not supported.
3747 # When given -MP, icc 7.0 and 7.1 complain thusly:
3748 # icc: Command line warning: ignoring option '-M'; no argument required
3749 # The diagnosis changed in icc 8.0:
3750 # icc: Command line remark: option '-MP' not supported
3751 if (grep 'ignoring option' conftest.err ||
3752 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3753 am_cv_CC_dependencies_compiler_type=$depmode
3754 break
3755 fi
3756 fi
3757 done
3758
3759 cd ..
3760 rm -rf conftest.dir
3761 else
3762 am_cv_CC_dependencies_compiler_type=none
3763 fi
3764
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3767 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3768 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3769
3770 if
3771 test "x$enable_dependency_tracking" != xno \
3772 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3773 am__fastdepCC_TRUE=
3774 am__fastdepCC_FALSE='#'
3775 else
3776 am__fastdepCC_TRUE='#'
3777 am__fastdepCC_FALSE=
3778 fi
3779
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3782 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3783 if ${ac_cv_prog_cc_c99+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 ac_cv_prog_cc_c99=no
3787 ac_save_CC=$CC
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #include <stdarg.h>
3791 #include <stdbool.h>
3792 #include <stdlib.h>
3793 #include <wchar.h>
3794 #include <stdio.h>
3795
3796 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3797 #define debug(...) fprintf (stderr, __VA_ARGS__)
3798 #define showlist(...) puts (#__VA_ARGS__)
3799 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3800 static void
3801 test_varargs_macros (void)
3802 {
3803 int x = 1234;
3804 int y = 5678;
3805 debug ("Flag");
3806 debug ("X = %d\n", x);
3807 showlist (The first, second, and third items.);
3808 report (x>y, "x is %d but y is %d", x, y);
3809 }
3810
3811 // Check long long types.
3812 #define BIG64 18446744073709551615ull
3813 #define BIG32 4294967295ul
3814 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3815 #if !BIG_OK
3816 your preprocessor is broken;
3817 #endif
3818 #if BIG_OK
3819 #else
3820 your preprocessor is broken;
3821 #endif
3822 static long long int bignum = -9223372036854775807LL;
3823 static unsigned long long int ubignum = BIG64;
3824
3825 struct incomplete_array
3826 {
3827 int datasize;
3828 double data[];
3829 };
3830
3831 struct named_init {
3832 int number;
3833 const wchar_t *name;
3834 double average;
3835 };
3836
3837 typedef const char *ccp;
3838
3839 static inline int
3840 test_restrict (ccp restrict text)
3841 {
3842 // See if C++-style comments work.
3843 // Iterate through items via the restricted pointer.
3844 // Also check for declarations in for loops.
3845 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3846 continue;
3847 return 0;
3848 }
3849
3850 // Check varargs and va_copy.
3851 static void
3852 test_varargs (const char *format, ...)
3853 {
3854 va_list args;
3855 va_start (args, format);
3856 va_list args_copy;
3857 va_copy (args_copy, args);
3858
3859 const char *str;
3860 int number;
3861 float fnumber;
3862
3863 while (*format)
3864 {
3865 switch (*format++)
3866 {
3867 case 's': // string
3868 str = va_arg (args_copy, const char *);
3869 break;
3870 case 'd': // int
3871 number = va_arg (args_copy, int);
3872 break;
3873 case 'f': // float
3874 fnumber = va_arg (args_copy, double);
3875 break;
3876 default:
3877 break;
3878 }
3879 }
3880 va_end (args_copy);
3881 va_end (args);
3882 }
3883
3884 int
3885 main ()
3886 {
3887
3888 // Check bool.
3889 _Bool success = false;
3890
3891 // Check restrict.
3892 if (test_restrict ("String literal") == 0)
3893 success = true;
3894 char *restrict newvar = "Another string";
3895
3896 // Check varargs.
3897 test_varargs ("s, d' f .", "string", 65, 34.234);
3898 test_varargs_macros ();
3899
3900 // Check flexible array members.
3901 struct incomplete_array *ia =
3902 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3903 ia->datasize = 10;
3904 for (int i = 0; i < ia->datasize; ++i)
3905 ia->data[i] = i * 1.234;
3906
3907 // Check named initializers.
3908 struct named_init ni = {
3909 .number = 34,
3910 .name = L"Test wide string",
3911 .average = 543.34343,
3912 };
3913
3914 ni.number = 58;
3915
3916 int dynamic_array[ni.number];
3917 dynamic_array[ni.number - 1] = 543;
3918
3919 // work around unused variable warnings
3920 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3921 || dynamic_array[ni.number - 1] != 543);
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3928 do
3929 CC="$ac_save_CC $ac_arg"
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv_prog_cc_c99=$ac_arg
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext
3934 test "x$ac_cv_prog_cc_c99" != "xno" && break
3935 done
3936 rm -f conftest.$ac_ext
3937 CC=$ac_save_CC
3938
3939 fi
3940 # AC_CACHE_VAL
3941 case "x$ac_cv_prog_cc_c99" in
3942 x)
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3944 $as_echo "none needed" >&6; } ;;
3945 xno)
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3947 $as_echo "unsupported" >&6; } ;;
3948 *)
3949 CC="$CC $ac_cv_prog_cc_c99"
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3951 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3952 esac
3953 if test "x$ac_cv_prog_cc_c99" != xno; then :
3954
3955 fi
3956
3957
3958
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3965 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3966 # On Suns, sometimes $CPP names a directory.
3967 if test -n "$CPP" && test -d "$CPP"; then
3968 CPP=
3969 fi
3970 if test -z "$CPP"; then
3971 if ${ac_cv_prog_CPP+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 # Double quotes because CPP needs to be expanded
3975 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3976 do
3977 ac_preproc_ok=false
3978 for ac_c_preproc_warn_flag in '' yes
3979 do
3980 # Use a header file that comes with gcc, so configuring glibc
3981 # with a fresh cross-compiler works.
3982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3983 # <limits.h> exists even on freestanding compilers.
3984 # On the NeXT, cc -E runs the code through the compiler's parser,
3985 # not just through cpp. "Syntax error" is here to catch this case.
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #ifdef __STDC__
3989 # include <limits.h>
3990 #else
3991 # include <assert.h>
3992 #endif
3993 Syntax error
3994 _ACEOF
3995 if ac_fn_c_try_cpp "$LINENO"; then :
3996
3997 else
3998 # Broken: fails on valid input.
3999 continue
4000 fi
4001 rm -f conftest.err conftest.i conftest.$ac_ext
4002
4003 # OK, works on sane cases. Now check whether nonexistent headers
4004 # can be detected and how.
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007 #include <ac_nonexistent.h>
4008 _ACEOF
4009 if ac_fn_c_try_cpp "$LINENO"; then :
4010 # Broken: success on invalid input.
4011 continue
4012 else
4013 # Passes both tests.
4014 ac_preproc_ok=:
4015 break
4016 fi
4017 rm -f conftest.err conftest.i conftest.$ac_ext
4018
4019 done
4020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4021 rm -f conftest.i conftest.err conftest.$ac_ext
4022 if $ac_preproc_ok; then :
4023 break
4024 fi
4025
4026 done
4027 ac_cv_prog_CPP=$CPP
4028
4029 fi
4030 CPP=$ac_cv_prog_CPP
4031 else
4032 ac_cv_prog_CPP=$CPP
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4035 $as_echo "$CPP" >&6; }
4036 ac_preproc_ok=false
4037 for ac_c_preproc_warn_flag in '' yes
4038 do
4039 # Use a header file that comes with gcc, so configuring glibc
4040 # with a fresh cross-compiler works.
4041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042 # <limits.h> exists even on freestanding compilers.
4043 # On the NeXT, cc -E runs the code through the compiler's parser,
4044 # not just through cpp. "Syntax error" is here to catch this case.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #ifdef __STDC__
4048 # include <limits.h>
4049 #else
4050 # include <assert.h>
4051 #endif
4052 Syntax error
4053 _ACEOF
4054 if ac_fn_c_try_cpp "$LINENO"; then :
4055
4056 else
4057 # Broken: fails on valid input.
4058 continue
4059 fi
4060 rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <ac_nonexistent.h>
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4069 # Broken: success on invalid input.
4070 continue
4071 else
4072 # Passes both tests.
4073 ac_preproc_ok=:
4074 break
4075 fi
4076 rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078 done
4079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080 rm -f conftest.i conftest.err conftest.$ac_ext
4081 if $ac_preproc_ok; then :
4082
4083 else
4084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4087 See \`config.log' for more details" "$LINENO" 5; }
4088 fi
4089
4090 ac_ext=c
4091 ac_cpp='$CPP $CPPFLAGS'
4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095
4096
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4098 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4099 if ${ac_cv_path_GREP+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -z "$GREP"; then
4103 ac_path_GREP_found=false
4104 # Loop through the user's path and test for each of PROGNAME-LIST
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107 do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_prog in grep ggrep; do
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4113 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4114 # Check for GNU ac_path_GREP and select it if it is found.
4115 # Check for GNU $ac_path_GREP
4116 case `"$ac_path_GREP" --version 2>&1` in
4117 *GNU*)
4118 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4119 *)
4120 ac_count=0
4121 $as_echo_n 0123456789 >"conftest.in"
4122 while :
4123 do
4124 cat "conftest.in" "conftest.in" >"conftest.tmp"
4125 mv "conftest.tmp" "conftest.in"
4126 cp "conftest.in" "conftest.nl"
4127 $as_echo 'GREP' >> "conftest.nl"
4128 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4130 as_fn_arith $ac_count + 1 && ac_count=$as_val
4131 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4132 # Best one so far, save it but keep looking for a better one
4133 ac_cv_path_GREP="$ac_path_GREP"
4134 ac_path_GREP_max=$ac_count
4135 fi
4136 # 10*(2^10) chars as input seems more than enough
4137 test $ac_count -gt 10 && break
4138 done
4139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140 esac
4141
4142 $ac_path_GREP_found && break 3
4143 done
4144 done
4145 done
4146 IFS=$as_save_IFS
4147 if test -z "$ac_cv_path_GREP"; then
4148 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149 fi
4150 else
4151 ac_cv_path_GREP=$GREP
4152 fi
4153
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4156 $as_echo "$ac_cv_path_GREP" >&6; }
4157 GREP="$ac_cv_path_GREP"
4158
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4161 $as_echo_n "checking for egrep... " >&6; }
4162 if ${ac_cv_path_EGREP+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4166 then ac_cv_path_EGREP="$GREP -E"
4167 else
4168 if test -z "$EGREP"; then
4169 ac_path_EGREP_found=false
4170 # Loop through the user's path and test for each of PROGNAME-LIST
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4173 do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_prog in egrep; do
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4179 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4180 # Check for GNU ac_path_EGREP and select it if it is found.
4181 # Check for GNU $ac_path_EGREP
4182 case `"$ac_path_EGREP" --version 2>&1` in
4183 *GNU*)
4184 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4185 *)
4186 ac_count=0
4187 $as_echo_n 0123456789 >"conftest.in"
4188 while :
4189 do
4190 cat "conftest.in" "conftest.in" >"conftest.tmp"
4191 mv "conftest.tmp" "conftest.in"
4192 cp "conftest.in" "conftest.nl"
4193 $as_echo 'EGREP' >> "conftest.nl"
4194 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4196 as_fn_arith $ac_count + 1 && ac_count=$as_val
4197 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4198 # Best one so far, save it but keep looking for a better one
4199 ac_cv_path_EGREP="$ac_path_EGREP"
4200 ac_path_EGREP_max=$ac_count
4201 fi
4202 # 10*(2^10) chars as input seems more than enough
4203 test $ac_count -gt 10 && break
4204 done
4205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206 esac
4207
4208 $ac_path_EGREP_found && break 3
4209 done
4210 done
4211 done
4212 IFS=$as_save_IFS
4213 if test -z "$ac_cv_path_EGREP"; then
4214 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4215 fi
4216 else
4217 ac_cv_path_EGREP=$EGREP
4218 fi
4219
4220 fi
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4223 $as_echo "$ac_cv_path_EGREP" >&6; }
4224 EGREP="$ac_cv_path_EGREP"
4225
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4228 $as_echo_n "checking for ANSI C header files... " >&6; }
4229 if ${ac_cv_header_stdc+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <stdlib.h>
4235 #include <stdarg.h>
4236 #include <string.h>
4237 #include <float.h>
4238
4239 int
4240 main ()
4241 {
4242
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_header_stdc=yes
4249 else
4250 ac_cv_header_stdc=no
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253
4254 if test $ac_cv_header_stdc = yes; then
4255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <string.h>
4259
4260 _ACEOF
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262 $EGREP "memchr" >/dev/null 2>&1; then :
4263
4264 else
4265 ac_cv_header_stdc=no
4266 fi
4267 rm -f conftest*
4268
4269 fi
4270
4271 if test $ac_cv_header_stdc = yes; then
4272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <stdlib.h>
4276
4277 _ACEOF
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "free" >/dev/null 2>&1; then :
4280
4281 else
4282 ac_cv_header_stdc=no
4283 fi
4284 rm -f conftest*
4285
4286 fi
4287
4288 if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then :
4291 :
4292 else
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 #include <ctype.h>
4296 #include <stdlib.h>
4297 #if ((' ' & 0x0FF) == 0x020)
4298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4300 #else
4301 # define ISLOWER(c) \
4302 (('a' <= (c) && (c) <= 'i') \
4303 || ('j' <= (c) && (c) <= 'r') \
4304 || ('s' <= (c) && (c) <= 'z'))
4305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4306 #endif
4307
4308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4309 int
4310 main ()
4311 {
4312 int i;
4313 for (i = 0; i < 256; i++)
4314 if (XOR (islower (i), ISLOWER (i))
4315 || toupper (i) != TOUPPER (i))
4316 return 2;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_c_try_run "$LINENO"; then :
4321
4322 else
4323 ac_cv_header_stdc=no
4324 fi
4325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4326 conftest.$ac_objext conftest.beam conftest.$ac_ext
4327 fi
4328
4329 fi
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4332 $as_echo "$ac_cv_header_stdc" >&6; }
4333 if test $ac_cv_header_stdc = yes; then
4334
4335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4336
4337 fi
4338
4339 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4340 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4341 inttypes.h stdint.h unistd.h
4342 do :
4343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4344 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4345 "
4346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4347 cat >>confdefs.h <<_ACEOF
4348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349 _ACEOF
4350
4351 fi
4352
4353 done
4354
4355
4356
4357
4358
4359
4360 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4361 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4362 CLANGCC="yes"
4363 else
4364 CLANGCC="no"
4365 fi
4366
4367 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4368 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4369 INTELCC="yes"
4370 else
4371 INTELCC="no"
4372 fi
4373
4374 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4375 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4376 SUNCC="yes"
4377 else
4378 SUNCC="no"
4379 fi
4380
4381
4382
4383
4384 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4385 if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 case $PKG_CONFIG in
4394 [\\/]* | ?:[\\/]*)
4395 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4396 ;;
4397 *)
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413 ;;
4414 esac
4415 fi
4416 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4417 if test -n "$PKG_CONFIG"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4419 $as_echo "$PKG_CONFIG" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426 fi
4427 if test -z "$ac_cv_path_PKG_CONFIG"; then
4428 ac_pt_PKG_CONFIG=$PKG_CONFIG
4429 # Extract the first word of "pkg-config", so it can be a program name with args.
4430 set dummy pkg-config; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 case $ac_pt_PKG_CONFIG in
4437 [\\/]* | ?:[\\/]*)
4438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4439 ;;
4440 *)
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 ;;
4457 esac
4458 fi
4459 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4460 if test -n "$ac_pt_PKG_CONFIG"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4462 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 fi
4467
4468 if test "x$ac_pt_PKG_CONFIG" = x; then
4469 PKG_CONFIG=""
4470 else
4471 case $cross_compiling:$ac_tool_warned in
4472 yes:)
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4475 ac_tool_warned=yes ;;
4476 esac
4477 PKG_CONFIG=$ac_pt_PKG_CONFIG
4478 fi
4479 else
4480 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4481 fi
4482
4483 fi
4484 if test -n "$PKG_CONFIG"; then
4485 _pkg_min_version=0.9.0
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4487 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4488 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490 $as_echo "yes" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4494 PKG_CONFIG=""
4495 fi
4496
4497 fi
4498 # Make sure we can run config.sub.
4499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4503 $as_echo_n "checking build system type... " >&6; }
4504 if ${ac_cv_build+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 ac_build_alias=$build_alias
4508 test "x$ac_build_alias" = x &&
4509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4510 test "x$ac_build_alias" = x &&
4511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4514
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4517 $as_echo "$ac_cv_build" >&6; }
4518 case $ac_cv_build in
4519 *-*-*) ;;
4520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4521 esac
4522 build=$ac_cv_build
4523 ac_save_IFS=$IFS; IFS='-'
4524 set x $ac_cv_build
4525 shift
4526 build_cpu=$1
4527 build_vendor=$2
4528 shift; shift
4529 # Remember, the first character of IFS is used to create $*,
4530 # except with old shells:
4531 build_os=$*
4532 IFS=$ac_save_IFS
4533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4537 $as_echo_n "checking host system type... " >&6; }
4538 if ${ac_cv_host+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test "x$host_alias" = x; then
4542 ac_cv_host=$ac_cv_build
4543 else
4544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4546 fi
4547
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4550 $as_echo "$ac_cv_host" >&6; }
4551 case $ac_cv_host in
4552 *-*-*) ;;
4553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4554 esac
4555 host=$ac_cv_host
4556 ac_save_IFS=$IFS; IFS='-'
4557 set x $ac_cv_host
4558 shift
4559 host_cpu=$1
4560 host_vendor=$2
4561 shift; shift
4562 # Remember, the first character of IFS is used to create $*,
4563 # except with old shells:
4564 host_os=$*
4565 IFS=$ac_save_IFS
4566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4567
4568
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4570 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4571 if ${ac_cv_path_SED+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4575 for ac_i in 1 2 3 4 5 6 7; do
4576 ac_script="$ac_script$as_nl$ac_script"
4577 done
4578 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4579 { ac_script=; unset ac_script;}
4580 if test -z "$SED"; then
4581 ac_path_SED_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in sed gsed; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4592 # Check for GNU ac_path_SED and select it if it is found.
4593 # Check for GNU $ac_path_SED
4594 case `"$ac_path_SED" --version 2>&1` in
4595 *GNU*)
4596 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4597 *)
4598 ac_count=0
4599 $as_echo_n 0123456789 >"conftest.in"
4600 while :
4601 do
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo '' >> "conftest.nl"
4606 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_SED_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_SED="$ac_path_SED"
4612 ac_path_SED_max=$ac_count
4613 fi
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4616 done
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 esac
4619
4620 $ac_path_SED_found && break 3
4621 done
4622 done
4623 done
4624 IFS=$as_save_IFS
4625 if test -z "$ac_cv_path_SED"; then
4626 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4627 fi
4628 else
4629 ac_cv_path_SED=$SED
4630 fi
4631
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4634 $as_echo "$ac_cv_path_SED" >&6; }
4635 SED="$ac_cv_path_SED"
4636 rm -f conftest.sed
4637
4638
4639
4640
4641
4642
4643 # Check whether --enable-selective-werror was given.
4644 if test "${enable_selective_werror+set}" = set; then :
4645 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4646 else
4647 SELECTIVE_WERROR=yes
4648 fi
4649
4650
4651
4652
4653
4654 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4655 if test "x$SUNCC" = "xyes"; then
4656 BASE_CFLAGS="-v"
4657 else
4658 BASE_CFLAGS=""
4659 fi
4660
4661 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675 xorg_testset_save_CFLAGS="$CFLAGS"
4676
4677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 int i;
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689 xorg_cv_cc_flag_unknown_warning_option=yes
4690 else
4691 xorg_cv_cc_flag_unknown_warning_option=no
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4698 CFLAGS="$xorg_testset_save_CFLAGS"
4699 fi
4700
4701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4704 fi
4705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 int i;
4714 _ACEOF
4715 if ac_fn_c_try_compile "$LINENO"; then :
4716 xorg_cv_cc_flag_unused_command_line_argument=yes
4717 else
4718 xorg_cv_cc_flag_unused_command_line_argument=no
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4725 CFLAGS="$xorg_testset_save_CFLAGS"
4726 fi
4727
4728 found="no"
4729
4730 if test $found = "no" ; then
4731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4733 fi
4734
4735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4737 fi
4738
4739 CFLAGS="$CFLAGS -Wall"
4740
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4742 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4743 cacheid=xorg_cv_cc_flag__Wall
4744 if eval \${$cacheid+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749 int i;
4750 int
4751 main ()
4752 {
4753
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_link "$LINENO"; then :
4759 eval $cacheid=yes
4760 else
4761 eval $cacheid=no
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext \
4764 conftest$ac_exeext conftest.$ac_ext
4765 fi
4766
4767
4768 CFLAGS="$xorg_testset_save_CFLAGS"
4769
4770 eval supported=\$$cacheid
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4772 $as_echo "$supported" >&6; }
4773 if test "$supported" = "yes" ; then
4774 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4775 found="yes"
4776 fi
4777 fi
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793 xorg_testset_save_CFLAGS="$CFLAGS"
4794
4795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 int i;
4805 _ACEOF
4806 if ac_fn_c_try_compile "$LINENO"; then :
4807 xorg_cv_cc_flag_unknown_warning_option=yes
4808 else
4809 xorg_cv_cc_flag_unknown_warning_option=no
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4816 CFLAGS="$xorg_testset_save_CFLAGS"
4817 fi
4818
4819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4822 fi
4823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 int i;
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 xorg_cv_cc_flag_unused_command_line_argument=yes
4835 else
4836 xorg_cv_cc_flag_unused_command_line_argument=no
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 fi
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4843 CFLAGS="$xorg_testset_save_CFLAGS"
4844 fi
4845
4846 found="no"
4847
4848 if test $found = "no" ; then
4849 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4851 fi
4852
4853 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4855 fi
4856
4857 CFLAGS="$CFLAGS -Wpointer-arith"
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4860 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4861 cacheid=xorg_cv_cc_flag__Wpointer_arith
4862 if eval \${$cacheid+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867 int i;
4868 int
4869 main ()
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_c_try_link "$LINENO"; then :
4877 eval $cacheid=yes
4878 else
4879 eval $cacheid=no
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext \
4882 conftest$ac_exeext conftest.$ac_ext
4883 fi
4884
4885
4886 CFLAGS="$xorg_testset_save_CFLAGS"
4887
4888 eval supported=\$$cacheid
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4890 $as_echo "$supported" >&6; }
4891 if test "$supported" = "yes" ; then
4892 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4893 found="yes"
4894 fi
4895 fi
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911 xorg_testset_save_CFLAGS="$CFLAGS"
4912
4913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 int i;
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925 xorg_cv_cc_flag_unknown_warning_option=yes
4926 else
4927 xorg_cv_cc_flag_unknown_warning_option=no
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4934 CFLAGS="$xorg_testset_save_CFLAGS"
4935 fi
4936
4937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4940 fi
4941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 int i;
4950 _ACEOF
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 xorg_cv_cc_flag_unused_command_line_argument=yes
4953 else
4954 xorg_cv_cc_flag_unused_command_line_argument=no
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4961 CFLAGS="$xorg_testset_save_CFLAGS"
4962 fi
4963
4964 found="no"
4965
4966 if test $found = "no" ; then
4967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969 fi
4970
4971 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4973 fi
4974
4975 CFLAGS="$CFLAGS -Wmissing-declarations"
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4978 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4979 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4980 if eval \${$cacheid+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 int i;
4986 int
4987 main ()
4988 {
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_c_try_link "$LINENO"; then :
4995 eval $cacheid=yes
4996 else
4997 eval $cacheid=no
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext \
5000 conftest$ac_exeext conftest.$ac_ext
5001 fi
5002
5003
5004 CFLAGS="$xorg_testset_save_CFLAGS"
5005
5006 eval supported=\$$cacheid
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5008 $as_echo "$supported" >&6; }
5009 if test "$supported" = "yes" ; then
5010 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5011 found="yes"
5012 fi
5013 fi
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 xorg_testset_save_CFLAGS="$CFLAGS"
5030
5031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 int i;
5041 _ACEOF
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 xorg_cv_cc_flag_unknown_warning_option=yes
5044 else
5045 xorg_cv_cc_flag_unknown_warning_option=no
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5052 CFLAGS="$xorg_testset_save_CFLAGS"
5053 fi
5054
5055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058 fi
5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 int i;
5068 _ACEOF
5069 if ac_fn_c_try_compile "$LINENO"; then :
5070 xorg_cv_cc_flag_unused_command_line_argument=yes
5071 else
5072 xorg_cv_cc_flag_unused_command_line_argument=no
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5079 CFLAGS="$xorg_testset_save_CFLAGS"
5080 fi
5081
5082 found="no"
5083
5084 if test $found = "no" ; then
5085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087 fi
5088
5089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5091 fi
5092
5093 CFLAGS="$CFLAGS -Wformat=2"
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5096 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5097 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5098 if eval \${$cacheid+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 int i;
5104 int
5105 main ()
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_link "$LINENO"; then :
5113 eval $cacheid=yes
5114 else
5115 eval $cacheid=no
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119 fi
5120
5121
5122 CFLAGS="$xorg_testset_save_CFLAGS"
5123
5124 eval supported=\$$cacheid
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5126 $as_echo "$supported" >&6; }
5127 if test "$supported" = "yes" ; then
5128 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5129 found="yes"
5130 fi
5131 fi
5132
5133 if test $found = "no" ; then
5134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5136 fi
5137
5138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140 fi
5141
5142 CFLAGS="$CFLAGS -Wformat"
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5145 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5146 cacheid=xorg_cv_cc_flag__Wformat
5147 if eval \${$cacheid+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5152 int i;
5153 int
5154 main ()
5155 {
5156
5157 ;
5158 return 0;
5159 }
5160 _ACEOF
5161 if ac_fn_c_try_link "$LINENO"; then :
5162 eval $cacheid=yes
5163 else
5164 eval $cacheid=no
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext \
5167 conftest$ac_exeext conftest.$ac_ext
5168 fi
5169
5170
5171 CFLAGS="$xorg_testset_save_CFLAGS"
5172
5173 eval supported=\$$cacheid
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5175 $as_echo "$supported" >&6; }
5176 if test "$supported" = "yes" ; then
5177 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5178 found="yes"
5179 fi
5180 fi
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198 xorg_testset_save_CFLAGS="$CFLAGS"
5199
5200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 int i;
5210 _ACEOF
5211 if ac_fn_c_try_compile "$LINENO"; then :
5212 xorg_cv_cc_flag_unknown_warning_option=yes
5213 else
5214 xorg_cv_cc_flag_unknown_warning_option=no
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5221 CFLAGS="$xorg_testset_save_CFLAGS"
5222 fi
5223
5224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5227 fi
5228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236 int i;
5237 _ACEOF
5238 if ac_fn_c_try_compile "$LINENO"; then :
5239 xorg_cv_cc_flag_unused_command_line_argument=yes
5240 else
5241 xorg_cv_cc_flag_unused_command_line_argument=no
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5248 CFLAGS="$xorg_testset_save_CFLAGS"
5249 fi
5250
5251 found="no"
5252
5253 if test $found = "no" ; then
5254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256 fi
5257
5258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5260 fi
5261
5262 CFLAGS="$CFLAGS -Wstrict-prototypes"
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5265 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5266 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5267 if eval \${$cacheid+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 int i;
5273 int
5274 main ()
5275 {
5276
5277 ;
5278 return 0;
5279 }
5280 _ACEOF
5281 if ac_fn_c_try_link "$LINENO"; then :
5282 eval $cacheid=yes
5283 else
5284 eval $cacheid=no
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
5288 fi
5289
5290
5291 CFLAGS="$xorg_testset_save_CFLAGS"
5292
5293 eval supported=\$$cacheid
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5295 $as_echo "$supported" >&6; }
5296 if test "$supported" = "yes" ; then
5297 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5298 found="yes"
5299 fi
5300 fi
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 xorg_testset_save_CFLAGS="$CFLAGS"
5317
5318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 int i;
5328 _ACEOF
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330 xorg_cv_cc_flag_unknown_warning_option=yes
5331 else
5332 xorg_cv_cc_flag_unknown_warning_option=no
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5339 CFLAGS="$xorg_testset_save_CFLAGS"
5340 fi
5341
5342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5345 fi
5346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 int i;
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 xorg_cv_cc_flag_unused_command_line_argument=yes
5358 else
5359 xorg_cv_cc_flag_unused_command_line_argument=no
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5366 CFLAGS="$xorg_testset_save_CFLAGS"
5367 fi
5368
5369 found="no"
5370
5371 if test $found = "no" ; then
5372 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374 fi
5375
5376 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5378 fi
5379
5380 CFLAGS="$CFLAGS -Wmissing-prototypes"
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5383 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5384 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5385 if eval \${$cacheid+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 int i;
5391 int
5392 main ()
5393 {
5394
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_c_try_link "$LINENO"; then :
5400 eval $cacheid=yes
5401 else
5402 eval $cacheid=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext \
5405 conftest$ac_exeext conftest.$ac_ext
5406 fi
5407
5408
5409 CFLAGS="$xorg_testset_save_CFLAGS"
5410
5411 eval supported=\$$cacheid
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5413 $as_echo "$supported" >&6; }
5414 if test "$supported" = "yes" ; then
5415 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5416 found="yes"
5417 fi
5418 fi
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434 xorg_testset_save_CFLAGS="$CFLAGS"
5435
5436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5439 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5440 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 int i;
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 xorg_cv_cc_flag_unknown_warning_option=yes
5449 else
5450 xorg_cv_cc_flag_unknown_warning_option=no
5451 fi
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5455 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5457 CFLAGS="$xorg_testset_save_CFLAGS"
5458 fi
5459
5460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5463 fi
5464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5466 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5467 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 int i;
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 xorg_cv_cc_flag_unused_command_line_argument=yes
5476 else
5477 xorg_cv_cc_flag_unused_command_line_argument=no
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5482 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5484 CFLAGS="$xorg_testset_save_CFLAGS"
5485 fi
5486
5487 found="no"
5488
5489 if test $found = "no" ; then
5490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492 fi
5493
5494 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5496 fi
5497
5498 CFLAGS="$CFLAGS -Wnested-externs"
5499
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5501 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5502 cacheid=xorg_cv_cc_flag__Wnested_externs
5503 if eval \${$cacheid+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 int i;
5509 int
5510 main ()
5511 {
5512
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 if ac_fn_c_try_link "$LINENO"; then :
5518 eval $cacheid=yes
5519 else
5520 eval $cacheid=no
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext \
5523 conftest$ac_exeext conftest.$ac_ext
5524 fi
5525
5526
5527 CFLAGS="$xorg_testset_save_CFLAGS"
5528
5529 eval supported=\$$cacheid
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5531 $as_echo "$supported" >&6; }
5532 if test "$supported" = "yes" ; then
5533 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5534 found="yes"
5535 fi
5536 fi
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 xorg_testset_save_CFLAGS="$CFLAGS"
5553
5554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5557 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5558 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 int i;
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 xorg_cv_cc_flag_unknown_warning_option=yes
5567 else
5568 xorg_cv_cc_flag_unknown_warning_option=no
5569 fi
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 fi
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5573 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5575 CFLAGS="$xorg_testset_save_CFLAGS"
5576 fi
5577
5578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5581 fi
5582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5584 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5585 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 int i;
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 xorg_cv_cc_flag_unused_command_line_argument=yes
5594 else
5595 xorg_cv_cc_flag_unused_command_line_argument=no
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 fi
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5600 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5602 CFLAGS="$xorg_testset_save_CFLAGS"
5603 fi
5604
5605 found="no"
5606
5607 if test $found = "no" ; then
5608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610 fi
5611
5612 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5614 fi
5615
5616 CFLAGS="$CFLAGS -Wbad-function-cast"
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5619 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5620 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5621 if eval \${$cacheid+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 int i;
5627 int
5628 main ()
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_link "$LINENO"; then :
5636 eval $cacheid=yes
5637 else
5638 eval $cacheid=no
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext \
5641 conftest$ac_exeext conftest.$ac_ext
5642 fi
5643
5644
5645 CFLAGS="$xorg_testset_save_CFLAGS"
5646
5647 eval supported=\$$cacheid
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5649 $as_echo "$supported" >&6; }
5650 if test "$supported" = "yes" ; then
5651 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5652 found="yes"
5653 fi
5654 fi
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 xorg_testset_save_CFLAGS="$CFLAGS"
5671
5672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5675 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5676 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 int i;
5682 _ACEOF
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684 xorg_cv_cc_flag_unknown_warning_option=yes
5685 else
5686 xorg_cv_cc_flag_unknown_warning_option=no
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5691 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5693 CFLAGS="$xorg_testset_save_CFLAGS"
5694 fi
5695
5696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5699 fi
5700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5702 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5703 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 int i;
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 xorg_cv_cc_flag_unused_command_line_argument=yes
5712 else
5713 xorg_cv_cc_flag_unused_command_line_argument=no
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5718 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5720 CFLAGS="$xorg_testset_save_CFLAGS"
5721 fi
5722
5723 found="no"
5724
5725 if test $found = "no" ; then
5726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728 fi
5729
5730 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5732 fi
5733
5734 CFLAGS="$CFLAGS -Wold-style-definition"
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5737 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5738 cacheid=xorg_cv_cc_flag__Wold_style_definition
5739 if eval \${$cacheid+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 int i;
5745 int
5746 main ()
5747 {
5748
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 eval $cacheid=yes
5755 else
5756 eval $cacheid=no
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext conftest.$ac_ext
5760 fi
5761
5762
5763 CFLAGS="$xorg_testset_save_CFLAGS"
5764
5765 eval supported=\$$cacheid
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5767 $as_echo "$supported" >&6; }
5768 if test "$supported" = "yes" ; then
5769 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5770 found="yes"
5771 fi
5772 fi
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788 xorg_testset_save_CFLAGS="$CFLAGS"
5789
5790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5793 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5794 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 int i;
5800 _ACEOF
5801 if ac_fn_c_try_compile "$LINENO"; then :
5802 xorg_cv_cc_flag_unknown_warning_option=yes
5803 else
5804 xorg_cv_cc_flag_unknown_warning_option=no
5805 fi
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5809 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5811 CFLAGS="$xorg_testset_save_CFLAGS"
5812 fi
5813
5814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5817 fi
5818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5820 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5821 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 int i;
5827 _ACEOF
5828 if ac_fn_c_try_compile "$LINENO"; then :
5829 xorg_cv_cc_flag_unused_command_line_argument=yes
5830 else
5831 xorg_cv_cc_flag_unused_command_line_argument=no
5832 fi
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5836 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5838 CFLAGS="$xorg_testset_save_CFLAGS"
5839 fi
5840
5841 found="no"
5842
5843 if test $found = "no" ; then
5844 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846 fi
5847
5848 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5850 fi
5851
5852 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5855 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5856 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5857 if eval \${$cacheid+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 int i;
5863 int
5864 main ()
5865 {
5866
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 if ac_fn_c_try_link "$LINENO"; then :
5872 eval $cacheid=yes
5873 else
5874 eval $cacheid=no
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5878 fi
5879
5880
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5882
5883 eval supported=\$$cacheid
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5885 $as_echo "$supported" >&6; }
5886 if test "$supported" = "yes" ; then
5887 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5888 found="yes"
5889 fi
5890 fi
5891
5892
5893
5894
5895
5896 # This chunk adds additional warnings that could catch undesired effects.
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910 xorg_testset_save_CFLAGS="$CFLAGS"
5911
5912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 int i;
5922 _ACEOF
5923 if ac_fn_c_try_compile "$LINENO"; then :
5924 xorg_cv_cc_flag_unknown_warning_option=yes
5925 else
5926 xorg_cv_cc_flag_unknown_warning_option=no
5927 fi
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5933 CFLAGS="$xorg_testset_save_CFLAGS"
5934 fi
5935
5936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939 fi
5940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 int i;
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951 xorg_cv_cc_flag_unused_command_line_argument=yes
5952 else
5953 xorg_cv_cc_flag_unused_command_line_argument=no
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5960 CFLAGS="$xorg_testset_save_CFLAGS"
5961 fi
5962
5963 found="no"
5964
5965 if test $found = "no" ; then
5966 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968 fi
5969
5970 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5972 fi
5973
5974 CFLAGS="$CFLAGS -Wunused"
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5977 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5978 cacheid=xorg_cv_cc_flag__Wunused
5979 if eval \${$cacheid+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 int i;
5985 int
5986 main ()
5987 {
5988
5989 ;
5990 return 0;
5991 }
5992 _ACEOF
5993 if ac_fn_c_try_link "$LINENO"; then :
5994 eval $cacheid=yes
5995 else
5996 eval $cacheid=no
5997 fi
5998 rm -f core conftest.err conftest.$ac_objext \
5999 conftest$ac_exeext conftest.$ac_ext
6000 fi
6001
6002
6003 CFLAGS="$xorg_testset_save_CFLAGS"
6004
6005 eval supported=\$$cacheid
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6007 $as_echo "$supported" >&6; }
6008 if test "$supported" = "yes" ; then
6009 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6010 found="yes"
6011 fi
6012 fi
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028 xorg_testset_save_CFLAGS="$CFLAGS"
6029
6030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 int i;
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 xorg_cv_cc_flag_unknown_warning_option=yes
6043 else
6044 xorg_cv_cc_flag_unknown_warning_option=no
6045 fi
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 fi
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6051 CFLAGS="$xorg_testset_save_CFLAGS"
6052 fi
6053
6054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057 fi
6058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 int i;
6067 _ACEOF
6068 if ac_fn_c_try_compile "$LINENO"; then :
6069 xorg_cv_cc_flag_unused_command_line_argument=yes
6070 else
6071 xorg_cv_cc_flag_unused_command_line_argument=no
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6078 CFLAGS="$xorg_testset_save_CFLAGS"
6079 fi
6080
6081 found="no"
6082
6083 if test $found = "no" ; then
6084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 fi
6087
6088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6090 fi
6091
6092 CFLAGS="$CFLAGS -Wuninitialized"
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6095 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6096 cacheid=xorg_cv_cc_flag__Wuninitialized
6097 if eval \${$cacheid+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 int i;
6103 int
6104 main ()
6105 {
6106
6107 ;
6108 return 0;
6109 }
6110 _ACEOF
6111 if ac_fn_c_try_link "$LINENO"; then :
6112 eval $cacheid=yes
6113 else
6114 eval $cacheid=no
6115 fi
6116 rm -f core conftest.err conftest.$ac_objext \
6117 conftest$ac_exeext conftest.$ac_ext
6118 fi
6119
6120
6121 CFLAGS="$xorg_testset_save_CFLAGS"
6122
6123 eval supported=\$$cacheid
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6125 $as_echo "$supported" >&6; }
6126 if test "$supported" = "yes" ; then
6127 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6128 found="yes"
6129 fi
6130 fi
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146 xorg_testset_save_CFLAGS="$CFLAGS"
6147
6148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 int i;
6158 _ACEOF
6159 if ac_fn_c_try_compile "$LINENO"; then :
6160 xorg_cv_cc_flag_unknown_warning_option=yes
6161 else
6162 xorg_cv_cc_flag_unknown_warning_option=no
6163 fi
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6169 CFLAGS="$xorg_testset_save_CFLAGS"
6170 fi
6171
6172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175 fi
6176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 int i;
6185 _ACEOF
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 xorg_cv_cc_flag_unused_command_line_argument=yes
6188 else
6189 xorg_cv_cc_flag_unused_command_line_argument=no
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 fi
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6196 CFLAGS="$xorg_testset_save_CFLAGS"
6197 fi
6198
6199 found="no"
6200
6201 if test $found = "no" ; then
6202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 fi
6205
6206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6208 fi
6209
6210 CFLAGS="$CFLAGS -Wshadow"
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6213 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6214 cacheid=xorg_cv_cc_flag__Wshadow
6215 if eval \${$cacheid+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 int i;
6221 int
6222 main ()
6223 {
6224
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 if ac_fn_c_try_link "$LINENO"; then :
6230 eval $cacheid=yes
6231 else
6232 eval $cacheid=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6236 fi
6237
6238
6239 CFLAGS="$xorg_testset_save_CFLAGS"
6240
6241 eval supported=\$$cacheid
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6243 $as_echo "$supported" >&6; }
6244 if test "$supported" = "yes" ; then
6245 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6246 found="yes"
6247 fi
6248 fi
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 xorg_testset_save_CFLAGS="$CFLAGS"
6265
6266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 int i;
6276 _ACEOF
6277 if ac_fn_c_try_compile "$LINENO"; then :
6278 xorg_cv_cc_flag_unknown_warning_option=yes
6279 else
6280 xorg_cv_cc_flag_unknown_warning_option=no
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6287 CFLAGS="$xorg_testset_save_CFLAGS"
6288 fi
6289
6290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6293 fi
6294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 int i;
6303 _ACEOF
6304 if ac_fn_c_try_compile "$LINENO"; then :
6305 xorg_cv_cc_flag_unused_command_line_argument=yes
6306 else
6307 xorg_cv_cc_flag_unused_command_line_argument=no
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310 fi
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6314 CFLAGS="$xorg_testset_save_CFLAGS"
6315 fi
6316
6317 found="no"
6318
6319 if test $found = "no" ; then
6320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 fi
6323
6324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6326 fi
6327
6328 CFLAGS="$CFLAGS -Wcast-qual"
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6331 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6332 cacheid=xorg_cv_cc_flag__Wcast_qual
6333 if eval \${$cacheid+:} 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 int
6340 main ()
6341 {
6342
6343 ;
6344 return 0;
6345 }
6346 _ACEOF
6347 if ac_fn_c_try_link "$LINENO"; then :
6348 eval $cacheid=yes
6349 else
6350 eval $cacheid=no
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6354 fi
6355
6356
6357 CFLAGS="$xorg_testset_save_CFLAGS"
6358
6359 eval supported=\$$cacheid
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6361 $as_echo "$supported" >&6; }
6362 if test "$supported" = "yes" ; then
6363 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6364 found="yes"
6365 fi
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 xorg_testset_save_CFLAGS="$CFLAGS"
6383
6384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 int i;
6394 _ACEOF
6395 if ac_fn_c_try_compile "$LINENO"; then :
6396 xorg_cv_cc_flag_unknown_warning_option=yes
6397 else
6398 xorg_cv_cc_flag_unknown_warning_option=no
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 fi
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6405 CFLAGS="$xorg_testset_save_CFLAGS"
6406 fi
6407
6408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411 fi
6412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 int i;
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 xorg_cv_cc_flag_unused_command_line_argument=yes
6424 else
6425 xorg_cv_cc_flag_unused_command_line_argument=no
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6432 CFLAGS="$xorg_testset_save_CFLAGS"
6433 fi
6434
6435 found="no"
6436
6437 if test $found = "no" ; then
6438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 fi
6441
6442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6444 fi
6445
6446 CFLAGS="$CFLAGS -Wmissing-noreturn"
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6449 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6450 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6451 if eval \${$cacheid+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 int i;
6457 int
6458 main ()
6459 {
6460
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_link "$LINENO"; then :
6466 eval $cacheid=yes
6467 else
6468 eval $cacheid=no
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6472 fi
6473
6474
6475 CFLAGS="$xorg_testset_save_CFLAGS"
6476
6477 eval supported=\$$cacheid
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6479 $as_echo "$supported" >&6; }
6480 if test "$supported" = "yes" ; then
6481 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6482 found="yes"
6483 fi
6484 fi
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 xorg_testset_save_CFLAGS="$CFLAGS"
6501
6502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6505 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6506 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 int i;
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 xorg_cv_cc_flag_unknown_warning_option=yes
6515 else
6516 xorg_cv_cc_flag_unknown_warning_option=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6521 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6523 CFLAGS="$xorg_testset_save_CFLAGS"
6524 fi
6525
6526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529 fi
6530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6532 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6533 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 int i;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 xorg_cv_cc_flag_unused_command_line_argument=yes
6542 else
6543 xorg_cv_cc_flag_unused_command_line_argument=no
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6548 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6550 CFLAGS="$xorg_testset_save_CFLAGS"
6551 fi
6552
6553 found="no"
6554
6555 if test $found = "no" ; then
6556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 fi
6559
6560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6562 fi
6563
6564 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6567 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6568 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6569 if eval \${$cacheid+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 int
6576 main ()
6577 {
6578
6579 ;
6580 return 0;
6581 }
6582 _ACEOF
6583 if ac_fn_c_try_link "$LINENO"; then :
6584 eval $cacheid=yes
6585 else
6586 eval $cacheid=no
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590 fi
6591
6592
6593 CFLAGS="$xorg_testset_save_CFLAGS"
6594
6595 eval supported=\$$cacheid
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6597 $as_echo "$supported" >&6; }
6598 if test "$supported" = "yes" ; then
6599 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6600 found="yes"
6601 fi
6602 fi
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 xorg_testset_save_CFLAGS="$CFLAGS"
6619
6620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6623 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6624 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629 int i;
6630 _ACEOF
6631 if ac_fn_c_try_compile "$LINENO"; then :
6632 xorg_cv_cc_flag_unknown_warning_option=yes
6633 else
6634 xorg_cv_cc_flag_unknown_warning_option=no
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6639 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6641 CFLAGS="$xorg_testset_save_CFLAGS"
6642 fi
6643
6644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647 fi
6648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6650 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6651 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 int i;
6657 _ACEOF
6658 if ac_fn_c_try_compile "$LINENO"; then :
6659 xorg_cv_cc_flag_unused_command_line_argument=yes
6660 else
6661 xorg_cv_cc_flag_unused_command_line_argument=no
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6666 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6668 CFLAGS="$xorg_testset_save_CFLAGS"
6669 fi
6670
6671 found="no"
6672
6673 if test $found = "no" ; then
6674 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 fi
6677
6678 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6680 fi
6681
6682 CFLAGS="$CFLAGS -Wredundant-decls"
6683
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6685 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6686 cacheid=xorg_cv_cc_flag__Wredundant_decls
6687 if eval \${$cacheid+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int i;
6693 int
6694 main ()
6695 {
6696
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_link "$LINENO"; then :
6702 eval $cacheid=yes
6703 else
6704 eval $cacheid=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6708 fi
6709
6710
6711 CFLAGS="$xorg_testset_save_CFLAGS"
6712
6713 eval supported=\$$cacheid
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6715 $as_echo "$supported" >&6; }
6716 if test "$supported" = "yes" ; then
6717 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6718 found="yes"
6719 fi
6720 fi
6721
6722
6723
6724 # These are currently disabled because they are noisy. They will be enabled
6725 # in the future once the codebase is sufficiently modernized to silence
6726 # them. For now, I don't want them to drown out the other warnings.
6727 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6728 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6729 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6730
6731 # Turn some warnings into errors, so we don't accidently get successful builds
6732 # when there are problems that should be fixed.
6733
6734 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748 xorg_testset_save_CFLAGS="$CFLAGS"
6749
6750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6754 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 int i;
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 xorg_cv_cc_flag_unknown_warning_option=yes
6763 else
6764 xorg_cv_cc_flag_unknown_warning_option=no
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6769 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6771 CFLAGS="$xorg_testset_save_CFLAGS"
6772 fi
6773
6774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777 fi
6778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6780 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6781 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 int i;
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789 xorg_cv_cc_flag_unused_command_line_argument=yes
6790 else
6791 xorg_cv_cc_flag_unused_command_line_argument=no
6792 fi
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 fi
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6796 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6798 CFLAGS="$xorg_testset_save_CFLAGS"
6799 fi
6800
6801 found="no"
6802
6803 if test $found = "no" ; then
6804 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 fi
6807
6808 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6810 fi
6811
6812 CFLAGS="$CFLAGS -Werror=implicit"
6813
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6815 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6816 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6817 if eval \${$cacheid+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 int i;
6823 int
6824 main ()
6825 {
6826
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832 eval $cacheid=yes
6833 else
6834 eval $cacheid=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838 fi
6839
6840
6841 CFLAGS="$xorg_testset_save_CFLAGS"
6842
6843 eval supported=\$$cacheid
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6845 $as_echo "$supported" >&6; }
6846 if test "$supported" = "yes" ; then
6847 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6848 found="yes"
6849 fi
6850 fi
6851
6852 if test $found = "no" ; then
6853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855 fi
6856
6857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6859 fi
6860
6861 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6862
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6864 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6865 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6866 if eval \${$cacheid+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 int i;
6872 int
6873 main ()
6874 {
6875
6876 ;
6877 return 0;
6878 }
6879 _ACEOF
6880 if ac_fn_c_try_link "$LINENO"; then :
6881 eval $cacheid=yes
6882 else
6883 eval $cacheid=no
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext \
6886 conftest$ac_exeext conftest.$ac_ext
6887 fi
6888
6889
6890 CFLAGS="$xorg_testset_save_CFLAGS"
6891
6892 eval supported=\$$cacheid
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6894 $as_echo "$supported" >&6; }
6895 if test "$supported" = "yes" ; then
6896 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6897 found="yes"
6898 fi
6899 fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915 xorg_testset_save_CFLAGS="$CFLAGS"
6916
6917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6920 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6921 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6926 int i;
6927 _ACEOF
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929 xorg_cv_cc_flag_unknown_warning_option=yes
6930 else
6931 xorg_cv_cc_flag_unknown_warning_option=no
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6936 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6938 CFLAGS="$xorg_testset_save_CFLAGS"
6939 fi
6940
6941 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944 fi
6945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6947 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6948 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 int i;
6954 _ACEOF
6955 if ac_fn_c_try_compile "$LINENO"; then :
6956 xorg_cv_cc_flag_unused_command_line_argument=yes
6957 else
6958 xorg_cv_cc_flag_unused_command_line_argument=no
6959 fi
6960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 fi
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6963 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6965 CFLAGS="$xorg_testset_save_CFLAGS"
6966 fi
6967
6968 found="no"
6969
6970 if test $found = "no" ; then
6971 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973 fi
6974
6975 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6977 fi
6978
6979 CFLAGS="$CFLAGS -Werror=nonnull"
6980
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6982 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6983 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6984 if eval \${$cacheid+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 int i;
6990 int
6991 main ()
6992 {
6993
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 if ac_fn_c_try_link "$LINENO"; then :
6999 eval $cacheid=yes
7000 else
7001 eval $cacheid=no
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext \
7004 conftest$ac_exeext conftest.$ac_ext
7005 fi
7006
7007
7008 CFLAGS="$xorg_testset_save_CFLAGS"
7009
7010 eval supported=\$$cacheid
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7012 $as_echo "$supported" >&6; }
7013 if test "$supported" = "yes" ; then
7014 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7015 found="yes"
7016 fi
7017 fi
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033 xorg_testset_save_CFLAGS="$CFLAGS"
7034
7035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7038 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7039 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044 int i;
7045 _ACEOF
7046 if ac_fn_c_try_compile "$LINENO"; then :
7047 xorg_cv_cc_flag_unknown_warning_option=yes
7048 else
7049 xorg_cv_cc_flag_unknown_warning_option=no
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 fi
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7054 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7056 CFLAGS="$xorg_testset_save_CFLAGS"
7057 fi
7058
7059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062 fi
7063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7065 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7066 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 int i;
7072 _ACEOF
7073 if ac_fn_c_try_compile "$LINENO"; then :
7074 xorg_cv_cc_flag_unused_command_line_argument=yes
7075 else
7076 xorg_cv_cc_flag_unused_command_line_argument=no
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7081 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7083 CFLAGS="$xorg_testset_save_CFLAGS"
7084 fi
7085
7086 found="no"
7087
7088 if test $found = "no" ; then
7089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091 fi
7092
7093 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7095 fi
7096
7097 CFLAGS="$CFLAGS -Werror=init-self"
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7100 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7101 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7102 if eval \${$cacheid+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 int i;
7108 int
7109 main ()
7110 {
7111
7112 ;
7113 return 0;
7114 }
7115 _ACEOF
7116 if ac_fn_c_try_link "$LINENO"; then :
7117 eval $cacheid=yes
7118 else
7119 eval $cacheid=no
7120 fi
7121 rm -f core conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7123 fi
7124
7125
7126 CFLAGS="$xorg_testset_save_CFLAGS"
7127
7128 eval supported=\$$cacheid
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7130 $as_echo "$supported" >&6; }
7131 if test "$supported" = "yes" ; then
7132 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7133 found="yes"
7134 fi
7135 fi
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 xorg_testset_save_CFLAGS="$CFLAGS"
7152
7153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7156 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7157 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 int i;
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165 xorg_cv_cc_flag_unknown_warning_option=yes
7166 else
7167 xorg_cv_cc_flag_unknown_warning_option=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 fi
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7172 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7174 CFLAGS="$xorg_testset_save_CFLAGS"
7175 fi
7176
7177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7180 fi
7181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7183 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7184 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 int i;
7190 _ACEOF
7191 if ac_fn_c_try_compile "$LINENO"; then :
7192 xorg_cv_cc_flag_unused_command_line_argument=yes
7193 else
7194 xorg_cv_cc_flag_unused_command_line_argument=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 fi
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7199 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7201 CFLAGS="$xorg_testset_save_CFLAGS"
7202 fi
7203
7204 found="no"
7205
7206 if test $found = "no" ; then
7207 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 fi
7210
7211 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7213 fi
7214
7215 CFLAGS="$CFLAGS -Werror=main"
7216
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7218 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7219 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7220 if eval \${$cacheid+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 int i;
7226 int
7227 main ()
7228 {
7229
7230 ;
7231 return 0;
7232 }
7233 _ACEOF
7234 if ac_fn_c_try_link "$LINENO"; then :
7235 eval $cacheid=yes
7236 else
7237 eval $cacheid=no
7238 fi
7239 rm -f core conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7241 fi
7242
7243
7244 CFLAGS="$xorg_testset_save_CFLAGS"
7245
7246 eval supported=\$$cacheid
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7248 $as_echo "$supported" >&6; }
7249 if test "$supported" = "yes" ; then
7250 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7251 found="yes"
7252 fi
7253 fi
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269 xorg_testset_save_CFLAGS="$CFLAGS"
7270
7271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7274 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7275 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280 int i;
7281 _ACEOF
7282 if ac_fn_c_try_compile "$LINENO"; then :
7283 xorg_cv_cc_flag_unknown_warning_option=yes
7284 else
7285 xorg_cv_cc_flag_unknown_warning_option=no
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7290 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7292 CFLAGS="$xorg_testset_save_CFLAGS"
7293 fi
7294
7295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7298 fi
7299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7301 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7302 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 int i;
7308 _ACEOF
7309 if ac_fn_c_try_compile "$LINENO"; then :
7310 xorg_cv_cc_flag_unused_command_line_argument=yes
7311 else
7312 xorg_cv_cc_flag_unused_command_line_argument=no
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7317 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7319 CFLAGS="$xorg_testset_save_CFLAGS"
7320 fi
7321
7322 found="no"
7323
7324 if test $found = "no" ; then
7325 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 fi
7328
7329 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7331 fi
7332
7333 CFLAGS="$CFLAGS -Werror=missing-braces"
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7336 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7337 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7338 if eval \${$cacheid+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 int i;
7344 int
7345 main ()
7346 {
7347
7348 ;
7349 return 0;
7350 }
7351 _ACEOF
7352 if ac_fn_c_try_link "$LINENO"; then :
7353 eval $cacheid=yes
7354 else
7355 eval $cacheid=no
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
7359 fi
7360
7361
7362 CFLAGS="$xorg_testset_save_CFLAGS"
7363
7364 eval supported=\$$cacheid
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7366 $as_echo "$supported" >&6; }
7367 if test "$supported" = "yes" ; then
7368 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7369 found="yes"
7370 fi
7371 fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387 xorg_testset_save_CFLAGS="$CFLAGS"
7388
7389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 int i;
7399 _ACEOF
7400 if ac_fn_c_try_compile "$LINENO"; then :
7401 xorg_cv_cc_flag_unknown_warning_option=yes
7402 else
7403 xorg_cv_cc_flag_unknown_warning_option=no
7404 fi
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406 fi
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7410 CFLAGS="$xorg_testset_save_CFLAGS"
7411 fi
7412
7413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416 fi
7417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 int i;
7426 _ACEOF
7427 if ac_fn_c_try_compile "$LINENO"; then :
7428 xorg_cv_cc_flag_unused_command_line_argument=yes
7429 else
7430 xorg_cv_cc_flag_unused_command_line_argument=no
7431 fi
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 fi
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7437 CFLAGS="$xorg_testset_save_CFLAGS"
7438 fi
7439
7440 found="no"
7441
7442 if test $found = "no" ; then
7443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 fi
7446
7447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7449 fi
7450
7451 CFLAGS="$CFLAGS -Werror=sequence-point"
7452
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7454 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7455 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7456 if eval \${$cacheid+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 int i;
7462 int
7463 main ()
7464 {
7465
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 if ac_fn_c_try_link "$LINENO"; then :
7471 eval $cacheid=yes
7472 else
7473 eval $cacheid=no
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
7477 fi
7478
7479
7480 CFLAGS="$xorg_testset_save_CFLAGS"
7481
7482 eval supported=\$$cacheid
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7484 $as_echo "$supported" >&6; }
7485 if test "$supported" = "yes" ; then
7486 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7487 found="yes"
7488 fi
7489 fi
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 xorg_testset_save_CFLAGS="$CFLAGS"
7506
7507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7516 int i;
7517 _ACEOF
7518 if ac_fn_c_try_compile "$LINENO"; then :
7519 xorg_cv_cc_flag_unknown_warning_option=yes
7520 else
7521 xorg_cv_cc_flag_unknown_warning_option=no
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 fi
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7528 CFLAGS="$xorg_testset_save_CFLAGS"
7529 fi
7530
7531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7534 fi
7535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 int i;
7544 _ACEOF
7545 if ac_fn_c_try_compile "$LINENO"; then :
7546 xorg_cv_cc_flag_unused_command_line_argument=yes
7547 else
7548 xorg_cv_cc_flag_unused_command_line_argument=no
7549 fi
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7555 CFLAGS="$xorg_testset_save_CFLAGS"
7556 fi
7557
7558 found="no"
7559
7560 if test $found = "no" ; then
7561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 fi
7564
7565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7567 fi
7568
7569 CFLAGS="$CFLAGS -Werror=return-type"
7570
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7572 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7573 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7574 if eval \${$cacheid+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 int i;
7580 int
7581 main ()
7582 {
7583
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_link "$LINENO"; then :
7589 eval $cacheid=yes
7590 else
7591 eval $cacheid=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595 fi
7596
7597
7598 CFLAGS="$xorg_testset_save_CFLAGS"
7599
7600 eval supported=\$$cacheid
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7602 $as_echo "$supported" >&6; }
7603 if test "$supported" = "yes" ; then
7604 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7605 found="yes"
7606 fi
7607 fi
7608
7609 if test $found = "no" ; then
7610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612 fi
7613
7614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7616 fi
7617
7618 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7619
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7621 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7622 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7623 if eval \${$cacheid+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 int i;
7629 int
7630 main ()
7631 {
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_link "$LINENO"; then :
7638 eval $cacheid=yes
7639 else
7640 eval $cacheid=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext conftest.$ac_ext
7644 fi
7645
7646
7647 CFLAGS="$xorg_testset_save_CFLAGS"
7648
7649 eval supported=\$$cacheid
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7651 $as_echo "$supported" >&6; }
7652 if test "$supported" = "yes" ; then
7653 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7654 found="yes"
7655 fi
7656 fi
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672 xorg_testset_save_CFLAGS="$CFLAGS"
7673
7674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7677 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7678 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 int i;
7684 _ACEOF
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686 xorg_cv_cc_flag_unknown_warning_option=yes
7687 else
7688 xorg_cv_cc_flag_unknown_warning_option=no
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7693 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7695 CFLAGS="$xorg_testset_save_CFLAGS"
7696 fi
7697
7698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701 fi
7702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7704 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7705 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 int i;
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 xorg_cv_cc_flag_unused_command_line_argument=yes
7714 else
7715 xorg_cv_cc_flag_unused_command_line_argument=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7720 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723 fi
7724
7725 found="no"
7726
7727 if test $found = "no" ; then
7728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 fi
7731
7732 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7734 fi
7735
7736 CFLAGS="$CFLAGS -Werror=trigraphs"
7737
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7739 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7740 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7741 if eval \${$cacheid+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 int i;
7747 int
7748 main ()
7749 {
7750
7751 ;
7752 return 0;
7753 }
7754 _ACEOF
7755 if ac_fn_c_try_link "$LINENO"; then :
7756 eval $cacheid=yes
7757 else
7758 eval $cacheid=no
7759 fi
7760 rm -f core conftest.err conftest.$ac_objext \
7761 conftest$ac_exeext conftest.$ac_ext
7762 fi
7763
7764
7765 CFLAGS="$xorg_testset_save_CFLAGS"
7766
7767 eval supported=\$$cacheid
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7769 $as_echo "$supported" >&6; }
7770 if test "$supported" = "yes" ; then
7771 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7772 found="yes"
7773 fi
7774 fi
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790 xorg_testset_save_CFLAGS="$CFLAGS"
7791
7792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7795 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7796 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801 int i;
7802 _ACEOF
7803 if ac_fn_c_try_compile "$LINENO"; then :
7804 xorg_cv_cc_flag_unknown_warning_option=yes
7805 else
7806 xorg_cv_cc_flag_unknown_warning_option=no
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7811 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7813 CFLAGS="$xorg_testset_save_CFLAGS"
7814 fi
7815
7816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7819 fi
7820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7822 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7823 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 int i;
7829 _ACEOF
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 xorg_cv_cc_flag_unused_command_line_argument=yes
7832 else
7833 xorg_cv_cc_flag_unused_command_line_argument=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7838 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841 fi
7842
7843 found="no"
7844
7845 if test $found = "no" ; then
7846 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848 fi
7849
7850 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852 fi
7853
7854 CFLAGS="$CFLAGS -Werror=array-bounds"
7855
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7857 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7858 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7859 if eval \${$cacheid+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 int i;
7865 int
7866 main ()
7867 {
7868
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_link "$LINENO"; then :
7874 eval $cacheid=yes
7875 else
7876 eval $cacheid=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880 fi
7881
7882
7883 CFLAGS="$xorg_testset_save_CFLAGS"
7884
7885 eval supported=\$$cacheid
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7887 $as_echo "$supported" >&6; }
7888 if test "$supported" = "yes" ; then
7889 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7890 found="yes"
7891 fi
7892 fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 xorg_testset_save_CFLAGS="$CFLAGS"
7909
7910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7913 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7914 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 int i;
7920 _ACEOF
7921 if ac_fn_c_try_compile "$LINENO"; then :
7922 xorg_cv_cc_flag_unknown_warning_option=yes
7923 else
7924 xorg_cv_cc_flag_unknown_warning_option=no
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 fi
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7929 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7931 CFLAGS="$xorg_testset_save_CFLAGS"
7932 fi
7933
7934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7937 fi
7938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7940 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7941 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 int i;
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 xorg_cv_cc_flag_unused_command_line_argument=yes
7950 else
7951 xorg_cv_cc_flag_unused_command_line_argument=no
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7956 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7958 CFLAGS="$xorg_testset_save_CFLAGS"
7959 fi
7960
7961 found="no"
7962
7963 if test $found = "no" ; then
7964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966 fi
7967
7968 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7970 fi
7971
7972 CFLAGS="$CFLAGS -Werror=write-strings"
7973
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7975 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7976 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7977 if eval \${$cacheid+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 int i;
7983 int
7984 main ()
7985 {
7986
7987 ;
7988 return 0;
7989 }
7990 _ACEOF
7991 if ac_fn_c_try_link "$LINENO"; then :
7992 eval $cacheid=yes
7993 else
7994 eval $cacheid=no
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7998 fi
7999
8000
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002
8003 eval supported=\$$cacheid
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8005 $as_echo "$supported" >&6; }
8006 if test "$supported" = "yes" ; then
8007 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8008 found="yes"
8009 fi
8010 fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 xorg_testset_save_CFLAGS="$CFLAGS"
8027
8028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8031 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8032 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 int i;
8038 _ACEOF
8039 if ac_fn_c_try_compile "$LINENO"; then :
8040 xorg_cv_cc_flag_unknown_warning_option=yes
8041 else
8042 xorg_cv_cc_flag_unknown_warning_option=no
8043 fi
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 fi
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8047 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8049 CFLAGS="$xorg_testset_save_CFLAGS"
8050 fi
8051
8052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8055 fi
8056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8058 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8059 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 int i;
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 xorg_cv_cc_flag_unused_command_line_argument=yes
8068 else
8069 xorg_cv_cc_flag_unused_command_line_argument=no
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 fi
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8074 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8076 CFLAGS="$xorg_testset_save_CFLAGS"
8077 fi
8078
8079 found="no"
8080
8081 if test $found = "no" ; then
8082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 fi
8085
8086 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8088 fi
8089
8090 CFLAGS="$CFLAGS -Werror=address"
8091
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8093 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8094 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8095 if eval \${$cacheid+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 int i;
8101 int
8102 main ()
8103 {
8104
8105 ;
8106 return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"; then :
8110 eval $cacheid=yes
8111 else
8112 eval $cacheid=no
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116 fi
8117
8118
8119 CFLAGS="$xorg_testset_save_CFLAGS"
8120
8121 eval supported=\$$cacheid
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8123 $as_echo "$supported" >&6; }
8124 if test "$supported" = "yes" ; then
8125 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8126 found="yes"
8127 fi
8128 fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144 xorg_testset_save_CFLAGS="$CFLAGS"
8145
8146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8149 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8150 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8155 int i;
8156 _ACEOF
8157 if ac_fn_c_try_compile "$LINENO"; then :
8158 xorg_cv_cc_flag_unknown_warning_option=yes
8159 else
8160 xorg_cv_cc_flag_unknown_warning_option=no
8161 fi
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8165 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8167 CFLAGS="$xorg_testset_save_CFLAGS"
8168 fi
8169
8170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8173 fi
8174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8176 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8177 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 int i;
8183 _ACEOF
8184 if ac_fn_c_try_compile "$LINENO"; then :
8185 xorg_cv_cc_flag_unused_command_line_argument=yes
8186 else
8187 xorg_cv_cc_flag_unused_command_line_argument=no
8188 fi
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8192 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8194 CFLAGS="$xorg_testset_save_CFLAGS"
8195 fi
8196
8197 found="no"
8198
8199 if test $found = "no" ; then
8200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202 fi
8203
8204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8206 fi
8207
8208 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8209
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8211 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8212 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8213 if eval \${$cacheid+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 int i;
8219 int
8220 main ()
8221 {
8222
8223 ;
8224 return 0;
8225 }
8226 _ACEOF
8227 if ac_fn_c_try_link "$LINENO"; then :
8228 eval $cacheid=yes
8229 else
8230 eval $cacheid=no
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 fi
8235
8236
8237 CFLAGS="$xorg_testset_save_CFLAGS"
8238
8239 eval supported=\$$cacheid
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8241 $as_echo "$supported" >&6; }
8242 if test "$supported" = "yes" ; then
8243 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8244 found="yes"
8245 fi
8246 fi
8247
8248 if test $found = "no" ; then
8249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8251 fi
8252
8253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8255 fi
8256
8257 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8258
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8260 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8261 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8262 if eval \${$cacheid+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 int i;
8268 int
8269 main ()
8270 {
8271
8272 ;
8273 return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277 eval $cacheid=yes
8278 else
8279 eval $cacheid=no
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 fi
8284
8285
8286 CFLAGS="$xorg_testset_save_CFLAGS"
8287
8288 eval supported=\$$cacheid
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8290 $as_echo "$supported" >&6; }
8291 if test "$supported" = "yes" ; then
8292 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8293 found="yes"
8294 fi
8295 fi
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311 xorg_testset_save_CFLAGS="$CFLAGS"
8312
8313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8316 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8317 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 int i;
8323 _ACEOF
8324 if ac_fn_c_try_compile "$LINENO"; then :
8325 xorg_cv_cc_flag_unknown_warning_option=yes
8326 else
8327 xorg_cv_cc_flag_unknown_warning_option=no
8328 fi
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8332 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8334 CFLAGS="$xorg_testset_save_CFLAGS"
8335 fi
8336
8337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8340 fi
8341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8343 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8344 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 int i;
8350 _ACEOF
8351 if ac_fn_c_try_compile "$LINENO"; then :
8352 xorg_cv_cc_flag_unused_command_line_argument=yes
8353 else
8354 xorg_cv_cc_flag_unused_command_line_argument=no
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8359 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8361 CFLAGS="$xorg_testset_save_CFLAGS"
8362 fi
8363
8364 found="no"
8365
8366 if test $found = "no" ; then
8367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369 fi
8370
8371 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8373 fi
8374
8375 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8376
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8378 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8379 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8380 if eval \${$cacheid+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 int i;
8386 int
8387 main ()
8388 {
8389
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 if ac_fn_c_try_link "$LINENO"; then :
8395 eval $cacheid=yes
8396 else
8397 eval $cacheid=no
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 fi
8402
8403
8404 CFLAGS="$xorg_testset_save_CFLAGS"
8405
8406 eval supported=\$$cacheid
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8408 $as_echo "$supported" >&6; }
8409 if test "$supported" = "yes" ; then
8410 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8411 found="yes"
8412 fi
8413 fi
8414
8415 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8416 else
8417 { $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
8418 $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;}
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432 xorg_testset_save_CFLAGS="$CFLAGS"
8433
8434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 int i;
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 xorg_cv_cc_flag_unknown_warning_option=yes
8447 else
8448 xorg_cv_cc_flag_unknown_warning_option=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8455 CFLAGS="$xorg_testset_save_CFLAGS"
8456 fi
8457
8458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461 fi
8462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 int i;
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 xorg_cv_cc_flag_unused_command_line_argument=yes
8474 else
8475 xorg_cv_cc_flag_unused_command_line_argument=no
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8482 CFLAGS="$xorg_testset_save_CFLAGS"
8483 fi
8484
8485 found="no"
8486
8487 if test $found = "no" ; then
8488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490 fi
8491
8492 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8494 fi
8495
8496 CFLAGS="$CFLAGS -Wimplicit"
8497
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8499 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8500 cacheid=xorg_cv_cc_flag__Wimplicit
8501 if eval \${$cacheid+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 int i;
8507 int
8508 main ()
8509 {
8510
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_link "$LINENO"; then :
8516 eval $cacheid=yes
8517 else
8518 eval $cacheid=no
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8522 fi
8523
8524
8525 CFLAGS="$xorg_testset_save_CFLAGS"
8526
8527 eval supported=\$$cacheid
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8529 $as_echo "$supported" >&6; }
8530 if test "$supported" = "yes" ; then
8531 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8532 found="yes"
8533 fi
8534 fi
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550 xorg_testset_save_CFLAGS="$CFLAGS"
8551
8552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 int i;
8562 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564 xorg_cv_cc_flag_unknown_warning_option=yes
8565 else
8566 xorg_cv_cc_flag_unknown_warning_option=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8573 CFLAGS="$xorg_testset_save_CFLAGS"
8574 fi
8575
8576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579 fi
8580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8588 int i;
8589 _ACEOF
8590 if ac_fn_c_try_compile "$LINENO"; then :
8591 xorg_cv_cc_flag_unused_command_line_argument=yes
8592 else
8593 xorg_cv_cc_flag_unused_command_line_argument=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8600 CFLAGS="$xorg_testset_save_CFLAGS"
8601 fi
8602
8603 found="no"
8604
8605 if test $found = "no" ; then
8606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608 fi
8609
8610 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612 fi
8613
8614 CFLAGS="$CFLAGS -Wnonnull"
8615
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8617 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8618 cacheid=xorg_cv_cc_flag__Wnonnull
8619 if eval \${$cacheid+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 int i;
8625 int
8626 main ()
8627 {
8628
8629 ;
8630 return 0;
8631 }
8632 _ACEOF
8633 if ac_fn_c_try_link "$LINENO"; then :
8634 eval $cacheid=yes
8635 else
8636 eval $cacheid=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 fi
8641
8642
8643 CFLAGS="$xorg_testset_save_CFLAGS"
8644
8645 eval supported=\$$cacheid
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8647 $as_echo "$supported" >&6; }
8648 if test "$supported" = "yes" ; then
8649 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8650 found="yes"
8651 fi
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668 xorg_testset_save_CFLAGS="$CFLAGS"
8669
8670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 int i;
8680 _ACEOF
8681 if ac_fn_c_try_compile "$LINENO"; then :
8682 xorg_cv_cc_flag_unknown_warning_option=yes
8683 else
8684 xorg_cv_cc_flag_unknown_warning_option=no
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 fi
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8691 CFLAGS="$xorg_testset_save_CFLAGS"
8692 fi
8693
8694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697 fi
8698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8702 $as_echo_n "(cached) " >&6
8703 else
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706 int i;
8707 _ACEOF
8708 if ac_fn_c_try_compile "$LINENO"; then :
8709 xorg_cv_cc_flag_unused_command_line_argument=yes
8710 else
8711 xorg_cv_cc_flag_unused_command_line_argument=no
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8718 CFLAGS="$xorg_testset_save_CFLAGS"
8719 fi
8720
8721 found="no"
8722
8723 if test $found = "no" ; then
8724 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 fi
8727
8728 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8730 fi
8731
8732 CFLAGS="$CFLAGS -Winit-self"
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8735 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8736 cacheid=xorg_cv_cc_flag__Winit_self
8737 if eval \${$cacheid+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 int i;
8743 int
8744 main ()
8745 {
8746
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 if ac_fn_c_try_link "$LINENO"; then :
8752 eval $cacheid=yes
8753 else
8754 eval $cacheid=no
8755 fi
8756 rm -f core conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
8758 fi
8759
8760
8761 CFLAGS="$xorg_testset_save_CFLAGS"
8762
8763 eval supported=\$$cacheid
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8765 $as_echo "$supported" >&6; }
8766 if test "$supported" = "yes" ; then
8767 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8768 found="yes"
8769 fi
8770 fi
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786 xorg_testset_save_CFLAGS="$CFLAGS"
8787
8788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8792 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8797 int i;
8798 _ACEOF
8799 if ac_fn_c_try_compile "$LINENO"; then :
8800 xorg_cv_cc_flag_unknown_warning_option=yes
8801 else
8802 xorg_cv_cc_flag_unknown_warning_option=no
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8807 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8809 CFLAGS="$xorg_testset_save_CFLAGS"
8810 fi
8811
8812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8815 fi
8816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8818 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8819 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824 int i;
8825 _ACEOF
8826 if ac_fn_c_try_compile "$LINENO"; then :
8827 xorg_cv_cc_flag_unused_command_line_argument=yes
8828 else
8829 xorg_cv_cc_flag_unused_command_line_argument=no
8830 fi
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8834 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8836 CFLAGS="$xorg_testset_save_CFLAGS"
8837 fi
8838
8839 found="no"
8840
8841 if test $found = "no" ; then
8842 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844 fi
8845
8846 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8848 fi
8849
8850 CFLAGS="$CFLAGS -Wmain"
8851
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8853 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8854 cacheid=xorg_cv_cc_flag__Wmain
8855 if eval \${$cacheid+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 int i;
8861 int
8862 main ()
8863 {
8864
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 if ac_fn_c_try_link "$LINENO"; then :
8870 eval $cacheid=yes
8871 else
8872 eval $cacheid=no
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
8876 fi
8877
8878
8879 CFLAGS="$xorg_testset_save_CFLAGS"
8880
8881 eval supported=\$$cacheid
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8883 $as_echo "$supported" >&6; }
8884 if test "$supported" = "yes" ; then
8885 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8886 found="yes"
8887 fi
8888 fi
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904 xorg_testset_save_CFLAGS="$CFLAGS"
8905
8906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 int i;
8916 _ACEOF
8917 if ac_fn_c_try_compile "$LINENO"; then :
8918 xorg_cv_cc_flag_unknown_warning_option=yes
8919 else
8920 xorg_cv_cc_flag_unknown_warning_option=no
8921 fi
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8927 CFLAGS="$xorg_testset_save_CFLAGS"
8928 fi
8929
8930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8933 fi
8934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 int i;
8943 _ACEOF
8944 if ac_fn_c_try_compile "$LINENO"; then :
8945 xorg_cv_cc_flag_unused_command_line_argument=yes
8946 else
8947 xorg_cv_cc_flag_unused_command_line_argument=no
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8954 CFLAGS="$xorg_testset_save_CFLAGS"
8955 fi
8956
8957 found="no"
8958
8959 if test $found = "no" ; then
8960 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962 fi
8963
8964 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8966 fi
8967
8968 CFLAGS="$CFLAGS -Wmissing-braces"
8969
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8971 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8972 cacheid=xorg_cv_cc_flag__Wmissing_braces
8973 if eval \${$cacheid+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 int
8980 main ()
8981 {
8982
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 eval $cacheid=yes
8989 else
8990 eval $cacheid=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 fi
8995
8996
8997 CFLAGS="$xorg_testset_save_CFLAGS"
8998
8999 eval supported=\$$cacheid
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9001 $as_echo "$supported" >&6; }
9002 if test "$supported" = "yes" ; then
9003 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9004 found="yes"
9005 fi
9006 fi
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022 xorg_testset_save_CFLAGS="$CFLAGS"
9023
9024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033 int i;
9034 _ACEOF
9035 if ac_fn_c_try_compile "$LINENO"; then :
9036 xorg_cv_cc_flag_unknown_warning_option=yes
9037 else
9038 xorg_cv_cc_flag_unknown_warning_option=no
9039 fi
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9045 CFLAGS="$xorg_testset_save_CFLAGS"
9046 fi
9047
9048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9051 fi
9052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 int i;
9061 _ACEOF
9062 if ac_fn_c_try_compile "$LINENO"; then :
9063 xorg_cv_cc_flag_unused_command_line_argument=yes
9064 else
9065 xorg_cv_cc_flag_unused_command_line_argument=no
9066 fi
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9072 CFLAGS="$xorg_testset_save_CFLAGS"
9073 fi
9074
9075 found="no"
9076
9077 if test $found = "no" ; then
9078 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 fi
9081
9082 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9084 fi
9085
9086 CFLAGS="$CFLAGS -Wsequence-point"
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9089 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9090 cacheid=xorg_cv_cc_flag__Wsequence_point
9091 if eval \${$cacheid+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int i;
9097 int
9098 main ()
9099 {
9100
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"; then :
9106 eval $cacheid=yes
9107 else
9108 eval $cacheid=no
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext conftest.$ac_ext
9112 fi
9113
9114
9115 CFLAGS="$xorg_testset_save_CFLAGS"
9116
9117 eval supported=\$$cacheid
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9119 $as_echo "$supported" >&6; }
9120 if test "$supported" = "yes" ; then
9121 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9122 found="yes"
9123 fi
9124 fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140 xorg_testset_save_CFLAGS="$CFLAGS"
9141
9142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9145 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9146 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148 else
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 int i;
9152 _ACEOF
9153 if ac_fn_c_try_compile "$LINENO"; then :
9154 xorg_cv_cc_flag_unknown_warning_option=yes
9155 else
9156 xorg_cv_cc_flag_unknown_warning_option=no
9157 fi
9158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9159 fi
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9161 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9163 CFLAGS="$xorg_testset_save_CFLAGS"
9164 fi
9165
9166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9169 fi
9170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9172 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9173 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 int i;
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"; then :
9181 xorg_cv_cc_flag_unused_command_line_argument=yes
9182 else
9183 xorg_cv_cc_flag_unused_command_line_argument=no
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9188 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9190 CFLAGS="$xorg_testset_save_CFLAGS"
9191 fi
9192
9193 found="no"
9194
9195 if test $found = "no" ; then
9196 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198 fi
9199
9200 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9202 fi
9203
9204 CFLAGS="$CFLAGS -Wreturn-type"
9205
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9207 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9208 cacheid=xorg_cv_cc_flag__Wreturn_type
9209 if eval \${$cacheid+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 int i;
9215 int
9216 main ()
9217 {
9218
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 if ac_fn_c_try_link "$LINENO"; then :
9224 eval $cacheid=yes
9225 else
9226 eval $cacheid=no
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230 fi
9231
9232
9233 CFLAGS="$xorg_testset_save_CFLAGS"
9234
9235 eval supported=\$$cacheid
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9237 $as_echo "$supported" >&6; }
9238 if test "$supported" = "yes" ; then
9239 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9240 found="yes"
9241 fi
9242 fi
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258 xorg_testset_save_CFLAGS="$CFLAGS"
9259
9260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9263 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9264 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 int i;
9270 _ACEOF
9271 if ac_fn_c_try_compile "$LINENO"; then :
9272 xorg_cv_cc_flag_unknown_warning_option=yes
9273 else
9274 xorg_cv_cc_flag_unknown_warning_option=no
9275 fi
9276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9279 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9281 CFLAGS="$xorg_testset_save_CFLAGS"
9282 fi
9283
9284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9287 fi
9288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9290 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9291 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9296 int i;
9297 _ACEOF
9298 if ac_fn_c_try_compile "$LINENO"; then :
9299 xorg_cv_cc_flag_unused_command_line_argument=yes
9300 else
9301 xorg_cv_cc_flag_unused_command_line_argument=no
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 fi
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9306 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9308 CFLAGS="$xorg_testset_save_CFLAGS"
9309 fi
9310
9311 found="no"
9312
9313 if test $found = "no" ; then
9314 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 fi
9317
9318 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9320 fi
9321
9322 CFLAGS="$CFLAGS -Wtrigraphs"
9323
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9325 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9326 cacheid=xorg_cv_cc_flag__Wtrigraphs
9327 if eval \${$cacheid+:} false; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 int i;
9333 int
9334 main ()
9335 {
9336
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_link "$LINENO"; then :
9342 eval $cacheid=yes
9343 else
9344 eval $cacheid=no
9345 fi
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 fi
9349
9350
9351 CFLAGS="$xorg_testset_save_CFLAGS"
9352
9353 eval supported=\$$cacheid
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9355 $as_echo "$supported" >&6; }
9356 if test "$supported" = "yes" ; then
9357 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9358 found="yes"
9359 fi
9360 fi
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376 xorg_testset_save_CFLAGS="$CFLAGS"
9377
9378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9381 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9382 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 int i;
9388 _ACEOF
9389 if ac_fn_c_try_compile "$LINENO"; then :
9390 xorg_cv_cc_flag_unknown_warning_option=yes
9391 else
9392 xorg_cv_cc_flag_unknown_warning_option=no
9393 fi
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 fi
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9397 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9399 CFLAGS="$xorg_testset_save_CFLAGS"
9400 fi
9401
9402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9405 fi
9406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9408 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9409 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9410 $as_echo_n "(cached) " >&6
9411 else
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 int i;
9415 _ACEOF
9416 if ac_fn_c_try_compile "$LINENO"; then :
9417 xorg_cv_cc_flag_unused_command_line_argument=yes
9418 else
9419 xorg_cv_cc_flag_unused_command_line_argument=no
9420 fi
9421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9424 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9426 CFLAGS="$xorg_testset_save_CFLAGS"
9427 fi
9428
9429 found="no"
9430
9431 if test $found = "no" ; then
9432 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434 fi
9435
9436 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9438 fi
9439
9440 CFLAGS="$CFLAGS -Warray-bounds"
9441
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9443 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9444 cacheid=xorg_cv_cc_flag__Warray_bounds
9445 if eval \${$cacheid+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 int i;
9451 int
9452 main ()
9453 {
9454
9455 ;
9456 return 0;
9457 }
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460 eval $cacheid=yes
9461 else
9462 eval $cacheid=no
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 fi
9467
9468
9469 CFLAGS="$xorg_testset_save_CFLAGS"
9470
9471 eval supported=\$$cacheid
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9473 $as_echo "$supported" >&6; }
9474 if test "$supported" = "yes" ; then
9475 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9476 found="yes"
9477 fi
9478 fi
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494 xorg_testset_save_CFLAGS="$CFLAGS"
9495
9496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9499 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9500 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 int i;
9506 _ACEOF
9507 if ac_fn_c_try_compile "$LINENO"; then :
9508 xorg_cv_cc_flag_unknown_warning_option=yes
9509 else
9510 xorg_cv_cc_flag_unknown_warning_option=no
9511 fi
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 fi
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9515 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9517 CFLAGS="$xorg_testset_save_CFLAGS"
9518 fi
9519
9520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523 fi
9524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9526 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9527 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
9534 if ac_fn_c_try_compile "$LINENO"; then :
9535 xorg_cv_cc_flag_unused_command_line_argument=yes
9536 else
9537 xorg_cv_cc_flag_unused_command_line_argument=no
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540 fi
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9542 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9544 CFLAGS="$xorg_testset_save_CFLAGS"
9545 fi
9546
9547 found="no"
9548
9549 if test $found = "no" ; then
9550 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 fi
9553
9554 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9556 fi
9557
9558 CFLAGS="$CFLAGS -Wwrite-strings"
9559
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9561 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9562 cacheid=xorg_cv_cc_flag__Wwrite_strings
9563 if eval \${$cacheid+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 int i;
9569 int
9570 main ()
9571 {
9572
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 if ac_fn_c_try_link "$LINENO"; then :
9578 eval $cacheid=yes
9579 else
9580 eval $cacheid=no
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 fi
9585
9586
9587 CFLAGS="$xorg_testset_save_CFLAGS"
9588
9589 eval supported=\$$cacheid
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9591 $as_echo "$supported" >&6; }
9592 if test "$supported" = "yes" ; then
9593 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9594 found="yes"
9595 fi
9596 fi
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612 xorg_testset_save_CFLAGS="$CFLAGS"
9613
9614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9617 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9618 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 int i;
9624 _ACEOF
9625 if ac_fn_c_try_compile "$LINENO"; then :
9626 xorg_cv_cc_flag_unknown_warning_option=yes
9627 else
9628 xorg_cv_cc_flag_unknown_warning_option=no
9629 fi
9630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635 CFLAGS="$xorg_testset_save_CFLAGS"
9636 fi
9637
9638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641 fi
9642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 int i;
9651 _ACEOF
9652 if ac_fn_c_try_compile "$LINENO"; then :
9653 xorg_cv_cc_flag_unused_command_line_argument=yes
9654 else
9655 xorg_cv_cc_flag_unused_command_line_argument=no
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9660 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9662 CFLAGS="$xorg_testset_save_CFLAGS"
9663 fi
9664
9665 found="no"
9666
9667 if test $found = "no" ; then
9668 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670 fi
9671
9672 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9674 fi
9675
9676 CFLAGS="$CFLAGS -Waddress"
9677
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9679 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9680 cacheid=xorg_cv_cc_flag__Waddress
9681 if eval \${$cacheid+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 int i;
9687 int
9688 main ()
9689 {
9690
9691 ;
9692 return 0;
9693 }
9694 _ACEOF
9695 if ac_fn_c_try_link "$LINENO"; then :
9696 eval $cacheid=yes
9697 else
9698 eval $cacheid=no
9699 fi
9700 rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 fi
9703
9704
9705 CFLAGS="$xorg_testset_save_CFLAGS"
9706
9707 eval supported=\$$cacheid
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9709 $as_echo "$supported" >&6; }
9710 if test "$supported" = "yes" ; then
9711 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9712 found="yes"
9713 fi
9714 fi
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730 xorg_testset_save_CFLAGS="$CFLAGS"
9731
9732 if test "x$xorg_testset_cc_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_cc_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_cc_unused_command_line_argument" = "x" ; then
9757 if test "x$xorg_testset_cc_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_cc_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 -Wint-to-pointer-cast"
9795
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9797 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9798 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9799 if eval \${$cacheid+:} 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 $cacheid=yes
9815 else
9816 eval $cacheid=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=\$$cacheid
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9827 $as_echo "$supported" >&6; }
9828 if test "$supported" = "yes" ; then
9829 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9830 found="yes"
9831 fi
9832 fi
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848 xorg_testset_save_CFLAGS="$CFLAGS"
9849
9850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9859 int i;
9860 _ACEOF
9861 if ac_fn_c_try_compile "$LINENO"; then :
9862 xorg_cv_cc_flag_unknown_warning_option=yes
9863 else
9864 xorg_cv_cc_flag_unknown_warning_option=no
9865 fi
9866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867 fi
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9871 CFLAGS="$xorg_testset_save_CFLAGS"
9872 fi
9873
9874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877 fi
9878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886 int i;
9887 _ACEOF
9888 if ac_fn_c_try_compile "$LINENO"; then :
9889 xorg_cv_cc_flag_unused_command_line_argument=yes
9890 else
9891 xorg_cv_cc_flag_unused_command_line_argument=no
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 fi
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9898 CFLAGS="$xorg_testset_save_CFLAGS"
9899 fi
9900
9901 found="no"
9902
9903 if test $found = "no" ; then
9904 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 fi
9907
9908 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9910 fi
9911
9912 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9913
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9915 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9916 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9917 if eval \${$cacheid+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int i;
9923 int
9924 main ()
9925 {
9926
9927 ;
9928 return 0;
9929 }
9930 _ACEOF
9931 if ac_fn_c_try_link "$LINENO"; then :
9932 eval $cacheid=yes
9933 else
9934 eval $cacheid=no
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938 fi
9939
9940
9941 CFLAGS="$xorg_testset_save_CFLAGS"
9942
9943 eval supported=\$$cacheid
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9945 $as_echo "$supported" >&6; }
9946 if test "$supported" = "yes" ; then
9947 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9948 found="yes"
9949 fi
9950 fi
9951
9952
9953 fi
9954
9955
9956
9957
9958
9959
9960
9961 CWARNFLAGS="$BASE_CFLAGS"
9962 if test "x$GCC" = xyes ; then
9963 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9964 fi
9965
9966
9967
9968
9969
9970
9971
9972
9973 # Check whether --enable-strict-compilation was given.
9974 if test "${enable_strict_compilation+set}" = set; then :
9975 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9976 else
9977 STRICT_COMPILE=no
9978 fi
9979
9980
9981
9982
9983
9984
9985 STRICT_CFLAGS=""
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999 xorg_testset_save_CFLAGS="$CFLAGS"
10000
10001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10004 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10005 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010 int i;
10011 _ACEOF
10012 if ac_fn_c_try_compile "$LINENO"; then :
10013 xorg_cv_cc_flag_unknown_warning_option=yes
10014 else
10015 xorg_cv_cc_flag_unknown_warning_option=no
10016 fi
10017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018 fi
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10020 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10022 CFLAGS="$xorg_testset_save_CFLAGS"
10023 fi
10024
10025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10028 fi
10029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10031 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10032 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037 int i;
10038 _ACEOF
10039 if ac_fn_c_try_compile "$LINENO"; then :
10040 xorg_cv_cc_flag_unused_command_line_argument=yes
10041 else
10042 xorg_cv_cc_flag_unused_command_line_argument=no
10043 fi
10044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045 fi
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10047 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10049 CFLAGS="$xorg_testset_save_CFLAGS"
10050 fi
10051
10052 found="no"
10053
10054 if test $found = "no" ; then
10055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057 fi
10058
10059 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10061 fi
10062
10063 CFLAGS="$CFLAGS -pedantic"
10064
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10066 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10067 cacheid=xorg_cv_cc_flag__pedantic
10068 if eval \${$cacheid+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073 int i;
10074 int
10075 main ()
10076 {
10077
10078 ;
10079 return 0;
10080 }
10081 _ACEOF
10082 if ac_fn_c_try_link "$LINENO"; then :
10083 eval $cacheid=yes
10084 else
10085 eval $cacheid=no
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
10089 fi
10090
10091
10092 CFLAGS="$xorg_testset_save_CFLAGS"
10093
10094 eval supported=\$$cacheid
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10096 $as_echo "$supported" >&6; }
10097 if test "$supported" = "yes" ; then
10098 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10099 found="yes"
10100 fi
10101 fi
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117 xorg_testset_save_CFLAGS="$CFLAGS"
10118
10119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 int i;
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"; then :
10131 xorg_cv_cc_flag_unknown_warning_option=yes
10132 else
10133 xorg_cv_cc_flag_unknown_warning_option=no
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10140 CFLAGS="$xorg_testset_save_CFLAGS"
10141 fi
10142
10143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10146 fi
10147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10155 int i;
10156 _ACEOF
10157 if ac_fn_c_try_compile "$LINENO"; then :
10158 xorg_cv_cc_flag_unused_command_line_argument=yes
10159 else
10160 xorg_cv_cc_flag_unused_command_line_argument=no
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10167 CFLAGS="$xorg_testset_save_CFLAGS"
10168 fi
10169
10170 found="no"
10171
10172 if test $found = "no" ; then
10173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 fi
10176
10177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10179 fi
10180
10181 CFLAGS="$CFLAGS -Werror"
10182
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10184 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10185 cacheid=xorg_cv_cc_flag__Werror
10186 if eval \${$cacheid+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 int i;
10192 int
10193 main ()
10194 {
10195
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 if ac_fn_c_try_link "$LINENO"; then :
10201 eval $cacheid=yes
10202 else
10203 eval $cacheid=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10207 fi
10208
10209
10210 CFLAGS="$xorg_testset_save_CFLAGS"
10211
10212 eval supported=\$$cacheid
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10214 $as_echo "$supported" >&6; }
10215 if test "$supported" = "yes" ; then
10216 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10217 found="yes"
10218 fi
10219 fi
10220
10221 if test $found = "no" ; then
10222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224 fi
10225
10226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10228 fi
10229
10230 CFLAGS="$CFLAGS -errwarn"
10231
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10233 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10234 cacheid=xorg_cv_cc_flag__errwarn
10235 if eval \${$cacheid+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 int i;
10241 int
10242 main ()
10243 {
10244
10245 ;
10246 return 0;
10247 }
10248 _ACEOF
10249 if ac_fn_c_try_link "$LINENO"; then :
10250 eval $cacheid=yes
10251 else
10252 eval $cacheid=no
10253 fi
10254 rm -f core conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10256 fi
10257
10258
10259 CFLAGS="$xorg_testset_save_CFLAGS"
10260
10261 eval supported=\$$cacheid
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10263 $as_echo "$supported" >&6; }
10264 if test "$supported" = "yes" ; then
10265 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10266 found="yes"
10267 fi
10268 fi
10269
10270
10271
10272 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10273 # activate it with -Werror, so we add it here explicitly.
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287 xorg_testset_save_CFLAGS="$CFLAGS"
10288
10289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 int i;
10299 _ACEOF
10300 if ac_fn_c_try_compile "$LINENO"; then :
10301 xorg_cv_cc_flag_unknown_warning_option=yes
10302 else
10303 xorg_cv_cc_flag_unknown_warning_option=no
10304 fi
10305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10306 fi
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10310 CFLAGS="$xorg_testset_save_CFLAGS"
10311 fi
10312
10313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10316 fi
10317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 int i;
10326 _ACEOF
10327 if ac_fn_c_try_compile "$LINENO"; then :
10328 xorg_cv_cc_flag_unused_command_line_argument=yes
10329 else
10330 xorg_cv_cc_flag_unused_command_line_argument=no
10331 fi
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333 fi
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10337 CFLAGS="$xorg_testset_save_CFLAGS"
10338 fi
10339
10340 found="no"
10341
10342 if test $found = "no" ; then
10343 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345 fi
10346
10347 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10349 fi
10350
10351 CFLAGS="$CFLAGS -Werror=attributes"
10352
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10354 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10355 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10356 if eval \${$cacheid+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 int i;
10362 int
10363 main ()
10364 {
10365
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10371 eval $cacheid=yes
10372 else
10373 eval $cacheid=no
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext \
10376 conftest$ac_exeext conftest.$ac_ext
10377 fi
10378
10379
10380 CFLAGS="$xorg_testset_save_CFLAGS"
10381
10382 eval supported=\$$cacheid
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10384 $as_echo "$supported" >&6; }
10385 if test "$supported" = "yes" ; then
10386 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10387 found="yes"
10388 fi
10389 fi
10390
10391
10392
10393 if test "x$STRICT_COMPILE" = "xyes"; then
10394 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10395 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10396 fi
10397
10398
10399
10400
10401
10402
10403 cat >>confdefs.h <<_ACEOF
10404 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10405 _ACEOF
10406
10407 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10408 if test "x$PVM" = "x"; then
10409 PVM="0"
10410 fi
10411
10412 cat >>confdefs.h <<_ACEOF
10413 #define PACKAGE_VERSION_MINOR $PVM
10414 _ACEOF
10415
10416 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10417 if test "x$PVP" = "x"; then
10418 PVP="0"
10419 fi
10420
10421 cat >>confdefs.h <<_ACEOF
10422 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10423 _ACEOF
10424
10425
10426
10427 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10428 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10429 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10430 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10431
10432
10433
10434
10435 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10436 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10437 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10438 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10439 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10440
10441
10442
10443
10444
10445
10446 if test x$APP_MAN_SUFFIX = x ; then
10447 APP_MAN_SUFFIX=1
10448 fi
10449 if test x$APP_MAN_DIR = x ; then
10450 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10451 fi
10452
10453 if test x$LIB_MAN_SUFFIX = x ; then
10454 LIB_MAN_SUFFIX=3
10455 fi
10456 if test x$LIB_MAN_DIR = x ; then
10457 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10458 fi
10459
10460 if test x$FILE_MAN_SUFFIX = x ; then
10461 case $host_os in
10462 solaris*) FILE_MAN_SUFFIX=4 ;;
10463 *) FILE_MAN_SUFFIX=5 ;;
10464 esac
10465 fi
10466 if test x$FILE_MAN_DIR = x ; then
10467 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10468 fi
10469
10470 if test x$MISC_MAN_SUFFIX = x ; then
10471 case $host_os in
10472 solaris*) MISC_MAN_SUFFIX=5 ;;
10473 *) MISC_MAN_SUFFIX=7 ;;
10474 esac
10475 fi
10476 if test x$MISC_MAN_DIR = x ; then
10477 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10478 fi
10479
10480 if test x$DRIVER_MAN_SUFFIX = x ; then
10481 case $host_os in
10482 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10483 *) DRIVER_MAN_SUFFIX=4 ;;
10484 esac
10485 fi
10486 if test x$DRIVER_MAN_DIR = x ; then
10487 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10488 fi
10489
10490 if test x$ADMIN_MAN_SUFFIX = x ; then
10491 case $host_os in
10492 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10493 *) ADMIN_MAN_SUFFIX=8 ;;
10494 esac
10495 fi
10496 if test x$ADMIN_MAN_DIR = x ; then
10497 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10498 fi
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514 XORG_MAN_PAGE="X Version 11"
10515
10516 MAN_SUBSTS="\
10517 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10518 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10519 -e 's|__xservername__|Xorg|g' \
10520 -e 's|__xconfigfile__|xorg.conf|g' \
10521 -e 's|__projectroot__|\$(prefix)|g' \
10522 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10523 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10524 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10525 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10526 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10527 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10528 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10529
10530
10531
10532 # Check whether --enable-silent-rules was given.
10533 if test "${enable_silent_rules+set}" = set; then :
10534 enableval=$enable_silent_rules;
10535 fi
10536
10537 case $enable_silent_rules in # (((
10538 yes) AM_DEFAULT_VERBOSITY=0;;
10539 no) AM_DEFAULT_VERBOSITY=1;;
10540 *) AM_DEFAULT_VERBOSITY=0;;
10541 esac
10542 am_make=${MAKE-make}
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10544 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10545 if ${am_cv_make_support_nested_variables+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 if $as_echo 'TRUE=$(BAR$(V))
10549 BAR0=false
10550 BAR1=true
10551 V=1
10552 am__doit:
10553 @$(TRUE)
10554 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10555 am_cv_make_support_nested_variables=yes
10556 else
10557 am_cv_make_support_nested_variables=no
10558 fi
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10561 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10562 if test $am_cv_make_support_nested_variables = yes; then
10563 AM_V='$(V)'
10564 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10565 else
10566 AM_V=$AM_DEFAULT_VERBOSITY
10567 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10568 fi
10569 AM_BACKSLASH='\'
10570
10571
10572
10573 # Internationalization & localization support
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
10575 $as_echo_n "checking for library containing gettext... " >&6; }
10576 if ${ac_cv_search_gettext+:} false; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 ac_func_search_save_LIBS=$LIBS
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582
10583 /* Override any GCC internal prototype to avoid an error.
10584 Use char because int might match the return type of a GCC
10585 builtin and then its argument prototype would still apply. */
10586 #ifdef __cplusplus
10587 extern "C"
10588 #endif
10589 char gettext ();
10590 int
10591 main ()
10592 {
10593 return gettext ();
10594 ;
10595 return 0;
10596 }
10597 _ACEOF
10598 for ac_lib in '' intl; do
10599 if test -z "$ac_lib"; then
10600 ac_res="none required"
10601 else
10602 ac_res=-l$ac_lib
10603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10604 fi
10605 if ac_fn_c_try_link "$LINENO"; then :
10606 ac_cv_search_gettext=$ac_res
10607 fi
10608 rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext
10610 if ${ac_cv_search_gettext+:} false; then :
10611 break
10612 fi
10613 done
10614 if ${ac_cv_search_gettext+:} false; then :
10615
10616 else
10617 ac_cv_search_gettext=no
10618 fi
10619 rm conftest.$ac_ext
10620 LIBS=$ac_func_search_save_LIBS
10621 fi
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
10623 $as_echo "$ac_cv_search_gettext" >&6; }
10624 ac_res=$ac_cv_search_gettext
10625 if test "$ac_res" != no; then :
10626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10627 USE_GETTEXT="yes"
10628 else
10629 USE_GETTEXT="no"
10630 fi
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
10633 $as_echo_n "checking where to install localized messages... " >&6; }
10634
10635 # Check whether --with-localedir was given.
10636 if test "${with_localedir+set}" = set; then :
10637 withval=$with_localedir; LOCALEDIR=${withval}
10638 else
10639 LOCALEDIR=${datadir}/locale
10640 fi
10641
10642
10643 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
10645 $as_echo "nowhere" >&6; }
10646 USE_GETTEXT="no"
10647 else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
10649 $as_echo "$LOCALEDIR" >&6; }
10650 fi
10651
10652 if test "x$USE_GETTEXT" = "xyes" ; then
10653
10654 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
10655
10656 fi
10657 if test "x$USE_GETTEXT" = "xyes"; then
10658 USE_GETTEXT_TRUE=
10659 USE_GETTEXT_FALSE='#'
10660 else
10661 USE_GETTEXT_TRUE='#'
10662 USE_GETTEXT_FALSE=
10663 fi
10664
10665
10666 # Checks for pkg-config packages
10667
10668 pkg_failed=no
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFD" >&5
10670 $as_echo_n "checking for XFD... " >&6; }
10671
10672 if test -n "$XFD_CFLAGS"; then
10673 pkg_cv_XFD_CFLAGS="$XFD_CFLAGS"
10674 elif test -n "$PKG_CONFIG"; then
10675 if test -n "$PKG_CONFIG" && \
10676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.17\""; } >&5
10677 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17") 2>&5
10678 ac_status=$?
10679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10680 test $ac_status = 0; }; then
10681 pkg_cv_XFD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17" 2>/dev/null`
10682 else
10683 pkg_failed=yes
10684 fi
10685 else
10686 pkg_failed=untried
10687 fi
10688 if test -n "$XFD_LIBS"; then
10689 pkg_cv_XFD_LIBS="$XFD_LIBS"
10690 elif test -n "$PKG_CONFIG"; then
10691 if test -n "$PKG_CONFIG" && \
10692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.17\""; } >&5
10693 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17") 2>&5
10694 ac_status=$?
10695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10696 test $ac_status = 0; }; then
10697 pkg_cv_XFD_LIBS=`$PKG_CONFIG --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17" 2>/dev/null`
10698 else
10699 pkg_failed=yes
10700 fi
10701 else
10702 pkg_failed=untried
10703 fi
10704
10705
10706
10707 if test $pkg_failed = yes; then
10708
10709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10710 _pkg_short_errors_supported=yes
10711 else
10712 _pkg_short_errors_supported=no
10713 fi
10714 if test $_pkg_short_errors_supported = yes; then
10715 XFD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17" 2>&1`
10716 else
10717 XFD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17" 2>&1`
10718 fi
10719 # Put the nasty error message in config.log where it belongs
10720 echo "$XFD_PKG_ERRORS" >&5
10721
10722 as_fn_error $? "Package requirements (xaw7 fontconfig xft xrender xmu xproto >= 7.0.17) were not met:
10723
10724 $XFD_PKG_ERRORS
10725
10726 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10727 installed software in a non-standard prefix.
10728
10729 Alternatively, you may set the environment variables XFD_CFLAGS
10730 and XFD_LIBS to avoid the need to call pkg-config.
10731 See the pkg-config man page for more details.
10732 " "$LINENO" 5
10733 elif test $pkg_failed = untried; then
10734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10736 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10737 is in your PATH or set the PKG_CONFIG environment variable to the full
10738 path to pkg-config.
10739
10740 Alternatively, you may set the environment variables XFD_CFLAGS
10741 and XFD_LIBS to avoid the need to call pkg-config.
10742 See the pkg-config man page for more details.
10743
10744 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10745 See \`config.log' for more details" "$LINENO" 5; }
10746 else
10747 XFD_CFLAGS=$pkg_cv_XFD_CFLAGS
10748 XFD_LIBS=$pkg_cv_XFD_LIBS
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10750 $as_echo "yes" >&6; }
10751 :
10752 fi
10753
10754
10755 pkg_failed=no
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10757 $as_echo_n "checking for APPDEFS... " >&6; }
10758
10759 if test -n "$APPDEFS_CFLAGS"; then
10760 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10761 elif test -n "$PKG_CONFIG"; then
10762 if test -n "$PKG_CONFIG" && \
10763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10764 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10765 ac_status=$?
10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767 test $ac_status = 0; }; then
10768 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10769 else
10770 pkg_failed=yes
10771 fi
10772 else
10773 pkg_failed=untried
10774 fi
10775 if test -n "$APPDEFS_LIBS"; then
10776 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10777 elif test -n "$PKG_CONFIG"; then
10778 if test -n "$PKG_CONFIG" && \
10779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10780 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10781 ac_status=$?
10782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10783 test $ac_status = 0; }; then
10784 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10785 else
10786 pkg_failed=yes
10787 fi
10788 else
10789 pkg_failed=untried
10790 fi
10791
10792
10793
10794 if test $pkg_failed = yes; then
10795
10796 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10797 _pkg_short_errors_supported=yes
10798 else
10799 _pkg_short_errors_supported=no
10800 fi
10801 if test $_pkg_short_errors_supported = yes; then
10802 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10803 else
10804 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10805 fi
10806 # Put the nasty error message in config.log where it belongs
10807 echo "$APPDEFS_PKG_ERRORS" >&5
10808
10809 as_fn_error $? "Package requirements (xt) were not met:
10810
10811 $APPDEFS_PKG_ERRORS
10812
10813 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10814 installed software in a non-standard prefix.
10815
10816 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10817 and APPDEFS_LIBS to avoid the need to call pkg-config.
10818 See the pkg-config man page for more details.
10819 " "$LINENO" 5
10820 elif test $pkg_failed = untried; then
10821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10823 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10824 is in your PATH or set the PKG_CONFIG environment variable to the full
10825 path to pkg-config.
10826
10827 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10828 and APPDEFS_LIBS to avoid the need to call pkg-config.
10829 See the pkg-config man page for more details.
10830
10831 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10832 See \`config.log' for more details" "$LINENO" 5; }
10833 else
10834 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10835 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10837 $as_echo "yes" >&6; }
10838 :
10839 fi
10840 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10841
10842 # Check whether --with-appdefaultdir was given.
10843 if test "${with_appdefaultdir+set}" = set; then :
10844 withval=$with_appdefaultdir; appdefaultdir="$withval"
10845 else
10846 appdefaultdir="${xt_appdefaultdir}"
10847 fi
10848
10849
10850
10851
10852 ac_config_files="$ac_config_files Makefile man/Makefile"
10853
10854 cat >confcache <<\_ACEOF
10855 # This file is a shell script that caches the results of configure
10856 # tests run on this system so they can be shared between configure
10857 # scripts and configure runs, see configure's option --config-cache.
10858 # It is not useful on other systems. If it contains results you don't
10859 # want to keep, you may remove or edit it.
10860 #
10861 # config.status only pays attention to the cache file if you give it
10862 # the --recheck option to rerun configure.
10863 #
10864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10866 # following values.
10867
10868 _ACEOF
10869
10870 # The following way of writing the cache mishandles newlines in values,
10871 # but we know of no workaround that is simple, portable, and efficient.
10872 # So, we kill variables containing newlines.
10873 # Ultrix sh set writes to stderr and can't be redirected directly,
10874 # and sets the high bit in the cache file unless we assign to the vars.
10875 (
10876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10877 eval ac_val=\$$ac_var
10878 case $ac_val in #(
10879 *${as_nl}*)
10880 case $ac_var in #(
10881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10883 esac
10884 case $ac_var in #(
10885 _ | IFS | as_nl) ;; #(
10886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10887 *) { eval $ac_var=; unset $ac_var;} ;;
10888 esac ;;
10889 esac
10890 done
10891
10892 (set) 2>&1 |
10893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10894 *${as_nl}ac_space=\ *)
10895 # `set' does not quote correctly, so add quotes: double-quote
10896 # substitution turns \\\\ into \\, and sed turns \\ into \.
10897 sed -n \
10898 "s/'/'\\\\''/g;
10899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10900 ;; #(
10901 *)
10902 # `set' quotes correctly as required by POSIX, so do not add quotes.
10903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10904 ;;
10905 esac |
10906 sort
10907 ) |
10908 sed '
10909 /^ac_cv_env_/b end
10910 t clear
10911 :clear
10912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10913 t end
10914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10915 :end' >>confcache
10916 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10917 if test -w "$cache_file"; then
10918 if test "x$cache_file" != "x/dev/null"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10920 $as_echo "$as_me: updating cache $cache_file" >&6;}
10921 if test ! -f "$cache_file" || test -h "$cache_file"; then
10922 cat confcache >"$cache_file"
10923 else
10924 case $cache_file in #(
10925 */* | ?:*)
10926 mv -f confcache "$cache_file"$$ &&
10927 mv -f "$cache_file"$$ "$cache_file" ;; #(
10928 *)
10929 mv -f confcache "$cache_file" ;;
10930 esac
10931 fi
10932 fi
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10935 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10936 fi
10937 fi
10938 rm -f confcache
10939
10940 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10941 # Let make expand exec_prefix.
10942 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10943
10944 DEFS=-DHAVE_CONFIG_H
10945
10946 ac_libobjs=
10947 ac_ltlibobjs=
10948 U=
10949 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10950 # 1. Remove the extension, and $U if already installed.
10951 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10952 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10953 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10954 # will be set to the directory where LIBOBJS objects are built.
10955 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10956 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10957 done
10958 LIBOBJS=$ac_libobjs
10959
10960 LTLIBOBJS=$ac_ltlibobjs
10961
10962
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10964 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10965 if test -n "$am_sleep_pid"; then
10966 # Hide warnings about reused PIDs.
10967 wait $am_sleep_pid 2>/dev/null
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10970 $as_echo "done" >&6; }
10971 if test -n "$EXEEXT"; then
10972 am__EXEEXT_TRUE=
10973 am__EXEEXT_FALSE='#'
10974 else
10975 am__EXEEXT_TRUE='#'
10976 am__EXEEXT_FALSE=
10977 fi
10978
10979 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10980 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10982 fi
10983 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10984 as_fn_error $? "conditional \"AMDEP\" was never defined.
10985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10986 fi
10987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10988 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10990 fi
10991 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
10992 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
10993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10994 fi
10995
10996 : "${CONFIG_STATUS=./config.status}"
10997 ac_write_fail=0
10998 ac_clean_files_save=$ac_clean_files
10999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11001 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11002 as_write_fail=0
11003 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11004 #! $SHELL
11005 # Generated by $as_me.
11006 # Run this file to recreate the current configuration.
11007 # Compiler output produced by configure, useful for debugging
11008 # configure, is in config.log if it exists.
11009
11010 debug=false
11011 ac_cs_recheck=false
11012 ac_cs_silent=false
11013
11014 SHELL=\${CONFIG_SHELL-$SHELL}
11015 export SHELL
11016 _ASEOF
11017 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11018 ## -------------------- ##
11019 ## M4sh Initialization. ##
11020 ## -------------------- ##
11021
11022 # Be more Bourne compatible
11023 DUALCASE=1; export DUALCASE # for MKS sh
11024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11025 emulate sh
11026 NULLCMD=:
11027 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11028 # is contrary to our usage. Disable this feature.
11029 alias -g '${1+"$@"}'='"$@"'
11030 setopt NO_GLOB_SUBST
11031 else
11032 case `(set -o) 2>/dev/null` in #(
11033 *posix*) :
11034 set -o posix ;; #(
11035 *) :
11036 ;;
11037 esac
11038 fi
11039
11040
11041 as_nl='
11042 '
11043 export as_nl
11044 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11045 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11047 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11048 # Prefer a ksh shell builtin over an external printf program on Solaris,
11049 # but without wasting forks for bash or zsh.
11050 if test -z "$BASH_VERSION$ZSH_VERSION" \
11051 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11052 as_echo='print -r --'
11053 as_echo_n='print -rn --'
11054 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11055 as_echo='printf %s\n'
11056 as_echo_n='printf %s'
11057 else
11058 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11059 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11060 as_echo_n='/usr/ucb/echo -n'
11061 else
11062 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11063 as_echo_n_body='eval
11064 arg=$1;
11065 case $arg in #(
11066 *"$as_nl"*)
11067 expr "X$arg" : "X\\(.*\\)$as_nl";
11068 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11069 esac;
11070 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11071 '
11072 export as_echo_n_body
11073 as_echo_n='sh -c $as_echo_n_body as_echo'
11074 fi
11075 export as_echo_body
11076 as_echo='sh -c $as_echo_body as_echo'
11077 fi
11078
11079 # The user is always right.
11080 if test "${PATH_SEPARATOR+set}" != set; then
11081 PATH_SEPARATOR=:
11082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11083 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11084 PATH_SEPARATOR=';'
11085 }
11086 fi
11087
11088
11089 # IFS
11090 # We need space, tab and new line, in precisely that order. Quoting is
11091 # there to prevent editors from complaining about space-tab.
11092 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11093 # splitting by setting IFS to empty value.)
11094 IFS=" "" $as_nl"
11095
11096 # Find who we are. Look in the path if we contain no directory separator.
11097 as_myself=
11098 case $0 in #((
11099 *[\\/]* ) as_myself=$0 ;;
11100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11102 do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
11105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11106 done
11107 IFS=$as_save_IFS
11108
11109 ;;
11110 esac
11111 # We did not find ourselves, most probably we were run as `sh COMMAND'
11112 # in which case we are not to be found in the path.
11113 if test "x$as_myself" = x; then
11114 as_myself=$0
11115 fi
11116 if test ! -f "$as_myself"; then
11117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11118 exit 1
11119 fi
11120
11121 # Unset variables that we do not need and which cause bugs (e.g. in
11122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11123 # suppresses any "Segmentation fault" message there. '((' could
11124 # trigger a bug in pdksh 5.2.14.
11125 for as_var in BASH_ENV ENV MAIL MAILPATH
11126 do eval test x\${$as_var+set} = xset \
11127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11128 done
11129 PS1='$ '
11130 PS2='> '
11131 PS4='+ '
11132
11133 # NLS nuisances.
11134 LC_ALL=C
11135 export LC_ALL
11136 LANGUAGE=C
11137 export LANGUAGE
11138
11139 # CDPATH.
11140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11141
11142
11143 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11144 # ----------------------------------------
11145 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11146 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11147 # script with STATUS, using 1 if that was 0.
11148 as_fn_error ()
11149 {
11150 as_status=$1; test $as_status -eq 0 && as_status=1
11151 if test "$4"; then
11152 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11153 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11154 fi
11155 $as_echo "$as_me: error: $2" >&2
11156 as_fn_exit $as_status
11157 } # as_fn_error
11158
11159
11160 # as_fn_set_status STATUS
11161 # -----------------------
11162 # Set $? to STATUS, without forking.
11163 as_fn_set_status ()
11164 {
11165 return $1
11166 } # as_fn_set_status
11167
11168 # as_fn_exit STATUS
11169 # -----------------
11170 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11171 as_fn_exit ()
11172 {
11173 set +e
11174 as_fn_set_status $1
11175 exit $1
11176 } # as_fn_exit
11177
11178 # as_fn_unset VAR
11179 # ---------------
11180 # Portably unset VAR.
11181 as_fn_unset ()
11182 {
11183 { eval $1=; unset $1;}
11184 }
11185 as_unset=as_fn_unset
11186 # as_fn_append VAR VALUE
11187 # ----------------------
11188 # Append the text in VALUE to the end of the definition contained in VAR. Take
11189 # advantage of any shell optimizations that allow amortized linear growth over
11190 # repeated appends, instead of the typical quadratic growth present in naive
11191 # implementations.
11192 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11193 eval 'as_fn_append ()
11194 {
11195 eval $1+=\$2
11196 }'
11197 else
11198 as_fn_append ()
11199 {
11200 eval $1=\$$1\$2
11201 }
11202 fi # as_fn_append
11203
11204 # as_fn_arith ARG...
11205 # ------------------
11206 # Perform arithmetic evaluation on the ARGs, and store the result in the
11207 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11208 # must be portable across $(()) and expr.
11209 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11210 eval 'as_fn_arith ()
11211 {
11212 as_val=$(( $* ))
11213 }'
11214 else
11215 as_fn_arith ()
11216 {
11217 as_val=`expr "$@" || test $? -eq 1`
11218 }
11219 fi # as_fn_arith
11220
11221
11222 if expr a : '\(a\)' >/dev/null 2>&1 &&
11223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11224 as_expr=expr
11225 else
11226 as_expr=false
11227 fi
11228
11229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11230 as_basename=basename
11231 else
11232 as_basename=false
11233 fi
11234
11235 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11236 as_dirname=dirname
11237 else
11238 as_dirname=false
11239 fi
11240
11241 as_me=`$as_basename -- "$0" ||
11242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11243 X"$0" : 'X\(//\)$' \| \
11244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11245 $as_echo X/"$0" |
11246 sed '/^.*\/\([^/][^/]*\)\/*$/{
11247 s//\1/
11248 q
11249 }
11250 /^X\/\(\/\/\)$/{
11251 s//\1/
11252 q
11253 }
11254 /^X\/\(\/\).*/{
11255 s//\1/
11256 q
11257 }
11258 s/.*/./; q'`
11259
11260 # Avoid depending upon Character Ranges.
11261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11264 as_cr_digits='0123456789'
11265 as_cr_alnum=$as_cr_Letters$as_cr_digits
11266
11267 ECHO_C= ECHO_N= ECHO_T=
11268 case `echo -n x` in #(((((
11269 -n*)
11270 case `echo 'xy\c'` in
11271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11272 xy) ECHO_C='\c';;
11273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11274 ECHO_T=' ';;
11275 esac;;
11276 *)
11277 ECHO_N='-n';;
11278 esac
11279
11280 rm -f conf$$ conf$$.exe conf$$.file
11281 if test -d conf$$.dir; then
11282 rm -f conf$$.dir/conf$$.file
11283 else
11284 rm -f conf$$.dir
11285 mkdir conf$$.dir 2>/dev/null
11286 fi
11287 if (echo >conf$$.file) 2>/dev/null; then
11288 if ln -s conf$$.file conf$$ 2>/dev/null; then
11289 as_ln_s='ln -s'
11290 # ... but there are two gotchas:
11291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11293 # In both cases, we have to default to `cp -p'.
11294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11295 as_ln_s='cp -p'
11296 elif ln conf$$.file conf$$ 2>/dev/null; then
11297 as_ln_s=ln
11298 else
11299 as_ln_s='cp -p'
11300 fi
11301 else
11302 as_ln_s='cp -p'
11303 fi
11304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11305 rmdir conf$$.dir 2>/dev/null
11306
11307
11308 # as_fn_mkdir_p
11309 # -------------
11310 # Create "$as_dir" as a directory, including parents if necessary.
11311 as_fn_mkdir_p ()
11312 {
11313
11314 case $as_dir in #(
11315 -*) as_dir=./$as_dir;;
11316 esac
11317 test -d "$as_dir" || eval $as_mkdir_p || {
11318 as_dirs=
11319 while :; do
11320 case $as_dir in #(
11321 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11322 *) as_qdir=$as_dir;;
11323 esac
11324 as_dirs="'$as_qdir' $as_dirs"
11325 as_dir=`$as_dirname -- "$as_dir" ||
11326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11327 X"$as_dir" : 'X\(//\)[^/]' \| \
11328 X"$as_dir" : 'X\(//\)$' \| \
11329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11330 $as_echo X"$as_dir" |
11331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11332 s//\1/
11333 q
11334 }
11335 /^X\(\/\/\)[^/].*/{
11336 s//\1/
11337 q
11338 }
11339 /^X\(\/\/\)$/{
11340 s//\1/
11341 q
11342 }
11343 /^X\(\/\).*/{
11344 s//\1/
11345 q
11346 }
11347 s/.*/./; q'`
11348 test -d "$as_dir" && break
11349 done
11350 test -z "$as_dirs" || eval "mkdir $as_dirs"
11351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11352
11353
11354 } # as_fn_mkdir_p
11355 if mkdir -p . 2>/dev/null; then
11356 as_mkdir_p='mkdir -p "$as_dir"'
11357 else
11358 test -d ./-p && rmdir ./-p
11359 as_mkdir_p=false
11360 fi
11361
11362 if test -x / >/dev/null 2>&1; then
11363 as_test_x='test -x'
11364 else
11365 if ls -dL / >/dev/null 2>&1; then
11366 as_ls_L_option=L
11367 else
11368 as_ls_L_option=
11369 fi
11370 as_test_x='
11371 eval sh -c '\''
11372 if test -d "$1"; then
11373 test -d "$1/.";
11374 else
11375 case $1 in #(
11376 -*)set "./$1";;
11377 esac;
11378 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11379 ???[sx]*):;;*)false;;esac;fi
11380 '\'' sh
11381 '
11382 fi
11383 as_executable_p=$as_test_x
11384
11385 # Sed expression to map a string onto a valid CPP name.
11386 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11387
11388 # Sed expression to map a string onto a valid variable name.
11389 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11390
11391
11392 exec 6>&1
11393 ## ----------------------------------- ##
11394 ## Main body of $CONFIG_STATUS script. ##
11395 ## ----------------------------------- ##
11396 _ASEOF
11397 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11398
11399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11400 # Save the log message, to keep $0 and so on meaningful, and to
11401 # report actual input values of CONFIG_FILES etc. instead of their
11402 # values after options handling.
11403 ac_log="
11404 This file was extended by xfd $as_me 1.1.2, which was
11405 generated by GNU Autoconf 2.68. Invocation command line was
11406
11407 CONFIG_FILES = $CONFIG_FILES
11408 CONFIG_HEADERS = $CONFIG_HEADERS
11409 CONFIG_LINKS = $CONFIG_LINKS
11410 CONFIG_COMMANDS = $CONFIG_COMMANDS
11411 $ $0 $@
11412
11413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11414 "
11415
11416 _ACEOF
11417
11418 case $ac_config_files in *"
11419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11420 esac
11421
11422 case $ac_config_headers in *"
11423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11424 esac
11425
11426
11427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11428 # Files that config.status was made for.
11429 config_files="$ac_config_files"
11430 config_headers="$ac_config_headers"
11431 config_commands="$ac_config_commands"
11432
11433 _ACEOF
11434
11435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11436 ac_cs_usage="\
11437 \`$as_me' instantiates files and other configuration actions
11438 from templates according to the current configuration. Unless the files
11439 and actions are specified as TAGs, all are instantiated by default.
11440
11441 Usage: $0 [OPTION]... [TAG]...
11442
11443 -h, --help print this help, then exit
11444 -V, --version print version number and configuration settings, then exit
11445 --config print configuration, then exit
11446 -q, --quiet, --silent
11447 do not print progress messages
11448 -d, --debug don't remove temporary files
11449 --recheck update $as_me by reconfiguring in the same conditions
11450 --file=FILE[:TEMPLATE]
11451 instantiate the configuration file FILE
11452 --header=FILE[:TEMPLATE]
11453 instantiate the configuration header FILE
11454
11455 Configuration files:
11456 $config_files
11457
11458 Configuration headers:
11459 $config_headers
11460
11461 Configuration commands:
11462 $config_commands
11463
11464 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11465
11466 _ACEOF
11467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11468 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11469 ac_cs_version="\\
11470 xfd config.status 1.1.2
11471 configured by $0, generated by GNU Autoconf 2.68,
11472 with options \\"\$ac_cs_config\\"
11473
11474 Copyright (C) 2010 Free Software Foundation, Inc.
11475 This config.status script is free software; the Free Software Foundation
11476 gives unlimited permission to copy, distribute and modify it."
11477
11478 ac_pwd='$ac_pwd'
11479 srcdir='$srcdir'
11480 INSTALL='$INSTALL'
11481 MKDIR_P='$MKDIR_P'
11482 AWK='$AWK'
11483 test -n "\$AWK" || AWK=awk
11484 _ACEOF
11485
11486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487 # The default lists apply if the user does not specify any file.
11488 ac_need_defaults=:
11489 while test $# != 0
11490 do
11491 case $1 in
11492 --*=?*)
11493 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11494 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11495 ac_shift=:
11496 ;;
11497 --*=)
11498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11499 ac_optarg=
11500 ac_shift=:
11501 ;;
11502 *)
11503 ac_option=$1
11504 ac_optarg=$2
11505 ac_shift=shift
11506 ;;
11507 esac
11508
11509 case $ac_option in
11510 # Handling of the options.
11511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11512 ac_cs_recheck=: ;;
11513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11514 $as_echo "$ac_cs_version"; exit ;;
11515 --config | --confi | --conf | --con | --co | --c )
11516 $as_echo "$ac_cs_config"; exit ;;
11517 --debug | --debu | --deb | --de | --d | -d )
11518 debug=: ;;
11519 --file | --fil | --fi | --f )
11520 $ac_shift
11521 case $ac_optarg in
11522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11523 '') as_fn_error $? "missing file argument" ;;
11524 esac
11525 as_fn_append CONFIG_FILES " '$ac_optarg'"
11526 ac_need_defaults=false;;
11527 --header | --heade | --head | --hea )
11528 $ac_shift
11529 case $ac_optarg in
11530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11531 esac
11532 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11533 ac_need_defaults=false;;
11534 --he | --h)
11535 # Conflict between --help and --header
11536 as_fn_error $? "ambiguous option: \`$1'
11537 Try \`$0 --help' for more information.";;
11538 --help | --hel | -h )
11539 $as_echo "$ac_cs_usage"; exit ;;
11540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11542 ac_cs_silent=: ;;
11543
11544 # This is an error.
11545 -*) as_fn_error $? "unrecognized option: \`$1'
11546 Try \`$0 --help' for more information." ;;
11547
11548 *) as_fn_append ac_config_targets " $1"
11549 ac_need_defaults=false ;;
11550
11551 esac
11552 shift
11553 done
11554
11555 ac_configure_extra_args=
11556
11557 if $ac_cs_silent; then
11558 exec 6>/dev/null
11559 ac_configure_extra_args="$ac_configure_extra_args --silent"
11560 fi
11561
11562 _ACEOF
11563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11564 if \$ac_cs_recheck; then
11565 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11566 shift
11567 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11568 CONFIG_SHELL='$SHELL'
11569 export CONFIG_SHELL
11570 exec "\$@"
11571 fi
11572
11573 _ACEOF
11574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11575 exec 5>>config.log
11576 {
11577 echo
11578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11579 ## Running $as_me. ##
11580 _ASBOX
11581 $as_echo "$ac_log"
11582 } >&5
11583
11584 _ACEOF
11585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11586 #
11587 # INIT-COMMANDS
11588 #
11589 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11590
11591 _ACEOF
11592
11593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11594
11595 # Handling of arguments.
11596 for ac_config_target in $ac_config_targets
11597 do
11598 case $ac_config_target in
11599 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11600 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11601 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11602 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11603
11604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11605 esac
11606 done
11607
11608
11609 # If the user did not use the arguments to specify the items to instantiate,
11610 # then the envvar interface is used. Set only those that are not.
11611 # We use the long form for the default assignment because of an extremely
11612 # bizarre bug on SunOS 4.1.3.
11613 if $ac_need_defaults; then
11614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11617 fi
11618
11619 # Have a temporary directory for convenience. Make it in the build tree
11620 # simply because there is no reason against having it here, and in addition,
11621 # creating and moving files from /tmp can sometimes cause problems.
11622 # Hook for its removal unless debugging.
11623 # Note that there is a small window in which the directory will not be cleaned:
11624 # after its creation but before its name has been assigned to `$tmp'.
11625 $debug ||
11626 {
11627 tmp= ac_tmp=
11628 trap 'exit_status=$?
11629 : "${ac_tmp:=$tmp}"
11630 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11631 ' 0
11632 trap 'as_fn_exit 1' 1 2 13 15
11633 }
11634 # Create a (secure) tmp directory for tmp files.
11635
11636 {
11637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11638 test -d "$tmp"
11639 } ||
11640 {
11641 tmp=./conf$$-$RANDOM
11642 (umask 077 && mkdir "$tmp")
11643 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11644 ac_tmp=$tmp
11645
11646 # Set up the scripts for CONFIG_FILES section.
11647 # No need to generate them if there are no CONFIG_FILES.
11648 # This happens for instance with `./config.status config.h'.
11649 if test -n "$CONFIG_FILES"; then
11650
11651
11652 ac_cr=`echo X | tr X '\015'`
11653 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11654 # But we know of no other shell where ac_cr would be empty at this
11655 # point, so we can use a bashism as a fallback.
11656 if test "x$ac_cr" = x; then
11657 eval ac_cr=\$\'\\r\'
11658 fi
11659 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11660 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11661 ac_cs_awk_cr='\\r'
11662 else
11663 ac_cs_awk_cr=$ac_cr
11664 fi
11665
11666 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11667 _ACEOF
11668
11669
11670 {
11671 echo "cat >conf$$subs.awk <<_ACEOF" &&
11672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11673 echo "_ACEOF"
11674 } >conf$$subs.sh ||
11675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11676 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11677 ac_delim='%!_!# '
11678 for ac_last_try in false false false false false :; do
11679 . ./conf$$subs.sh ||
11680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11681
11682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11683 if test $ac_delim_n = $ac_delim_num; then
11684 break
11685 elif $ac_last_try; then
11686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11687 else
11688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11689 fi
11690 done
11691 rm -f conf$$subs.sh
11692
11693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11694 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11695 _ACEOF
11696 sed -n '
11697 h
11698 s/^/S["/; s/!.*/"]=/
11699 p
11700 g
11701 s/^[^!]*!//
11702 :repl
11703 t repl
11704 s/'"$ac_delim"'$//
11705 t delim
11706 :nl
11707 h
11708 s/\(.\{148\}\)..*/\1/
11709 t more1
11710 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11711 p
11712 n
11713 b repl
11714 :more1
11715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11716 p
11717 g
11718 s/.\{148\}//
11719 t nl
11720 :delim
11721 h
11722 s/\(.\{148\}\)..*/\1/
11723 t more2
11724 s/["\\]/\\&/g; s/^/"/; s/$/"/
11725 p
11726 b
11727 :more2
11728 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11729 p
11730 g
11731 s/.\{148\}//
11732 t delim
11733 ' <conf$$subs.awk | sed '
11734 /^[^""]/{
11735 N
11736 s/\n//
11737 }
11738 ' >>$CONFIG_STATUS || ac_write_fail=1
11739 rm -f conf$$subs.awk
11740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11741 _ACAWK
11742 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11743 for (key in S) S_is_set[key] = 1
11744 FS = ""
11745
11746 }
11747 {
11748 line = $ 0
11749 nfields = split(line, field, "@")
11750 substed = 0
11751 len = length(field[1])
11752 for (i = 2; i < nfields; i++) {
11753 key = field[i]
11754 keylen = length(key)
11755 if (S_is_set[key]) {
11756 value = S[key]
11757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11758 len += length(value) + length(field[++i])
11759 substed = 1
11760 } else
11761 len += 1 + keylen
11762 }
11763
11764 print line
11765 }
11766
11767 _ACAWK
11768 _ACEOF
11769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11770 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11772 else
11773 cat
11774 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11775 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11776 _ACEOF
11777
11778 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11779 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11780 # trailing colons and then remove the whole line if VPATH becomes empty
11781 # (actually we leave an empty line to preserve line numbers).
11782 if test "x$srcdir" = x.; then
11783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11784 h
11785 s///
11786 s/^/:/
11787 s/[ ]*$/:/
11788 s/:\$(srcdir):/:/g
11789 s/:\${srcdir}:/:/g
11790 s/:@srcdir@:/:/g
11791 s/^:*//
11792 s/:*$//
11793 x
11794 s/\(=[ ]*\).*/\1/
11795 G
11796 s/\n//
11797 s/^[^=]*=[ ]*$//
11798 }'
11799 fi
11800
11801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11802 fi # test -n "$CONFIG_FILES"
11803
11804 # Set up the scripts for CONFIG_HEADERS section.
11805 # No need to generate them if there are no CONFIG_HEADERS.
11806 # This happens for instance with `./config.status Makefile'.
11807 if test -n "$CONFIG_HEADERS"; then
11808 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11809 BEGIN {
11810 _ACEOF
11811
11812 # Transform confdefs.h into an awk script `defines.awk', embedded as
11813 # here-document in config.status, that substitutes the proper values into
11814 # config.h.in to produce config.h.
11815
11816 # Create a delimiter string that does not exist in confdefs.h, to ease
11817 # handling of long lines.
11818 ac_delim='%!_!# '
11819 for ac_last_try in false false :; do
11820 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11821 if test -z "$ac_tt"; then
11822 break
11823 elif $ac_last_try; then
11824 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11825 else
11826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11827 fi
11828 done
11829
11830 # For the awk script, D is an array of macro values keyed by name,
11831 # likewise P contains macro parameters if any. Preserve backslash
11832 # newline sequences.
11833
11834 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11835 sed -n '
11836 s/.\{148\}/&'"$ac_delim"'/g
11837 t rset
11838 :rset
11839 s/^[ ]*#[ ]*define[ ][ ]*/ /
11840 t def
11841 d
11842 :def
11843 s/\\$//
11844 t bsnl
11845 s/["\\]/\\&/g
11846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11847 D["\1"]=" \3"/p
11848 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11849 d
11850 :bsnl
11851 s/["\\]/\\&/g
11852 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11853 D["\1"]=" \3\\\\\\n"\\/p
11854 t cont
11855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11856 t cont
11857 d
11858 :cont
11859 n
11860 s/.\{148\}/&'"$ac_delim"'/g
11861 t clear
11862 :clear
11863 s/\\$//
11864 t bsnlc
11865 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11866 d
11867 :bsnlc
11868 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11869 b cont
11870 ' <confdefs.h | sed '
11871 s/'"$ac_delim"'/"\\\
11872 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11873
11874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875 for (key in D) D_is_set[key] = 1
11876 FS = ""
11877 }
11878 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11879 line = \$ 0
11880 split(line, arg, " ")
11881 if (arg[1] == "#") {
11882 defundef = arg[2]
11883 mac1 = arg[3]
11884 } else {
11885 defundef = substr(arg[1], 2)
11886 mac1 = arg[2]
11887 }
11888 split(mac1, mac2, "(") #)
11889 macro = mac2[1]
11890 prefix = substr(line, 1, index(line, defundef) - 1)
11891 if (D_is_set[macro]) {
11892 # Preserve the white space surrounding the "#".
11893 print prefix "define", macro P[macro] D[macro]
11894 next
11895 } else {
11896 # Replace #undef with comments. This is necessary, for example,
11897 # in the case of _POSIX_SOURCE, which is predefined and required
11898 # on some systems where configure will not decide to define it.
11899 if (defundef == "undef") {
11900 print "/*", prefix defundef, macro, "*/"
11901 next
11902 }
11903 }
11904 }
11905 { print }
11906 _ACAWK
11907 _ACEOF
11908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11909 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11910 fi # test -n "$CONFIG_HEADERS"
11911
11912
11913 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11914 shift
11915 for ac_tag
11916 do
11917 case $ac_tag in
11918 :[FHLC]) ac_mode=$ac_tag; continue;;
11919 esac
11920 case $ac_mode$ac_tag in
11921 :[FHL]*:*);;
11922 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11923 :[FH]-) ac_tag=-:-;;
11924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11925 esac
11926 ac_save_IFS=$IFS
11927 IFS=:
11928 set x $ac_tag
11929 IFS=$ac_save_IFS
11930 shift
11931 ac_file=$1
11932 shift
11933
11934 case $ac_mode in
11935 :L) ac_source=$1;;
11936 :[FH])
11937 ac_file_inputs=
11938 for ac_f
11939 do
11940 case $ac_f in
11941 -) ac_f="$ac_tmp/stdin";;
11942 *) # Look for the file first in the build tree, then in the source tree
11943 # (if the path is not absolute). The absolute path cannot be DOS-style,
11944 # because $ac_f cannot contain `:'.
11945 test -f "$ac_f" ||
11946 case $ac_f in
11947 [\\/$]*) false;;
11948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11949 esac ||
11950 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11951 esac
11952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11953 as_fn_append ac_file_inputs " '$ac_f'"
11954 done
11955
11956 # Let's still pretend it is `configure' which instantiates (i.e., don't
11957 # use $as_me), people would be surprised to read:
11958 # /* config.h. Generated by config.status. */
11959 configure_input='Generated from '`
11960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11961 `' by configure.'
11962 if test x"$ac_file" != x-; then
11963 configure_input="$ac_file. $configure_input"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11965 $as_echo "$as_me: creating $ac_file" >&6;}
11966 fi
11967 # Neutralize special characters interpreted by sed in replacement strings.
11968 case $configure_input in #(
11969 *\&* | *\|* | *\\* )
11970 ac_sed_conf_input=`$as_echo "$configure_input" |
11971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11972 *) ac_sed_conf_input=$configure_input;;
11973 esac
11974
11975 case $ac_tag in
11976 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11978 esac
11979 ;;
11980 esac
11981
11982 ac_dir=`$as_dirname -- "$ac_file" ||
11983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11984 X"$ac_file" : 'X\(//\)[^/]' \| \
11985 X"$ac_file" : 'X\(//\)$' \| \
11986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11987 $as_echo X"$ac_file" |
11988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11989 s//\1/
11990 q
11991 }
11992 /^X\(\/\/\)[^/].*/{
11993 s//\1/
11994 q
11995 }
11996 /^X\(\/\/\)$/{
11997 s//\1/
11998 q
11999 }
12000 /^X\(\/\).*/{
12001 s//\1/
12002 q
12003 }
12004 s/.*/./; q'`
12005 as_dir="$ac_dir"; as_fn_mkdir_p
12006 ac_builddir=.
12007
12008 case "$ac_dir" in
12009 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12010 *)
12011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12012 # A ".." for each directory in $ac_dir_suffix.
12013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12014 case $ac_top_builddir_sub in
12015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12017 esac ;;
12018 esac
12019 ac_abs_top_builddir=$ac_pwd
12020 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12021 # for backward compatibility:
12022 ac_top_builddir=$ac_top_build_prefix
12023
12024 case $srcdir in
12025 .) # We are building in place.
12026 ac_srcdir=.
12027 ac_top_srcdir=$ac_top_builddir_sub
12028 ac_abs_top_srcdir=$ac_pwd ;;
12029 [\\/]* | ?:[\\/]* ) # Absolute name.
12030 ac_srcdir=$srcdir$ac_dir_suffix;
12031 ac_top_srcdir=$srcdir
12032 ac_abs_top_srcdir=$srcdir ;;
12033 *) # Relative name.
12034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12035 ac_top_srcdir=$ac_top_build_prefix$srcdir
12036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12037 esac
12038 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12039
12040
12041 case $ac_mode in
12042 :F)
12043 #
12044 # CONFIG_FILE
12045 #
12046
12047 case $INSTALL in
12048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12050 esac
12051 ac_MKDIR_P=$MKDIR_P
12052 case $MKDIR_P in
12053 [\\/$]* | ?:[\\/]* ) ;;
12054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12055 esac
12056 _ACEOF
12057
12058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12059 # If the template does not know about datarootdir, expand it.
12060 # FIXME: This hack should be removed a few years after 2.60.
12061 ac_datarootdir_hack=; ac_datarootdir_seen=
12062 ac_sed_dataroot='
12063 /datarootdir/ {
12064 p
12065 q
12066 }
12067 /@datadir@/p
12068 /@docdir@/p
12069 /@infodir@/p
12070 /@localedir@/p
12071 /@mandir@/p'
12072 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12073 *datarootdir*) ac_datarootdir_seen=yes;;
12074 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12076 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12077 _ACEOF
12078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12079 ac_datarootdir_hack='
12080 s&@datadir@&$datadir&g
12081 s&@docdir@&$docdir&g
12082 s&@infodir@&$infodir&g
12083 s&@localedir@&$localedir&g
12084 s&@mandir@&$mandir&g
12085 s&\\\${datarootdir}&$datarootdir&g' ;;
12086 esac
12087 _ACEOF
12088
12089 # Neutralize VPATH when `$srcdir' = `.'.
12090 # Shell code in configure.ac might set extrasub.
12091 # FIXME: do we really want to maintain this feature?
12092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12093 ac_sed_extra="$ac_vpsub
12094 $extrasub
12095 _ACEOF
12096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12097 :t
12098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12099 s|@configure_input@|$ac_sed_conf_input|;t t
12100 s&@top_builddir@&$ac_top_builddir_sub&;t t
12101 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12102 s&@srcdir@&$ac_srcdir&;t t
12103 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12104 s&@top_srcdir@&$ac_top_srcdir&;t t
12105 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12106 s&@builddir@&$ac_builddir&;t t
12107 s&@abs_builddir@&$ac_abs_builddir&;t t
12108 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12109 s&@INSTALL@&$ac_INSTALL&;t t
12110 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12111 $ac_datarootdir_hack
12112 "
12113 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12114 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12115
12116 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12117 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12119 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12121 which seems to be undefined. Please make sure it is defined" >&5
12122 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12123 which seems to be undefined. Please make sure it is defined" >&2;}
12124
12125 rm -f "$ac_tmp/stdin"
12126 case $ac_file in
12127 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12128 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12129 esac \
12130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12131 ;;
12132 :H)
12133 #
12134 # CONFIG_HEADER
12135 #
12136 if test x"$ac_file" != x-; then
12137 {
12138 $as_echo "/* $configure_input */" \
12139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12140 } >"$ac_tmp/config.h" \
12141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12142 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12144 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12145 else
12146 rm -f "$ac_file"
12147 mv "$ac_tmp/config.h" "$ac_file" \
12148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12149 fi
12150 else
12151 $as_echo "/* $configure_input */" \
12152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12153 || as_fn_error $? "could not create -" "$LINENO" 5
12154 fi
12155 # Compute "$ac_file"'s index in $config_headers.
12156 _am_arg="$ac_file"
12157 _am_stamp_count=1
12158 for _am_header in $config_headers :; do
12159 case $_am_header in
12160 $_am_arg | $_am_arg:* )
12161 break ;;
12162 * )
12163 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12164 esac
12165 done
12166 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12167 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12168 X"$_am_arg" : 'X\(//\)[^/]' \| \
12169 X"$_am_arg" : 'X\(//\)$' \| \
12170 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12171 $as_echo X"$_am_arg" |
12172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12173 s//\1/
12174 q
12175 }
12176 /^X\(\/\/\)[^/].*/{
12177 s//\1/
12178 q
12179 }
12180 /^X\(\/\/\)$/{
12181 s//\1/
12182 q
12183 }
12184 /^X\(\/\).*/{
12185 s//\1/
12186 q
12187 }
12188 s/.*/./; q'`/stamp-h$_am_stamp_count
12189 ;;
12190
12191 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12192 $as_echo "$as_me: executing $ac_file commands" >&6;}
12193 ;;
12194 esac
12195
12196
12197 case $ac_file$ac_mode in
12198 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12199 # Older Autoconf quotes --file arguments for eval, but not when files
12200 # are listed without --file. Let's play safe and only enable the eval
12201 # if we detect the quoting.
12202 case $CONFIG_FILES in
12203 *\'*) eval set x "$CONFIG_FILES" ;;
12204 *) set x $CONFIG_FILES ;;
12205 esac
12206 shift
12207 for mf
12208 do
12209 # Strip MF so we end up with the name of the file.
12210 mf=`echo "$mf" | sed -e 's/:.*$//'`
12211 # Check whether this is an Automake generated Makefile or not.
12212 # We used to match only the files named 'Makefile.in', but
12213 # some people rename them; so instead we look at the file content.
12214 # Grep'ing the first line is not enough: some people post-process
12215 # each Makefile.in and add a new line on top of each file to say so.
12216 # Grep'ing the whole file is not good either: AIX grep has a line
12217 # limit of 2048, but all sed's we know have understand at least 4000.
12218 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12219 dirpart=`$as_dirname -- "$mf" ||
12220 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12221 X"$mf" : 'X\(//\)[^/]' \| \
12222 X"$mf" : 'X\(//\)$' \| \
12223 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12224 $as_echo X"$mf" |
12225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12226 s//\1/
12227 q
12228 }
12229 /^X\(\/\/\)[^/].*/{
12230 s//\1/
12231 q
12232 }
12233 /^X\(\/\/\)$/{
12234 s//\1/
12235 q
12236 }
12237 /^X\(\/\).*/{
12238 s//\1/
12239 q
12240 }
12241 s/.*/./; q'`
12242 else
12243 continue
12244 fi
12245 # Extract the definition of DEPDIR, am__include, and am__quote
12246 # from the Makefile without running 'make'.
12247 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12248 test -z "$DEPDIR" && continue
12249 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12250 test -z "$am__include" && continue
12251 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12252 # Find all dependency output files, they are included files with
12253 # $(DEPDIR) in their names. We invoke sed twice because it is the
12254 # simplest approach to changing $(DEPDIR) to its actual value in the
12255 # expansion.
12256 for file in `sed -n "
12257 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12258 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12259 # Make sure the directory exists.
12260 test -f "$dirpart/$file" && continue
12261 fdir=`$as_dirname -- "$file" ||
12262 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12263 X"$file" : 'X\(//\)[^/]' \| \
12264 X"$file" : 'X\(//\)$' \| \
12265 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12266 $as_echo X"$file" |
12267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12268 s//\1/
12269 q
12270 }
12271 /^X\(\/\/\)[^/].*/{
12272 s//\1/
12273 q
12274 }
12275 /^X\(\/\/\)$/{
12276 s//\1/
12277 q
12278 }
12279 /^X\(\/\).*/{
12280 s//\1/
12281 q
12282 }
12283 s/.*/./; q'`
12284 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12285 # echo "creating $dirpart/$file"
12286 echo '# dummy' > "$dirpart/$file"
12287 done
12288 done
12289 }
12290 ;;
12291
12292 esac
12293 done # for ac_tag
12294
12295
12296 as_fn_exit 0
12297 _ACEOF
12298 ac_clean_files=$ac_clean_files_save
12299
12300 test $ac_write_fail = 0 ||
12301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12302
12303
12304 # configure is writing to config.log, and then calls config.status.
12305 # config.status does its own redirection, appending to config.log.
12306 # Unfortunately, on DOS this fails, as config.log is still kept open
12307 # by configure, so config.status won't be able to write to it; its
12308 # output is simply discarded. So we exec the FD to /dev/null,
12309 # effectively closing config.log, so it can be properly (re)opened and
12310 # appended to by config.status. When coming back to configure, we
12311 # need to make the FD available again.
12312 if test "$no_create" != yes; then
12313 ac_cs_success=:
12314 ac_config_status_args=
12315 test "$silent" = yes &&
12316 ac_config_status_args="$ac_config_status_args --quiet"
12317 exec 5>/dev/null
12318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12319 exec 5>>config.log
12320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12321 # would make configure fail if this is the last instruction.
12322 $ac_cs_success || as_fn_exit 1
12323 fi
12324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12327 fi
12328
12329