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.69 for xbitmaps 1.1.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xbitmaps'
583 PACKAGE_TARNAME='xbitmaps'
584 PACKAGE_VERSION='1.1.2'
585 PACKAGE_STRING='xbitmaps 1.1.2'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 MAN_SUBSTS
631 XORG_MAN_PAGE
632 ADMIN_MAN_DIR
633 DRIVER_MAN_DIR
634 MISC_MAN_DIR
635 FILE_MAN_DIR
636 LIB_MAN_DIR
637 APP_MAN_DIR
638 ADMIN_MAN_SUFFIX
639 DRIVER_MAN_SUFFIX
640 MISC_MAN_SUFFIX
641 FILE_MAN_SUFFIX
642 LIB_MAN_SUFFIX
643 APP_MAN_SUFFIX
644 SED
645 host_os
646 host_vendor
647 host_cpu
648 host
649 build_os
650 build_vendor
651 build_cpu
652 build
653 INSTALL_CMD
654 PKG_CONFIG_LIBDIR
655 PKG_CONFIG_PATH
656 PKG_CONFIG
657 CHANGELOG_CMD
658 STRICT_CFLAGS
659 CWARNFLAGS
660 BASE_CFLAGS
661 EGREP
662 GREP
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_silent_rules
750 enable_dependency_tracking
751 enable_selective_werror
752 enable_strict_compilation
753 '
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
757 CC
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CPP
763 PKG_CONFIG
764 PKG_CONFIG_PATH
765 PKG_CONFIG_LIBDIR'
766
767
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
789
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
825 fi
826
827 case $ac_option in
828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *=) ac_optarg= ;;
830 *) ac_optarg=yes ;;
831 esac
832
833 # Accept the important Cygnus configure options, so we can diagnose typos.
834
835 case $ac_dashdash$ac_option in
836 --)
837 ac_dashdash=yes ;;
838
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
843
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
848
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
855
856 --config-cache | -C)
857 cache_file=config.cache ;;
858
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
863
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
870
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
886
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
891
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
896
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
912
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
921
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
925
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
932
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
937
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
943
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
950
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
955
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
960
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
967
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
972
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
979
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
984
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
988
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
992
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
996
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1005
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1010
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1017
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1024
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1041
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1046
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1051
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information"
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171 ;;
1172
1173 esac
1174 done
1175
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $? "missing argument to $ac_option"
1179 fi
1180
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187 fi
1188
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1194 do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271 else
1272 ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures xbitmaps 1.1.2 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/xbitmaps]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1360
1361 cat <<\_ACEOF
1362
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of xbitmaps 1.1.2:";;
1377 esac
1378 cat <<\_ACEOF
1379
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-silent-rules less verbose build output (undo: "make V=1")
1385 --disable-silent-rules verbose build output (undo: "make V=0")
1386 --enable-dependency-tracking
1387 do not reject slow dependency extractors
1388 --disable-dependency-tracking
1389 speeds up one-time build
1390 --disable-selective-werror
1391 Turn off selective compiler errors. (default:
1392 enabled)
1393 --enable-strict-compilation
1394 Enable all warnings from compiler and make them
1395 errors (default: disabled)
1396
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1405 CPP C preprocessor
1406 PKG_CONFIG path to pkg-config utility
1407 PKG_CONFIG_PATH
1408 directories to add to pkg-config's search path
1409 PKG_CONFIG_LIBDIR
1410 path overriding pkg-config's built-in search path
1411
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1414
1415 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 xbitmaps configure 1.1.2
1479 generated by GNU Autoconf 2.69
1480
1481 Copyright (C) 2012 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1486 fi
1487
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1491
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1496 {
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1512 fi
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519 else
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523 ac_retval=1
1524 fi
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1527
1528 } # ac_fn_c_try_compile
1529
1530 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531 # ---------------------------------------------
1532 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533 # accordingly.
1534 ac_fn_c_check_decl ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 as_decl_name=`echo $2|sed 's/ *(.*//'`
1538 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541 if eval \${$3+:} false; then :
1542 $as_echo_n "(cached) " >&6
1543 else
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1546 $4
1547 int
1548 main ()
1549 {
1550 #ifndef $as_decl_name
1551 #ifdef __cplusplus
1552 (void) $as_decl_use;
1553 #else
1554 (void) $as_decl_name;
1555 #endif
1556 #endif
1557
1558 ;
1559 return 0;
1560 }
1561 _ACEOF
1562 if ac_fn_c_try_compile "$LINENO"; then :
1563 eval "$3=yes"
1564 else
1565 eval "$3=no"
1566 fi
1567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568 fi
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574 } # ac_fn_c_check_decl
1575
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_cpp ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i && {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_cpp
1612
1613 # ac_fn_c_try_run LINENO
1614 # ----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616 # that executables *can* be run.
1617 ac_fn_c_try_run ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>&5
1628 ac_status=$?
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1638 ac_status=$?
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; }; }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: program exited with status $ac_status" >&5
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=$ac_status
1648 fi
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_run
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_header_compile
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 test -x conftest$ac_exeext
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_link
1731 cat >config.log <<_ACEOF
1732 This file contains any messages produced by compilers while
1733 running configure, to aid debugging if configure makes a mistake.
1734
1735 It was created by xbitmaps $as_me 1.1.2, which was
1736 generated by GNU Autoconf 2.69. Invocation command line was
1737
1738 $ $0 $@
1739
1740 _ACEOF
1741 exec 5>>config.log
1742 {
1743 cat <<_ASUNAME
1744 ## --------- ##
1745 ## Platform. ##
1746 ## --------- ##
1747
1748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1756
1757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1764
1765 _ASUNAME
1766
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770 IFS=$as_save_IFS
1771 test -z "$as_dir" && as_dir=.
1772 $as_echo "PATH: $as_dir"
1773 done
1774 IFS=$as_save_IFS
1775
1776 } >&5
1777
1778 cat >&5 <<_ACEOF
1779
1780
1781 ## ----------- ##
1782 ## Core tests. ##
1783 ## ----------- ##
1784
1785 _ACEOF
1786
1787
1788 # Keep a trace of the command line.
1789 # Strip out --no-create and --no-recursion so they do not pile up.
1790 # Strip out --silent because we don't want to record it for future runs.
1791 # Also quote any args containing shell meta-characters.
1792 # Make two passes to allow for proper duplicate-argument suppression.
1793 ac_configure_args=
1794 ac_configure_args0=
1795 ac_configure_args1=
1796 ac_must_keep_next=false
1797 for ac_pass in 1 2
1798 do
1799 for ac_arg
1800 do
1801 case $ac_arg in
1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804 | -silent | --silent | --silen | --sile | --sil)
1805 continue ;;
1806 *\'*)
1807 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 esac
1809 case $ac_pass in
1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811 2)
1812 as_fn_append ac_configure_args1 " '$ac_arg'"
1813 if test $ac_must_keep_next = true; then
1814 ac_must_keep_next=false # Got value, back to normal.
1815 else
1816 case $ac_arg in
1817 *=* | --config-cache | -C | -disable-* | --disable-* \
1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820 | -with-* | --with-* | -without-* | --without-* | --x)
1821 case "$ac_configure_args0 " in
1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823 esac
1824 ;;
1825 -* ) ac_must_keep_next=true ;;
1826 esac
1827 fi
1828 as_fn_append ac_configure_args " '$ac_arg'"
1829 ;;
1830 esac
1831 done
1832 done
1833 { ac_configure_args0=; unset ac_configure_args0;}
1834 { ac_configure_args1=; unset ac_configure_args1;}
1835
1836 # When interrupted or exit'd, cleanup temporary files, and complete
1837 # config.log. We remove comments because anyway the quotes in there
1838 # would cause problems or look ugly.
1839 # WARNING: Use '\'' to represent an apostrophe within the trap.
1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841 trap 'exit_status=$?
1842 # Save into config.log some information that might help in debugging.
1843 {
1844 echo
1845
1846 $as_echo "## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##"
1849 echo
1850 # The following way of writing the cache mishandles newlines in values,
1851 (
1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in #(
1855 *${as_nl}*)
1856 case $ac_var in #(
1857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859 esac
1860 case $ac_var in #(
1861 _ | IFS | as_nl) ;; #(
1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863 *) { eval $ac_var=; unset $ac_var;} ;;
1864 esac ;;
1865 esac
1866 done
1867 (set) 2>&1 |
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1870 sed -n \
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873 ;; #(
1874 *)
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 ;;
1877 esac |
1878 sort
1879 )
1880 echo
1881
1882 $as_echo "## ----------------- ##
1883 ## Output variables. ##
1884 ## ----------------- ##"
1885 echo
1886 for ac_var in $ac_subst_vars
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 $as_echo "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895
1896 if test -n "$ac_subst_files"; then
1897 $as_echo "## ------------------- ##
1898 ## File substitutions. ##
1899 ## ------------------- ##"
1900 echo
1901 for ac_var in $ac_subst_files
1902 do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 esac
1907 $as_echo "$ac_var='\''$ac_val'\''"
1908 done | sort
1909 echo
1910 fi
1911
1912 if test -s confdefs.h; then
1913 $as_echo "## ----------- ##
1914 ## confdefs.h. ##
1915 ## ----------- ##"
1916 echo
1917 cat confdefs.h
1918 echo
1919 fi
1920 test "$ac_signal" != 0 &&
1921 $as_echo "$as_me: caught signal $ac_signal"
1922 $as_echo "$as_me: exit $exit_status"
1923 } >&5
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 $as_echo "/* confdefs.h */" > confdefs.h
1937
1938 # Predefined preprocessor variables.
1939
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_NAME "$PACKAGE_NAME"
1942 _ACEOF
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946 _ACEOF
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 _ACEOF
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958 _ACEOF
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_URL "$PACKAGE_URL"
1962 _ACEOF
1963
1964
1965 # Let the site file select an alternate cache file if it wants to.
1966 # Prefer an explicitly selected file to automatically selected ones.
1967 ac_site_file1=NONE
1968 ac_site_file2=NONE
1969 if test -n "$CONFIG_SITE"; then
1970 # We do not want a PATH search for config.site.
1971 case $CONFIG_SITE in #((
1972 -*) ac_site_file1=./$CONFIG_SITE;;
1973 */*) ac_site_file1=$CONFIG_SITE;;
1974 *) ac_site_file1=./$CONFIG_SITE;;
1975 esac
1976 elif test "x$prefix" != xNONE; then
1977 ac_site_file1=$prefix/share/config.site
1978 ac_site_file2=$prefix/etc/config.site
1979 else
1980 ac_site_file1=$ac_default_prefix/share/config.site
1981 ac_site_file2=$ac_default_prefix/etc/config.site
1982 fi
1983 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1984 do
1985 test "x$ac_site_file" = xNONE && continue
1986 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1988 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989 sed 's/^/| /' "$ac_site_file" >&5
1990 . "$ac_site_file" \
1991 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1993 as_fn_error $? "failed to load site script $ac_site_file
1994 See \`config.log' for more details" "$LINENO" 5; }
1995 fi
1996 done
1997
1998 if test -r "$cache_file"; then
1999 # Some versions of bash will fail to source /dev/null (special files
2000 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2001 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2003 $as_echo "$as_me: loading cache $cache_file" >&6;}
2004 case $cache_file in
2005 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006 *) . "./$cache_file";;
2007 esac
2008 fi
2009 else
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2011 $as_echo "$as_me: creating cache $cache_file" >&6;}
2012 >$cache_file
2013 fi
2014
2015 # Check that the precious variables saved in the cache have kept the same
2016 # value.
2017 ac_cache_corrupted=false
2018 for ac_var in $ac_precious_vars; do
2019 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020 eval ac_new_set=\$ac_env_${ac_var}_set
2021 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2022 eval ac_new_val=\$ac_env_${ac_var}_value
2023 case $ac_old_set,$ac_new_set in
2024 set,)
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027 ac_cache_corrupted=: ;;
2028 ,set)
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031 ac_cache_corrupted=: ;;
2032 ,);;
2033 *)
2034 if test "x$ac_old_val" != "x$ac_new_val"; then
2035 # differences in whitespace do not lead to failure.
2036 ac_old_val_w=`echo x $ac_old_val`
2037 ac_new_val_w=`echo x $ac_new_val`
2038 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2041 ac_cache_corrupted=:
2042 else
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2045 eval $ac_var=\$ac_old_val
2046 fi
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2048 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2050 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2051 fi;;
2052 esac
2053 # Pass precious variables to config.status.
2054 if test "$ac_new_set" = set; then
2055 case $ac_new_val in
2056 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 *) ac_arg=$ac_var=$ac_new_val ;;
2058 esac
2059 case " $ac_configure_args " in
2060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2061 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2062 esac
2063 fi
2064 done
2065 if $ac_cache_corrupted; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2070 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2071 fi
2072 ## -------------------- ##
2073 ## Main body of script. ##
2074 ## -------------------- ##
2075
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082
2083
2084 ac_config_headers="$ac_config_headers config.h"
2085
2086
2087 # Initialize Automake
2088 am__api_version='1.15'
2089
2090 ac_aux_dir=
2091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092 if test -f "$ac_dir/install-sh"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 break
2096 elif test -f "$ac_dir/install.sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 break
2100 elif test -f "$ac_dir/shtool"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 break
2104 fi
2105 done
2106 if test -z "$ac_aux_dir"; then
2107 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2108 fi
2109
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119 # Find a good install program. We prefer a C program (faster),
2120 # so one script is as good as another. But avoid the broken or
2121 # incompatible versions:
2122 # SysV /etc/install, /usr/sbin/install
2123 # SunOS /usr/etc/install
2124 # IRIX /sbin/install
2125 # AIX /bin/install
2126 # AmigaOS /C/install, which installs bootblocks on floppy discs
2127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2130 # OS/2's system install, which has a completely different semantic
2131 # ./install, which can be erroneously created by make from ./install.sh.
2132 # Reject install programs that cannot install multiple files.
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2134 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2135 if test -z "$INSTALL"; then
2136 if ${ac_cv_path_install+:} false; then :
2137 $as_echo_n "(cached) " >&6
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 # Account for people who put trailing slashes in PATH elements.
2145 case $as_dir/ in #((
2146 ./ | .// | /[cC]/* | \
2147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2149 /usr/ucb/* ) ;;
2150 *)
2151 # OSF1 and SCO ODT 3.0 have their own names for install.
2152 # Don't use installbsd from OSF since it installs stuff as root
2153 # by default.
2154 for ac_prog in ginstall scoinst install; do
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2157 if test $ac_prog = install &&
2158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159 # AIX install. It has an incompatible calling convention.
2160 :
2161 elif test $ac_prog = install &&
2162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163 # program-specific install script used by HP pwplus--don't use.
2164 :
2165 else
2166 rm -rf conftest.one conftest.two conftest.dir
2167 echo one > conftest.one
2168 echo two > conftest.two
2169 mkdir conftest.dir
2170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2171 test -s conftest.one && test -s conftest.two &&
2172 test -s conftest.dir/conftest.one &&
2173 test -s conftest.dir/conftest.two
2174 then
2175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2176 break 3
2177 fi
2178 fi
2179 fi
2180 done
2181 done
2182 ;;
2183 esac
2184
2185 done
2186 IFS=$as_save_IFS
2187
2188 rm -rf conftest.one conftest.two conftest.dir
2189
2190 fi
2191 if test "${ac_cv_path_install+set}" = set; then
2192 INSTALL=$ac_cv_path_install
2193 else
2194 # As a last resort, use the slow shell script. Don't cache a
2195 # value for INSTALL within a source directory, because that will
2196 # break other packages using the cache if that directory is
2197 # removed, or if the value is a relative name.
2198 INSTALL=$ac_install_sh
2199 fi
2200 fi
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2202 $as_echo "$INSTALL" >&6; }
2203
2204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2205 # It thinks the first close brace ends the variable substitution.
2206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2207
2208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2209
2210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2211
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2213 $as_echo_n "checking whether build environment is sane... " >&6; }
2214 # Reject unsafe characters in $srcdir or the absolute working directory
2215 # name. Accept space and tab only in the latter.
2216 am_lf='
2217 '
2218 case `pwd` in
2219 *[\\\"\#\$\&\'\`$am_lf]*)
2220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2221 esac
2222 case $srcdir in
2223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2225 esac
2226
2227 # Do 'set' in a subshell so we don't clobber the current shell's
2228 # arguments. Must try -L first in case configure is actually a
2229 # symlink; some systems play weird games with the mod time of symlinks
2230 # (eg FreeBSD returns the mod time of the symlink's containing
2231 # directory).
2232 if (
2233 am_has_slept=no
2234 for am_try in 1 2; do
2235 echo "timestamp, slept: $am_has_slept" > conftest.file
2236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2237 if test "$*" = "X"; then
2238 # -L didn't work.
2239 set X `ls -t "$srcdir/configure" conftest.file`
2240 fi
2241 if test "$*" != "X $srcdir/configure conftest.file" \
2242 && test "$*" != "X conftest.file $srcdir/configure"; then
2243
2244 # If neither matched, then we have a broken ls. This can happen
2245 # if, for instance, CONFIG_SHELL is bash and it inherits a
2246 # broken ls alias from the environment. This has actually
2247 # happened. Such a system could not be considered "sane".
2248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2249 alias in your environment" "$LINENO" 5
2250 fi
2251 if test "$2" = conftest.file || test $am_try -eq 2; then
2252 break
2253 fi
2254 # Just in case.
2255 sleep 1
2256 am_has_slept=yes
2257 done
2258 test "$2" = conftest.file
2259 )
2260 then
2261 # Ok.
2262 :
2263 else
2264 as_fn_error $? "newly created file is older than distributed files!
2265 Check your system clock" "$LINENO" 5
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2268 $as_echo "yes" >&6; }
2269 # If we didn't sleep, we still need to ensure time stamps of config.status and
2270 # generated files are strictly newer.
2271 am_sleep_pid=
2272 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2273 ( sleep 1 ) &
2274 am_sleep_pid=$!
2275 fi
2276
2277 rm -f conftest.file
2278
2279 test "$program_prefix" != NONE &&
2280 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281 # Use a double $ so make ignores it.
2282 test "$program_suffix" != NONE &&
2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284 # Double any \ or $.
2285 # By default was `s,x,x', remove it if useless.
2286 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2287 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2288
2289 # Expand $ac_aux_dir to an absolute path.
2290 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2291
2292 if test x"${MISSING+set}" != xset; then
2293 case $am_aux_dir in
2294 *\ * | *\ *)
2295 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2296 *)
2297 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2298 esac
2299 fi
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --is-lightweight"; then
2302 am_missing_run="$MISSING "
2303 else
2304 am_missing_run=
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2306 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2307 fi
2308
2309 if test x"${install_sh+set}" != xset; then
2310 case $am_aux_dir in
2311 *\ * | *\ *)
2312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2313 *)
2314 install_sh="\${SHELL} $am_aux_dir/install-sh"
2315 esac
2316 fi
2317
2318 # Installed binaries are usually stripped using 'strip' when the user
2319 # run "make install-strip". However 'strip' might not be the right
2320 # tool to use in cross-compilation environments, therefore Automake
2321 # will honor the 'STRIP' environment variable to overrule this program.
2322 if test "$cross_compiling" != no; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if ${ac_cv_prog_STRIP+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 STRIP=$ac_cv_prog_STRIP
2352 if test -n "$STRIP"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2354 $as_echo "$STRIP" >&6; }
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2357 $as_echo "no" >&6; }
2358 fi
2359
2360
2361 fi
2362 if test -z "$ac_cv_prog_STRIP"; then
2363 ac_ct_STRIP=$STRIP
2364 # Extract the first word of "strip", so it can be a program name with args.
2365 set dummy strip; ac_word=$2
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367 $as_echo_n "checking for $ac_word... " >&6; }
2368 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 if test -n "$ac_ct_STRIP"; then
2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 ac_cv_prog_ac_ct_STRIP="strip"
2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2384 fi
2385 done
2386 done
2387 IFS=$as_save_IFS
2388
2389 fi
2390 fi
2391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2392 if test -n "$ac_ct_STRIP"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2394 $as_echo "$ac_ct_STRIP" >&6; }
2395 else
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397 $as_echo "no" >&6; }
2398 fi
2399
2400 if test "x$ac_ct_STRIP" = x; then
2401 STRIP=":"
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409 STRIP=$ac_ct_STRIP
2410 fi
2411 else
2412 STRIP="$ac_cv_prog_STRIP"
2413 fi
2414
2415 fi
2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2419 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2420 if test -z "$MKDIR_P"; then
2421 if ${ac_cv_path_mkdir+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_prog in mkdir gmkdir; do
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2433 'mkdir (GNU coreutils) '* | \
2434 'mkdir (coreutils) '* | \
2435 'mkdir (fileutils) '4.1*)
2436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2437 break 3;;
2438 esac
2439 done
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445
2446 test -d ./--version && rmdir ./--version
2447 if test "${ac_cv_path_mkdir+set}" = set; then
2448 MKDIR_P="$ac_cv_path_mkdir -p"
2449 else
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for MKDIR_P within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 MKDIR_P="$ac_install_sh -d"
2455 fi
2456 fi
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2458 $as_echo "$MKDIR_P" >&6; }
2459
2460 for ac_prog in gawk mawk nawk awk
2461 do
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_AWK+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$AWK"; then
2470 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_AWK="$ac_prog"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 AWK=$ac_cv_prog_AWK
2490 if test -n "$AWK"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2492 $as_echo "$AWK" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499 test -n "$AWK" && break
2500 done
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2504 set x ${MAKE-make}
2505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat >conftest.make <<\_ACEOF
2510 SHELL = /bin/sh
2511 all:
2512 @echo '@@@%%%=$(MAKE)=@@@%%%'
2513 _ACEOF
2514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2516 *@@@%%%=?*=@@@%%%*)
2517 eval ac_cv_prog_make_${ac_make}_set=yes;;
2518 *)
2519 eval ac_cv_prog_make_${ac_make}_set=no;;
2520 esac
2521 rm -f conftest.make
2522 fi
2523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2526 SET_MAKE=
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 SET_MAKE="MAKE=${MAKE-make}"
2531 fi
2532
2533 rm -rf .tst 2>/dev/null
2534 mkdir .tst 2>/dev/null
2535 if test -d .tst; then
2536 am__leading_dot=.
2537 else
2538 am__leading_dot=_
2539 fi
2540 rmdir .tst 2>/dev/null
2541
2542 # Check whether --enable-silent-rules was given.
2543 if test "${enable_silent_rules+set}" = set; then :
2544 enableval=$enable_silent_rules;
2545 fi
2546
2547 case $enable_silent_rules in # (((
2548 yes) AM_DEFAULT_VERBOSITY=0;;
2549 no) AM_DEFAULT_VERBOSITY=1;;
2550 *) AM_DEFAULT_VERBOSITY=1;;
2551 esac
2552 am_make=${MAKE-make}
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2554 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2555 if ${am_cv_make_support_nested_variables+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if $as_echo 'TRUE=$(BAR$(V))
2559 BAR0=false
2560 BAR1=true
2561 V=1
2562 am__doit:
2563 @$(TRUE)
2564 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2565 am_cv_make_support_nested_variables=yes
2566 else
2567 am_cv_make_support_nested_variables=no
2568 fi
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2571 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2572 if test $am_cv_make_support_nested_variables = yes; then
2573 AM_V='$(V)'
2574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2575 else
2576 AM_V=$AM_DEFAULT_VERBOSITY
2577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2578 fi
2579 AM_BACKSLASH='\'
2580
2581 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2582 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2583 # is not polluted with repeated "-I."
2584 am__isrc=' -I$(srcdir)'
2585 # test to see if srcdir already configured
2586 if test -f $srcdir/config.status; then
2587 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2588 fi
2589 fi
2590
2591 # test whether we have cygpath
2592 if test -z "$CYGPATH_W"; then
2593 if (cygpath --version) >/dev/null 2>/dev/null; then
2594 CYGPATH_W='cygpath -w'
2595 else
2596 CYGPATH_W=echo
2597 fi
2598 fi
2599
2600
2601 # Define the identity of the package.
2602 PACKAGE='xbitmaps'
2603 VERSION='1.1.2'
2604
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE "$PACKAGE"
2608 _ACEOF
2609
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define VERSION "$VERSION"
2613 _ACEOF
2614
2615 # Some tools Automake needs.
2616
2617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2618
2619
2620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2621
2622
2623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2624
2625
2626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2627
2628
2629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2630
2631 # For better backward compatibility. To be removed once Automake 1.9.x
2632 # dies out for good. For more background, see:
2633 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2634 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2635 mkdir_p='$(MKDIR_P)'
2636
2637 # We need awk for the "check" target (and possibly the TAP driver). The
2638 # system "awk" is bad on some platforms.
2639 # Always define AMTAR for backward compatibility. Yes, it's still used
2640 # in the wild :-( We should find a proper way to deprecate it ...
2641 AMTAR='$${TAR-tar}'
2642
2643
2644 # We'll loop over all known methods to create a tar archive until one works.
2645 _am_tools='gnutar pax cpio none'
2646
2647 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2648
2649
2650
2651
2652
2653
2654 # POSIX will say in a future version that running "rm -f" with no argument
2655 # is OK; and we want to be able to make that assumption in our Makefile
2656 # recipes. So use an aggressive probe to check that the usage we want is
2657 # actually supported "in the wild" to an acceptable degree.
2658 # See automake bug#10828.
2659 # To make any issue more visible, cause the running configure to be aborted
2660 # by default if the 'rm' program in use doesn't match our expectations; the
2661 # user can still override this though.
2662 if rm -f && rm -fr && rm -rf; then : OK; else
2663 cat >&2 <<'END'
2664 Oops!
2665
2666 Your 'rm' program seems unable to run without file operands specified
2667 on the command line, even when the '-f' option is present. This is contrary
2668 to the behaviour of most rm programs out there, and not conforming with
2669 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2670
2671 Please tell bug-automake@gnu.org about your system, including the value
2672 of your $PATH and any error possibly output before this message. This
2673 can help us improve future automake versions.
2674
2675 END
2676 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2677 echo 'Configuration will proceed anyway, since you have set the' >&2
2678 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2679 echo >&2
2680 else
2681 cat >&2 <<'END'
2682 Aborting the configuration process, to ensure you take notice of the issue.
2683
2684 You can download and install GNU coreutils to get an 'rm' implementation
2685 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2686
2687 If you want to complete the configuration process using your problematic
2688 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2689 to "yes", and re-run configure.
2690
2691 END
2692 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2693 fi
2694 fi
2695
2696
2697 # Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709 DEPDIR="${am__leading_dot}deps"
2710
2711 ac_config_commands="$ac_config_commands depfiles"
2712
2713
2714 am_make=${MAKE-make}
2715 cat > confinc << 'END'
2716 am__doit:
2717 @echo this is the am__doit target
2718 .PHONY: am__doit
2719 END
2720 # If we don't find an include directive, just comment out the code.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2722 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2723 am__include="#"
2724 am__quote=
2725 _am_result=none
2726 # First try GNU make style include.
2727 echo "include confinc" > confmf
2728 # Ignore all kinds of additional output from 'make'.
2729 case `$am_make -s -f confmf 2> /dev/null` in #(
2730 *the\ am__doit\ target*)
2731 am__include=include
2732 am__quote=
2733 _am_result=GNU
2734 ;;
2735 esac
2736 # Now try BSD make style include.
2737 if test "$am__include" = "#"; then
2738 echo '.include "confinc"' > confmf
2739 case `$am_make -s -f confmf 2> /dev/null` in #(
2740 *the\ am__doit\ target*)
2741 am__include=.include
2742 am__quote="\""
2743 _am_result=BSD
2744 ;;
2745 esac
2746 fi
2747
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2750 $as_echo "$_am_result" >&6; }
2751 rm -f confinc confmf
2752
2753 # Check whether --enable-dependency-tracking was given.
2754 if test "${enable_dependency_tracking+set}" = set; then :
2755 enableval=$enable_dependency_tracking;
2756 fi
2757
2758 if test "x$enable_dependency_tracking" != xno; then
2759 am_depcomp="$ac_aux_dir/depcomp"
2760 AMDEPBACKSLASH='\'
2761 am__nodep='_no'
2762 fi
2763 if test "x$enable_dependency_tracking" != xno; then
2764 AMDEP_TRUE=
2765 AMDEP_FALSE='#'
2766 else
2767 AMDEP_TRUE='#'
2768 AMDEP_FALSE=
2769 fi
2770
2771
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 CC=$ac_cv_prog_CC
2806 if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808 $as_echo "$CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 fi
2816 if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "gcc", so it can be a program name with args.
2819 set dummy gcc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="gcc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846 if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2848 $as_echo "$ac_ct_CC" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863 CC=$ac_ct_CC
2864 fi
2865 else
2866 CC="$ac_cv_prog_CC"
2867 fi
2868
2869 if test -z "$CC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}cc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_CC="${ac_tool_prefix}cc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 fi
2909 fi
2910 if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912 set dummy cc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 ac_prog_rejected=no
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2931 continue
2932 fi
2933 ac_cv_prog_CC="cc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 if test $ac_prog_rejected = yes; then
2942 # We found a bogon in the path, so make sure we never use it.
2943 set dummy $ac_cv_prog_CC
2944 shift
2945 if test $# != 0; then
2946 # We chose a different compiler from the bogus one.
2947 # However, it has the same basename, so the bogon will be chosen
2948 # first if we set CC to just the basename; use the full file name.
2949 shift
2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 fi
2952 fi
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 for ac_prog in cl.exe
2969 do
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996 fi
2997 CC=$ac_cv_prog_CC
2998 if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000 $as_echo "$CC" >&6; }
3001 else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 fi
3005
3006
3007 test -n "$CC" && break
3008 done
3009 fi
3010 if test -z "$CC"; then
3011 ac_ct_CC=$CC
3012 for ac_prog in cl.exe
3013 do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031 ac_cv_prog_ac_ct_CC="$ac_prog"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042 if test -n "$ac_ct_CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044 $as_echo "$ac_ct_CC" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 test -n "$ac_ct_CC" && break
3052 done
3053
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058 yes:)
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061 ac_tool_warned=yes ;;
3062 esac
3063 CC=$ac_ct_CC
3064 fi
3065 fi
3066
3067 fi
3068
3069
3070 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "no acceptable C compiler found in \$PATH
3073 See \`config.log' for more details" "$LINENO" 5; }
3074
3075 # Provide some information about the compiler.
3076 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3077 set X $ac_compile
3078 ac_compiler=$2
3079 for ac_option in --version -v -V -qversion; do
3080 { { ac_try="$ac_compiler $ac_option >&5"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3088 ac_status=$?
3089 if test -s conftest.err; then
3090 sed '10a\
3091 ... rest of stderr output deleted ...
3092 10q' conftest.err >conftest.er1
3093 cat conftest.er1 >&5
3094 fi
3095 rm -f conftest.er1 conftest.err
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3098 done
3099
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3102
3103 int
3104 main ()
3105 {
3106
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 ac_clean_files_save=$ac_clean_files
3112 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3113 # Try to create an executable without -o first, disregard a.out.
3114 # It will help us diagnose broken compilers, and finding out an intuition
3115 # of exeext.
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117 $as_echo_n "checking whether the C compiler works... " >&6; }
3118 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3119
3120 # The possible output files:
3121 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3122
3123 ac_rmfiles=
3124 for ac_file in $ac_files
3125 do
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3129 esac
3130 done
3131 rm -f $ac_rmfiles
3132
3133 if { { ac_try="$ac_link_default"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link_default") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3147 # so that the user can short-circuit this test for compilers unknown to
3148 # Autoconf.
3149 for ac_file in $ac_files ''
3150 do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3154 ;;
3155 [ab].out )
3156 # We found the default executable, but exeext='' is most
3157 # certainly right.
3158 break;;
3159 *.* )
3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3161 then :; else
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 fi
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3168 # actually working.
3169 break;;
3170 * )
3171 break;;
3172 esac
3173 done
3174 test "$ac_cv_exeext" = no && ac_cv_exeext=
3175
3176 else
3177 ac_file=''
3178 fi
3179 if test -z "$ac_file"; then :
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error 77 "C compiler cannot create executables
3188 See \`config.log' for more details" "$LINENO" 5; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3192 fi
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194 $as_echo_n "checking for C compiler default output file name... " >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3196 $as_echo "$ac_file" >&6; }
3197 ac_exeext=$ac_cv_exeext
3198
3199 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3200 ac_clean_files=$ac_clean_files_save
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3202 $as_echo_n "checking for suffix of executables... " >&6; }
3203 if { { ac_try="$ac_link"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216 # work properly (i.e., refer to `conftest.exe'), while it won't with
3217 # `rm'.
3218 for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 break;;
3224 * ) break;;
3225 esac
3226 done
3227 else
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3231 See \`config.log' for more details" "$LINENO" 5; }
3232 fi
3233 rm -f conftest conftest$ac_cv_exeext
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3235 $as_echo "$ac_cv_exeext" >&6; }
3236
3237 rm -f conftest.$ac_ext
3238 EXEEXT=$ac_cv_exeext
3239 ac_exeext=$EXEEXT
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242 #include <stdio.h>
3243 int
3244 main ()
3245 {
3246 FILE *f = fopen ("conftest.out", "w");
3247 return ferror (f) || fclose (f) != 0;
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 ac_clean_files="$ac_clean_files conftest.out"
3254 # Check that the compiler produces executables we can run. If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257 $as_echo_n "checking whether we are cross compiling... " >&6; }
3258 if test "$cross_compiling" != yes; then
3259 { { ac_try="$ac_link"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 if { ac_try='./conftest$ac_cv_exeext'
3271 { { case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_try") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; }; then
3281 cross_compiling=no
3282 else
3283 if test "$cross_compiling" = maybe; then
3284 cross_compiling=yes
3285 else
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot run C compiled programs.
3289 If you meant to cross compile, use \`--host'.
3290 See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 fi
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3295 $as_echo "$cross_compiling" >&6; }
3296
3297 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3298 ac_clean_files=$ac_clean_files_save
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3300 $as_echo_n "checking for suffix of object files... " >&6; }
3301 if ${ac_cv_objext+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.o conftest.obj
3316 if { { ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compile") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332 break;;
3333 esac
3334 done
3335 else
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot compute suffix of object files: cannot compile
3342 See \`config.log' for more details" "$LINENO" 5; }
3343 fi
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347 $as_echo "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3349 ac_objext=$OBJEXT
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352 if ${ac_cv_c_compiler_gnu+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357
3358 int
3359 main ()
3360 {
3361 #ifndef __GNUC__
3362 choke me
3363 #endif
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_compiler_gnu=yes
3371 else
3372 ac_compiler_gnu=no
3373 fi
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3376
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3379 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3380 if test $ac_compiler_gnu = yes; then
3381 GCC=yes
3382 else
3383 GCC=
3384 fi
3385 ac_test_CFLAGS=${CFLAGS+set}
3386 ac_save_CFLAGS=$CFLAGS
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3388 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3389 if ${ac_cv_prog_cc_g+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 ac_save_c_werror_flag=$ac_c_werror_flag
3393 ac_c_werror_flag=yes
3394 ac_cv_prog_cc_g=no
3395 CFLAGS="-g"
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_g=yes
3409 else
3410 CFLAGS=""
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423
3424 else
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429
3430 int
3431 main ()
3432 {
3433
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_cv_prog_cc_g=yes
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 fi
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3449 $as_echo "$ac_cv_prog_cc_g" >&6; }
3450 if test "$ac_test_CFLAGS" = set; then
3451 CFLAGS=$ac_save_CFLAGS
3452 elif test $ac_cv_prog_cc_g = yes; then
3453 if test "$GCC" = yes; then
3454 CFLAGS="-g -O2"
3455 else
3456 CFLAGS="-g"
3457 fi
3458 else
3459 if test "$GCC" = yes; then
3460 CFLAGS="-O2"
3461 else
3462 CFLAGS=
3463 fi
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3466 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3467 if ${ac_cv_prog_cc_c89+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 ac_cv_prog_cc_c89=no
3471 ac_save_CC=$CC
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474 #include <stdarg.h>
3475 #include <stdio.h>
3476 struct stat;
3477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478 struct buf { int x; };
3479 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480 static char *e (p, i)
3481 char **p;
3482 int i;
3483 {
3484 return p[i];
3485 }
3486 static char *f (char * (*g) (char **, int), char **p, ...)
3487 {
3488 char *s;
3489 va_list v;
3490 va_start (v,p);
3491 s = g (p, va_arg (v,int));
3492 va_end (v);
3493 return s;
3494 }
3495
3496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
3499 as 'x'. The following induces an error, until -std is added to get
3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
3502 that's true only with -std. */
3503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
3505 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3507 #define FOO(x) 'x'
3508 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
3510 int test (int i, double x);
3511 struct s1 {int (*f) (int a);};
3512 struct s2 {int (*f) (double a);};
3513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514 int argc;
3515 char **argv;
3516 int
3517 main ()
3518 {
3519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3526 do
3527 CC="$ac_save_CC $ac_arg"
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_c89=$ac_arg
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
3533 done
3534 rm -f conftest.$ac_ext
3535 CC=$ac_save_CC
3536
3537 fi
3538 # AC_CACHE_VAL
3539 case "x$ac_cv_prog_cc_c89" in
3540 x)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3542 $as_echo "none needed" >&6; } ;;
3543 xno)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545 $as_echo "unsupported" >&6; } ;;
3546 *)
3547 CC="$CC $ac_cv_prog_cc_c89"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3550 esac
3551 if test "x$ac_cv_prog_cc_c89" != xno; then :
3552
3553 fi
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3567 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3568 if ${am_cv_prog_cc_c_o+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573
3574 int
3575 main ()
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 # Make sure it works both with $CC and with simple cc.
3583 # Following AC_PROG_CC_C_O, we do the test twice because some
3584 # compilers refuse to overwrite an existing .o file with -o,
3585 # though they will create one.
3586 am_cv_prog_cc_c_o=yes
3587 for am_i in 1 2; do
3588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } \
3593 && test -f conftest2.$ac_objext; then
3594 : OK
3595 else
3596 am_cv_prog_cc_c_o=no
3597 break
3598 fi
3599 done
3600 rm -f core conftest*
3601 unset am_i
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3604 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3605 if test "$am_cv_prog_cc_c_o" != yes; then
3606 # Losing compiler, so override with the script.
3607 # FIXME: It is wrong to rewrite CC.
3608 # But if we don't then we get into trouble of one sort or another.
3609 # A longer-term fix would be to have automake use am__CC in this case,
3610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3611 CC="$am_aux_dir/compile $CC"
3612 fi
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 depcc="$CC" am_compiler_list=
3621
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3623 $as_echo_n "checking dependency style of $depcc... " >&6; }
3624 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3628 # We make a subdir and do the tests there. Otherwise we can end up
3629 # making bogus files that we don't know about and never remove. For
3630 # instance it was reported that on HP-UX the gcc test will end up
3631 # making a dummy file named 'D' -- because '-MD' means "put the output
3632 # in D".
3633 rm -rf conftest.dir
3634 mkdir conftest.dir
3635 # Copy depcomp to subdir because otherwise we won't find it if we're
3636 # using a relative directory.
3637 cp "$am_depcomp" conftest.dir
3638 cd conftest.dir
3639 # We will build objects and dependencies in a subdirectory because
3640 # it helps to detect inapplicable dependency modes. For instance
3641 # both Tru64's cc and ICC support -MD to output dependencies as a
3642 # side effect of compilation, but ICC will put the dependencies in
3643 # the current directory while Tru64 will put them in the object
3644 # directory.
3645 mkdir sub
3646
3647 am_cv_CC_dependencies_compiler_type=none
3648 if test "$am_compiler_list" = ""; then
3649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3650 fi
3651 am__universal=false
3652 case " $depcc " in #(
3653 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3654 esac
3655
3656 for depmode in $am_compiler_list; do
3657 # Setup a source with many dependencies, because some compilers
3658 # like to wrap large dependency lists on column 80 (with \), and
3659 # we should not choose a depcomp mode which is confused by this.
3660 #
3661 # We need to recreate these files for each test, as the compiler may
3662 # overwrite some of them when testing with obscure command lines.
3663 # This happens at least with the AIX C compiler.
3664 : > sub/conftest.c
3665 for i in 1 2 3 4 5 6; do
3666 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3667 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3668 # Solaris 10 /bin/sh.
3669 echo '/* dummy */' > sub/conftst$i.h
3670 done
3671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3672
3673 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3674 # mode. It turns out that the SunPro C++ compiler does not properly
3675 # handle '-M -o', and we need to detect this. Also, some Intel
3676 # versions had trouble with output in subdirs.
3677 am__obj=sub/conftest.${OBJEXT-o}
3678 am__minus_obj="-o $am__obj"
3679 case $depmode in
3680 gcc)
3681 # This depmode causes a compiler race in universal mode.
3682 test "$am__universal" = false || continue
3683 ;;
3684 nosideeffect)
3685 # After this tag, mechanisms are not by side-effect, so they'll
3686 # only be used when explicitly requested.
3687 if test "x$enable_dependency_tracking" = xyes; then
3688 continue
3689 else
3690 break
3691 fi
3692 ;;
3693 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3694 # This compiler won't grok '-c -o', but also, the minuso test has
3695 # not run yet. These depmodes are late enough in the game, and
3696 # so weak that their functioning should not be impacted.
3697 am__obj=conftest.${OBJEXT-o}
3698 am__minus_obj=
3699 ;;
3700 none) break ;;
3701 esac
3702 if depmode=$depmode \
3703 source=sub/conftest.c object=$am__obj \
3704 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3705 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3706 >/dev/null 2>conftest.err &&
3707 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3709 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3711 # icc doesn't choke on unknown options, it will just issue warnings
3712 # or remarks (even with -Werror). So we grep stderr for any message
3713 # that says an option was ignored or not supported.
3714 # When given -MP, icc 7.0 and 7.1 complain thusly:
3715 # icc: Command line warning: ignoring option '-M'; no argument required
3716 # The diagnosis changed in icc 8.0:
3717 # icc: Command line remark: option '-MP' not supported
3718 if (grep 'ignoring option' conftest.err ||
3719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3720 am_cv_CC_dependencies_compiler_type=$depmode
3721 break
3722 fi
3723 fi
3724 done
3725
3726 cd ..
3727 rm -rf conftest.dir
3728 else
3729 am_cv_CC_dependencies_compiler_type=none
3730 fi
3731
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3734 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3735 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3736
3737 if
3738 test "x$enable_dependency_tracking" != xno \
3739 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3740 am__fastdepCC_TRUE=
3741 am__fastdepCC_FALSE='#'
3742 else
3743 am__fastdepCC_TRUE='#'
3744 am__fastdepCC_FALSE=
3745 fi
3746
3747
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3750 if ${ac_cv_prog_cc_c99+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 ac_cv_prog_cc_c99=no
3754 ac_save_CC=$CC
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdarg.h>
3758 #include <stdbool.h>
3759 #include <stdlib.h>
3760 #include <wchar.h>
3761 #include <stdio.h>
3762
3763 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3764 #define debug(...) fprintf (stderr, __VA_ARGS__)
3765 #define showlist(...) puts (#__VA_ARGS__)
3766 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3767 static void
3768 test_varargs_macros (void)
3769 {
3770 int x = 1234;
3771 int y = 5678;
3772 debug ("Flag");
3773 debug ("X = %d\n", x);
3774 showlist (The first, second, and third items.);
3775 report (x>y, "x is %d but y is %d", x, y);
3776 }
3777
3778 // Check long long types.
3779 #define BIG64 18446744073709551615ull
3780 #define BIG32 4294967295ul
3781 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3782 #if !BIG_OK
3783 your preprocessor is broken;
3784 #endif
3785 #if BIG_OK
3786 #else
3787 your preprocessor is broken;
3788 #endif
3789 static long long int bignum = -9223372036854775807LL;
3790 static unsigned long long int ubignum = BIG64;
3791
3792 struct incomplete_array
3793 {
3794 int datasize;
3795 double data[];
3796 };
3797
3798 struct named_init {
3799 int number;
3800 const wchar_t *name;
3801 double average;
3802 };
3803
3804 typedef const char *ccp;
3805
3806 static inline int
3807 test_restrict (ccp restrict text)
3808 {
3809 // See if C++-style comments work.
3810 // Iterate through items via the restricted pointer.
3811 // Also check for declarations in for loops.
3812 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3813 continue;
3814 return 0;
3815 }
3816
3817 // Check varargs and va_copy.
3818 static void
3819 test_varargs (const char *format, ...)
3820 {
3821 va_list args;
3822 va_start (args, format);
3823 va_list args_copy;
3824 va_copy (args_copy, args);
3825
3826 const char *str;
3827 int number;
3828 float fnumber;
3829
3830 while (*format)
3831 {
3832 switch (*format++)
3833 {
3834 case 's': // string
3835 str = va_arg (args_copy, const char *);
3836 break;
3837 case 'd': // int
3838 number = va_arg (args_copy, int);
3839 break;
3840 case 'f': // float
3841 fnumber = va_arg (args_copy, double);
3842 break;
3843 default:
3844 break;
3845 }
3846 }
3847 va_end (args_copy);
3848 va_end (args);
3849 }
3850
3851 int
3852 main ()
3853 {
3854
3855 // Check bool.
3856 _Bool success = false;
3857
3858 // Check restrict.
3859 if (test_restrict ("String literal") == 0)
3860 success = true;
3861 char *restrict newvar = "Another string";
3862
3863 // Check varargs.
3864 test_varargs ("s, d' f .", "string", 65, 34.234);
3865 test_varargs_macros ();
3866
3867 // Check flexible array members.
3868 struct incomplete_array *ia =
3869 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3870 ia->datasize = 10;
3871 for (int i = 0; i < ia->datasize; ++i)
3872 ia->data[i] = i * 1.234;
3873
3874 // Check named initializers.
3875 struct named_init ni = {
3876 .number = 34,
3877 .name = L"Test wide string",
3878 .average = 543.34343,
3879 };
3880
3881 ni.number = 58;
3882
3883 int dynamic_array[ni.number];
3884 dynamic_array[ni.number - 1] = 543;
3885
3886 // work around unused variable warnings
3887 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3888 || dynamic_array[ni.number - 1] != 543);
3889
3890 ;
3891 return 0;
3892 }
3893 _ACEOF
3894 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3895 do
3896 CC="$ac_save_CC $ac_arg"
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_c99=$ac_arg
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext
3901 test "x$ac_cv_prog_cc_c99" != "xno" && break
3902 done
3903 rm -f conftest.$ac_ext
3904 CC=$ac_save_CC
3905
3906 fi
3907 # AC_CACHE_VAL
3908 case "x$ac_cv_prog_cc_c99" in
3909 x)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911 $as_echo "none needed" >&6; } ;;
3912 xno)
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914 $as_echo "unsupported" >&6; } ;;
3915 *)
3916 CC="$CC $ac_cv_prog_cc_c99"
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3918 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3919 esac
3920 if test "x$ac_cv_prog_cc_c99" != xno; then :
3921
3922 fi
3923
3924
3925
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3932 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3933 # On Suns, sometimes $CPP names a directory.
3934 if test -n "$CPP" && test -d "$CPP"; then
3935 CPP=
3936 fi
3937 if test -z "$CPP"; then
3938 if ${ac_cv_prog_CPP+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 # Double quotes because CPP needs to be expanded
3942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3943 do
3944 ac_preproc_ok=false
3945 for ac_c_preproc_warn_flag in '' yes
3946 do
3947 # Use a header file that comes with gcc, so configuring glibc
3948 # with a fresh cross-compiler works.
3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3950 # <limits.h> exists even on freestanding compilers.
3951 # On the NeXT, cc -E runs the code through the compiler's parser,
3952 # not just through cpp. "Syntax error" is here to catch this case.
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #ifdef __STDC__
3956 # include <limits.h>
3957 #else
3958 # include <assert.h>
3959 #endif
3960 Syntax error
3961 _ACEOF
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3963
3964 else
3965 # Broken: fails on valid input.
3966 continue
3967 fi
3968 rm -f conftest.err conftest.i conftest.$ac_ext
3969
3970 # OK, works on sane cases. Now check whether nonexistent headers
3971 # can be detected and how.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974 #include <ac_nonexistent.h>
3975 _ACEOF
3976 if ac_fn_c_try_cpp "$LINENO"; then :
3977 # Broken: success on invalid input.
3978 continue
3979 else
3980 # Passes both tests.
3981 ac_preproc_ok=:
3982 break
3983 fi
3984 rm -f conftest.err conftest.i conftest.$ac_ext
3985
3986 done
3987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3988 rm -f conftest.i conftest.err conftest.$ac_ext
3989 if $ac_preproc_ok; then :
3990 break
3991 fi
3992
3993 done
3994 ac_cv_prog_CPP=$CPP
3995
3996 fi
3997 CPP=$ac_cv_prog_CPP
3998 else
3999 ac_cv_prog_CPP=$CPP
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4002 $as_echo "$CPP" >&6; }
4003 ac_preproc_ok=false
4004 for ac_c_preproc_warn_flag in '' yes
4005 do
4006 # Use a header file that comes with gcc, so configuring glibc
4007 # with a fresh cross-compiler works.
4008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4009 # <limits.h> exists even on freestanding compilers.
4010 # On the NeXT, cc -E runs the code through the compiler's parser,
4011 # not just through cpp. "Syntax error" is here to catch this case.
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014 #ifdef __STDC__
4015 # include <limits.h>
4016 #else
4017 # include <assert.h>
4018 #endif
4019 Syntax error
4020 _ACEOF
4021 if ac_fn_c_try_cpp "$LINENO"; then :
4022
4023 else
4024 # Broken: fails on valid input.
4025 continue
4026 fi
4027 rm -f conftest.err conftest.i conftest.$ac_ext
4028
4029 # OK, works on sane cases. Now check whether nonexistent headers
4030 # can be detected and how.
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033 #include <ac_nonexistent.h>
4034 _ACEOF
4035 if ac_fn_c_try_cpp "$LINENO"; then :
4036 # Broken: success on invalid input.
4037 continue
4038 else
4039 # Passes both tests.
4040 ac_preproc_ok=:
4041 break
4042 fi
4043 rm -f conftest.err conftest.i conftest.$ac_ext
4044
4045 done
4046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4047 rm -f conftest.i conftest.err conftest.$ac_ext
4048 if $ac_preproc_ok; then :
4049
4050 else
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4054 See \`config.log' for more details" "$LINENO" 5; }
4055 fi
4056
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062
4063
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4066 if ${ac_cv_path_GREP+:} false; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -z "$GREP"; then
4070 ac_path_GREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in grep ggrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4080 as_fn_executable_p "$ac_path_GREP" || continue
4081 # Check for GNU ac_path_GREP and select it if it is found.
4082 # Check for GNU $ac_path_GREP
4083 case `"$ac_path_GREP" --version 2>&1` in
4084 *GNU*)
4085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4086 *)
4087 ac_count=0
4088 $as_echo_n 0123456789 >"conftest.in"
4089 while :
4090 do
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 $as_echo 'GREP' >> "conftest.nl"
4095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 as_fn_arith $ac_count + 1 && ac_count=$as_val
4098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_GREP="$ac_path_GREP"
4101 ac_path_GREP_max=$ac_count
4102 fi
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4105 done
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 esac
4108
4109 $ac_path_GREP_found && break 3
4110 done
4111 done
4112 done
4113 IFS=$as_save_IFS
4114 if test -z "$ac_cv_path_GREP"; then
4115 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4116 fi
4117 else
4118 ac_cv_path_GREP=$GREP
4119 fi
4120
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4123 $as_echo "$ac_cv_path_GREP" >&6; }
4124 GREP="$ac_cv_path_GREP"
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4128 $as_echo_n "checking for egrep... " >&6; }
4129 if ${ac_cv_path_EGREP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4133 then ac_cv_path_EGREP="$GREP -E"
4134 else
4135 if test -z "$EGREP"; then
4136 ac_path_EGREP_found=false
4137 # Loop through the user's path and test for each of PROGNAME-LIST
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4140 do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_prog in egrep; do
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4146 as_fn_executable_p "$ac_path_EGREP" || continue
4147 # Check for GNU ac_path_EGREP and select it if it is found.
4148 # Check for GNU $ac_path_EGREP
4149 case `"$ac_path_EGREP" --version 2>&1` in
4150 *GNU*)
4151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4152 *)
4153 ac_count=0
4154 $as_echo_n 0123456789 >"conftest.in"
4155 while :
4156 do
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 $as_echo 'EGREP' >> "conftest.nl"
4161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 as_fn_arith $ac_count + 1 && ac_count=$as_val
4164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_EGREP="$ac_path_EGREP"
4167 ac_path_EGREP_max=$ac_count
4168 fi
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4171 done
4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 esac
4174
4175 $ac_path_EGREP_found && break 3
4176 done
4177 done
4178 done
4179 IFS=$as_save_IFS
4180 if test -z "$ac_cv_path_EGREP"; then
4181 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4182 fi
4183 else
4184 ac_cv_path_EGREP=$EGREP
4185 fi
4186
4187 fi
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4190 $as_echo "$ac_cv_path_EGREP" >&6; }
4191 EGREP="$ac_cv_path_EGREP"
4192
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4195 $as_echo_n "checking for ANSI C header files... " >&6; }
4196 if ${ac_cv_header_stdc+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #include <stdlib.h>
4202 #include <stdarg.h>
4203 #include <string.h>
4204 #include <float.h>
4205
4206 int
4207 main ()
4208 {
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_header_stdc=yes
4216 else
4217 ac_cv_header_stdc=no
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220
4221 if test $ac_cv_header_stdc = yes; then
4222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #include <string.h>
4226
4227 _ACEOF
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229 $EGREP "memchr" >/dev/null 2>&1; then :
4230
4231 else
4232 ac_cv_header_stdc=no
4233 fi
4234 rm -f conftest*
4235
4236 fi
4237
4238 if test $ac_cv_header_stdc = yes; then
4239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <stdlib.h>
4243
4244 _ACEOF
4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246 $EGREP "free" >/dev/null 2>&1; then :
4247
4248 else
4249 ac_cv_header_stdc=no
4250 fi
4251 rm -f conftest*
4252
4253 fi
4254
4255 if test $ac_cv_header_stdc = yes; then
4256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4257 if test "$cross_compiling" = yes; then :
4258 :
4259 else
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #include <ctype.h>
4263 #include <stdlib.h>
4264 #if ((' ' & 0x0FF) == 0x020)
4265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4267 #else
4268 # define ISLOWER(c) \
4269 (('a' <= (c) && (c) <= 'i') \
4270 || ('j' <= (c) && (c) <= 'r') \
4271 || ('s' <= (c) && (c) <= 'z'))
4272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4273 #endif
4274
4275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4276 int
4277 main ()
4278 {
4279 int i;
4280 for (i = 0; i < 256; i++)
4281 if (XOR (islower (i), ISLOWER (i))
4282 || toupper (i) != TOUPPER (i))
4283 return 2;
4284 return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_c_try_run "$LINENO"; then :
4288
4289 else
4290 ac_cv_header_stdc=no
4291 fi
4292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4293 conftest.$ac_objext conftest.beam conftest.$ac_ext
4294 fi
4295
4296 fi
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4299 $as_echo "$ac_cv_header_stdc" >&6; }
4300 if test $ac_cv_header_stdc = yes; then
4301
4302 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4303
4304 fi
4305
4306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4308 inttypes.h stdint.h unistd.h
4309 do :
4310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4312 "
4313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4314 cat >>confdefs.h <<_ACEOF
4315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 _ACEOF
4317
4318 fi
4319
4320 done
4321
4322
4323
4324
4325
4326
4327 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4328 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4329 CLANGCC="yes"
4330 else
4331 CLANGCC="no"
4332 fi
4333
4334 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4335 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4336 INTELCC="yes"
4337 else
4338 INTELCC="no"
4339 fi
4340
4341 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4342 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4343 SUNCC="yes"
4344 else
4345 SUNCC="no"
4346 fi
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4357 if test -n "$ac_tool_prefix"; then
4358 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 case $PKG_CONFIG in
4366 [\\/]* | ?:[\\/]*)
4367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4368 ;;
4369 *)
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4380 fi
4381 done
4382 done
4383 IFS=$as_save_IFS
4384
4385 ;;
4386 esac
4387 fi
4388 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4389 if test -n "$PKG_CONFIG"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4391 $as_echo "$PKG_CONFIG" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 fi
4396
4397
4398 fi
4399 if test -z "$ac_cv_path_PKG_CONFIG"; then
4400 ac_pt_PKG_CONFIG=$PKG_CONFIG
4401 # Extract the first word of "pkg-config", so it can be a program name with args.
4402 set dummy pkg-config; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 case $ac_pt_PKG_CONFIG in
4409 [\\/]* | ?:[\\/]*)
4410 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4411 ;;
4412 *)
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 ;;
4429 esac
4430 fi
4431 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4432 if test -n "$ac_pt_PKG_CONFIG"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4434 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438 fi
4439
4440 if test "x$ac_pt_PKG_CONFIG" = x; then
4441 PKG_CONFIG=""
4442 else
4443 case $cross_compiling:$ac_tool_warned in
4444 yes:)
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447 ac_tool_warned=yes ;;
4448 esac
4449 PKG_CONFIG=$ac_pt_PKG_CONFIG
4450 fi
4451 else
4452 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4453 fi
4454
4455 fi
4456 if test -n "$PKG_CONFIG"; then
4457 _pkg_min_version=0.9.0
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4459 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4460 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462 $as_echo "yes" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 PKG_CONFIG=""
4467 fi
4468 fi
4469 # Make sure we can run config.sub.
4470 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4471 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4474 $as_echo_n "checking build system type... " >&6; }
4475 if ${ac_cv_build+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 ac_build_alias=$build_alias
4479 test "x$ac_build_alias" = x &&
4480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4481 test "x$ac_build_alias" = x &&
4482 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4483 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4485
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4488 $as_echo "$ac_cv_build" >&6; }
4489 case $ac_cv_build in
4490 *-*-*) ;;
4491 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4492 esac
4493 build=$ac_cv_build
4494 ac_save_IFS=$IFS; IFS='-'
4495 set x $ac_cv_build
4496 shift
4497 build_cpu=$1
4498 build_vendor=$2
4499 shift; shift
4500 # Remember, the first character of IFS is used to create $*,
4501 # except with old shells:
4502 build_os=$*
4503 IFS=$ac_save_IFS
4504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4505
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4508 $as_echo_n "checking host system type... " >&6; }
4509 if ${ac_cv_host+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test "x$host_alias" = x; then
4513 ac_cv_host=$ac_cv_build
4514 else
4515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4517 fi
4518
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4521 $as_echo "$ac_cv_host" >&6; }
4522 case $ac_cv_host in
4523 *-*-*) ;;
4524 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4525 esac
4526 host=$ac_cv_host
4527 ac_save_IFS=$IFS; IFS='-'
4528 set x $ac_cv_host
4529 shift
4530 host_cpu=$1
4531 host_vendor=$2
4532 shift; shift
4533 # Remember, the first character of IFS is used to create $*,
4534 # except with old shells:
4535 host_os=$*
4536 IFS=$ac_save_IFS
4537 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4541 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4542 if ${ac_cv_path_SED+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4546 for ac_i in 1 2 3 4 5 6 7; do
4547 ac_script="$ac_script$as_nl$ac_script"
4548 done
4549 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4550 { ac_script=; unset ac_script;}
4551 if test -z "$SED"; then
4552 ac_path_SED_found=false
4553 # Loop through the user's path and test for each of PROGNAME-LIST
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_prog in sed gsed; do
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4562 as_fn_executable_p "$ac_path_SED" || continue
4563 # Check for GNU ac_path_SED and select it if it is found.
4564 # Check for GNU $ac_path_SED
4565 case `"$ac_path_SED" --version 2>&1` in
4566 *GNU*)
4567 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4568 *)
4569 ac_count=0
4570 $as_echo_n 0123456789 >"conftest.in"
4571 while :
4572 do
4573 cat "conftest.in" "conftest.in" >"conftest.tmp"
4574 mv "conftest.tmp" "conftest.in"
4575 cp "conftest.in" "conftest.nl"
4576 $as_echo '' >> "conftest.nl"
4577 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4579 as_fn_arith $ac_count + 1 && ac_count=$as_val
4580 if test $ac_count -gt ${ac_path_SED_max-0}; then
4581 # Best one so far, save it but keep looking for a better one
4582 ac_cv_path_SED="$ac_path_SED"
4583 ac_path_SED_max=$ac_count
4584 fi
4585 # 10*(2^10) chars as input seems more than enough
4586 test $ac_count -gt 10 && break
4587 done
4588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589 esac
4590
4591 $ac_path_SED_found && break 3
4592 done
4593 done
4594 done
4595 IFS=$as_save_IFS
4596 if test -z "$ac_cv_path_SED"; then
4597 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4598 fi
4599 else
4600 ac_cv_path_SED=$SED
4601 fi
4602
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4605 $as_echo "$ac_cv_path_SED" >&6; }
4606 SED="$ac_cv_path_SED"
4607 rm -f conftest.sed
4608
4609
4610
4611
4612
4613
4614 # Check whether --enable-selective-werror was given.
4615 if test "${enable_selective_werror+set}" = set; then :
4616 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4617 else
4618 SELECTIVE_WERROR=yes
4619 fi
4620
4621
4622
4623
4624
4625 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4626 if test "x$SUNCC" = "xyes"; then
4627 BASE_CFLAGS="-v"
4628 else
4629 BASE_CFLAGS=""
4630 fi
4631
4632 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646 xorg_testset_save_CFLAGS="$CFLAGS"
4647
4648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4651 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4652 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 int i;
4658 _ACEOF
4659 if ac_fn_c_try_compile "$LINENO"; then :
4660 xorg_cv_cc_flag_unknown_warning_option=yes
4661 else
4662 xorg_cv_cc_flag_unknown_warning_option=no
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4667 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4669 CFLAGS="$xorg_testset_save_CFLAGS"
4670 fi
4671
4672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4675 fi
4676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4679 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 int i;
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 xorg_cv_cc_flag_unused_command_line_argument=yes
4688 else
4689 xorg_cv_cc_flag_unused_command_line_argument=no
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4694 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4696 CFLAGS="$xorg_testset_save_CFLAGS"
4697 fi
4698
4699 found="no"
4700
4701 if test $found = "no" ; then
4702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4704 fi
4705
4706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4708 fi
4709
4710 CFLAGS="$CFLAGS -Wall"
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4713 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4714 cacheid=xorg_cv_cc_flag__Wall
4715 if eval \${$cacheid+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 int i;
4721 int
4722 main ()
4723 {
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_link "$LINENO"; then :
4730 eval $cacheid=yes
4731 else
4732 eval $cacheid=no
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext \
4735 conftest$ac_exeext conftest.$ac_ext
4736 fi
4737
4738
4739 CFLAGS="$xorg_testset_save_CFLAGS"
4740
4741 eval supported=\$$cacheid
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4743 $as_echo "$supported" >&6; }
4744 if test "$supported" = "yes" ; then
4745 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4746 found="yes"
4747 fi
4748 fi
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 xorg_testset_save_CFLAGS="$CFLAGS"
4765
4766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 int i;
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 xorg_cv_cc_flag_unknown_warning_option=yes
4779 else
4780 xorg_cv_cc_flag_unknown_warning_option=no
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4787 CFLAGS="$xorg_testset_save_CFLAGS"
4788 fi
4789
4790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4793 fi
4794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 int i;
4803 _ACEOF
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805 xorg_cv_cc_flag_unused_command_line_argument=yes
4806 else
4807 xorg_cv_cc_flag_unused_command_line_argument=no
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4814 CFLAGS="$xorg_testset_save_CFLAGS"
4815 fi
4816
4817 found="no"
4818
4819 if test $found = "no" ; then
4820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4822 fi
4823
4824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4826 fi
4827
4828 CFLAGS="$CFLAGS -Wpointer-arith"
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4831 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4832 cacheid=xorg_cv_cc_flag__Wpointer_arith
4833 if eval \${$cacheid+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 int i;
4839 int
4840 main ()
4841 {
4842
4843 ;
4844 return 0;
4845 }
4846 _ACEOF
4847 if ac_fn_c_try_link "$LINENO"; then :
4848 eval $cacheid=yes
4849 else
4850 eval $cacheid=no
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext \
4853 conftest$ac_exeext conftest.$ac_ext
4854 fi
4855
4856
4857 CFLAGS="$xorg_testset_save_CFLAGS"
4858
4859 eval supported=\$$cacheid
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4861 $as_echo "$supported" >&6; }
4862 if test "$supported" = "yes" ; then
4863 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4864 found="yes"
4865 fi
4866 fi
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882 xorg_testset_save_CFLAGS="$CFLAGS"
4883
4884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 int i;
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 xorg_cv_cc_flag_unknown_warning_option=yes
4897 else
4898 xorg_cv_cc_flag_unknown_warning_option=no
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4905 CFLAGS="$xorg_testset_save_CFLAGS"
4906 fi
4907
4908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4911 fi
4912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920 int i;
4921 _ACEOF
4922 if ac_fn_c_try_compile "$LINENO"; then :
4923 xorg_cv_cc_flag_unused_command_line_argument=yes
4924 else
4925 xorg_cv_cc_flag_unused_command_line_argument=no
4926 fi
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4932 CFLAGS="$xorg_testset_save_CFLAGS"
4933 fi
4934
4935 found="no"
4936
4937 if test $found = "no" ; then
4938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4940 fi
4941
4942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4944 fi
4945
4946 CFLAGS="$CFLAGS -Wmissing-declarations"
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4949 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4950 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4951 if eval \${$cacheid+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 int i;
4957 int
4958 main ()
4959 {
4960
4961 ;
4962 return 0;
4963 }
4964 _ACEOF
4965 if ac_fn_c_try_link "$LINENO"; then :
4966 eval $cacheid=yes
4967 else
4968 eval $cacheid=no
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext \
4971 conftest$ac_exeext conftest.$ac_ext
4972 fi
4973
4974
4975 CFLAGS="$xorg_testset_save_CFLAGS"
4976
4977 eval supported=\$$cacheid
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4979 $as_echo "$supported" >&6; }
4980 if test "$supported" = "yes" ; then
4981 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4982 found="yes"
4983 fi
4984 fi
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000 xorg_testset_save_CFLAGS="$CFLAGS"
5001
5002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5005 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5006 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 int i;
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 xorg_cv_cc_flag_unknown_warning_option=yes
5015 else
5016 xorg_cv_cc_flag_unknown_warning_option=no
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5021 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5023 CFLAGS="$xorg_testset_save_CFLAGS"
5024 fi
5025
5026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5029 fi
5030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5032 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5033 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038 int i;
5039 _ACEOF
5040 if ac_fn_c_try_compile "$LINENO"; then :
5041 xorg_cv_cc_flag_unused_command_line_argument=yes
5042 else
5043 xorg_cv_cc_flag_unused_command_line_argument=no
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5048 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5050 CFLAGS="$xorg_testset_save_CFLAGS"
5051 fi
5052
5053 found="no"
5054
5055 if test $found = "no" ; then
5056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058 fi
5059
5060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5062 fi
5063
5064 CFLAGS="$CFLAGS -Wformat=2"
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5067 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5068 cacheid=xorg_cv_cc_flag__Wformat_2
5069 if eval \${$cacheid+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074 int i;
5075 int
5076 main ()
5077 {
5078
5079 ;
5080 return 0;
5081 }
5082 _ACEOF
5083 if ac_fn_c_try_link "$LINENO"; then :
5084 eval $cacheid=yes
5085 else
5086 eval $cacheid=no
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext \
5089 conftest$ac_exeext conftest.$ac_ext
5090 fi
5091
5092
5093 CFLAGS="$xorg_testset_save_CFLAGS"
5094
5095 eval supported=\$$cacheid
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5097 $as_echo "$supported" >&6; }
5098 if test "$supported" = "yes" ; then
5099 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5100 found="yes"
5101 fi
5102 fi
5103
5104 if test $found = "no" ; then
5105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5107 fi
5108
5109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5111 fi
5112
5113 CFLAGS="$CFLAGS -Wformat"
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5116 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5117 cacheid=xorg_cv_cc_flag__Wformat
5118 if eval \${$cacheid+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 int i;
5124 int
5125 main ()
5126 {
5127
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_c_try_link "$LINENO"; then :
5133 eval $cacheid=yes
5134 else
5135 eval $cacheid=no
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext \
5138 conftest$ac_exeext conftest.$ac_ext
5139 fi
5140
5141
5142 CFLAGS="$xorg_testset_save_CFLAGS"
5143
5144 eval supported=\$$cacheid
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5146 $as_echo "$supported" >&6; }
5147 if test "$supported" = "yes" ; then
5148 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5149 found="yes"
5150 fi
5151 fi
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169 xorg_testset_save_CFLAGS="$CFLAGS"
5170
5171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 int i;
5181 _ACEOF
5182 if ac_fn_c_try_compile "$LINENO"; then :
5183 xorg_cv_cc_flag_unknown_warning_option=yes
5184 else
5185 xorg_cv_cc_flag_unknown_warning_option=no
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5192 CFLAGS="$xorg_testset_save_CFLAGS"
5193 fi
5194
5195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198 fi
5199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 int i;
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210 xorg_cv_cc_flag_unused_command_line_argument=yes
5211 else
5212 xorg_cv_cc_flag_unused_command_line_argument=no
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5219 CFLAGS="$xorg_testset_save_CFLAGS"
5220 fi
5221
5222 found="no"
5223
5224 if test $found = "no" ; then
5225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5227 fi
5228
5229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5231 fi
5232
5233 CFLAGS="$CFLAGS -Wstrict-prototypes"
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5236 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5237 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5238 if eval \${$cacheid+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 int i;
5244 int
5245 main ()
5246 {
5247
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_link "$LINENO"; then :
5253 eval $cacheid=yes
5254 else
5255 eval $cacheid=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext \
5258 conftest$ac_exeext conftest.$ac_ext
5259 fi
5260
5261
5262 CFLAGS="$xorg_testset_save_CFLAGS"
5263
5264 eval supported=\$$cacheid
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5266 $as_echo "$supported" >&6; }
5267 if test "$supported" = "yes" ; then
5268 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5269 found="yes"
5270 fi
5271 fi
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287 xorg_testset_save_CFLAGS="$CFLAGS"
5288
5289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 int i;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 xorg_cv_cc_flag_unknown_warning_option=yes
5302 else
5303 xorg_cv_cc_flag_unknown_warning_option=no
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 fi
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5310 CFLAGS="$xorg_testset_save_CFLAGS"
5311 fi
5312
5313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5316 fi
5317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 int i;
5326 _ACEOF
5327 if ac_fn_c_try_compile "$LINENO"; then :
5328 xorg_cv_cc_flag_unused_command_line_argument=yes
5329 else
5330 xorg_cv_cc_flag_unused_command_line_argument=no
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5337 CFLAGS="$xorg_testset_save_CFLAGS"
5338 fi
5339
5340 found="no"
5341
5342 if test $found = "no" ; then
5343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5345 fi
5346
5347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5349 fi
5350
5351 CFLAGS="$CFLAGS -Wmissing-prototypes"
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5354 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5355 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5356 if eval \${$cacheid+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 int i;
5362 int
5363 main ()
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_link "$LINENO"; then :
5371 eval $cacheid=yes
5372 else
5373 eval $cacheid=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext \
5376 conftest$ac_exeext conftest.$ac_ext
5377 fi
5378
5379
5380 CFLAGS="$xorg_testset_save_CFLAGS"
5381
5382 eval supported=\$$cacheid
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5384 $as_echo "$supported" >&6; }
5385 if test "$supported" = "yes" ; then
5386 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5387 found="yes"
5388 fi
5389 fi
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 xorg_testset_save_CFLAGS="$CFLAGS"
5406
5407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 int i;
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419 xorg_cv_cc_flag_unknown_warning_option=yes
5420 else
5421 xorg_cv_cc_flag_unknown_warning_option=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 fi
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5428 CFLAGS="$xorg_testset_save_CFLAGS"
5429 fi
5430
5431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434 fi
5435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 int i;
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"; then :
5446 xorg_cv_cc_flag_unused_command_line_argument=yes
5447 else
5448 xorg_cv_cc_flag_unused_command_line_argument=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5455 CFLAGS="$xorg_testset_save_CFLAGS"
5456 fi
5457
5458 found="no"
5459
5460 if test $found = "no" ; then
5461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5463 fi
5464
5465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5467 fi
5468
5469 CFLAGS="$CFLAGS -Wnested-externs"
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5472 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5473 cacheid=xorg_cv_cc_flag__Wnested_externs
5474 if eval \${$cacheid+:} false; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 int i;
5480 int
5481 main ()
5482 {
5483
5484 ;
5485 return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_c_try_link "$LINENO"; then :
5489 eval $cacheid=yes
5490 else
5491 eval $cacheid=no
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext \
5494 conftest$ac_exeext conftest.$ac_ext
5495 fi
5496
5497
5498 CFLAGS="$xorg_testset_save_CFLAGS"
5499
5500 eval supported=\$$cacheid
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5502 $as_echo "$supported" >&6; }
5503 if test "$supported" = "yes" ; then
5504 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5505 found="yes"
5506 fi
5507 fi
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523 xorg_testset_save_CFLAGS="$CFLAGS"
5524
5525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 int i;
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537 xorg_cv_cc_flag_unknown_warning_option=yes
5538 else
5539 xorg_cv_cc_flag_unknown_warning_option=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5546 CFLAGS="$xorg_testset_save_CFLAGS"
5547 fi
5548
5549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552 fi
5553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 int i;
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564 xorg_cv_cc_flag_unused_command_line_argument=yes
5565 else
5566 xorg_cv_cc_flag_unused_command_line_argument=no
5567 fi
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5573 CFLAGS="$xorg_testset_save_CFLAGS"
5574 fi
5575
5576 found="no"
5577
5578 if test $found = "no" ; then
5579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5581 fi
5582
5583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5585 fi
5586
5587 CFLAGS="$CFLAGS -Wbad-function-cast"
5588
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5590 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5591 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5592 if eval \${$cacheid+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 int i;
5598 int
5599 main ()
5600 {
5601
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 if ac_fn_c_try_link "$LINENO"; then :
5607 eval $cacheid=yes
5608 else
5609 eval $cacheid=no
5610 fi
5611 rm -f core conftest.err conftest.$ac_objext \
5612 conftest$ac_exeext conftest.$ac_ext
5613 fi
5614
5615
5616 CFLAGS="$xorg_testset_save_CFLAGS"
5617
5618 eval supported=\$$cacheid
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5620 $as_echo "$supported" >&6; }
5621 if test "$supported" = "yes" ; then
5622 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5623 found="yes"
5624 fi
5625 fi
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641 xorg_testset_save_CFLAGS="$CFLAGS"
5642
5643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 int i;
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 xorg_cv_cc_flag_unknown_warning_option=yes
5656 else
5657 xorg_cv_cc_flag_unknown_warning_option=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665 fi
5666
5667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670 fi
5671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 int i;
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682 xorg_cv_cc_flag_unused_command_line_argument=yes
5683 else
5684 xorg_cv_cc_flag_unused_command_line_argument=no
5685 fi
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5691 CFLAGS="$xorg_testset_save_CFLAGS"
5692 fi
5693
5694 found="no"
5695
5696 if test $found = "no" ; then
5697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5699 fi
5700
5701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5703 fi
5704
5705 CFLAGS="$CFLAGS -Wold-style-definition"
5706
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5708 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5709 cacheid=xorg_cv_cc_flag__Wold_style_definition
5710 if eval \${$cacheid+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 int i;
5716 int
5717 main ()
5718 {
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 if ac_fn_c_try_link "$LINENO"; then :
5725 eval $cacheid=yes
5726 else
5727 eval $cacheid=no
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext \
5730 conftest$ac_exeext conftest.$ac_ext
5731 fi
5732
5733
5734 CFLAGS="$xorg_testset_save_CFLAGS"
5735
5736 eval supported=\$$cacheid
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5738 $as_echo "$supported" >&6; }
5739 if test "$supported" = "yes" ; then
5740 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5741 found="yes"
5742 fi
5743 fi
5744
5745 if test $found = "no" ; then
5746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748 fi
5749
5750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5752 fi
5753
5754 CFLAGS="$CFLAGS -fd"
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5757 $as_echo_n "checking if $CC supports -fd... " >&6; }
5758 cacheid=xorg_cv_cc_flag__fd
5759 if eval \${$cacheid+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764 int i;
5765 int
5766 main ()
5767 {
5768
5769 ;
5770 return 0;
5771 }
5772 _ACEOF
5773 if ac_fn_c_try_link "$LINENO"; then :
5774 eval $cacheid=yes
5775 else
5776 eval $cacheid=no
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext \
5779 conftest$ac_exeext conftest.$ac_ext
5780 fi
5781
5782
5783 CFLAGS="$xorg_testset_save_CFLAGS"
5784
5785 eval supported=\$$cacheid
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5787 $as_echo "$supported" >&6; }
5788 if test "$supported" = "yes" ; then
5789 BASE_CFLAGS="$BASE_CFLAGS -fd"
5790 found="yes"
5791 fi
5792 fi
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808 xorg_testset_save_CFLAGS="$CFLAGS"
5809
5810 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5813 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5814 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 int i;
5820 _ACEOF
5821 if ac_fn_c_try_compile "$LINENO"; then :
5822 xorg_cv_cc_flag_unknown_warning_option=yes
5823 else
5824 xorg_cv_cc_flag_unknown_warning_option=no
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5829 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5831 CFLAGS="$xorg_testset_save_CFLAGS"
5832 fi
5833
5834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837 fi
5838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5840 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5841 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 int i;
5847 _ACEOF
5848 if ac_fn_c_try_compile "$LINENO"; then :
5849 xorg_cv_cc_flag_unused_command_line_argument=yes
5850 else
5851 xorg_cv_cc_flag_unused_command_line_argument=no
5852 fi
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5856 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5858 CFLAGS="$xorg_testset_save_CFLAGS"
5859 fi
5860
5861 found="no"
5862
5863 if test $found = "no" ; then
5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 fi
5867
5868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5870 fi
5871
5872 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5875 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5876 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5877 if eval \${$cacheid+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882 int i;
5883 int
5884 main ()
5885 {
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 if ac_fn_c_try_link "$LINENO"; then :
5892 eval $cacheid=yes
5893 else
5894 eval $cacheid=no
5895 fi
5896 rm -f core conftest.err conftest.$ac_objext \
5897 conftest$ac_exeext conftest.$ac_ext
5898 fi
5899
5900
5901 CFLAGS="$xorg_testset_save_CFLAGS"
5902
5903 eval supported=\$$cacheid
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5905 $as_echo "$supported" >&6; }
5906 if test "$supported" = "yes" ; then
5907 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5908 found="yes"
5909 fi
5910 fi
5911
5912
5913
5914
5915
5916 # This chunk adds additional warnings that could catch undesired effects.
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930 xorg_testset_save_CFLAGS="$CFLAGS"
5931
5932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5935 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5936 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 int i;
5942 _ACEOF
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944 xorg_cv_cc_flag_unknown_warning_option=yes
5945 else
5946 xorg_cv_cc_flag_unknown_warning_option=no
5947 fi
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 fi
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5951 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5953 CFLAGS="$xorg_testset_save_CFLAGS"
5954 fi
5955
5956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5959 fi
5960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5962 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5963 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 int i;
5969 _ACEOF
5970 if ac_fn_c_try_compile "$LINENO"; then :
5971 xorg_cv_cc_flag_unused_command_line_argument=yes
5972 else
5973 xorg_cv_cc_flag_unused_command_line_argument=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5978 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981 fi
5982
5983 found="no"
5984
5985 if test $found = "no" ; then
5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989
5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5992 fi
5993
5994 CFLAGS="$CFLAGS -Wunused"
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5997 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5998 cacheid=xorg_cv_cc_flag__Wunused
5999 if eval \${$cacheid+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 int i;
6005 int
6006 main ()
6007 {
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 eval $cacheid=yes
6015 else
6016 eval $cacheid=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 fi
6021
6022
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024
6025 eval supported=\$$cacheid
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6027 $as_echo "$supported" >&6; }
6028 if test "$supported" = "yes" ; then
6029 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6030 found="yes"
6031 fi
6032 fi
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048 xorg_testset_save_CFLAGS="$CFLAGS"
6049
6050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 int i;
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"; then :
6062 xorg_cv_cc_flag_unknown_warning_option=yes
6063 else
6064 xorg_cv_cc_flag_unknown_warning_option=no
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6071 CFLAGS="$xorg_testset_save_CFLAGS"
6072 fi
6073
6074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6077 fi
6078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 int i;
6087 _ACEOF
6088 if ac_fn_c_try_compile "$LINENO"; then :
6089 xorg_cv_cc_flag_unused_command_line_argument=yes
6090 else
6091 xorg_cv_cc_flag_unused_command_line_argument=no
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6098 CFLAGS="$xorg_testset_save_CFLAGS"
6099 fi
6100
6101 found="no"
6102
6103 if test $found = "no" ; then
6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106 fi
6107
6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6110 fi
6111
6112 CFLAGS="$CFLAGS -Wuninitialized"
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6115 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6116 cacheid=xorg_cv_cc_flag__Wuninitialized
6117 if eval \${$cacheid+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 int i;
6123 int
6124 main ()
6125 {
6126
6127 ;
6128 return 0;
6129 }
6130 _ACEOF
6131 if ac_fn_c_try_link "$LINENO"; then :
6132 eval $cacheid=yes
6133 else
6134 eval $cacheid=no
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
6138 fi
6139
6140
6141 CFLAGS="$xorg_testset_save_CFLAGS"
6142
6143 eval supported=\$$cacheid
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6145 $as_echo "$supported" >&6; }
6146 if test "$supported" = "yes" ; then
6147 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6148 found="yes"
6149 fi
6150 fi
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166 xorg_testset_save_CFLAGS="$CFLAGS"
6167
6168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6172 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 int i;
6178 _ACEOF
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180 xorg_cv_cc_flag_unknown_warning_option=yes
6181 else
6182 xorg_cv_cc_flag_unknown_warning_option=no
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6189 CFLAGS="$xorg_testset_save_CFLAGS"
6190 fi
6191
6192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195 fi
6196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6204 int i;
6205 _ACEOF
6206 if ac_fn_c_try_compile "$LINENO"; then :
6207 xorg_cv_cc_flag_unused_command_line_argument=yes
6208 else
6209 xorg_cv_cc_flag_unused_command_line_argument=no
6210 fi
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 fi
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6216 CFLAGS="$xorg_testset_save_CFLAGS"
6217 fi
6218
6219 found="no"
6220
6221 if test $found = "no" ; then
6222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224 fi
6225
6226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6228 fi
6229
6230 CFLAGS="$CFLAGS -Wshadow"
6231
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6233 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6234 cacheid=xorg_cv_cc_flag__Wshadow
6235 if eval \${$cacheid+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 int i;
6241 int
6242 main ()
6243 {
6244
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 if ac_fn_c_try_link "$LINENO"; then :
6250 eval $cacheid=yes
6251 else
6252 eval $cacheid=no
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext \
6255 conftest$ac_exeext conftest.$ac_ext
6256 fi
6257
6258
6259 CFLAGS="$xorg_testset_save_CFLAGS"
6260
6261 eval supported=\$$cacheid
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6263 $as_echo "$supported" >&6; }
6264 if test "$supported" = "yes" ; then
6265 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6266 found="yes"
6267 fi
6268 fi
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284 xorg_testset_save_CFLAGS="$CFLAGS"
6285
6286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6290 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 int i;
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 xorg_cv_cc_flag_unknown_warning_option=yes
6299 else
6300 xorg_cv_cc_flag_unknown_warning_option=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6307 CFLAGS="$xorg_testset_save_CFLAGS"
6308 fi
6309
6310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313 fi
6314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6322 int i;
6323 _ACEOF
6324 if ac_fn_c_try_compile "$LINENO"; then :
6325 xorg_cv_cc_flag_unused_command_line_argument=yes
6326 else
6327 xorg_cv_cc_flag_unused_command_line_argument=no
6328 fi
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 fi
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6334 CFLAGS="$xorg_testset_save_CFLAGS"
6335 fi
6336
6337 found="no"
6338
6339 if test $found = "no" ; then
6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6342 fi
6343
6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6346 fi
6347
6348 CFLAGS="$CFLAGS -Wmissing-noreturn"
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6351 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6352 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6353 if eval \${$cacheid+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 int i;
6359 int
6360 main ()
6361 {
6362
6363 ;
6364 return 0;
6365 }
6366 _ACEOF
6367 if ac_fn_c_try_link "$LINENO"; then :
6368 eval $cacheid=yes
6369 else
6370 eval $cacheid=no
6371 fi
6372 rm -f core conftest.err conftest.$ac_objext \
6373 conftest$ac_exeext conftest.$ac_ext
6374 fi
6375
6376
6377 CFLAGS="$xorg_testset_save_CFLAGS"
6378
6379 eval supported=\$$cacheid
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6381 $as_echo "$supported" >&6; }
6382 if test "$supported" = "yes" ; then
6383 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6384 found="yes"
6385 fi
6386 fi
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402 xorg_testset_save_CFLAGS="$CFLAGS"
6403
6404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6407 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6408 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413 int i;
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416 xorg_cv_cc_flag_unknown_warning_option=yes
6417 else
6418 xorg_cv_cc_flag_unknown_warning_option=no
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6423 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6425 CFLAGS="$xorg_testset_save_CFLAGS"
6426 fi
6427
6428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431 fi
6432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6434 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6435 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 int i;
6441 _ACEOF
6442 if ac_fn_c_try_compile "$LINENO"; then :
6443 xorg_cv_cc_flag_unused_command_line_argument=yes
6444 else
6445 xorg_cv_cc_flag_unused_command_line_argument=no
6446 fi
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6450 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6452 CFLAGS="$xorg_testset_save_CFLAGS"
6453 fi
6454
6455 found="no"
6456
6457 if test $found = "no" ; then
6458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460 fi
6461
6462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6464 fi
6465
6466 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6469 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6470 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6471 if eval \${$cacheid+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 int i;
6477 int
6478 main ()
6479 {
6480
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 if ac_fn_c_try_link "$LINENO"; then :
6486 eval $cacheid=yes
6487 else
6488 eval $cacheid=no
6489 fi
6490 rm -f core conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6492 fi
6493
6494
6495 CFLAGS="$xorg_testset_save_CFLAGS"
6496
6497 eval supported=\$$cacheid
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6499 $as_echo "$supported" >&6; }
6500 if test "$supported" = "yes" ; then
6501 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6502 found="yes"
6503 fi
6504 fi
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520 xorg_testset_save_CFLAGS="$CFLAGS"
6521
6522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6525 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6526 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 int i;
6532 _ACEOF
6533 if ac_fn_c_try_compile "$LINENO"; then :
6534 xorg_cv_cc_flag_unknown_warning_option=yes
6535 else
6536 xorg_cv_cc_flag_unknown_warning_option=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 fi
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6541 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544 fi
6545
6546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549 fi
6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6552 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6553 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 int i;
6559 _ACEOF
6560 if ac_fn_c_try_compile "$LINENO"; then :
6561 xorg_cv_cc_flag_unused_command_line_argument=yes
6562 else
6563 xorg_cv_cc_flag_unused_command_line_argument=no
6564 fi
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 fi
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6568 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6570 CFLAGS="$xorg_testset_save_CFLAGS"
6571 fi
6572
6573 found="no"
6574
6575 if test $found = "no" ; then
6576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578 fi
6579
6580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6582 fi
6583
6584 CFLAGS="$CFLAGS -Wredundant-decls"
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6587 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6588 cacheid=xorg_cv_cc_flag__Wredundant_decls
6589 if eval \${$cacheid+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 int i;
6595 int
6596 main ()
6597 {
6598
6599 ;
6600 return 0;
6601 }
6602 _ACEOF
6603 if ac_fn_c_try_link "$LINENO"; then :
6604 eval $cacheid=yes
6605 else
6606 eval $cacheid=no
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610 fi
6611
6612
6613 CFLAGS="$xorg_testset_save_CFLAGS"
6614
6615 eval supported=\$$cacheid
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6617 $as_echo "$supported" >&6; }
6618 if test "$supported" = "yes" ; then
6619 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6620 found="yes"
6621 fi
6622 fi
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638 xorg_testset_save_CFLAGS="$CFLAGS"
6639
6640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6643 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6644 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 int i;
6650 _ACEOF
6651 if ac_fn_c_try_compile "$LINENO"; then :
6652 xorg_cv_cc_flag_unknown_warning_option=yes
6653 else
6654 xorg_cv_cc_flag_unknown_warning_option=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 fi
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6659 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6661 CFLAGS="$xorg_testset_save_CFLAGS"
6662 fi
6663
6664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667 fi
6668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6670 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6671 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6676 int i;
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 xorg_cv_cc_flag_unused_command_line_argument=yes
6680 else
6681 xorg_cv_cc_flag_unused_command_line_argument=no
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6686 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6688 CFLAGS="$xorg_testset_save_CFLAGS"
6689 fi
6690
6691 found="no"
6692
6693 if test $found = "no" ; then
6694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696 fi
6697
6698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700 fi
6701
6702 CFLAGS="$CFLAGS -Wlogical-op"
6703
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6705 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6706 cacheid=xorg_cv_cc_flag__Wlogical_op
6707 if eval \${$cacheid+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 int i;
6713 int
6714 main ()
6715 {
6716
6717 ;
6718 return 0;
6719 }
6720 _ACEOF
6721 if ac_fn_c_try_link "$LINENO"; then :
6722 eval $cacheid=yes
6723 else
6724 eval $cacheid=no
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext \
6727 conftest$ac_exeext conftest.$ac_ext
6728 fi
6729
6730
6731 CFLAGS="$xorg_testset_save_CFLAGS"
6732
6733 eval supported=\$$cacheid
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6735 $as_echo "$supported" >&6; }
6736 if test "$supported" = "yes" ; then
6737 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6738 found="yes"
6739 fi
6740 fi
6741
6742
6743
6744 # These are currently disabled because they are noisy. They will be enabled
6745 # in the future once the codebase is sufficiently modernized to silence
6746 # them. For now, I don't want them to drown out the other warnings.
6747 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6748 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6749 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6750
6751 # Turn some warnings into errors, so we don't accidently get successful builds
6752 # when there are problems that should be fixed.
6753
6754 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768 xorg_testset_save_CFLAGS="$CFLAGS"
6769
6770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6773 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6774 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 int i;
6780 _ACEOF
6781 if ac_fn_c_try_compile "$LINENO"; then :
6782 xorg_cv_cc_flag_unknown_warning_option=yes
6783 else
6784 xorg_cv_cc_flag_unknown_warning_option=no
6785 fi
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6789 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6791 CFLAGS="$xorg_testset_save_CFLAGS"
6792 fi
6793
6794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797 fi
6798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6800 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6801 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 int i;
6807 _ACEOF
6808 if ac_fn_c_try_compile "$LINENO"; then :
6809 xorg_cv_cc_flag_unused_command_line_argument=yes
6810 else
6811 xorg_cv_cc_flag_unused_command_line_argument=no
6812 fi
6813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814 fi
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6816 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6818 CFLAGS="$xorg_testset_save_CFLAGS"
6819 fi
6820
6821 found="no"
6822
6823 if test $found = "no" ; then
6824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826 fi
6827
6828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6830 fi
6831
6832 CFLAGS="$CFLAGS -Werror=implicit"
6833
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6835 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6836 cacheid=xorg_cv_cc_flag__Werror_implicit
6837 if eval \${$cacheid+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 int i;
6843 int
6844 main ()
6845 {
6846
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"; then :
6852 eval $cacheid=yes
6853 else
6854 eval $cacheid=no
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858 fi
6859
6860
6861 CFLAGS="$xorg_testset_save_CFLAGS"
6862
6863 eval supported=\$$cacheid
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6865 $as_echo "$supported" >&6; }
6866 if test "$supported" = "yes" ; then
6867 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6868 found="yes"
6869 fi
6870 fi
6871
6872 if test $found = "no" ; then
6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875 fi
6876
6877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6879 fi
6880
6881 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6882
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6884 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6885 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6886 if eval \${$cacheid+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 int i;
6892 int
6893 main ()
6894 {
6895
6896 ;
6897 return 0;
6898 }
6899 _ACEOF
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 eval $cacheid=yes
6902 else
6903 eval $cacheid=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 fi
6908
6909
6910 CFLAGS="$xorg_testset_save_CFLAGS"
6911
6912 eval supported=\$$cacheid
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6914 $as_echo "$supported" >&6; }
6915 if test "$supported" = "yes" ; then
6916 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6917 found="yes"
6918 fi
6919 fi
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 xorg_testset_save_CFLAGS="$CFLAGS"
6936
6937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 int i;
6947 _ACEOF
6948 if ac_fn_c_try_compile "$LINENO"; then :
6949 xorg_cv_cc_flag_unknown_warning_option=yes
6950 else
6951 xorg_cv_cc_flag_unknown_warning_option=no
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6958 CFLAGS="$xorg_testset_save_CFLAGS"
6959 fi
6960
6961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6964 fi
6965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973 int i;
6974 _ACEOF
6975 if ac_fn_c_try_compile "$LINENO"; then :
6976 xorg_cv_cc_flag_unused_command_line_argument=yes
6977 else
6978 xorg_cv_cc_flag_unused_command_line_argument=no
6979 fi
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 fi
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6985 CFLAGS="$xorg_testset_save_CFLAGS"
6986 fi
6987
6988 found="no"
6989
6990 if test $found = "no" ; then
6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993 fi
6994
6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6997 fi
6998
6999 CFLAGS="$CFLAGS -Werror=nonnull"
7000
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7002 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7003 cacheid=xorg_cv_cc_flag__Werror_nonnull
7004 if eval \${$cacheid+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 int i;
7010 int
7011 main ()
7012 {
7013
7014 ;
7015 return 0;
7016 }
7017 _ACEOF
7018 if ac_fn_c_try_link "$LINENO"; then :
7019 eval $cacheid=yes
7020 else
7021 eval $cacheid=no
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025 fi
7026
7027
7028 CFLAGS="$xorg_testset_save_CFLAGS"
7029
7030 eval supported=\$$cacheid
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7032 $as_echo "$supported" >&6; }
7033 if test "$supported" = "yes" ; then
7034 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7035 found="yes"
7036 fi
7037 fi
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053 xorg_testset_save_CFLAGS="$CFLAGS"
7054
7055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 int i;
7065 _ACEOF
7066 if ac_fn_c_try_compile "$LINENO"; then :
7067 xorg_cv_cc_flag_unknown_warning_option=yes
7068 else
7069 xorg_cv_cc_flag_unknown_warning_option=no
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 fi
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7076 CFLAGS="$xorg_testset_save_CFLAGS"
7077 fi
7078
7079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082 fi
7083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 int i;
7092 _ACEOF
7093 if ac_fn_c_try_compile "$LINENO"; then :
7094 xorg_cv_cc_flag_unused_command_line_argument=yes
7095 else
7096 xorg_cv_cc_flag_unused_command_line_argument=no
7097 fi
7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 fi
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7103 CFLAGS="$xorg_testset_save_CFLAGS"
7104 fi
7105
7106 found="no"
7107
7108 if test $found = "no" ; then
7109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7111 fi
7112
7113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7115 fi
7116
7117 CFLAGS="$CFLAGS -Werror=init-self"
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7120 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7121 cacheid=xorg_cv_cc_flag__Werror_init_self
7122 if eval \${$cacheid+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 int i;
7128 int
7129 main ()
7130 {
7131
7132 ;
7133 return 0;
7134 }
7135 _ACEOF
7136 if ac_fn_c_try_link "$LINENO"; then :
7137 eval $cacheid=yes
7138 else
7139 eval $cacheid=no
7140 fi
7141 rm -f core conftest.err conftest.$ac_objext \
7142 conftest$ac_exeext conftest.$ac_ext
7143 fi
7144
7145
7146 CFLAGS="$xorg_testset_save_CFLAGS"
7147
7148 eval supported=\$$cacheid
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7150 $as_echo "$supported" >&6; }
7151 if test "$supported" = "yes" ; then
7152 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7153 found="yes"
7154 fi
7155 fi
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171 xorg_testset_save_CFLAGS="$CFLAGS"
7172
7173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 int i;
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185 xorg_cv_cc_flag_unknown_warning_option=yes
7186 else
7187 xorg_cv_cc_flag_unknown_warning_option=no
7188 fi
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7194 CFLAGS="$xorg_testset_save_CFLAGS"
7195 fi
7196
7197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200 fi
7201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 int i;
7210 _ACEOF
7211 if ac_fn_c_try_compile "$LINENO"; then :
7212 xorg_cv_cc_flag_unused_command_line_argument=yes
7213 else
7214 xorg_cv_cc_flag_unused_command_line_argument=no
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7221 CFLAGS="$xorg_testset_save_CFLAGS"
7222 fi
7223
7224 found="no"
7225
7226 if test $found = "no" ; then
7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7229 fi
7230
7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7233 fi
7234
7235 CFLAGS="$CFLAGS -Werror=main"
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7238 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7239 cacheid=xorg_cv_cc_flag__Werror_main
7240 if eval \${$cacheid+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 int i;
7246 int
7247 main ()
7248 {
7249
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 if ac_fn_c_try_link "$LINENO"; then :
7255 eval $cacheid=yes
7256 else
7257 eval $cacheid=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext \
7260 conftest$ac_exeext conftest.$ac_ext
7261 fi
7262
7263
7264 CFLAGS="$xorg_testset_save_CFLAGS"
7265
7266 eval supported=\$$cacheid
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7268 $as_echo "$supported" >&6; }
7269 if test "$supported" = "yes" ; then
7270 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7271 found="yes"
7272 fi
7273 fi
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 xorg_testset_save_CFLAGS="$CFLAGS"
7290
7291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7294 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7295 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 int i;
7301 _ACEOF
7302 if ac_fn_c_try_compile "$LINENO"; then :
7303 xorg_cv_cc_flag_unknown_warning_option=yes
7304 else
7305 xorg_cv_cc_flag_unknown_warning_option=no
7306 fi
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7310 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7312 CFLAGS="$xorg_testset_save_CFLAGS"
7313 fi
7314
7315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318 fi
7319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7321 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7322 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7327 int i;
7328 _ACEOF
7329 if ac_fn_c_try_compile "$LINENO"; then :
7330 xorg_cv_cc_flag_unused_command_line_argument=yes
7331 else
7332 xorg_cv_cc_flag_unused_command_line_argument=no
7333 fi
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 fi
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7337 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7339 CFLAGS="$xorg_testset_save_CFLAGS"
7340 fi
7341
7342 found="no"
7343
7344 if test $found = "no" ; then
7345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7347 fi
7348
7349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7351 fi
7352
7353 CFLAGS="$CFLAGS -Werror=missing-braces"
7354
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7356 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7357 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7358 if eval \${$cacheid+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 int i;
7364 int
7365 main ()
7366 {
7367
7368 ;
7369 return 0;
7370 }
7371 _ACEOF
7372 if ac_fn_c_try_link "$LINENO"; then :
7373 eval $cacheid=yes
7374 else
7375 eval $cacheid=no
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
7379 fi
7380
7381
7382 CFLAGS="$xorg_testset_save_CFLAGS"
7383
7384 eval supported=\$$cacheid
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7386 $as_echo "$supported" >&6; }
7387 if test "$supported" = "yes" ; then
7388 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7389 found="yes"
7390 fi
7391 fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407 xorg_testset_save_CFLAGS="$CFLAGS"
7408
7409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7412 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7413 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 int i;
7419 _ACEOF
7420 if ac_fn_c_try_compile "$LINENO"; then :
7421 xorg_cv_cc_flag_unknown_warning_option=yes
7422 else
7423 xorg_cv_cc_flag_unknown_warning_option=no
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7428 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7430 CFLAGS="$xorg_testset_save_CFLAGS"
7431 fi
7432
7433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436 fi
7437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7439 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7440 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 int i;
7446 _ACEOF
7447 if ac_fn_c_try_compile "$LINENO"; then :
7448 xorg_cv_cc_flag_unused_command_line_argument=yes
7449 else
7450 xorg_cv_cc_flag_unused_command_line_argument=no
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7455 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7457 CFLAGS="$xorg_testset_save_CFLAGS"
7458 fi
7459
7460 found="no"
7461
7462 if test $found = "no" ; then
7463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7465 fi
7466
7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7469 fi
7470
7471 CFLAGS="$CFLAGS -Werror=sequence-point"
7472
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7474 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7475 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7476 if eval \${$cacheid+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 int i;
7482 int
7483 main ()
7484 {
7485
7486 ;
7487 return 0;
7488 }
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"; then :
7491 eval $cacheid=yes
7492 else
7493 eval $cacheid=no
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7497 fi
7498
7499
7500 CFLAGS="$xorg_testset_save_CFLAGS"
7501
7502 eval supported=\$$cacheid
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7504 $as_echo "$supported" >&6; }
7505 if test "$supported" = "yes" ; then
7506 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7507 found="yes"
7508 fi
7509 fi
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525 xorg_testset_save_CFLAGS="$CFLAGS"
7526
7527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7530 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7531 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 int i;
7537 _ACEOF
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539 xorg_cv_cc_flag_unknown_warning_option=yes
7540 else
7541 xorg_cv_cc_flag_unknown_warning_option=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7546 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7548 CFLAGS="$xorg_testset_save_CFLAGS"
7549 fi
7550
7551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554 fi
7555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7557 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7558 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 int i;
7564 _ACEOF
7565 if ac_fn_c_try_compile "$LINENO"; then :
7566 xorg_cv_cc_flag_unused_command_line_argument=yes
7567 else
7568 xorg_cv_cc_flag_unused_command_line_argument=no
7569 fi
7570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7573 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7575 CFLAGS="$xorg_testset_save_CFLAGS"
7576 fi
7577
7578 found="no"
7579
7580 if test $found = "no" ; then
7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583 fi
7584
7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 fi
7588
7589 CFLAGS="$CFLAGS -Werror=return-type"
7590
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7592 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7593 cacheid=xorg_cv_cc_flag__Werror_return_type
7594 if eval \${$cacheid+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 int i;
7600 int
7601 main ()
7602 {
7603
7604 ;
7605 return 0;
7606 }
7607 _ACEOF
7608 if ac_fn_c_try_link "$LINENO"; then :
7609 eval $cacheid=yes
7610 else
7611 eval $cacheid=no
7612 fi
7613 rm -f core conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7615 fi
7616
7617
7618 CFLAGS="$xorg_testset_save_CFLAGS"
7619
7620 eval supported=\$$cacheid
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7622 $as_echo "$supported" >&6; }
7623 if test "$supported" = "yes" ; then
7624 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7625 found="yes"
7626 fi
7627 fi
7628
7629 if test $found = "no" ; then
7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632 fi
7633
7634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7636 fi
7637
7638 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7639
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7641 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7642 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7643 if eval \${$cacheid+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 int i;
7649 int
7650 main ()
7651 {
7652
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 if ac_fn_c_try_link "$LINENO"; then :
7658 eval $cacheid=yes
7659 else
7660 eval $cacheid=no
7661 fi
7662 rm -f core conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7664 fi
7665
7666
7667 CFLAGS="$xorg_testset_save_CFLAGS"
7668
7669 eval supported=\$$cacheid
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7671 $as_echo "$supported" >&6; }
7672 if test "$supported" = "yes" ; then
7673 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7674 found="yes"
7675 fi
7676 fi
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692 xorg_testset_save_CFLAGS="$CFLAGS"
7693
7694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7697 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7698 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 int i;
7704 _ACEOF
7705 if ac_fn_c_try_compile "$LINENO"; then :
7706 xorg_cv_cc_flag_unknown_warning_option=yes
7707 else
7708 xorg_cv_cc_flag_unknown_warning_option=no
7709 fi
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7713 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7715 CFLAGS="$xorg_testset_save_CFLAGS"
7716 fi
7717
7718 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721 fi
7722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7724 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7725 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7730 int i;
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733 xorg_cv_cc_flag_unused_command_line_argument=yes
7734 else
7735 xorg_cv_cc_flag_unused_command_line_argument=no
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7740 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7742 CFLAGS="$xorg_testset_save_CFLAGS"
7743 fi
7744
7745 found="no"
7746
7747 if test $found = "no" ; then
7748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7750 fi
7751
7752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7754 fi
7755
7756 CFLAGS="$CFLAGS -Werror=trigraphs"
7757
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7759 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7760 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7761 if eval \${$cacheid+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 int i;
7767 int
7768 main ()
7769 {
7770
7771 ;
7772 return 0;
7773 }
7774 _ACEOF
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 eval $cacheid=yes
7777 else
7778 eval $cacheid=no
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 fi
7783
7784
7785 CFLAGS="$xorg_testset_save_CFLAGS"
7786
7787 eval supported=\$$cacheid
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7789 $as_echo "$supported" >&6; }
7790 if test "$supported" = "yes" ; then
7791 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7792 found="yes"
7793 fi
7794 fi
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810 xorg_testset_save_CFLAGS="$CFLAGS"
7811
7812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7815 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7816 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 int i;
7822 _ACEOF
7823 if ac_fn_c_try_compile "$LINENO"; then :
7824 xorg_cv_cc_flag_unknown_warning_option=yes
7825 else
7826 xorg_cv_cc_flag_unknown_warning_option=no
7827 fi
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 fi
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7831 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7833 CFLAGS="$xorg_testset_save_CFLAGS"
7834 fi
7835
7836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839 fi
7840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7842 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7843 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 int i;
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851 xorg_cv_cc_flag_unused_command_line_argument=yes
7852 else
7853 xorg_cv_cc_flag_unused_command_line_argument=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7858 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7860 CFLAGS="$xorg_testset_save_CFLAGS"
7861 fi
7862
7863 found="no"
7864
7865 if test $found = "no" ; then
7866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868 fi
7869
7870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7872 fi
7873
7874 CFLAGS="$CFLAGS -Werror=array-bounds"
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7877 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7878 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7879 if eval \${$cacheid+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 int i;
7885 int
7886 main ()
7887 {
7888
7889 ;
7890 return 0;
7891 }
7892 _ACEOF
7893 if ac_fn_c_try_link "$LINENO"; then :
7894 eval $cacheid=yes
7895 else
7896 eval $cacheid=no
7897 fi
7898 rm -f core conftest.err conftest.$ac_objext \
7899 conftest$ac_exeext conftest.$ac_ext
7900 fi
7901
7902
7903 CFLAGS="$xorg_testset_save_CFLAGS"
7904
7905 eval supported=\$$cacheid
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7907 $as_echo "$supported" >&6; }
7908 if test "$supported" = "yes" ; then
7909 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7910 found="yes"
7911 fi
7912 fi
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 xorg_testset_save_CFLAGS="$CFLAGS"
7929
7930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7933 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7934 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 int i;
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 xorg_cv_cc_flag_unknown_warning_option=yes
7943 else
7944 xorg_cv_cc_flag_unknown_warning_option=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7949 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7951 CFLAGS="$xorg_testset_save_CFLAGS"
7952 fi
7953
7954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 fi
7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7960 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7961 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 int i;
7967 _ACEOF
7968 if ac_fn_c_try_compile "$LINENO"; then :
7969 xorg_cv_cc_flag_unused_command_line_argument=yes
7970 else
7971 xorg_cv_cc_flag_unused_command_line_argument=no
7972 fi
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7976 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7978 CFLAGS="$xorg_testset_save_CFLAGS"
7979 fi
7980
7981 found="no"
7982
7983 if test $found = "no" ; then
7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986 fi
7987
7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7990 fi
7991
7992 CFLAGS="$CFLAGS -Werror=write-strings"
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7995 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7996 cacheid=xorg_cv_cc_flag__Werror_write_strings
7997 if eval \${$cacheid+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 int i;
8003 int
8004 main ()
8005 {
8006
8007 ;
8008 return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_link "$LINENO"; then :
8012 eval $cacheid=yes
8013 else
8014 eval $cacheid=no
8015 fi
8016 rm -f core conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8018 fi
8019
8020
8021 CFLAGS="$xorg_testset_save_CFLAGS"
8022
8023 eval supported=\$$cacheid
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8025 $as_echo "$supported" >&6; }
8026 if test "$supported" = "yes" ; then
8027 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8028 found="yes"
8029 fi
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046 xorg_testset_save_CFLAGS="$CFLAGS"
8047
8048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8051 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8052 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 int i;
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060 xorg_cv_cc_flag_unknown_warning_option=yes
8061 else
8062 xorg_cv_cc_flag_unknown_warning_option=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 fi
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8067 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8069 CFLAGS="$xorg_testset_save_CFLAGS"
8070 fi
8071
8072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075 fi
8076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8078 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8079 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084 int i;
8085 _ACEOF
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087 xorg_cv_cc_flag_unused_command_line_argument=yes
8088 else
8089 xorg_cv_cc_flag_unused_command_line_argument=no
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8094 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8096 CFLAGS="$xorg_testset_save_CFLAGS"
8097 fi
8098
8099 found="no"
8100
8101 if test $found = "no" ; then
8102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104 fi
8105
8106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108 fi
8109
8110 CFLAGS="$CFLAGS -Werror=address"
8111
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8113 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8114 cacheid=xorg_cv_cc_flag__Werror_address
8115 if eval \${$cacheid+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 int i;
8121 int
8122 main ()
8123 {
8124
8125 ;
8126 return 0;
8127 }
8128 _ACEOF
8129 if ac_fn_c_try_link "$LINENO"; then :
8130 eval $cacheid=yes
8131 else
8132 eval $cacheid=no
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
8136 fi
8137
8138
8139 CFLAGS="$xorg_testset_save_CFLAGS"
8140
8141 eval supported=\$$cacheid
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8143 $as_echo "$supported" >&6; }
8144 if test "$supported" = "yes" ; then
8145 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8146 found="yes"
8147 fi
8148 fi
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 xorg_testset_save_CFLAGS="$CFLAGS"
8165
8166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8169 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8170 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 int i;
8176 _ACEOF
8177 if ac_fn_c_try_compile "$LINENO"; then :
8178 xorg_cv_cc_flag_unknown_warning_option=yes
8179 else
8180 xorg_cv_cc_flag_unknown_warning_option=no
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 fi
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8185 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8187 CFLAGS="$xorg_testset_save_CFLAGS"
8188 fi
8189
8190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8193 fi
8194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8196 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8197 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202 int i;
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205 xorg_cv_cc_flag_unused_command_line_argument=yes
8206 else
8207 xorg_cv_cc_flag_unused_command_line_argument=no
8208 fi
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 fi
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8212 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8214 CFLAGS="$xorg_testset_save_CFLAGS"
8215 fi
8216
8217 found="no"
8218
8219 if test $found = "no" ; then
8220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222 fi
8223
8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226 fi
8227
8228 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8231 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8232 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8233 if eval \${$cacheid+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 int i;
8239 int
8240 main ()
8241 {
8242
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 if ac_fn_c_try_link "$LINENO"; then :
8248 eval $cacheid=yes
8249 else
8250 eval $cacheid=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254 fi
8255
8256
8257 CFLAGS="$xorg_testset_save_CFLAGS"
8258
8259 eval supported=\$$cacheid
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8261 $as_echo "$supported" >&6; }
8262 if test "$supported" = "yes" ; then
8263 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8264 found="yes"
8265 fi
8266 fi
8267
8268 if test $found = "no" ; then
8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8271 fi
8272
8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8275 fi
8276
8277 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8278
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8280 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8281 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8282 if eval \${$cacheid+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 int i;
8288 int
8289 main ()
8290 {
8291
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"; then :
8297 eval $cacheid=yes
8298 else
8299 eval $cacheid=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8303 fi
8304
8305
8306 CFLAGS="$xorg_testset_save_CFLAGS"
8307
8308 eval supported=\$$cacheid
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8310 $as_echo "$supported" >&6; }
8311 if test "$supported" = "yes" ; then
8312 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8313 found="yes"
8314 fi
8315 fi
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331 xorg_testset_save_CFLAGS="$CFLAGS"
8332
8333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8336 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8337 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 int i;
8343 _ACEOF
8344 if ac_fn_c_try_compile "$LINENO"; then :
8345 xorg_cv_cc_flag_unknown_warning_option=yes
8346 else
8347 xorg_cv_cc_flag_unknown_warning_option=no
8348 fi
8349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350 fi
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8352 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8354 CFLAGS="$xorg_testset_save_CFLAGS"
8355 fi
8356
8357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8360 fi
8361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8364 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 int i;
8370 _ACEOF
8371 if ac_fn_c_try_compile "$LINENO"; then :
8372 xorg_cv_cc_flag_unused_command_line_argument=yes
8373 else
8374 xorg_cv_cc_flag_unused_command_line_argument=no
8375 fi
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 fi
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8379 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8381 CFLAGS="$xorg_testset_save_CFLAGS"
8382 fi
8383
8384 found="no"
8385
8386 if test $found = "no" ; then
8387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8389 fi
8390
8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8393 fi
8394
8395 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8396
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8398 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8399 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8400 if eval \${$cacheid+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 int i;
8406 int
8407 main ()
8408 {
8409
8410 ;
8411 return 0;
8412 }
8413 _ACEOF
8414 if ac_fn_c_try_link "$LINENO"; then :
8415 eval $cacheid=yes
8416 else
8417 eval $cacheid=no
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
8421 fi
8422
8423
8424 CFLAGS="$xorg_testset_save_CFLAGS"
8425
8426 eval supported=\$$cacheid
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8428 $as_echo "$supported" >&6; }
8429 if test "$supported" = "yes" ; then
8430 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8431 found="yes"
8432 fi
8433 fi
8434
8435 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8436 else
8437 { $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
8438 $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;}
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452 xorg_testset_save_CFLAGS="$CFLAGS"
8453
8454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 int i;
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"; then :
8466 xorg_cv_cc_flag_unknown_warning_option=yes
8467 else
8468 xorg_cv_cc_flag_unknown_warning_option=no
8469 fi
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 fi
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8475 CFLAGS="$xorg_testset_save_CFLAGS"
8476 fi
8477
8478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8481 fi
8482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 int i;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 xorg_cv_cc_flag_unused_command_line_argument=yes
8494 else
8495 xorg_cv_cc_flag_unused_command_line_argument=no
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 fi
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8502 CFLAGS="$xorg_testset_save_CFLAGS"
8503 fi
8504
8505 found="no"
8506
8507 if test $found = "no" ; then
8508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510 fi
8511
8512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8514 fi
8515
8516 CFLAGS="$CFLAGS -Wimplicit"
8517
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8519 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8520 cacheid=xorg_cv_cc_flag__Wimplicit
8521 if eval \${$cacheid+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 int i;
8527 int
8528 main ()
8529 {
8530
8531 ;
8532 return 0;
8533 }
8534 _ACEOF
8535 if ac_fn_c_try_link "$LINENO"; then :
8536 eval $cacheid=yes
8537 else
8538 eval $cacheid=no
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext conftest.$ac_ext
8542 fi
8543
8544
8545 CFLAGS="$xorg_testset_save_CFLAGS"
8546
8547 eval supported=\$$cacheid
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8549 $as_echo "$supported" >&6; }
8550 if test "$supported" = "yes" ; then
8551 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8552 found="yes"
8553 fi
8554 fi
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570 xorg_testset_save_CFLAGS="$CFLAGS"
8571
8572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 int i;
8582 _ACEOF
8583 if ac_fn_c_try_compile "$LINENO"; then :
8584 xorg_cv_cc_flag_unknown_warning_option=yes
8585 else
8586 xorg_cv_cc_flag_unknown_warning_option=no
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8593 CFLAGS="$xorg_testset_save_CFLAGS"
8594 fi
8595
8596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599 fi
8600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608 int i;
8609 _ACEOF
8610 if ac_fn_c_try_compile "$LINENO"; then :
8611 xorg_cv_cc_flag_unused_command_line_argument=yes
8612 else
8613 xorg_cv_cc_flag_unused_command_line_argument=no
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 fi
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8620 CFLAGS="$xorg_testset_save_CFLAGS"
8621 fi
8622
8623 found="no"
8624
8625 if test $found = "no" ; then
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 fi
8629
8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632 fi
8633
8634 CFLAGS="$CFLAGS -Wnonnull"
8635
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8637 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8638 cacheid=xorg_cv_cc_flag__Wnonnull
8639 if eval \${$cacheid+:} false; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8644 int i;
8645 int
8646 main ()
8647 {
8648
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_link "$LINENO"; then :
8654 eval $cacheid=yes
8655 else
8656 eval $cacheid=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8660 fi
8661
8662
8663 CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665 eval supported=\$$cacheid
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667 $as_echo "$supported" >&6; }
8668 if test "$supported" = "yes" ; then
8669 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8670 found="yes"
8671 fi
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 int i;
8700 _ACEOF
8701 if ac_fn_c_try_compile "$LINENO"; then :
8702 xorg_cv_cc_flag_unknown_warning_option=yes
8703 else
8704 xorg_cv_cc_flag_unknown_warning_option=no
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8711 CFLAGS="$xorg_testset_save_CFLAGS"
8712 fi
8713
8714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717 fi
8718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 int i;
8727 _ACEOF
8728 if ac_fn_c_try_compile "$LINENO"; then :
8729 xorg_cv_cc_flag_unused_command_line_argument=yes
8730 else
8731 xorg_cv_cc_flag_unused_command_line_argument=no
8732 fi
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8738 CFLAGS="$xorg_testset_save_CFLAGS"
8739 fi
8740
8741 found="no"
8742
8743 if test $found = "no" ; then
8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746 fi
8747
8748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8750 fi
8751
8752 CFLAGS="$CFLAGS -Winit-self"
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8755 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8756 cacheid=xorg_cv_cc_flag__Winit_self
8757 if eval \${$cacheid+:} false; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762 int i;
8763 int
8764 main ()
8765 {
8766
8767 ;
8768 return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 eval $cacheid=yes
8773 else
8774 eval $cacheid=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 fi
8779
8780
8781 CFLAGS="$xorg_testset_save_CFLAGS"
8782
8783 eval supported=\$$cacheid
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8785 $as_echo "$supported" >&6; }
8786 if test "$supported" = "yes" ; then
8787 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8788 found="yes"
8789 fi
8790 fi
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806 xorg_testset_save_CFLAGS="$CFLAGS"
8807
8808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 int i;
8818 _ACEOF
8819 if ac_fn_c_try_compile "$LINENO"; then :
8820 xorg_cv_cc_flag_unknown_warning_option=yes
8821 else
8822 xorg_cv_cc_flag_unknown_warning_option=no
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8829 CFLAGS="$xorg_testset_save_CFLAGS"
8830 fi
8831
8832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8835 fi
8836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844 int i;
8845 _ACEOF
8846 if ac_fn_c_try_compile "$LINENO"; then :
8847 xorg_cv_cc_flag_unused_command_line_argument=yes
8848 else
8849 xorg_cv_cc_flag_unused_command_line_argument=no
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8856 CFLAGS="$xorg_testset_save_CFLAGS"
8857 fi
8858
8859 found="no"
8860
8861 if test $found = "no" ; then
8862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8864 fi
8865
8866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8868 fi
8869
8870 CFLAGS="$CFLAGS -Wmain"
8871
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8873 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8874 cacheid=xorg_cv_cc_flag__Wmain
8875 if eval \${$cacheid+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 int i;
8881 int
8882 main ()
8883 {
8884
8885 ;
8886 return 0;
8887 }
8888 _ACEOF
8889 if ac_fn_c_try_link "$LINENO"; then :
8890 eval $cacheid=yes
8891 else
8892 eval $cacheid=no
8893 fi
8894 rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 fi
8897
8898
8899 CFLAGS="$xorg_testset_save_CFLAGS"
8900
8901 eval supported=\$$cacheid
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8903 $as_echo "$supported" >&6; }
8904 if test "$supported" = "yes" ; then
8905 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8906 found="yes"
8907 fi
8908 fi
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924 xorg_testset_save_CFLAGS="$CFLAGS"
8925
8926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8929 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8930 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 int i;
8936 _ACEOF
8937 if ac_fn_c_try_compile "$LINENO"; then :
8938 xorg_cv_cc_flag_unknown_warning_option=yes
8939 else
8940 xorg_cv_cc_flag_unknown_warning_option=no
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8945 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8947 CFLAGS="$xorg_testset_save_CFLAGS"
8948 fi
8949
8950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8953 fi
8954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8956 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8957 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 int i;
8963 _ACEOF
8964 if ac_fn_c_try_compile "$LINENO"; then :
8965 xorg_cv_cc_flag_unused_command_line_argument=yes
8966 else
8967 xorg_cv_cc_flag_unused_command_line_argument=no
8968 fi
8969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8972 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8974 CFLAGS="$xorg_testset_save_CFLAGS"
8975 fi
8976
8977 found="no"
8978
8979 if test $found = "no" ; then
8980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8982 fi
8983
8984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8986 fi
8987
8988 CFLAGS="$CFLAGS -Wmissing-braces"
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8991 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8992 cacheid=xorg_cv_cc_flag__Wmissing_braces
8993 if eval \${$cacheid+:} false; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 int i;
8999 int
9000 main ()
9001 {
9002
9003 ;
9004 return 0;
9005 }
9006 _ACEOF
9007 if ac_fn_c_try_link "$LINENO"; then :
9008 eval $cacheid=yes
9009 else
9010 eval $cacheid=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 fi
9015
9016
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018
9019 eval supported=\$$cacheid
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9021 $as_echo "$supported" >&6; }
9022 if test "$supported" = "yes" ; then
9023 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9024 found="yes"
9025 fi
9026 fi
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042 xorg_testset_save_CFLAGS="$CFLAGS"
9043
9044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9047 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9048 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 int i;
9054 _ACEOF
9055 if ac_fn_c_try_compile "$LINENO"; then :
9056 xorg_cv_cc_flag_unknown_warning_option=yes
9057 else
9058 xorg_cv_cc_flag_unknown_warning_option=no
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9063 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9065 CFLAGS="$xorg_testset_save_CFLAGS"
9066 fi
9067
9068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071 fi
9072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9074 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9075 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 int i;
9081 _ACEOF
9082 if ac_fn_c_try_compile "$LINENO"; then :
9083 xorg_cv_cc_flag_unused_command_line_argument=yes
9084 else
9085 xorg_cv_cc_flag_unused_command_line_argument=no
9086 fi
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 fi
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9090 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9092 CFLAGS="$xorg_testset_save_CFLAGS"
9093 fi
9094
9095 found="no"
9096
9097 if test $found = "no" ; then
9098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100 fi
9101
9102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9104 fi
9105
9106 CFLAGS="$CFLAGS -Wsequence-point"
9107
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9109 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9110 cacheid=xorg_cv_cc_flag__Wsequence_point
9111 if eval \${$cacheid+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 int i;
9117 int
9118 main ()
9119 {
9120
9121 ;
9122 return 0;
9123 }
9124 _ACEOF
9125 if ac_fn_c_try_link "$LINENO"; then :
9126 eval $cacheid=yes
9127 else
9128 eval $cacheid=no
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext \
9131 conftest$ac_exeext conftest.$ac_ext
9132 fi
9133
9134
9135 CFLAGS="$xorg_testset_save_CFLAGS"
9136
9137 eval supported=\$$cacheid
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9139 $as_echo "$supported" >&6; }
9140 if test "$supported" = "yes" ; then
9141 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9142 found="yes"
9143 fi
9144 fi
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160 xorg_testset_save_CFLAGS="$CFLAGS"
9161
9162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 int i;
9172 _ACEOF
9173 if ac_fn_c_try_compile "$LINENO"; then :
9174 xorg_cv_cc_flag_unknown_warning_option=yes
9175 else
9176 xorg_cv_cc_flag_unknown_warning_option=no
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9183 CFLAGS="$xorg_testset_save_CFLAGS"
9184 fi
9185
9186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9189 fi
9190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 int i;
9199 _ACEOF
9200 if ac_fn_c_try_compile "$LINENO"; then :
9201 xorg_cv_cc_flag_unused_command_line_argument=yes
9202 else
9203 xorg_cv_cc_flag_unused_command_line_argument=no
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206 fi
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9210 CFLAGS="$xorg_testset_save_CFLAGS"
9211 fi
9212
9213 found="no"
9214
9215 if test $found = "no" ; then
9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218 fi
9219
9220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9222 fi
9223
9224 CFLAGS="$CFLAGS -Wreturn-type"
9225
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9227 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9228 cacheid=xorg_cv_cc_flag__Wreturn_type
9229 if eval \${$cacheid+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 int i;
9235 int
9236 main ()
9237 {
9238
9239 ;
9240 return 0;
9241 }
9242 _ACEOF
9243 if ac_fn_c_try_link "$LINENO"; then :
9244 eval $cacheid=yes
9245 else
9246 eval $cacheid=no
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 fi
9251
9252
9253 CFLAGS="$xorg_testset_save_CFLAGS"
9254
9255 eval supported=\$$cacheid
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9257 $as_echo "$supported" >&6; }
9258 if test "$supported" = "yes" ; then
9259 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9260 found="yes"
9261 fi
9262 fi
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278 xorg_testset_save_CFLAGS="$CFLAGS"
9279
9280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 int i;
9290 _ACEOF
9291 if ac_fn_c_try_compile "$LINENO"; then :
9292 xorg_cv_cc_flag_unknown_warning_option=yes
9293 else
9294 xorg_cv_cc_flag_unknown_warning_option=no
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 fi
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9301 CFLAGS="$xorg_testset_save_CFLAGS"
9302 fi
9303
9304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9307 fi
9308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9316 int i;
9317 _ACEOF
9318 if ac_fn_c_try_compile "$LINENO"; then :
9319 xorg_cv_cc_flag_unused_command_line_argument=yes
9320 else
9321 xorg_cv_cc_flag_unused_command_line_argument=no
9322 fi
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9328 CFLAGS="$xorg_testset_save_CFLAGS"
9329 fi
9330
9331 found="no"
9332
9333 if test $found = "no" ; then
9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336 fi
9337
9338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9340 fi
9341
9342 CFLAGS="$CFLAGS -Wtrigraphs"
9343
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9345 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9346 cacheid=xorg_cv_cc_flag__Wtrigraphs
9347 if eval \${$cacheid+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 int i;
9353 int
9354 main ()
9355 {
9356
9357 ;
9358 return 0;
9359 }
9360 _ACEOF
9361 if ac_fn_c_try_link "$LINENO"; then :
9362 eval $cacheid=yes
9363 else
9364 eval $cacheid=no
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9368 fi
9369
9370
9371 CFLAGS="$xorg_testset_save_CFLAGS"
9372
9373 eval supported=\$$cacheid
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9375 $as_echo "$supported" >&6; }
9376 if test "$supported" = "yes" ; then
9377 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9378 found="yes"
9379 fi
9380 fi
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396 xorg_testset_save_CFLAGS="$CFLAGS"
9397
9398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 int i;
9408 _ACEOF
9409 if ac_fn_c_try_compile "$LINENO"; then :
9410 xorg_cv_cc_flag_unknown_warning_option=yes
9411 else
9412 xorg_cv_cc_flag_unknown_warning_option=no
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9419 CFLAGS="$xorg_testset_save_CFLAGS"
9420 fi
9421
9422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425 fi
9426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 int i;
9435 _ACEOF
9436 if ac_fn_c_try_compile "$LINENO"; then :
9437 xorg_cv_cc_flag_unused_command_line_argument=yes
9438 else
9439 xorg_cv_cc_flag_unused_command_line_argument=no
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9442 fi
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9446 CFLAGS="$xorg_testset_save_CFLAGS"
9447 fi
9448
9449 found="no"
9450
9451 if test $found = "no" ; then
9452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9454 fi
9455
9456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9458 fi
9459
9460 CFLAGS="$CFLAGS -Warray-bounds"
9461
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9463 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9464 cacheid=xorg_cv_cc_flag__Warray_bounds
9465 if eval \${$cacheid+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 int i;
9471 int
9472 main ()
9473 {
9474
9475 ;
9476 return 0;
9477 }
9478 _ACEOF
9479 if ac_fn_c_try_link "$LINENO"; then :
9480 eval $cacheid=yes
9481 else
9482 eval $cacheid=no
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486 fi
9487
9488
9489 CFLAGS="$xorg_testset_save_CFLAGS"
9490
9491 eval supported=\$$cacheid
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9493 $as_echo "$supported" >&6; }
9494 if test "$supported" = "yes" ; then
9495 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9496 found="yes"
9497 fi
9498 fi
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514 xorg_testset_save_CFLAGS="$CFLAGS"
9515
9516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 int i;
9526 _ACEOF
9527 if ac_fn_c_try_compile "$LINENO"; then :
9528 xorg_cv_cc_flag_unknown_warning_option=yes
9529 else
9530 xorg_cv_cc_flag_unknown_warning_option=no
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9533 fi
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9537 CFLAGS="$xorg_testset_save_CFLAGS"
9538 fi
9539
9540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9543 fi
9544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552 int i;
9553 _ACEOF
9554 if ac_fn_c_try_compile "$LINENO"; then :
9555 xorg_cv_cc_flag_unused_command_line_argument=yes
9556 else
9557 xorg_cv_cc_flag_unused_command_line_argument=no
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9564 CFLAGS="$xorg_testset_save_CFLAGS"
9565 fi
9566
9567 found="no"
9568
9569 if test $found = "no" ; then
9570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572 fi
9573
9574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576 fi
9577
9578 CFLAGS="$CFLAGS -Wwrite-strings"
9579
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9581 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9582 cacheid=xorg_cv_cc_flag__Wwrite_strings
9583 if eval \${$cacheid+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 int i;
9589 int
9590 main ()
9591 {
9592
9593 ;
9594 return 0;
9595 }
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9598 eval $cacheid=yes
9599 else
9600 eval $cacheid=no
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604 fi
9605
9606
9607 CFLAGS="$xorg_testset_save_CFLAGS"
9608
9609 eval supported=\$$cacheid
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9611 $as_echo "$supported" >&6; }
9612 if test "$supported" = "yes" ; then
9613 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9614 found="yes"
9615 fi
9616 fi
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632 xorg_testset_save_CFLAGS="$CFLAGS"
9633
9634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9637 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9638 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 int i;
9644 _ACEOF
9645 if ac_fn_c_try_compile "$LINENO"; then :
9646 xorg_cv_cc_flag_unknown_warning_option=yes
9647 else
9648 xorg_cv_cc_flag_unknown_warning_option=no
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9653 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9655 CFLAGS="$xorg_testset_save_CFLAGS"
9656 fi
9657
9658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9661 fi
9662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9664 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9665 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9670 int i;
9671 _ACEOF
9672 if ac_fn_c_try_compile "$LINENO"; then :
9673 xorg_cv_cc_flag_unused_command_line_argument=yes
9674 else
9675 xorg_cv_cc_flag_unused_command_line_argument=no
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 fi
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9680 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9682 CFLAGS="$xorg_testset_save_CFLAGS"
9683 fi
9684
9685 found="no"
9686
9687 if test $found = "no" ; then
9688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9690 fi
9691
9692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9694 fi
9695
9696 CFLAGS="$CFLAGS -Waddress"
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9699 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9700 cacheid=xorg_cv_cc_flag__Waddress
9701 if eval \${$cacheid+:} false; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706 int i;
9707 int
9708 main ()
9709 {
9710
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 if ac_fn_c_try_link "$LINENO"; then :
9716 eval $cacheid=yes
9717 else
9718 eval $cacheid=no
9719 fi
9720 rm -f core conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 fi
9723
9724
9725 CFLAGS="$xorg_testset_save_CFLAGS"
9726
9727 eval supported=\$$cacheid
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9729 $as_echo "$supported" >&6; }
9730 if test "$supported" = "yes" ; then
9731 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9732 found="yes"
9733 fi
9734 fi
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750 xorg_testset_save_CFLAGS="$CFLAGS"
9751
9752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9755 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9756 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 int i;
9762 _ACEOF
9763 if ac_fn_c_try_compile "$LINENO"; then :
9764 xorg_cv_cc_flag_unknown_warning_option=yes
9765 else
9766 xorg_cv_cc_flag_unknown_warning_option=no
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9771 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9773 CFLAGS="$xorg_testset_save_CFLAGS"
9774 fi
9775
9776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779 fi
9780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9782 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9783 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9784 $as_echo_n "(cached) " >&6
9785 else
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 int i;
9789 _ACEOF
9790 if ac_fn_c_try_compile "$LINENO"; then :
9791 xorg_cv_cc_flag_unused_command_line_argument=yes
9792 else
9793 xorg_cv_cc_flag_unused_command_line_argument=no
9794 fi
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 fi
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9798 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9800 CFLAGS="$xorg_testset_save_CFLAGS"
9801 fi
9802
9803 found="no"
9804
9805 if test $found = "no" ; then
9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9808 fi
9809
9810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9812 fi
9813
9814 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9815
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9817 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9818 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9819 if eval \${$cacheid+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 int i;
9825 int
9826 main ()
9827 {
9828
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 if ac_fn_c_try_link "$LINENO"; then :
9834 eval $cacheid=yes
9835 else
9836 eval $cacheid=no
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
9840 fi
9841
9842
9843 CFLAGS="$xorg_testset_save_CFLAGS"
9844
9845 eval supported=\$$cacheid
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9847 $as_echo "$supported" >&6; }
9848 if test "$supported" = "yes" ; then
9849 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9850 found="yes"
9851 fi
9852 fi
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868 xorg_testset_save_CFLAGS="$CFLAGS"
9869
9870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879 int i;
9880 _ACEOF
9881 if ac_fn_c_try_compile "$LINENO"; then :
9882 xorg_cv_cc_flag_unknown_warning_option=yes
9883 else
9884 xorg_cv_cc_flag_unknown_warning_option=no
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9891 CFLAGS="$xorg_testset_save_CFLAGS"
9892 fi
9893
9894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9897 fi
9898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9902 $as_echo_n "(cached) " >&6
9903 else
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h. */
9906 int i;
9907 _ACEOF
9908 if ac_fn_c_try_compile "$LINENO"; then :
9909 xorg_cv_cc_flag_unused_command_line_argument=yes
9910 else
9911 xorg_cv_cc_flag_unused_command_line_argument=no
9912 fi
9913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9918 CFLAGS="$xorg_testset_save_CFLAGS"
9919 fi
9920
9921 found="no"
9922
9923 if test $found = "no" ; then
9924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9926 fi
9927
9928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9930 fi
9931
9932 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9933
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9935 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9936 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9937 if eval \${$cacheid+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 int i;
9943 int
9944 main ()
9945 {
9946
9947 ;
9948 return 0;
9949 }
9950 _ACEOF
9951 if ac_fn_c_try_link "$LINENO"; then :
9952 eval $cacheid=yes
9953 else
9954 eval $cacheid=no
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 fi
9959
9960
9961 CFLAGS="$xorg_testset_save_CFLAGS"
9962
9963 eval supported=\$$cacheid
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9965 $as_echo "$supported" >&6; }
9966 if test "$supported" = "yes" ; then
9967 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9968 found="yes"
9969 fi
9970 fi
9971
9972
9973 fi
9974
9975
9976
9977
9978
9979
9980
9981 CWARNFLAGS="$BASE_CFLAGS"
9982 if test "x$GCC" = xyes ; then
9983 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9984 fi
9985
9986
9987
9988
9989
9990
9991
9992
9993 # Check whether --enable-strict-compilation was given.
9994 if test "${enable_strict_compilation+set}" = set; then :
9995 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9996 else
9997 STRICT_COMPILE=no
9998 fi
9999
10000
10001
10002
10003
10004
10005 STRICT_CFLAGS=""
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019 xorg_testset_save_CFLAGS="$CFLAGS"
10020
10021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10024 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10025 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 int i;
10031 _ACEOF
10032 if ac_fn_c_try_compile "$LINENO"; then :
10033 xorg_cv_cc_flag_unknown_warning_option=yes
10034 else
10035 xorg_cv_cc_flag_unknown_warning_option=no
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10040 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10042 CFLAGS="$xorg_testset_save_CFLAGS"
10043 fi
10044
10045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048 fi
10049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10052 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057 int i;
10058 _ACEOF
10059 if ac_fn_c_try_compile "$LINENO"; then :
10060 xorg_cv_cc_flag_unused_command_line_argument=yes
10061 else
10062 xorg_cv_cc_flag_unused_command_line_argument=no
10063 fi
10064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 fi
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10067 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10069 CFLAGS="$xorg_testset_save_CFLAGS"
10070 fi
10071
10072 found="no"
10073
10074 if test $found = "no" ; then
10075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077 fi
10078
10079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10081 fi
10082
10083 CFLAGS="$CFLAGS -pedantic"
10084
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10086 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10087 cacheid=xorg_cv_cc_flag__pedantic
10088 if eval \${$cacheid+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10093 int i;
10094 int
10095 main ()
10096 {
10097
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 if ac_fn_c_try_link "$LINENO"; then :
10103 eval $cacheid=yes
10104 else
10105 eval $cacheid=no
10106 fi
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 fi
10110
10111
10112 CFLAGS="$xorg_testset_save_CFLAGS"
10113
10114 eval supported=\$$cacheid
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10116 $as_echo "$supported" >&6; }
10117 if test "$supported" = "yes" ; then
10118 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10119 found="yes"
10120 fi
10121 fi
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137 xorg_testset_save_CFLAGS="$CFLAGS"
10138
10139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10142 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10143 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 int i;
10149 _ACEOF
10150 if ac_fn_c_try_compile "$LINENO"; then :
10151 xorg_cv_cc_flag_unknown_warning_option=yes
10152 else
10153 xorg_cv_cc_flag_unknown_warning_option=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10158 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10160 CFLAGS="$xorg_testset_save_CFLAGS"
10161 fi
10162
10163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10166 fi
10167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10169 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10170 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 int i;
10176 _ACEOF
10177 if ac_fn_c_try_compile "$LINENO"; then :
10178 xorg_cv_cc_flag_unused_command_line_argument=yes
10179 else
10180 xorg_cv_cc_flag_unused_command_line_argument=no
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183 fi
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10185 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10187 CFLAGS="$xorg_testset_save_CFLAGS"
10188 fi
10189
10190 found="no"
10191
10192 if test $found = "no" ; then
10193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10195 fi
10196
10197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10199 fi
10200
10201 CFLAGS="$CFLAGS -Werror"
10202
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10204 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10205 cacheid=xorg_cv_cc_flag__Werror
10206 if eval \${$cacheid+:} false; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10211 int i;
10212 int
10213 main ()
10214 {
10215
10216 ;
10217 return 0;
10218 }
10219 _ACEOF
10220 if ac_fn_c_try_link "$LINENO"; then :
10221 eval $cacheid=yes
10222 else
10223 eval $cacheid=no
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10227 fi
10228
10229
10230 CFLAGS="$xorg_testset_save_CFLAGS"
10231
10232 eval supported=\$$cacheid
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10234 $as_echo "$supported" >&6; }
10235 if test "$supported" = "yes" ; then
10236 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10237 found="yes"
10238 fi
10239 fi
10240
10241 if test $found = "no" ; then
10242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10244 fi
10245
10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10248 fi
10249
10250 CFLAGS="$CFLAGS -errwarn"
10251
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10253 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10254 cacheid=xorg_cv_cc_flag__errwarn
10255 if eval \${$cacheid+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 int i;
10261 int
10262 main ()
10263 {
10264
10265 ;
10266 return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 eval $cacheid=yes
10271 else
10272 eval $cacheid=no
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 fi
10277
10278
10279 CFLAGS="$xorg_testset_save_CFLAGS"
10280
10281 eval supported=\$$cacheid
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10283 $as_echo "$supported" >&6; }
10284 if test "$supported" = "yes" ; then
10285 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10286 found="yes"
10287 fi
10288 fi
10289
10290
10291
10292 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10293 # activate it with -Werror, so we add it here explicitly.
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307 xorg_testset_save_CFLAGS="$CFLAGS"
10308
10309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318 int i;
10319 _ACEOF
10320 if ac_fn_c_try_compile "$LINENO"; then :
10321 xorg_cv_cc_flag_unknown_warning_option=yes
10322 else
10323 xorg_cv_cc_flag_unknown_warning_option=no
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326 fi
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10330 CFLAGS="$xorg_testset_save_CFLAGS"
10331 fi
10332
10333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10336 fi
10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int i;
10346 _ACEOF
10347 if ac_fn_c_try_compile "$LINENO"; then :
10348 xorg_cv_cc_flag_unused_command_line_argument=yes
10349 else
10350 xorg_cv_cc_flag_unused_command_line_argument=no
10351 fi
10352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10357 CFLAGS="$xorg_testset_save_CFLAGS"
10358 fi
10359
10360 found="no"
10361
10362 if test $found = "no" ; then
10363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10365 fi
10366
10367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10369 fi
10370
10371 CFLAGS="$CFLAGS -Werror=attributes"
10372
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10374 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10375 cacheid=xorg_cv_cc_flag__Werror_attributes
10376 if eval \${$cacheid+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 int i;
10382 int
10383 main ()
10384 {
10385
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 if ac_fn_c_try_link "$LINENO"; then :
10391 eval $cacheid=yes
10392 else
10393 eval $cacheid=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10397 fi
10398
10399
10400 CFLAGS="$xorg_testset_save_CFLAGS"
10401
10402 eval supported=\$$cacheid
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10404 $as_echo "$supported" >&6; }
10405 if test "$supported" = "yes" ; then
10406 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10407 found="yes"
10408 fi
10409 fi
10410
10411
10412
10413 if test "x$STRICT_COMPILE" = "xyes"; then
10414 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10415 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10416 fi
10417
10418
10419
10420
10421
10422
10423 cat >>confdefs.h <<_ACEOF
10424 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10425 _ACEOF
10426
10427 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10428 if test "x$PVM" = "x"; then
10429 PVM="0"
10430 fi
10431
10432 cat >>confdefs.h <<_ACEOF
10433 #define PACKAGE_VERSION_MINOR $PVM
10434 _ACEOF
10435
10436 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10437 if test "x$PVP" = "x"; then
10438 PVP="0"
10439 fi
10440
10441 cat >>confdefs.h <<_ACEOF
10442 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10443 _ACEOF
10444
10445
10446
10447 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10448 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10449 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10450 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10451
10452
10453
10454
10455 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10456 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10457 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10458 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10459 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10460
10461
10462
10463
10464
10465
10466 if test x$APP_MAN_SUFFIX = x ; then
10467 APP_MAN_SUFFIX=1
10468 fi
10469 if test x$APP_MAN_DIR = x ; then
10470 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10471 fi
10472
10473 if test x$LIB_MAN_SUFFIX = x ; then
10474 LIB_MAN_SUFFIX=3
10475 fi
10476 if test x$LIB_MAN_DIR = x ; then
10477 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10478 fi
10479
10480 if test x$FILE_MAN_SUFFIX = x ; then
10481 case $host_os in
10482 # Solaris 2.0 - 11 use SysV man page sections
10483 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10484 *) FILE_MAN_SUFFIX=5 ;;
10485 esac
10486 fi
10487 if test x$FILE_MAN_DIR = x ; then
10488 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10489 fi
10490
10491 if test x$MISC_MAN_SUFFIX = x ; then
10492 case $host_os in
10493 # Solaris 2.0 - 11 use SysV man page sections
10494 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10495 *) MISC_MAN_SUFFIX=7 ;;
10496 esac
10497 fi
10498 if test x$MISC_MAN_DIR = x ; then
10499 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10500 fi
10501
10502 if test x$DRIVER_MAN_SUFFIX = x ; then
10503 case $host_os in
10504 # Solaris 2.0 - 11 use SysV man page sections
10505 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10506 *) DRIVER_MAN_SUFFIX=4 ;;
10507 esac
10508 fi
10509 if test x$DRIVER_MAN_DIR = x ; then
10510 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10511 fi
10512
10513 if test x$ADMIN_MAN_SUFFIX = x ; then
10514 case $host_os in
10515 # Solaris 2.0 - 11 use SysV man page sections
10516 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10517 *) ADMIN_MAN_SUFFIX=8 ;;
10518 esac
10519 fi
10520 if test x$ADMIN_MAN_DIR = x ; then
10521 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10522 fi
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538 XORG_MAN_PAGE="X Version 11"
10539
10540 MAN_SUBSTS="\
10541 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10542 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10543 -e 's|__xservername__|Xorg|g' \
10544 -e 's|__xconfigfile__|xorg.conf|g' \
10545 -e 's|__projectroot__|\$(prefix)|g' \
10546 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10547 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10548 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10549 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10550 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10551 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10552 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10553
10554
10555
10556 # Check whether --enable-silent-rules was given.
10557 if test "${enable_silent_rules+set}" = set; then :
10558 enableval=$enable_silent_rules;
10559 fi
10560
10561 case $enable_silent_rules in # (((
10562 yes) AM_DEFAULT_VERBOSITY=0;;
10563 no) AM_DEFAULT_VERBOSITY=1;;
10564 *) AM_DEFAULT_VERBOSITY=0;;
10565 esac
10566 am_make=${MAKE-make}
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10568 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10569 if ${am_cv_make_support_nested_variables+:} false; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 if $as_echo 'TRUE=$(BAR$(V))
10573 BAR0=false
10574 BAR1=true
10575 V=1
10576 am__doit:
10577 @$(TRUE)
10578 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10579 am_cv_make_support_nested_variables=yes
10580 else
10581 am_cv_make_support_nested_variables=no
10582 fi
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10585 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10586 if test $am_cv_make_support_nested_variables = yes; then
10587 AM_V='$(V)'
10588 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10589 else
10590 AM_V=$AM_DEFAULT_VERBOSITY
10591 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10592 fi
10593 AM_BACKSLASH='\'
10594
10595
10596
10597 ac_config_files="$ac_config_files Makefile xbitmaps.pc"
10598
10599 cat >confcache <<\_ACEOF
10600 # This file is a shell script that caches the results of configure
10601 # tests run on this system so they can be shared between configure
10602 # scripts and configure runs, see configure's option --config-cache.
10603 # It is not useful on other systems. If it contains results you don't
10604 # want to keep, you may remove or edit it.
10605 #
10606 # config.status only pays attention to the cache file if you give it
10607 # the --recheck option to rerun configure.
10608 #
10609 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10611 # following values.
10612
10613 _ACEOF
10614
10615 # The following way of writing the cache mishandles newlines in values,
10616 # but we know of no workaround that is simple, portable, and efficient.
10617 # So, we kill variables containing newlines.
10618 # Ultrix sh set writes to stderr and can't be redirected directly,
10619 # and sets the high bit in the cache file unless we assign to the vars.
10620 (
10621 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10622 eval ac_val=\$$ac_var
10623 case $ac_val in #(
10624 *${as_nl}*)
10625 case $ac_var in #(
10626 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10627 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10628 esac
10629 case $ac_var in #(
10630 _ | IFS | as_nl) ;; #(
10631 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10632 *) { eval $ac_var=; unset $ac_var;} ;;
10633 esac ;;
10634 esac
10635 done
10636
10637 (set) 2>&1 |
10638 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10639 *${as_nl}ac_space=\ *)
10640 # `set' does not quote correctly, so add quotes: double-quote
10641 # substitution turns \\\\ into \\, and sed turns \\ into \.
10642 sed -n \
10643 "s/'/'\\\\''/g;
10644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10645 ;; #(
10646 *)
10647 # `set' quotes correctly as required by POSIX, so do not add quotes.
10648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10649 ;;
10650 esac |
10651 sort
10652 ) |
10653 sed '
10654 /^ac_cv_env_/b end
10655 t clear
10656 :clear
10657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10658 t end
10659 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10660 :end' >>confcache
10661 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10662 if test -w "$cache_file"; then
10663 if test "x$cache_file" != "x/dev/null"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10665 $as_echo "$as_me: updating cache $cache_file" >&6;}
10666 if test ! -f "$cache_file" || test -h "$cache_file"; then
10667 cat confcache >"$cache_file"
10668 else
10669 case $cache_file in #(
10670 */* | ?:*)
10671 mv -f confcache "$cache_file"$$ &&
10672 mv -f "$cache_file"$$ "$cache_file" ;; #(
10673 *)
10674 mv -f confcache "$cache_file" ;;
10675 esac
10676 fi
10677 fi
10678 else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10680 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10681 fi
10682 fi
10683 rm -f confcache
10684
10685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10686 # Let make expand exec_prefix.
10687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10688
10689 DEFS=-DHAVE_CONFIG_H
10690
10691 ac_libobjs=
10692 ac_ltlibobjs=
10693 U=
10694 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10695 # 1. Remove the extension, and $U if already installed.
10696 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10697 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10698 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10699 # will be set to the directory where LIBOBJS objects are built.
10700 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10701 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10702 done
10703 LIBOBJS=$ac_libobjs
10704
10705 LTLIBOBJS=$ac_ltlibobjs
10706
10707
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10709 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10710 if test -n "$am_sleep_pid"; then
10711 # Hide warnings about reused PIDs.
10712 wait $am_sleep_pid 2>/dev/null
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10715 $as_echo "done" >&6; }
10716 if test -n "$EXEEXT"; then
10717 am__EXEEXT_TRUE=
10718 am__EXEEXT_FALSE='#'
10719 else
10720 am__EXEEXT_TRUE='#'
10721 am__EXEEXT_FALSE=
10722 fi
10723
10724 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10725 as_fn_error $? "conditional \"AMDEP\" was never defined.
10726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10727 fi
10728 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10729 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10731 fi
10732
10733 : "${CONFIG_STATUS=./config.status}"
10734 ac_write_fail=0
10735 ac_clean_files_save=$ac_clean_files
10736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10738 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10739 as_write_fail=0
10740 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10741 #! $SHELL
10742 # Generated by $as_me.
10743 # Run this file to recreate the current configuration.
10744 # Compiler output produced by configure, useful for debugging
10745 # configure, is in config.log if it exists.
10746
10747 debug=false
10748 ac_cs_recheck=false
10749 ac_cs_silent=false
10750
10751 SHELL=\${CONFIG_SHELL-$SHELL}
10752 export SHELL
10753 _ASEOF
10754 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10755 ## -------------------- ##
10756 ## M4sh Initialization. ##
10757 ## -------------------- ##
10758
10759 # Be more Bourne compatible
10760 DUALCASE=1; export DUALCASE # for MKS sh
10761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10762 emulate sh
10763 NULLCMD=:
10764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10765 # is contrary to our usage. Disable this feature.
10766 alias -g '${1+"$@"}'='"$@"'
10767 setopt NO_GLOB_SUBST
10768 else
10769 case `(set -o) 2>/dev/null` in #(
10770 *posix*) :
10771 set -o posix ;; #(
10772 *) :
10773 ;;
10774 esac
10775 fi
10776
10777
10778 as_nl='
10779 '
10780 export as_nl
10781 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10782 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10785 # Prefer a ksh shell builtin over an external printf program on Solaris,
10786 # but without wasting forks for bash or zsh.
10787 if test -z "$BASH_VERSION$ZSH_VERSION" \
10788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10789 as_echo='print -r --'
10790 as_echo_n='print -rn --'
10791 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10792 as_echo='printf %s\n'
10793 as_echo_n='printf %s'
10794 else
10795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10796 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10797 as_echo_n='/usr/ucb/echo -n'
10798 else
10799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10800 as_echo_n_body='eval
10801 arg=$1;
10802 case $arg in #(
10803 *"$as_nl"*)
10804 expr "X$arg" : "X\\(.*\\)$as_nl";
10805 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10806 esac;
10807 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10808 '
10809 export as_echo_n_body
10810 as_echo_n='sh -c $as_echo_n_body as_echo'
10811 fi
10812 export as_echo_body
10813 as_echo='sh -c $as_echo_body as_echo'
10814 fi
10815
10816 # The user is always right.
10817 if test "${PATH_SEPARATOR+set}" != set; then
10818 PATH_SEPARATOR=:
10819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10821 PATH_SEPARATOR=';'
10822 }
10823 fi
10824
10825
10826 # IFS
10827 # We need space, tab and new line, in precisely that order. Quoting is
10828 # there to prevent editors from complaining about space-tab.
10829 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10830 # splitting by setting IFS to empty value.)
10831 IFS=" "" $as_nl"
10832
10833 # Find who we are. Look in the path if we contain no directory separator.
10834 as_myself=
10835 case $0 in #((
10836 *[\\/]* ) as_myself=$0 ;;
10837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10839 do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10843 done
10844 IFS=$as_save_IFS
10845
10846 ;;
10847 esac
10848 # We did not find ourselves, most probably we were run as `sh COMMAND'
10849 # in which case we are not to be found in the path.
10850 if test "x$as_myself" = x; then
10851 as_myself=$0
10852 fi
10853 if test ! -f "$as_myself"; then
10854 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10855 exit 1
10856 fi
10857
10858 # Unset variables that we do not need and which cause bugs (e.g. in
10859 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10860 # suppresses any "Segmentation fault" message there. '((' could
10861 # trigger a bug in pdksh 5.2.14.
10862 for as_var in BASH_ENV ENV MAIL MAILPATH
10863 do eval test x\${$as_var+set} = xset \
10864 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10865 done
10866 PS1='$ '
10867 PS2='> '
10868 PS4='+ '
10869
10870 # NLS nuisances.
10871 LC_ALL=C
10872 export LC_ALL
10873 LANGUAGE=C
10874 export LANGUAGE
10875
10876 # CDPATH.
10877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10878
10879
10880 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10881 # ----------------------------------------
10882 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10883 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10884 # script with STATUS, using 1 if that was 0.
10885 as_fn_error ()
10886 {
10887 as_status=$1; test $as_status -eq 0 && as_status=1
10888 if test "$4"; then
10889 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10890 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10891 fi
10892 $as_echo "$as_me: error: $2" >&2
10893 as_fn_exit $as_status
10894 } # as_fn_error
10895
10896
10897 # as_fn_set_status STATUS
10898 # -----------------------
10899 # Set $? to STATUS, without forking.
10900 as_fn_set_status ()
10901 {
10902 return $1
10903 } # as_fn_set_status
10904
10905 # as_fn_exit STATUS
10906 # -----------------
10907 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10908 as_fn_exit ()
10909 {
10910 set +e
10911 as_fn_set_status $1
10912 exit $1
10913 } # as_fn_exit
10914
10915 # as_fn_unset VAR
10916 # ---------------
10917 # Portably unset VAR.
10918 as_fn_unset ()
10919 {
10920 { eval $1=; unset $1;}
10921 }
10922 as_unset=as_fn_unset
10923 # as_fn_append VAR VALUE
10924 # ----------------------
10925 # Append the text in VALUE to the end of the definition contained in VAR. Take
10926 # advantage of any shell optimizations that allow amortized linear growth over
10927 # repeated appends, instead of the typical quadratic growth present in naive
10928 # implementations.
10929 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10930 eval 'as_fn_append ()
10931 {
10932 eval $1+=\$2
10933 }'
10934 else
10935 as_fn_append ()
10936 {
10937 eval $1=\$$1\$2
10938 }
10939 fi # as_fn_append
10940
10941 # as_fn_arith ARG...
10942 # ------------------
10943 # Perform arithmetic evaluation on the ARGs, and store the result in the
10944 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10945 # must be portable across $(()) and expr.
10946 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10947 eval 'as_fn_arith ()
10948 {
10949 as_val=$(( $* ))
10950 }'
10951 else
10952 as_fn_arith ()
10953 {
10954 as_val=`expr "$@" || test $? -eq 1`
10955 }
10956 fi # as_fn_arith
10957
10958
10959 if expr a : '\(a\)' >/dev/null 2>&1 &&
10960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10961 as_expr=expr
10962 else
10963 as_expr=false
10964 fi
10965
10966 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10967 as_basename=basename
10968 else
10969 as_basename=false
10970 fi
10971
10972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10973 as_dirname=dirname
10974 else
10975 as_dirname=false
10976 fi
10977
10978 as_me=`$as_basename -- "$0" ||
10979 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10980 X"$0" : 'X\(//\)$' \| \
10981 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10982 $as_echo X/"$0" |
10983 sed '/^.*\/\([^/][^/]*\)\/*$/{
10984 s//\1/
10985 q
10986 }
10987 /^X\/\(\/\/\)$/{
10988 s//\1/
10989 q
10990 }
10991 /^X\/\(\/\).*/{
10992 s//\1/
10993 q
10994 }
10995 s/.*/./; q'`
10996
10997 # Avoid depending upon Character Ranges.
10998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11001 as_cr_digits='0123456789'
11002 as_cr_alnum=$as_cr_Letters$as_cr_digits
11003
11004 ECHO_C= ECHO_N= ECHO_T=
11005 case `echo -n x` in #(((((
11006 -n*)
11007 case `echo 'xy\c'` in
11008 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11009 xy) ECHO_C='\c';;
11010 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11011 ECHO_T=' ';;
11012 esac;;
11013 *)
11014 ECHO_N='-n';;
11015 esac
11016
11017 rm -f conf$$ conf$$.exe conf$$.file
11018 if test -d conf$$.dir; then
11019 rm -f conf$$.dir/conf$$.file
11020 else
11021 rm -f conf$$.dir
11022 mkdir conf$$.dir 2>/dev/null
11023 fi
11024 if (echo >conf$$.file) 2>/dev/null; then
11025 if ln -s conf$$.file conf$$ 2>/dev/null; then
11026 as_ln_s='ln -s'
11027 # ... but there are two gotchas:
11028 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11029 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11030 # In both cases, we have to default to `cp -pR'.
11031 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11032 as_ln_s='cp -pR'
11033 elif ln conf$$.file conf$$ 2>/dev/null; then
11034 as_ln_s=ln
11035 else
11036 as_ln_s='cp -pR'
11037 fi
11038 else
11039 as_ln_s='cp -pR'
11040 fi
11041 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11042 rmdir conf$$.dir 2>/dev/null
11043
11044
11045 # as_fn_mkdir_p
11046 # -------------
11047 # Create "$as_dir" as a directory, including parents if necessary.
11048 as_fn_mkdir_p ()
11049 {
11050
11051 case $as_dir in #(
11052 -*) as_dir=./$as_dir;;
11053 esac
11054 test -d "$as_dir" || eval $as_mkdir_p || {
11055 as_dirs=
11056 while :; do
11057 case $as_dir in #(
11058 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11059 *) as_qdir=$as_dir;;
11060 esac
11061 as_dirs="'$as_qdir' $as_dirs"
11062 as_dir=`$as_dirname -- "$as_dir" ||
11063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11064 X"$as_dir" : 'X\(//\)[^/]' \| \
11065 X"$as_dir" : 'X\(//\)$' \| \
11066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11067 $as_echo X"$as_dir" |
11068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11069 s//\1/
11070 q
11071 }
11072 /^X\(\/\/\)[^/].*/{
11073 s//\1/
11074 q
11075 }
11076 /^X\(\/\/\)$/{
11077 s//\1/
11078 q
11079 }
11080 /^X\(\/\).*/{
11081 s//\1/
11082 q
11083 }
11084 s/.*/./; q'`
11085 test -d "$as_dir" && break
11086 done
11087 test -z "$as_dirs" || eval "mkdir $as_dirs"
11088 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11089
11090
11091 } # as_fn_mkdir_p
11092 if mkdir -p . 2>/dev/null; then
11093 as_mkdir_p='mkdir -p "$as_dir"'
11094 else
11095 test -d ./-p && rmdir ./-p
11096 as_mkdir_p=false
11097 fi
11098
11099
11100 # as_fn_executable_p FILE
11101 # -----------------------
11102 # Test if FILE is an executable regular file.
11103 as_fn_executable_p ()
11104 {
11105 test -f "$1" && test -x "$1"
11106 } # as_fn_executable_p
11107 as_test_x='test -x'
11108 as_executable_p=as_fn_executable_p
11109
11110 # Sed expression to map a string onto a valid CPP name.
11111 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11112
11113 # Sed expression to map a string onto a valid variable name.
11114 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11115
11116
11117 exec 6>&1
11118 ## ----------------------------------- ##
11119 ## Main body of $CONFIG_STATUS script. ##
11120 ## ----------------------------------- ##
11121 _ASEOF
11122 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11123
11124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11125 # Save the log message, to keep $0 and so on meaningful, and to
11126 # report actual input values of CONFIG_FILES etc. instead of their
11127 # values after options handling.
11128 ac_log="
11129 This file was extended by xbitmaps $as_me 1.1.2, which was
11130 generated by GNU Autoconf 2.69. Invocation command line was
11131
11132 CONFIG_FILES = $CONFIG_FILES
11133 CONFIG_HEADERS = $CONFIG_HEADERS
11134 CONFIG_LINKS = $CONFIG_LINKS
11135 CONFIG_COMMANDS = $CONFIG_COMMANDS
11136 $ $0 $@
11137
11138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11139 "
11140
11141 _ACEOF
11142
11143 case $ac_config_files in *"
11144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11145 esac
11146
11147 case $ac_config_headers in *"
11148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11149 esac
11150
11151
11152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11153 # Files that config.status was made for.
11154 config_files="$ac_config_files"
11155 config_headers="$ac_config_headers"
11156 config_commands="$ac_config_commands"
11157
11158 _ACEOF
11159
11160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11161 ac_cs_usage="\
11162 \`$as_me' instantiates files and other configuration actions
11163 from templates according to the current configuration. Unless the files
11164 and actions are specified as TAGs, all are instantiated by default.
11165
11166 Usage: $0 [OPTION]... [TAG]...
11167
11168 -h, --help print this help, then exit
11169 -V, --version print version number and configuration settings, then exit
11170 --config print configuration, then exit
11171 -q, --quiet, --silent
11172 do not print progress messages
11173 -d, --debug don't remove temporary files
11174 --recheck update $as_me by reconfiguring in the same conditions
11175 --file=FILE[:TEMPLATE]
11176 instantiate the configuration file FILE
11177 --header=FILE[:TEMPLATE]
11178 instantiate the configuration header FILE
11179
11180 Configuration files:
11181 $config_files
11182
11183 Configuration headers:
11184 $config_headers
11185
11186 Configuration commands:
11187 $config_commands
11188
11189 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11190
11191 _ACEOF
11192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11194 ac_cs_version="\\
11195 xbitmaps config.status 1.1.2
11196 configured by $0, generated by GNU Autoconf 2.69,
11197 with options \\"\$ac_cs_config\\"
11198
11199 Copyright (C) 2012 Free Software Foundation, Inc.
11200 This config.status script is free software; the Free Software Foundation
11201 gives unlimited permission to copy, distribute and modify it."
11202
11203 ac_pwd='$ac_pwd'
11204 srcdir='$srcdir'
11205 INSTALL='$INSTALL'
11206 MKDIR_P='$MKDIR_P'
11207 AWK='$AWK'
11208 test -n "\$AWK" || AWK=awk
11209 _ACEOF
11210
11211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11212 # The default lists apply if the user does not specify any file.
11213 ac_need_defaults=:
11214 while test $# != 0
11215 do
11216 case $1 in
11217 --*=?*)
11218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11220 ac_shift=:
11221 ;;
11222 --*=)
11223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11224 ac_optarg=
11225 ac_shift=:
11226 ;;
11227 *)
11228 ac_option=$1
11229 ac_optarg=$2
11230 ac_shift=shift
11231 ;;
11232 esac
11233
11234 case $ac_option in
11235 # Handling of the options.
11236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11237 ac_cs_recheck=: ;;
11238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11239 $as_echo "$ac_cs_version"; exit ;;
11240 --config | --confi | --conf | --con | --co | --c )
11241 $as_echo "$ac_cs_config"; exit ;;
11242 --debug | --debu | --deb | --de | --d | -d )
11243 debug=: ;;
11244 --file | --fil | --fi | --f )
11245 $ac_shift
11246 case $ac_optarg in
11247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11248 '') as_fn_error $? "missing file argument" ;;
11249 esac
11250 as_fn_append CONFIG_FILES " '$ac_optarg'"
11251 ac_need_defaults=false;;
11252 --header | --heade | --head | --hea )
11253 $ac_shift
11254 case $ac_optarg in
11255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11256 esac
11257 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11258 ac_need_defaults=false;;
11259 --he | --h)
11260 # Conflict between --help and --header
11261 as_fn_error $? "ambiguous option: \`$1'
11262 Try \`$0 --help' for more information.";;
11263 --help | --hel | -h )
11264 $as_echo "$ac_cs_usage"; exit ;;
11265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11266 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11267 ac_cs_silent=: ;;
11268
11269 # This is an error.
11270 -*) as_fn_error $? "unrecognized option: \`$1'
11271 Try \`$0 --help' for more information." ;;
11272
11273 *) as_fn_append ac_config_targets " $1"
11274 ac_need_defaults=false ;;
11275
11276 esac
11277 shift
11278 done
11279
11280 ac_configure_extra_args=
11281
11282 if $ac_cs_silent; then
11283 exec 6>/dev/null
11284 ac_configure_extra_args="$ac_configure_extra_args --silent"
11285 fi
11286
11287 _ACEOF
11288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11289 if \$ac_cs_recheck; then
11290 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11291 shift
11292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11293 CONFIG_SHELL='$SHELL'
11294 export CONFIG_SHELL
11295 exec "\$@"
11296 fi
11297
11298 _ACEOF
11299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11300 exec 5>>config.log
11301 {
11302 echo
11303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11304 ## Running $as_me. ##
11305 _ASBOX
11306 $as_echo "$ac_log"
11307 } >&5
11308
11309 _ACEOF
11310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11311 #
11312 # INIT-COMMANDS
11313 #
11314 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11315
11316 _ACEOF
11317
11318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11319
11320 # Handling of arguments.
11321 for ac_config_target in $ac_config_targets
11322 do
11323 case $ac_config_target in
11324 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11325 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11326 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11327 "xbitmaps.pc") CONFIG_FILES="$CONFIG_FILES xbitmaps.pc" ;;
11328
11329 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11330 esac
11331 done
11332
11333
11334 # If the user did not use the arguments to specify the items to instantiate,
11335 # then the envvar interface is used. Set only those that are not.
11336 # We use the long form for the default assignment because of an extremely
11337 # bizarre bug on SunOS 4.1.3.
11338 if $ac_need_defaults; then
11339 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11340 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11341 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11342 fi
11343
11344 # Have a temporary directory for convenience. Make it in the build tree
11345 # simply because there is no reason against having it here, and in addition,
11346 # creating and moving files from /tmp can sometimes cause problems.
11347 # Hook for its removal unless debugging.
11348 # Note that there is a small window in which the directory will not be cleaned:
11349 # after its creation but before its name has been assigned to `$tmp'.
11350 $debug ||
11351 {
11352 tmp= ac_tmp=
11353 trap 'exit_status=$?
11354 : "${ac_tmp:=$tmp}"
11355 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11356 ' 0
11357 trap 'as_fn_exit 1' 1 2 13 15
11358 }
11359 # Create a (secure) tmp directory for tmp files.
11360
11361 {
11362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11363 test -d "$tmp"
11364 } ||
11365 {
11366 tmp=./conf$$-$RANDOM
11367 (umask 077 && mkdir "$tmp")
11368 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11369 ac_tmp=$tmp
11370
11371 # Set up the scripts for CONFIG_FILES section.
11372 # No need to generate them if there are no CONFIG_FILES.
11373 # This happens for instance with `./config.status config.h'.
11374 if test -n "$CONFIG_FILES"; then
11375
11376
11377 ac_cr=`echo X | tr X '\015'`
11378 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11379 # But we know of no other shell where ac_cr would be empty at this
11380 # point, so we can use a bashism as a fallback.
11381 if test "x$ac_cr" = x; then
11382 eval ac_cr=\$\'\\r\'
11383 fi
11384 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11385 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11386 ac_cs_awk_cr='\\r'
11387 else
11388 ac_cs_awk_cr=$ac_cr
11389 fi
11390
11391 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11392 _ACEOF
11393
11394
11395 {
11396 echo "cat >conf$$subs.awk <<_ACEOF" &&
11397 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11398 echo "_ACEOF"
11399 } >conf$$subs.sh ||
11400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11401 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11402 ac_delim='%!_!# '
11403 for ac_last_try in false false false false false :; do
11404 . ./conf$$subs.sh ||
11405 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11406
11407 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11408 if test $ac_delim_n = $ac_delim_num; then
11409 break
11410 elif $ac_last_try; then
11411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11412 else
11413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11414 fi
11415 done
11416 rm -f conf$$subs.sh
11417
11418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11419 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11420 _ACEOF
11421 sed -n '
11422 h
11423 s/^/S["/; s/!.*/"]=/
11424 p
11425 g
11426 s/^[^!]*!//
11427 :repl
11428 t repl
11429 s/'"$ac_delim"'$//
11430 t delim
11431 :nl
11432 h
11433 s/\(.\{148\}\)..*/\1/
11434 t more1
11435 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11436 p
11437 n
11438 b repl
11439 :more1
11440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11441 p
11442 g
11443 s/.\{148\}//
11444 t nl
11445 :delim
11446 h
11447 s/\(.\{148\}\)..*/\1/
11448 t more2
11449 s/["\\]/\\&/g; s/^/"/; s/$/"/
11450 p
11451 b
11452 :more2
11453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11454 p
11455 g
11456 s/.\{148\}//
11457 t delim
11458 ' <conf$$subs.awk | sed '
11459 /^[^""]/{
11460 N
11461 s/\n//
11462 }
11463 ' >>$CONFIG_STATUS || ac_write_fail=1
11464 rm -f conf$$subs.awk
11465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11466 _ACAWK
11467 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11468 for (key in S) S_is_set[key] = 1
11469 FS = ""
11470
11471 }
11472 {
11473 line = $ 0
11474 nfields = split(line, field, "@")
11475 substed = 0
11476 len = length(field[1])
11477 for (i = 2; i < nfields; i++) {
11478 key = field[i]
11479 keylen = length(key)
11480 if (S_is_set[key]) {
11481 value = S[key]
11482 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11483 len += length(value) + length(field[++i])
11484 substed = 1
11485 } else
11486 len += 1 + keylen
11487 }
11488
11489 print line
11490 }
11491
11492 _ACAWK
11493 _ACEOF
11494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11495 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11496 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11497 else
11498 cat
11499 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11500 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11501 _ACEOF
11502
11503 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11504 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11505 # trailing colons and then remove the whole line if VPATH becomes empty
11506 # (actually we leave an empty line to preserve line numbers).
11507 if test "x$srcdir" = x.; then
11508 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11509 h
11510 s///
11511 s/^/:/
11512 s/[ ]*$/:/
11513 s/:\$(srcdir):/:/g
11514 s/:\${srcdir}:/:/g
11515 s/:@srcdir@:/:/g
11516 s/^:*//
11517 s/:*$//
11518 x
11519 s/\(=[ ]*\).*/\1/
11520 G
11521 s/\n//
11522 s/^[^=]*=[ ]*$//
11523 }'
11524 fi
11525
11526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11527 fi # test -n "$CONFIG_FILES"
11528
11529 # Set up the scripts for CONFIG_HEADERS section.
11530 # No need to generate them if there are no CONFIG_HEADERS.
11531 # This happens for instance with `./config.status Makefile'.
11532 if test -n "$CONFIG_HEADERS"; then
11533 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11534 BEGIN {
11535 _ACEOF
11536
11537 # Transform confdefs.h into an awk script `defines.awk', embedded as
11538 # here-document in config.status, that substitutes the proper values into
11539 # config.h.in to produce config.h.
11540
11541 # Create a delimiter string that does not exist in confdefs.h, to ease
11542 # handling of long lines.
11543 ac_delim='%!_!# '
11544 for ac_last_try in false false :; do
11545 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11546 if test -z "$ac_tt"; then
11547 break
11548 elif $ac_last_try; then
11549 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11550 else
11551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11552 fi
11553 done
11554
11555 # For the awk script, D is an array of macro values keyed by name,
11556 # likewise P contains macro parameters if any. Preserve backslash
11557 # newline sequences.
11558
11559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11560 sed -n '
11561 s/.\{148\}/&'"$ac_delim"'/g
11562 t rset
11563 :rset
11564 s/^[ ]*#[ ]*define[ ][ ]*/ /
11565 t def
11566 d
11567 :def
11568 s/\\$//
11569 t bsnl
11570 s/["\\]/\\&/g
11571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11572 D["\1"]=" \3"/p
11573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11574 d
11575 :bsnl
11576 s/["\\]/\\&/g
11577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11578 D["\1"]=" \3\\\\\\n"\\/p
11579 t cont
11580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11581 t cont
11582 d
11583 :cont
11584 n
11585 s/.\{148\}/&'"$ac_delim"'/g
11586 t clear
11587 :clear
11588 s/\\$//
11589 t bsnlc
11590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11591 d
11592 :bsnlc
11593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11594 b cont
11595 ' <confdefs.h | sed '
11596 s/'"$ac_delim"'/"\\\
11597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11598
11599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11600 for (key in D) D_is_set[key] = 1
11601 FS = ""
11602 }
11603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11604 line = \$ 0
11605 split(line, arg, " ")
11606 if (arg[1] == "#") {
11607 defundef = arg[2]
11608 mac1 = arg[3]
11609 } else {
11610 defundef = substr(arg[1], 2)
11611 mac1 = arg[2]
11612 }
11613 split(mac1, mac2, "(") #)
11614 macro = mac2[1]
11615 prefix = substr(line, 1, index(line, defundef) - 1)
11616 if (D_is_set[macro]) {
11617 # Preserve the white space surrounding the "#".
11618 print prefix "define", macro P[macro] D[macro]
11619 next
11620 } else {
11621 # Replace #undef with comments. This is necessary, for example,
11622 # in the case of _POSIX_SOURCE, which is predefined and required
11623 # on some systems where configure will not decide to define it.
11624 if (defundef == "undef") {
11625 print "/*", prefix defundef, macro, "*/"
11626 next
11627 }
11628 }
11629 }
11630 { print }
11631 _ACAWK
11632 _ACEOF
11633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11634 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11635 fi # test -n "$CONFIG_HEADERS"
11636
11637
11638 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11639 shift
11640 for ac_tag
11641 do
11642 case $ac_tag in
11643 :[FHLC]) ac_mode=$ac_tag; continue;;
11644 esac
11645 case $ac_mode$ac_tag in
11646 :[FHL]*:*);;
11647 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11648 :[FH]-) ac_tag=-:-;;
11649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11650 esac
11651 ac_save_IFS=$IFS
11652 IFS=:
11653 set x $ac_tag
11654 IFS=$ac_save_IFS
11655 shift
11656 ac_file=$1
11657 shift
11658
11659 case $ac_mode in
11660 :L) ac_source=$1;;
11661 :[FH])
11662 ac_file_inputs=
11663 for ac_f
11664 do
11665 case $ac_f in
11666 -) ac_f="$ac_tmp/stdin";;
11667 *) # Look for the file first in the build tree, then in the source tree
11668 # (if the path is not absolute). The absolute path cannot be DOS-style,
11669 # because $ac_f cannot contain `:'.
11670 test -f "$ac_f" ||
11671 case $ac_f in
11672 [\\/$]*) false;;
11673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11674 esac ||
11675 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11676 esac
11677 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11678 as_fn_append ac_file_inputs " '$ac_f'"
11679 done
11680
11681 # Let's still pretend it is `configure' which instantiates (i.e., don't
11682 # use $as_me), people would be surprised to read:
11683 # /* config.h. Generated by config.status. */
11684 configure_input='Generated from '`
11685 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11686 `' by configure.'
11687 if test x"$ac_file" != x-; then
11688 configure_input="$ac_file. $configure_input"
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11690 $as_echo "$as_me: creating $ac_file" >&6;}
11691 fi
11692 # Neutralize special characters interpreted by sed in replacement strings.
11693 case $configure_input in #(
11694 *\&* | *\|* | *\\* )
11695 ac_sed_conf_input=`$as_echo "$configure_input" |
11696 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11697 *) ac_sed_conf_input=$configure_input;;
11698 esac
11699
11700 case $ac_tag in
11701 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11703 esac
11704 ;;
11705 esac
11706
11707 ac_dir=`$as_dirname -- "$ac_file" ||
11708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11709 X"$ac_file" : 'X\(//\)[^/]' \| \
11710 X"$ac_file" : 'X\(//\)$' \| \
11711 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11712 $as_echo X"$ac_file" |
11713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11714 s//\1/
11715 q
11716 }
11717 /^X\(\/\/\)[^/].*/{
11718 s//\1/
11719 q
11720 }
11721 /^X\(\/\/\)$/{
11722 s//\1/
11723 q
11724 }
11725 /^X\(\/\).*/{
11726 s//\1/
11727 q
11728 }
11729 s/.*/./; q'`
11730 as_dir="$ac_dir"; as_fn_mkdir_p
11731 ac_builddir=.
11732
11733 case "$ac_dir" in
11734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11735 *)
11736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11737 # A ".." for each directory in $ac_dir_suffix.
11738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11739 case $ac_top_builddir_sub in
11740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11742 esac ;;
11743 esac
11744 ac_abs_top_builddir=$ac_pwd
11745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11746 # for backward compatibility:
11747 ac_top_builddir=$ac_top_build_prefix
11748
11749 case $srcdir in
11750 .) # We are building in place.
11751 ac_srcdir=.
11752 ac_top_srcdir=$ac_top_builddir_sub
11753 ac_abs_top_srcdir=$ac_pwd ;;
11754 [\\/]* | ?:[\\/]* ) # Absolute name.
11755 ac_srcdir=$srcdir$ac_dir_suffix;
11756 ac_top_srcdir=$srcdir
11757 ac_abs_top_srcdir=$srcdir ;;
11758 *) # Relative name.
11759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11760 ac_top_srcdir=$ac_top_build_prefix$srcdir
11761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11762 esac
11763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11764
11765
11766 case $ac_mode in
11767 :F)
11768 #
11769 # CONFIG_FILE
11770 #
11771
11772 case $INSTALL in
11773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11775 esac
11776 ac_MKDIR_P=$MKDIR_P
11777 case $MKDIR_P in
11778 [\\/$]* | ?:[\\/]* ) ;;
11779 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11780 esac
11781 _ACEOF
11782
11783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11784 # If the template does not know about datarootdir, expand it.
11785 # FIXME: This hack should be removed a few years after 2.60.
11786 ac_datarootdir_hack=; ac_datarootdir_seen=
11787 ac_sed_dataroot='
11788 /datarootdir/ {
11789 p
11790 q
11791 }
11792 /@datadir@/p
11793 /@docdir@/p
11794 /@infodir@/p
11795 /@localedir@/p
11796 /@mandir@/p'
11797 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11798 *datarootdir*) ac_datarootdir_seen=yes;;
11799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11801 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11802 _ACEOF
11803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11804 ac_datarootdir_hack='
11805 s&@datadir@&$datadir&g
11806 s&@docdir@&$docdir&g
11807 s&@infodir@&$infodir&g
11808 s&@localedir@&$localedir&g
11809 s&@mandir@&$mandir&g
11810 s&\\\${datarootdir}&$datarootdir&g' ;;
11811 esac
11812 _ACEOF
11813
11814 # Neutralize VPATH when `$srcdir' = `.'.
11815 # Shell code in configure.ac might set extrasub.
11816 # FIXME: do we really want to maintain this feature?
11817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11818 ac_sed_extra="$ac_vpsub
11819 $extrasub
11820 _ACEOF
11821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11822 :t
11823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11824 s|@configure_input@|$ac_sed_conf_input|;t t
11825 s&@top_builddir@&$ac_top_builddir_sub&;t t
11826 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11827 s&@srcdir@&$ac_srcdir&;t t
11828 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11829 s&@top_srcdir@&$ac_top_srcdir&;t t
11830 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11831 s&@builddir@&$ac_builddir&;t t
11832 s&@abs_builddir@&$ac_abs_builddir&;t t
11833 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11834 s&@INSTALL@&$ac_INSTALL&;t t
11835 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11836 $ac_datarootdir_hack
11837 "
11838 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11839 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11840
11841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11842 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11844 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11846 which seems to be undefined. Please make sure it is defined" >&5
11847 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11848 which seems to be undefined. Please make sure it is defined" >&2;}
11849
11850 rm -f "$ac_tmp/stdin"
11851 case $ac_file in
11852 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11853 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11854 esac \
11855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11856 ;;
11857 :H)
11858 #
11859 # CONFIG_HEADER
11860 #
11861 if test x"$ac_file" != x-; then
11862 {
11863 $as_echo "/* $configure_input */" \
11864 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11865 } >"$ac_tmp/config.h" \
11866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11867 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11869 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11870 else
11871 rm -f "$ac_file"
11872 mv "$ac_tmp/config.h" "$ac_file" \
11873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11874 fi
11875 else
11876 $as_echo "/* $configure_input */" \
11877 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11878 || as_fn_error $? "could not create -" "$LINENO" 5
11879 fi
11880 # Compute "$ac_file"'s index in $config_headers.
11881 _am_arg="$ac_file"
11882 _am_stamp_count=1
11883 for _am_header in $config_headers :; do
11884 case $_am_header in
11885 $_am_arg | $_am_arg:* )
11886 break ;;
11887 * )
11888 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11889 esac
11890 done
11891 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11892 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11893 X"$_am_arg" : 'X\(//\)[^/]' \| \
11894 X"$_am_arg" : 'X\(//\)$' \| \
11895 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11896 $as_echo X"$_am_arg" |
11897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11898 s//\1/
11899 q
11900 }
11901 /^X\(\/\/\)[^/].*/{
11902 s//\1/
11903 q
11904 }
11905 /^X\(\/\/\)$/{
11906 s//\1/
11907 q
11908 }
11909 /^X\(\/\).*/{
11910 s//\1/
11911 q
11912 }
11913 s/.*/./; q'`/stamp-h$_am_stamp_count
11914 ;;
11915
11916 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11917 $as_echo "$as_me: executing $ac_file commands" >&6;}
11918 ;;
11919 esac
11920
11921
11922 case $ac_file$ac_mode in
11923 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11924 # Older Autoconf quotes --file arguments for eval, but not when files
11925 # are listed without --file. Let's play safe and only enable the eval
11926 # if we detect the quoting.
11927 case $CONFIG_FILES in
11928 *\'*) eval set x "$CONFIG_FILES" ;;
11929 *) set x $CONFIG_FILES ;;
11930 esac
11931 shift
11932 for mf
11933 do
11934 # Strip MF so we end up with the name of the file.
11935 mf=`echo "$mf" | sed -e 's/:.*$//'`
11936 # Check whether this is an Automake generated Makefile or not.
11937 # We used to match only the files named 'Makefile.in', but
11938 # some people rename them; so instead we look at the file content.
11939 # Grep'ing the first line is not enough: some people post-process
11940 # each Makefile.in and add a new line on top of each file to say so.
11941 # Grep'ing the whole file is not good either: AIX grep has a line
11942 # limit of 2048, but all sed's we know have understand at least 4000.
11943 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11944 dirpart=`$as_dirname -- "$mf" ||
11945 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11946 X"$mf" : 'X\(//\)[^/]' \| \
11947 X"$mf" : 'X\(//\)$' \| \
11948 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11949 $as_echo X"$mf" |
11950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11951 s//\1/
11952 q
11953 }
11954 /^X\(\/\/\)[^/].*/{
11955 s//\1/
11956 q
11957 }
11958 /^X\(\/\/\)$/{
11959 s//\1/
11960 q
11961 }
11962 /^X\(\/\).*/{
11963 s//\1/
11964 q
11965 }
11966 s/.*/./; q'`
11967 else
11968 continue
11969 fi
11970 # Extract the definition of DEPDIR, am__include, and am__quote
11971 # from the Makefile without running 'make'.
11972 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11973 test -z "$DEPDIR" && continue
11974 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11975 test -z "$am__include" && continue
11976 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11977 # Find all dependency output files, they are included files with
11978 # $(DEPDIR) in their names. We invoke sed twice because it is the
11979 # simplest approach to changing $(DEPDIR) to its actual value in the
11980 # expansion.
11981 for file in `sed -n "
11982 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11983 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11984 # Make sure the directory exists.
11985 test -f "$dirpart/$file" && continue
11986 fdir=`$as_dirname -- "$file" ||
11987 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11988 X"$file" : 'X\(//\)[^/]' \| \
11989 X"$file" : 'X\(//\)$' \| \
11990 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11991 $as_echo X"$file" |
11992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11993 s//\1/
11994 q
11995 }
11996 /^X\(\/\/\)[^/].*/{
11997 s//\1/
11998 q
11999 }
12000 /^X\(\/\/\)$/{
12001 s//\1/
12002 q
12003 }
12004 /^X\(\/\).*/{
12005 s//\1/
12006 q
12007 }
12008 s/.*/./; q'`
12009 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12010 # echo "creating $dirpart/$file"
12011 echo '# dummy' > "$dirpart/$file"
12012 done
12013 done
12014 }
12015 ;;
12016
12017 esac
12018 done # for ac_tag
12019
12020
12021 as_fn_exit 0
12022 _ACEOF
12023 ac_clean_files=$ac_clean_files_save
12024
12025 test $ac_write_fail = 0 ||
12026 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12027
12028
12029 # configure is writing to config.log, and then calls config.status.
12030 # config.status does its own redirection, appending to config.log.
12031 # Unfortunately, on DOS this fails, as config.log is still kept open
12032 # by configure, so config.status won't be able to write to it; its
12033 # output is simply discarded. So we exec the FD to /dev/null,
12034 # effectively closing config.log, so it can be properly (re)opened and
12035 # appended to by config.status. When coming back to configure, we
12036 # need to make the FD available again.
12037 if test "$no_create" != yes; then
12038 ac_cs_success=:
12039 ac_config_status_args=
12040 test "$silent" = yes &&
12041 ac_config_status_args="$ac_config_status_args --quiet"
12042 exec 5>/dev/null
12043 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12044 exec 5>>config.log
12045 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12046 # would make configure fail if this is the last instruction.
12047 $ac_cs_success || as_fn_exit 1
12048 fi
12049 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12051 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12052 fi
12053
12054